This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Sentry Triage Script - Template | |
| ================================ | |
| A script for triaging Sentry issues and optionally generating fix plans | |
| using AI-assisted code analysis. | |
| Usage: ./sentry-triage-template.py [version...] [--output-dir DIR] [--plan] [--plan-only] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class HandDataProcessor : MonoBehaviour | |
| { | |
| private const float cThumbLength = 0.05f; | |
| private const float cIndexLength = 0.08f; | |
| private const float cMiddleLength = 0.09f; | |
| [Header("Left Hand")] | |
| [SerializeField] | |
| private BoolReader _isLeftHandTracked = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This doesn't seem to work properly | |
| //#define USE_UNITY_PIN_FUNCTION | |
| using System; | |
| using System.Runtime.InteropServices; | |
| using Unity.Collections; | |
| using Unity.Collections.LowLevel.Unsafe; | |
| using UnityEngine; | |
| using UnityEngine.Assertions; | |
| // Trick for creating a temporary NativeArray which points to the contents of a managed array. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| import java.io.*; | |
| public class Test { | |
| public static void main (String[] args){ | |
| ArrayList<String> storage = new ArrayList<>(); | |
| int counter = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ExampleCasting { | |
| public static void main (String[] args) { | |
| Animal a1 = new Dog(); | |
| Dog d1 = new Dog(); | |
| a1 = d1; | |
| // Dog d2 = new Animal(); // compiler: incompatible types | |
| // Dog d2 = (Dog) new Animal(); // runtime: ClassCastException |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class BinaryTree { | |
| Node root; | |
| public void addNode(int key, String name) { | |
| // Create a new Node and initialize it | |
| Node newNode = new Node(key, name); |