query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Write a method to randomly generate a set of m integers from an array of size n. Each element must have equal probability of being chosen.
@Test public void test3() throws Exception { int[] random = getRandomlyFromArray(new int[] {1, 2, 3, 4, 5, 6, 7, 8}, 3); String prepend = ""; for (int i : random) { System.out.print(prepend + i); prepend = ", "; } System.out.println(); try { getRandomlyFromArray(new int[] {1}, 2); Assert.fail("Should have thrown an exception"); } catch (Exception e) { // expected } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BigFraction[][] randomInt(int m, int n) {\n BigFraction[][] C = new BigFraction[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n C[i][j] = new BigFraction(Math.round(Math.random() * 20) - 10);// * 256;\n return C;\n }", "static int [] rand (int [] m) {\r\n\t\tint [] massive = new int [m.length];\r\n\t\tfor (int i = 0; i < (m.length-1); i++) {\r\n\t\t\tmassive [i] = (int) Math.round( (Math.random() * 100));\r\n\t\t\tSystem.out.print(massive [i] + \" \");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\treturn massive;\r\n\t}", "private static int[] generateRandom(int n) {\n\t\tint[] arr = new int[n];\n\t\tRandom r = new Random();\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tarr[i] = r.nextInt(n);\n\t\t\t\t\t\n\t\treturn arr;\n\t}", "public static int[] shuffleDeterministic(int n){\n\t\tRandom r = new Random(52);\n\t\tSet<Integer> s = new HashSet<Integer>();\n\t\tint shuffle[] = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\twhile(true){\n\t\t\t\tint v = r.nextInt();\n\t\t\t\tint cardId=Math.abs(v%n);\n\t\t\t\tif (s.contains(cardId)){\n\t\t\t\t\tSystem.out.println(\"wasted\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\ts.add(cardId);\n\t\t\t\t\tshuffle[i]=cardId;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shuffle;\n\t}", "public static int[] genArray(int n){\r\n\r\n Random rand = new Random();\r\n int arr[] = new int[n];\r\n for(int i=0; i<n;i++){\r\n arr[i] = rand.nextInt(n);\r\n }\r\n\r\n return arr;\r\n\r\n }", "public void genRand(int n) {\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < n; j++) {\n\t\t\t\tm[i][j] = rand.nextInt(10);\n\t\t\t}\n\t\t}\n\t}", "public static void randomArray(int n) \r\n\t{\r\n\t\tnum = new int[n];\r\n\t\tRandom r = new Random();\r\n\t\tint Low = 1;\r\n\t\tint High = 10;\r\n\t\t\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tnum[i] = r.nextInt(High - Low) + Low;\r\n\t\t}\r\n\t\t\r\n\t}", "public static List<Integer> getRandomMLessThanN(int m, int n){\n\t\tif(m > n || m < 1 )\n\t\t\tthrow new InvalidParameterException(\"Invalid input parameters\");\n\t\tMap<Integer, Integer> randomNs = new HashMap<Integer, Integer>();\n\t\tRandom randomGen = new Random();\n\t\tfor(int index = 0; index < m ; index++){\n\t\t\t// Get a random index greater than the current \"index\" being considered\n\t\t\tint randomIndex = index + randomGen.nextInt(n - index);\t\t\t\n\t\t\t// If we have already touched the value at this random index location then \n\t\t\t// consider that value, else consider the value as random index itself\n\t\t\tint valueAtRandomIndex = randomNs.getOrDefault(randomIndex, randomIndex);\n\t\t\t\n\t\t\t// Now put(treat) the earlier found random value as the value found for current index\n\t\t\t\n\t\t\t// If there already a value at this index, consider it for replacement, else, just replace\n\t\t\t// this index itself\n\t\t\tint valueAtIndex = randomNs.getOrDefault(index, index);\n\t\t\t\n\t\t\trandomNs.put(index, valueAtRandomIndex);\n\t\t\trandomNs.put(randomIndex, valueAtIndex);\n\t\t}\n\t\t//System.out.println(randomNs);\n\t\tList<Integer> result = new ArrayList<>();\n\t\tfor(int index = 0 ; index < m; index++){\n\t\t\tresult.add(randomNs.get(index));\n\t\t}\n\t\n\t\treturn result;\n\t}", "public static BigFraction[][] random(int m, int n) {\n BigFraction[][] C = new BigFraction[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n C[i][j] = new BigFraction(Math.random());\n return C;\n }", "void createArray(int n) {\n numbers = new int[n];\n for ( int i = 0; i < n; i++){\n numbers[i] = random.nextInt(1000);\n }\n }", "public static int[] randomNumber (int n) {\n\t\tint []num = new int[n];\n\t\tfor (int i = 0; i < num.length; i++) {\n\t\t\tnum[i] = (int) (rGen.nextDouble()*10);\n\t\t}\n\t\treturn num;\n\t}", "public static void randomNumber (int[] num, int n) {\n\t\tfor (int j = 0;j < n; j++) {\n\t\t\tnum[j] = (int) (Math.random()*10);\n\t\t}\n\t}", "public static int[] randomElemArray(int n) {\n int[] A = new int[n];\n A[A.length - 1] = 0;\n for (int i = 0; i < n - 1; i++) {\n A[i] = 1 + (int) (Math.random() * ((9 - 1) + 1));\n }\n return A;\n }", "private static int[] createArray(int n) {\n\t \tint[] array = new int[n];\n\t \tfor(int i=0; i<n; i++){\n\t \t\tarray[i] = (int)(Math.random()*10);\n\t \t}\n\t\t\treturn array;\n\t\t}", "public static Matrix random(int m, int n) {\n Matrix A = new Matrix(m,n);\n double[][] X = A.getArray();\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n X[i][j] = Math.random();\n }\n }\n return A;\n }", "public int[] randomize(int inputSize){\n int[] list = new int[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(0, inputSize + 1);\n }\n// System.out.println(Arrays.toString(list));\n return list;\n }", "private int[] randPerm( int n ) {\n int[] perm = new int[n];\n for (int k=0; k<n; ++k) perm[k] = k;\n for (int k=n; k>0; --k) {\n int rand = r.nextInt(k);\n int t = perm[rand]; perm[rand] = perm[k-1]; perm[k-1] = t;\n }\n return( perm );\n }", "public static void rand_generator(int[] ran,int n,int min, int max){\r\n Random r1 = new Random(); // rand function\r\n for(int i=0;i<n;i++)\r\n {\r\n ran[i] = r1.nextInt((max - min) + 1) + min; // saving the random values in the corresponding arrays\r\n }\r\n }", "public static int[] generateRandomArray(){\n return new Random().ints(0, 100000)\n .distinct()\n .limit(1000).toArray();\n }", "public static void shuffle(int[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n int temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "private static int[] getDistributedArray(int n, int times, Random r) {\n int avg = n / 2;\n int v;\n if (n <= 50) {\n v = n;\n } else if (n <= 100) {\n v = (int) (n * 1.5);\n } else if (n <= 200) {\n v = n * 2;\n } else {\n v = n * 3;\n }\n int count = n * times;\n int[] a = new int[count];\n for (int i = 0; i < count; ) {\n int x = (int) (Math.sqrt(v) * r.nextGaussian() + avg);\n if (x >= 0 && x < n) {\n a[i++] = x;\n }\n }\n return a;\n }", "public static int[] constructor(int n) {\r\n int v[] = new int[n];\r\n\r\n for (int i = 0; i < v.length; i++) {\r\n int dato = (int) (Math.random() * 20);\r\n v[i] = dato;\r\n }\r\n return v;\r\n }", "public int[] sameElements(int n, int max) {\n Random rand = new Random();\n int[] arr = new int[max];\n for (int i = 0; i <= max - 1; i += n) {\n int next = rand.nextInt();\n for (int j = i; j < (i + n) && j < max; j++) {\n arr[j] = next;\n }\n }\n return arr;\n }", "private List<Integer> generateProb() {\n Integer[] randArr = new Integer[numCols*numRows];\n\n int start = 0;\n int end;\n for(int i = 0; i < myStateMap.size(); i++) {\n double prob = myStateMap.get(i).getProb();\n end = (int) (prob * numCols * numRows + start);\n for(int j = start; j < end; j++) {\n if(end > randArr.length) {\n break;\n }\n randArr[j] = myStateMap.get(i).getType();\n }\n start = end;\n }\n\n List<Integer> arr = new ArrayList<>(Arrays.asList(randArr));\n Collections.shuffle(arr);\n return arr;\n }", "public static void shuffle( int[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public int getRandom() {\n int n = set.size();\n if (n == 0) return 0;\n Object[] res = set.toArray();\n Random rand = new Random();\n int result = rand.nextInt(n);\n return (Integer)res[result];\n }", "private static int [] getRandomNumbers (int sizearray) {\n // create the array of the specified size\n int [] numberarray = new int[sizearray];\n // create the Java random number generator \n Random randomGenerator = new Random();\n \n // for each element of the array, get the next random number \n for (int index = 0; index < sizearray; index++)\n {\n numberarray[index] = randomGenerator.nextInt(100); \n }\n \n return numberarray; \n }", "int random(int m)\n {\n return (int) (1 + Math.random()%m);\n }", "static int[] singleArrayGenerator(int num){\n int[] arr = new int[num];\n for(int i = 0; i < num; i++)\n arr[i] = new Random().nextInt(100);\n return arr;\n }", "private List<Integer> generateRandom() {\n Integer[] randArr = new Integer[numCols*numRows];\n\n int start = 0;\n int end;\n for(int i = 0; i < myStateMap.size(); i++) {\n int amt = myStateMap.get(i).getAmount();\n end = amt + start;\n for(int j = start; j < end; j++) {\n if(end > randArr.length) {\n break;\n }\n randArr[j] = myStateMap.get(i).getType();\n }\n start = end;\n }\n\n List<Integer> arr = new ArrayList<>(Arrays.asList(randArr));\n Collections.shuffle(arr);\n return arr;\n }", "public static int[] makePermutation(int numFilesInSet) {\n\tint value;\n\tboolean todo;\n\tboolean exist[];\n\n\tint[] permutation = new int[numFilesInSet];\n\texist = new boolean[numFilesInSet];\n\tvalue = 0;\n\tfor (int i = 0; i < permutation.length; i++) {\n\t todo = true;\n\t while (todo) {\n\t\tvalue = _random.nextInt(numFilesInSet);\n\t\ttodo = (exist[value] != false);\n\t }\n\t permutation[i] = value;\n\t exist[value] = true;\n\t}\n\treturn permutation;\n }", "public static Set<Integer> rndSet(int size, int min, int max){\n\n\t\tif (max < size)\n\t\t{\n\t\t throw new IllegalArgumentException(\"Can't ask for more numbers than are available\");\n\t\t}\n\n\t\tSet<Integer> generated = new LinkedHashSet<Integer>();\n\t\twhile (generated.size() < size)\n\t\t{\n\t\t Integer next = rng.nextInt(max - min + 1) + min;\n\t\t // As we're adding to a set, this will automatically do a containment check\n\t\t generated.add(next);\n\t\t}\n\t\tSystem.out.println(\"line sampled: \"+generated.toString());\n\t\treturn generated;\n\t}", "public static void shuffle(int[] array)\n {\n int n = array.length;\n for (int i = 0; i < n; i++)\n {\n // choose index uniformly in [0, i]\n //explicit conversion to int\n int r = (int) (Math.random() * (i + 1));\n swap(array,r,i);\n }\n }", "public static String[] randomize(String[] array, int n)\n\t{\n\t\tArrayList<String> list = new ArrayList<String>(array.length);\n\t\tfor (String s: array)\n\t\t{\n\t\t\tlist.add(s);\n\t\t}\n\t\tCollections.shuffle(list);\n\t\tString[] random = new String[n];\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\trandom[i] = list.get(i);\n\t\t}\n\n\t\tArrays.sort(random);\n\n\t\treturn random;\n\t}", "private static Integer[] getRandomArray(int N, int max) {\n Integer[] a = new Integer[N];\n java.util.Random rng = new java.util.Random();\n for (int i = 0; i < N; i++) {\n a[i] = rng.nextInt(max);\n }\n return a;\n }", "public static int[] randomArray(int size){\n\t\tRandom array = new Random();\n\t\tint[] input = new int[size];\n\t for (int i = 0; i < input.length; i++) {\n\t input[i] = array.nextInt()/2; \n\t }\n\t\treturn input;\n\t}", "private static void __exercise37(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = StdRandom.uniform(N);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public static int[] genPerm(int bound, int size) {\n Set<Integer> set = new HashSet<>();\n while (set.size() < size) {\n set.add(rand.nextInt(bound));\n }\n int[] randPerm = new int[size];\n int i = 0;\n for (Integer value : set) {\n randPerm[i++] = value;\n }\n return randPerm;\n }", "private static int[] createRandomFilledArrayOfLength(int n) {\n int[] list = new int[n];\n Random rand = new Random();\n for (int i = 0; i < n; i++) {\n list[i] = rand.nextInt(2*MAX_VALUE) - MAX_VALUE;\n }\n return list;\n }", "public Integer[] createPermutation() {\n Integer[] value = createSortedArray();\n\n for (int c = 0; c < 5; c++) {\n for (int i = 0; i<value.length; i++) {\n int j = (int)(Math.random()*value.length);\n int temp = value[i];\n value[i] = value[j];\n value[j] = temp;\n }\n }\n \n return value;\n }", "public int[] shuffle() {\n int[] res = new int[nums.length];\n int r;\n for (int i = 0; i < nums.length; i++) {\n r = random.nextInt(i + 1);\n res[i] = res[r];\n res[r] = nums[i];\n }\n\n\n return res;\n }", "public double[] genDiscreteDistribution(int n) {\n\t\tRandom generator = null;\n\t\tgenerator = new Random();\n\t\tdouble[] res = allocateVector(n);\n\t\tdo {\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tres[i] = generator.nextDouble();\n\t\t\t}\n\t\t} while (sum(res) == 0);\n\t\tdivideAssign(res, sum(res));\n\t\treturn res;\n\t}", "public int[] shuffle() {\n int[] random = new int[nums.length];\n for (int i = 0; i < nums.length; i++) {\n // generate a random between 0 ~ i\n int r = (int)(Math.random() * (i + 1));\n random[i] = random[r];\n random[r] = nums[i];\n }\n return random;\n }", "public int[] permutate(int n) {\n int[] x = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = i;\n }\n\n permutate(x);\n\n return x;\n }", "public int[] shuffle() {\r\n int max = nums.length - 1;\r\n for (int i = 0; i < nums.length; i++) {\r\n int index = new Random().nextInt(max)%(max - i + 1) + i;\r\n int tmp = nums[i];\r\n nums[i] = nums[index];\r\n nums[index] = tmp;\r\n }\r\n return nums;\r\n }", "public List<Integer> pickRandom(int n, int k) {\n\t\tList<Integer> wynik = new ArrayList<Integer>();\n\t Random random = new Random();\n\t Set<Integer> picked = new HashSet<>();\n\t while(picked.size() < n) {\n\t \tint sizeNaPoczatku = picked.size();\n\t \tint znaleziona = random.nextInt(k);\n\t picked.add(znaleziona);\n\t int sizeNaKoncu = picked.size();\n\t if(sizeNaPoczatku != sizeNaKoncu) {\n\t \twynik.add(znaleziona);\n\t }\n\t }\n\t return wynik;\n\t}", "public static boolean[][] random (final int n, final double p, final Random rnd) {\n final boolean[][] a = new boolean[n][n];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n a[i][j] = rnd.nextDouble () < p;\n }\n }\n return a;\n }", "public int[] shuffle() {\r\n if (nums == null) return nums;\r\n int tmp = 0;\r\n \r\n int[] newNums = nums.clone();\r\n \r\n for (int i=1; i<newNums.length; i++) {\r\n int selectPos = rd.nextInt(i+1);\r\n tmp = newNums[i];\r\n newNums[i] = newNums[selectPos];\r\n newNums[selectPos] = tmp;\r\n }\r\n \r\n return newNums;\r\n }", "public static Integer[] prepareRandomIntegerArray(int size) {\n\t\tInteger[] array = new Integer[size];\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tarray[j] = (int) ((Math.random() * 1000000));\n\t\t}\n\t\treturn array;\n\t}", "public static int[] selectionShuffle(int[] arr) { \n int temp;\n int idx;\n for(int i = 0; i < arr.length; i ++){\n idx = (int) (Math.random() * arr.length);\n temp = arr[i];\n arr[i] = arr[idx];\n arr[idx] = temp;\n }\n return arr;\n }", "private static void __exercise36(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = i + StdRandom.uniform(N - i);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "static void fillArray(int[] array) {\n\t\tint i = 0;\r\n\t\tint number = 1;\r\n\t\twhile (i < array.length) {\r\n\t\t\tif ((int) Math.floor(Math.random() * Integer.MAX_VALUE) % 2 == 0) {\r\n\t\t\t\tnumber = number + (int) Math.floor(Math.random() * 5);\r\n\t\t\t\tarray[i] = number;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tnumber++;\r\n\t\t\t\tarray[i] = number;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private static int[] initArray(int N){\n int[] a = new int[N];\n for (int i=0;i<N;i++)\n a[i] = (int)(Math.random()*99999 + 100000);\n return a;\n }", "public Integer[] randomizeObject(int inputSize){\n Integer[] list = new Integer[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(-inputSize, inputSize + 1);\n }\n // System.out.println(Arrays.toString(list));\n return list;\n }", "void genPermute() {\n\t\tpermute = new ArrayList<Integer>();\n\t\tfor(int idx = 0; idx < dim(); idx++)\n\t\t\tpermute.add(idx);\n\t\tjava.util.Collections.shuffle(permute);\n\t}", "public static int[] getSubset(int[] input, int size){\n\t\t\n\t\tRandom rand = new Random();\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tswap(input, i, rand.nextInt(input.length - i));\n\t\t}\n\t\treturn input;\n\t}", "public int collect(int n){\r\n\t\tint counter=0;\r\n\t\tint distinctValue=0;\r\n\t\tboolean[] collectedvalue=new boolean[n];\r\n\t\twhile(distinctValue<n){\r\n\t\t\tint v=generateRandomCoupon(n);\r\n\t\t\tcounter++;\r\n\t\t\tif(collectedvalue[v]){\r\n\t\t\t\tdistinctValue++;\r\n\t\t\t\tcollectedvalue[v]=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter++;\r\n\t}", "private ArrayList<int[]> buildPermutations(int n) {\n mPermutations = new ArrayList();\n mPermuteArray = new int[n];\n for (int i = 0; i < n; i++)\n mPermuteArray[i] = i;\n generate(n);\n return mPermutations;\n }", "public static void generateRandomNumbers(int n)\n\t{\n\t\t\tlong startTime = 0;\n\t\t\tlong endTime = 0;\n\t\t\tlong timeTaken = 0;\n\t\t\tint minimum = -20;\n\t\t\tint maximum = 20;\n\t\t\t//maximum subarray\n\t\t\tint maximumSum=0;\n\t\t\t// initialize length of array of integers to n\n\t\t \tint A [] = new int[n];\n\t\t \t// get instance of Random() to generate random numbers between -20 and 20\n\t\t \tRandom rand = new Random();\n\t for(int k =0;k<n;k++)\n\t {\n\t \tint randomNum = minimum + rand.nextInt((maximum - minimum) + 1);\n\t \t\tA [k]= randomNum;\n\t \t}\n\t startTime = System.currentTimeMillis();\n\t maximumSum = jKadaneAlgo(A,n);\n\t // System.out.println(\"Maximum Subarray: \"+maximumSum);\n\t // time in milliseconds after completion of J Kadane Algorithm logic\n\t endTime = System.currentTimeMillis();\n\t // calculate total time taken\n\t timeTaken = endTime-startTime;\n\t System.out.println(\"Total time - J Kadane dynamic programming algo: \"+timeTaken+\"ms\");\n\t // time in milliseconds before calling J Kadane Algorithm logic\n\t startTime = System.currentTimeMillis();\n\t \n\t}", "public Set<Integer> generateSet(int size){\n Set<Integer> data = new HashSet<>();\n for (int i = 0; i < size; i++){\n data.add(i);\n }\n return data;\n }", "private static void shuffleArray(final int[] a) {\n for (int i = 1; i < a.length; i++) {\n int j = random.nextInt(i);\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }\n }", "public int[] shuffle() {\r\n\t\t\tRandom r = new Random();\r\n\t\t\tint[] shuffle = new int[this.nums.length];\r\n\t\t\tint i = 0;\r\n\t\t\tMap<Integer, Boolean> map = new HashMap<Integer, Boolean>();\r\n\t\t\twhile (i < this.nums.length) {\r\n\t\t\t\tint count = r.nextInt(this.nums.length);\r\n\t\t\t\tif (map.get(count) != null && map.get(count)) {\r\n\t\t\t\t} else {\r\n\t\t\t\t\tshuffle[i] = this.nums[count];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tmap.put(count, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn shuffle;\r\n\t\t}", "public static void shuffle(double[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n double temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public Set<Integer> generateLotteryNumbers ()\n {\n\t Set<Integer> randomGenerator = new HashSet<Integer>(6); \n\t Random randomnum = new Random();\n\t \n\t\n\n\t \n\t for (Integer i=0; i<6;i++) \n\t {\n\t\t //keep looping until able to add a add number into a set that does not not exist and is between 1 and49\n\t\t \n\t\t while (randomGenerator.add(1+randomnum.nextInt(49)) == false) {\n\t\t\t \n\t\t\t\n\t\t }\n\t\t \n\n\t }\n\t \n\t \n\t \n return randomGenerator;\n \n }", "public static int[] shuffleArray (int [] nums , int n){\n int[] finalArray = new int [nums.length];\n int numCurr = 0;\n for(int i = 0 ; i < nums.length ; i = i+2, n++, numCurr++){\n finalArray[i] = nums[numCurr];\n finalArray[i+1] = nums[n];\n }\n\n return finalArray;\n }", "public static int[] makeArray( Random random){\n\t\tint[] arr = new int[10];\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t\tarr[i] = random.nextInt(200);\n\t\treturn arr;\n\t}", "private static Integer[] getIntegerArray(int N, int max) {\n Integer[] a = new Integer[N];\n java.util.Random rng = new java.util.Random();\n for (int i = 0; i < N; i++) {\n a[i] = rng.nextInt(max);\n }\n return a;\n }", "public Qsort(int n){\n\tRandom r = new Random();\n\ta = new int[n];\n\tfor (int i = 0; i < a.length; i++) {\n\t a[i] = r.nextInt(100);\n\t}\n }", "public static void knuthShuffle(Comparable[] a) {\n int r, n = a.length;\n for (int i = 1; i < n; i++) {\n r = randInt(0, i);\n exch(a, i, r);\n }\n }", "public static int[] f_fill_vector_age_people(int N){\n int[] v_vector_age= new int[N];\n for(int i=0; i<N; i++){\n\n v_vector_age[i]= (int) (Math.random()*100)+1;\n\n }\n return v_vector_age;\n }", "public int[] shuffle() {\n if (nums == null) {\n return null;\n }\n int[] a = nums.clone();\n for (int j = 1; j < a.length; j++) {\n // 类似蓄水池采样算法\n // i == j -> 1/(1+j)\n // j != j -> (1 - 1/(1+j)) * (1/j) = 1/(1/j)\n int i = random.nextInt(j + 1);\n swap(a, i, j);\n }\n return a;\n }", "public pair[][] genFaultRandomly(int[] values, int num){\n\tpair[][] res = new pair[num][];\n\tres[0] = genARandomTuple(values, 3);\n\tint index = 1;\n\twhile(index < num){\n\t int choose = random.nextInt(index);\n\t pair[] tmp = modifyAPosition(res[choose], values);\n\t if(!containsTuple(res, index, tmp)){\n\t res[index] = tmp;\n\t index ++;\n\t }\n\t}\n\treturn res;\n }", "public static List<SequentialTargetQuery> randomGenerate(int n, int m, RaptorModel model) {\n\t\tList<SequentialTargetQuery> queries = new ArrayList<SequentialTargetQuery>();\n\t\t\n\t\tList<RaptorStop> stops = new ArrayList<RaptorStop>(model.getStops().values());\n//\t\tList<String> days = new ArrayList<String>(\n//\t\t\t\tArrays.asList(\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"));\n\t\tList<String> days = new ArrayList<String>(\n\t\t\t\tArrays.asList(\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\"));\n\t\t\n\t\tList<Integer> sampledIds = new ArrayList<Integer>();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tRandom rd = new Random();\n\t\t\t\n\t\t\t// randomly generate source and target stops\n\t\t\tint sourceId = rd.nextInt(model.getStops().size());\n\t\t\tsampledIds.add(new Integer(sourceId));\n\t\t\t\n\t\t\tList<String> ts = new ArrayList<String>();\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tint targetId;\n\t\t\t\tdo {\n\t\t\t\t\ttargetId = rd.nextInt(model.getStops().size());\n\t\t\t\t} while (sampledIds.contains(new Integer(targetId)));\n\t\t\t\tts.add(stops.get(targetId).getId());\n\t\t\t\tsampledIds.add(new Integer(sourceId));\n\t\t\t}\n\t\t\t\n\t\t\t// randomly generate day\n\t\t\tint id = rd.nextInt(days.size());\n\t\t\tString day = days.get(id);\n\t\t\t\n\t\t\t// randomly generate now\n\t\t\tint now = rd.nextInt(ModelBuilder.secondsPerDay);\n\t\t\t\n\t\t\tSequentialTargetQuery query = new SequentialTargetQuery(stops.get(sourceId).getId(), null, day, now, ts);\n\t\t\tqueries.add(query);\n\t\t}\n\t\t\n\t\treturn queries;\n\t}", "public static void createArrays() {\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tint size = rand.nextInt(5) + 5;\r\n\t\t\tTOTAL += size;\r\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\r\n\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\tint value = rand.nextInt(1000) + 1;\r\n\t\t\t\tnumList.add(value);\r\n\t\t\t}\r\n\t\t\tCollections.sort(numList);\r\n\t\t\tarrayMap.put(i + 1, numList);\r\n\t\t}\r\n\t}", "public static void storeRandomNumbers(int [] num){\n\t\tRandom rand = new Random();\n\t\tfor(int i=0; i<num.length; i++){\n\t\t\tnum[i] = rand.nextInt(1000000);\n\t\t}\n\t}", "public static int[] gaussianArray(int size){\n\t\tRandom array = new Random();\n\t\tint[] input = new int[size];\t\n\t\t for (int i = 0; i < input.length; i++) {\n\t\t input[i] = (int) array.nextGaussian();\n\t\t }\n\t\t return input;\n\t}", "private static int[] calculateLotto() {\r\n int random;\r\n int[] array = new int[ArraySize];\r\n for (int i = 0; i < array.length; i++) {\r\n random = Math.getRandom(1, ArrayMax);\r\n if (!Arrays.contains(random, array))\r\n array[i] = random;\r\n else\r\n i--;\r\n }\r\n return array;\r\n }", "public static int uniform(int N) {\r\n return random.nextInt(N);\r\n }", "public static int[][] generateMatrix() {\n int rowsCount = RANDOM.nextInt( MAX_ROWS_COUNT ) + 1;\n int[][] result = new int[rowsCount][];\n for (int i = 0; i < rowsCount; i++) {\n result[i] = new int[RANDOM.nextInt( MAX_COLUMNS_COUNT ) + 1];\n fillArray( result[i] );\n }\n return result;\n }", "public static int getRandom(int n){\n\t\treturn rg.nextInt(n); \n\t}", "public static void shuffle(Object[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n Object temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public static void shuffle( double[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n double temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public static void main(String[] args) {\n\n\t\tint n = Integer.parseInt(args[0]);\n\t\tint m = Integer.parseInt(args[1]);\n\t\t\n\t\tint[][] positions = new int[m][m];\n\t\t\n\t\tdouble[] arr = new double[m];\n\t\tarr[0] = 0;\n\t\tarr[1] = 1;\n\t\tarr[2] = 2;\n\t\tarr[3] = 3;\n\t\tarr[4] = 4;\n\t\t\n\t\tfor (int i=0; i < n; i++) {\n\t\t\tshuffle(arr);\n\t\t\t\n\t\t\tfor (int j=0; j< arr.length; j++) {\n\t\t\t\tpositions[j][(int)arr[j]]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tprintTable(positions);\n\t\t//Entries are close to N/M\n\t}", "public static ArrayList<Integer> genRandomArray(int s) {\n\t\t// TODO Auto-generated method stub\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint i = 0;\n\t\tRandom randNum = new Random();\n\t\tfor (i = 0; i < s; i++) {\n\t\t\tint randNumber = MurmurHash.hashLong(i);\n\t\t\tR.add(randNumber);\n\n\t\t}\n\n\t\treturn R;\n\t}", "public void generateRandomArray() {\n for (int i = 0; i < arraySize; i++) {\n theArray[i] = (int) (Math.random() * 10) + 10;\n }\n }", "public static void randomArray(int array[]){\n DecimalFormat twoDig = new DecimalFormat(\"00\");\n System.out.print(\"\\nSample Random Numbers Generated: \");\n for (int i = 0; i < array.length; i++){\n array[i] = (int)(Math.random() * 100);\n System.out.print(twoDig.format(array[i]) + \" \");\n }\n }", "public static int[] fillArray(int N) {\n\t\talgorithmThree = new int[N];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\talgorithmThree[i] = i;\n\t\t\tswap(algorithmThree[i], algorithmThree[randInt(0,i)]);\n\t\t}\n\t\t\n\t\treturn algorithmThree;\n\t}", "public int[] generarSecuencia(int cantidad){\n int secuencia[]= new int[cantidad];\n\n for(int i=0;i<cantidad;i++){\n secuencia[i]= randRange(1,8);\n }\n return secuencia;\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n ArrayList<Integer> set = new ArrayList<>();\n for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n \n if(!set.contains(arr[i]))\n set.add(arr[i]);\n }\n \n HashMap<Integer,Integer> map = new HashMap<>();\n for(int i:arr)\n {\n if(map.containsKey(i))\n map.put(i,map.get(i)+1);\n else\n map.put(i,1);\n }\n \n for(int i:set)\n {\n System.out.println(i+\" : \"+map.get(i));\n }\n \n \n }", "private int[] sortIntegers(int n) {\n\n int nArray[] = new int[n];\n int temp, s;\n Random myRandom = new Random();\n //initialize array from 0 to n - 1\n for (int i = 0; i < n; i++) {\n nArray[i] = i;\n }\n //i is number ot items remaining in list\n for (int i = n; i >= 1; i--) {\n s = myRandom.nextInt(i);\n temp = nArray[s];\n nArray[s] = nArray[i - 1];\n nArray[i - 1] = temp;\n }\n return (nArray);\n }", "public static void shuffle( Object[] a ) {\n int N = a.length;\n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n Object temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public int[] generatePrimes(int limit);", "private static int[] generateArray(int size, int startRange, int endRange) {\n\t\tint[] array = new int[size];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = (int)((Math.random()*(endRange - startRange + 1)) + startRange);\n\t\t}\n\t\treturn array;\n\t}", "public static int[] shuffle() {\n Random random = new Random();\n for (int i = 0; i < len; i++) {\n int j = random.nextInt(len);\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }\n return nums;\n }", "public int[] shuffle() {\n int[] result = reset();\n\n Random rand = new Random();\n for (int i = 0; i < result.length; i++) {\n int j = rand.nextInt(result.length - i) + i;\n int tmp = result[i];\n result[i] = result[j];\n result[j] = tmp;\n }\n return result;\n }", "public static ArrayList<Integer> createRandomList(int n) {\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\tRandom rand = new Random();\n\n\t\tint max = 1000000;\n\t\tint min = -1000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint value = (int) ((Math.random() * (max - min)) + min);\n\t\t\tlist.add(value);\n\t\t}\n\t\treturn list;\n\t}", "public int[] shuffle() {\n int i = random.nextInt(nums.length);\n int j = random.nextInt(nums.length);\n swap(temp, i , j);\n return temp;\n }", "public int[] shuffle() {\n int[] shuffle = new int[nums.length];\n int[] clone = nums.clone();\n int last = clone.length - 1;\n for(int i = 0; i < clone.length; i++){\n int index = random.nextInt(last + 1);\n shuffle[i] = clone[index];\n clone[index] = clone[last--];\n }\n return shuffle;\n }", "static void initializeArray2() {\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\t// Hash implementation\n\t\t\tint mod = val % m;\n\t\t\tarray[mod] = val;\n\t\t\tresult[1]++;\n\t\t}\n\t}", "public static int[] randomIntArray(int size, int limit) {\n int[] r = new int[size];\n\n for (int i = 0; i < size; ++i) {\n r[i] = RAND.nextInt(limit);\n }\n\n return r;\n }", "public static double[] randoms(int n, int j, double x) {\r\n\t\tdouble[] random = new double[n];\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tswitch(j) {\r\n\t\t\tcase 0: random[i] = URV(); break;\r\n\t\t\tcase 1: random[i] = exponentialRV(1 / x); break;\r\n\t\t\tcase 2: random[i] = poissonRV(x); break;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn random;\r\n\t}" ]
[ "0.6928454", "0.67848706", "0.67683893", "0.66819257", "0.66472274", "0.66106826", "0.6598656", "0.6486833", "0.6461052", "0.6433015", "0.64253426", "0.6376975", "0.63249904", "0.62897915", "0.62792194", "0.6210108", "0.61697894", "0.61686635", "0.6167941", "0.61505187", "0.6088856", "0.6086915", "0.6043534", "0.6024102", "0.6022794", "0.5989508", "0.5988937", "0.597547", "0.5971797", "0.5965975", "0.5958028", "0.595575", "0.5950629", "0.5914215", "0.5891466", "0.5869329", "0.586765", "0.5864875", "0.58601665", "0.5855726", "0.58427143", "0.58348703", "0.5825347", "0.58245504", "0.5805602", "0.5802714", "0.57942116", "0.57913876", "0.57806385", "0.57412404", "0.5736818", "0.5721233", "0.5718625", "0.571746", "0.570802", "0.56637865", "0.5661611", "0.56581616", "0.5652276", "0.565044", "0.56427974", "0.56353635", "0.5631855", "0.562735", "0.56266105", "0.5619518", "0.561469", "0.55963105", "0.5593238", "0.5585201", "0.5579398", "0.5579324", "0.55760986", "0.5575951", "0.5572252", "0.5565198", "0.556202", "0.55594695", "0.55538124", "0.55444175", "0.5535516", "0.55330974", "0.55306095", "0.5525774", "0.5519383", "0.551864", "0.549188", "0.5485047", "0.54792583", "0.5478831", "0.5476641", "0.54683924", "0.54651767", "0.5444126", "0.54410154", "0.5432899", "0.54252803", "0.5420426", "0.54044193", "0.5404134", "0.54021" ]
0.0
-1
You have a large text file containing words. Given any two words, find the shortest distance (in terms of number of words) between them in the file. Can you make the searching operation in O(1) time? What about the space complexity for your solution?
@Test public void test5() { String[] words = new String[] { "A", "B", "C", "D", "E", "F", "F", "B", "H", "I", "J", "K" }; Assert.assertEquals(shortestDistanceBetween(words, "B", "F"), 1); Assert.assertEquals(shortestDistanceBetween(words, "A", "E"), 4); Assert.assertEquals(shortestDistanceBetween(words, "I", "A"), 9); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void findTheShortestDistance(String[]\tarrayOfWords, String word1, String word2) {\n\t\tHashMap<String, ArrayList<Integer>> wordMap = new HashMap<String, ArrayList<Integer>>();\n\t\t\n\t\t// Add each word to the map\n\t\tfor(int i = 0; i < arrayOfWords.length; ++i) {\n\t\t\t\n\t\t\t// Does this word exist in the map?\n\t\t\tif(wordMap.containsKey(arrayOfWords[i])) {\n\t\t\t\t\n\t\t\t\t// It does, get the value and add to it\n\t\t\t\twordMap.get(arrayOfWords[i]).add(i);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// It does not, create the first record\n\t\t\t\tArrayList<Integer> firstRecord = new ArrayList<Integer>();\n\t\t\t\tfirstRecord.add(i);\n\t\t\t\twordMap.put(arrayOfWords[i].toLowerCase(), firstRecord);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Ensure that there is a record for word1 and word2?\n\t\tif(!wordMap.containsKey(word1.toLowerCase()) || !wordMap.containsKey(word2.toLowerCase())) {\n\t\t\t\n\t\t\tSystem.out.println(\"Specified words don't appear in the provided document.\");\n\t\t\treturn;\n\t\t\t\n\t\t}\n\t\t\n\t\t// Now let's find the closest instance of word2 to word1\n\t\t\n\t\t// Get the locations of word1\n\t\tArrayList<Integer> locationsOfWord1 = wordMap.get(word1.toLowerCase());\n\t\t\n\t\t// Get the locations of word2\n\t\tArrayList<Integer> locationsOfWord2 = wordMap.get(word2.toLowerCase());\n\t\t\n\t\t// Initialize minDistance, cannot be longer than the length of our document\n\t\tint minDistance = arrayOfWords.length;\n\t\tint word1Position = 0, word2Position = 0;\n\t\t\n\t\t// Compare each instance of word1\n\t\tfor(int i : locationsOfWord1) {\n\t\t\t\n\t\t\t// To each instance of word2\n\t\t\tfor(int j : locationsOfWord2) {\n\t\t\t\t\n\t\t\t\t// Get the distance between these two occurrences\n\t\t\t\tint distance = Math.abs(i - j);\n\t\t\t\t\n\t\t\t\t// If our distance is less than minDistance, update minDistance\n\t\t\t\tif(distance < minDistance) {\n\t\t\t\t\t\n\t\t\t\t\t// Set the new distance\n\t\t\t\t\tminDistance = distance;\n\t\t\t\t\tword1Position = i;\n\t\t\t\t\tword2Position = j;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t// We're done, print out the result\n\t\tSystem.out.println(\"\\r\\nThe distance is:\\r\\n\" + minDistance + \" [\" + word1 + \" @ \" + (word1Position + 1) + \"], [\" + word2 + \" @ \" + (word2Position + 1) + \"]\");\n\t\t\n\t}", "public int shortest(String word1, String word2) {\n List<Integer> first = map.get(word1);\n List<Integer> second = map.get(word2);\n int result = Integer.MAX_VALUE ;\n for(int i = 0, j = 0 ; i < first.size() && j < second.size();)\n result = first.get(i) < second.get(j) ? Math.min(result,second.get(j) - first.get(i++)) : Math.min(result,first.get(i) - second.get(j++)) ;\n return result;\n }", "public int shortestWordDistance(String[] words, String word1, String word2) {\n int indexWord1 = -1;\n int indexWord2 = -1;\n boolean flag = word1.equals(word2);\n \n int distance = Integer.MAX_VALUE;\n for (int i = 0; i < words.length; i++) {\n if (words[i].equals(word1)) {\n if(flag){ // 如果两个词相同 则只更新一个index 因为index2之后还会更新一次 相当于排除了之后那个word2的判断\n indexWord1 = indexWord2;\n indexWord2 = i;\n } else {\n indexWord1 = i;\n }\n }\n \n if (words[i].equals(word2)) {\n indexWord2 = i;\n }\n if (indexWord1 >= 0 && indexWord2 >= 0) {\n distance = Math.min(distance, Math.abs(indexWord2 - indexWord1));\n }\n }\n return distance;\n }", "public int minDistance(String word1, String word2) {\n\n rows = word1.length() + 1;\n cols = word2.length() + 1;\n dp = new int[rows][cols];\n for (int i = 0; i < rows; i++) {\n dp[i][0] = i;\n }\n for (int i = 0; i < cols; i++) {\n dp[0][i] = i;\n }\n\n for (int i = 1; i < rows; i++) {\n for (int j = 1; j < cols; j++) {\n if (word1.charAt(i - 1) == word2.charAt(j - 1)) {\n dp[i][j] = dp[i - 1][j - 1];\n } else {\n dp[i][j] = 1 + Math.min(dp[i - 1][j - 1], Math.min(dp[i][j - 1], dp[i - 1][j]));\n }\n }\n }\n findPath(dp);\n printPath(dp);\n return dp[rows - 1][cols - 1];\n }", "public static int shortestWordDistanceIII(String[] words, String word1, String word2) {\n\t\tint dist = Integer.MAX_VALUE;//words.length;\n\t\tint i1 = -dist; //i1 记录当前最近的word1的位置\n\t\tint i2 = dist;//i2 记录当前最近的word2的位置\n//\t\tint i1 = -1; //i1 记录当前最近的word1的位置\n//\t\tint i2 = -1;//i2 记录当前最近的word2的位置\n\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\tif (words[i].equals(word1)) {\n\t\t\t\ti1 = i; //i1 记录当前最近的word1\n\t\t\t}\n\t\t\tif (words[i].equals(word2)) {\n\t\t\t\tif (word1.equals(word2)) {\n\t\t\t\t\ti1 = i2;\n\t\t\t\t}\n\t\t\t\ti2 = i;\n\t\t\t}\n\t\t\tdist = Math.min(dist, Math.abs(i1 - i2));\n\t\t\tprint(\"i1:i2:dist\", i1, i2, dist);\n\t\t}\n\t\treturn (int) dist;\n\t}", "public int minDistance(String word1, String word2) {\n if (word1==null && word2==null)\n return 0;\n if (word1==null)\n return word2.length();\n if (word2==null)\n return word1.length();\n\n int len1 = word1.length()+1;\n int len2 = word2.length()+1;\n int[][] dp = new int[len1][len2];\n for (int i=0; i<len1; i++) {\n dp[i][0] = i;\n }\n for (int j=1; j<len2; j++) {\n dp[0][j] = j;\n }\n for (int i=1; i<len1; i++) {\n char ch1 = word1.charAt(i-1);\n for (int j=1; j<len2; j++) {\n char ch2 = word2.charAt(j-1);\n if (ch1 == ch2) {\n dp[i][j] = dp[i-1][j-1];\n } else {\n int change = dp[i-1][j-1]+1;\n int delete = dp[i-1][j]+1;\n int add = dp[i][j-1]+1;\n int best = change > delete ? delete : change;\n best = best > add ? add : best;\n dp[i][j] = best;\n }\n }\n }\n return dp[len1-1][len2-1];\n }", "public static int minDistance(String word1, String word2){\n int m = word1.length(), n = word2.length();\n int[][] dp = new int[m+1][n+1];\n\n for (int i = 0; i <= m; i++){\n dp[i][0] = i;\n }\n for (int i = 0; i <= n; i++){\n dp[0][i] = i;\n }\n\n for (int i = 1; i <= m; i++){\n for (int j = 1; j <= n; j++){\n if (word1.charAt(i-1) == word2.charAt(j-1)){\n dp[i][j] = dp[i-1][j-1];\n }else{\n dp[i][j] = Math.min(dp[i-1][j-1], Math.min(dp[i][j-1], dp[i-1][j])) + 1;\n }\n }\n }\n\n return dp[m][n];\n }", "public int minDistance(String word1, String word2) {\n int[][] mem = new int[word1.length() + 1][word2.length() + 1];\n for (int[] row : mem) Arrays.fill(row, -1);\n mem[word1.length()][word2.length()] = 0;\n return minDist(word1, 0, word2, 0, mem);\n }", "public int minDistance(String word1, String word2) {\n char[] cs1 = word1.toCharArray();\n char[] cs2 = word2.toCharArray();\n int len1 = cs1.length;\n int len2 = cs2.length;\n // if (len1 * len2 == 0) {\n // return Math.max(len1, len2);\n // }\n int[][] min = new int[len1][len2];\n int m = Integer.MAX_VALUE;\n for (int i = 0; i < len1; i++) {\n for (int j = 0; j < len2; j++) {\n m = Integer.MAX_VALUE;\n m = Math.min(getMinDis(min, i, j - 1) + 1, m);\n m = Math.min(getMinDis(min, i - 1, j) + 1, m);\n m = Math.min(getMinDis(min, i - 1, j - 1)\n + (cs1[i] == cs2[j] ? 0 : 1), m);\n min[i][j] = m;\n }\n }\n return getMinDis(min, len1 - 1, len2 - 1);\n }", "public int minDistance(String word1, String word2) {\n int N=word1.length(), M=word2.length();\n int[][] dp = new int[N+1][M+1];\n for (int i=0; i<=N; i++) dp[i][0]=i;\n for (int j=0; j<=M; j++) dp[0][j]=j;\n for (int i=1; i<=N; i++) {\n for (int j=1; j<=M; j++) {\n if (word1.charAt(i-1)==word2.charAt(j-1)) {\n dp[i][j]=dp[i-1][j-1];\n } else {\n dp[i][j]=Math.min(dp[i-1][j], dp[i][j-1]) + 1;\n }\n }\n }\n return dp[N][M];\n }", "public int minDistance(String word1, String word2) {\n if(word1==null||word1.length()==0){\n return word2==null?0:word2.length();\n }else if(word2==null||word2.length()==0){\n return word1.length();\n }else if(word1.equals(word2)){\n return 0;\n }\n char[] str1 = word1.toCharArray();\n char[] str2 = word2.toCharArray();\n int[] oldl = new int[str2.length+1];\n int[] newl = new int[str2.length+1];\n for(int i=0;i<=str2.length;i++){\n oldl[i]=i;\n }\n for(int i=1;i<=str1.length;i++){\n newl[0]=i;\n for(int j=1;j<=str2.length;j++){\n newl[j]=Math.min(oldl[j]+1,newl[j-1]+1);\n if(str1[i-1]!=str2[j-1]){\n newl[j]=Math.min(oldl[j-1]+1,newl[j]);\n }else{\n newl[j]=Math.min(oldl[j-1],newl[j]);\n }\n }\n for(int k=0;k<=str2.length;k++){\n oldl[k]=newl[k];\n }\n }\n return newl[str2.length];\n }", "public int minDistance(String word1, String word2) {\n return word1.length() + word2.length() - 2 * lcs(word1, word2);\n }", "public int minDistance_LCS(String word1, String word2) {\n int N=word1.length(), M=word2.length();\n int[][] dp = new int[N+1][M+1];\n for (int i=1; i<=N; i++) {\n for (int j=1; j<=M; j++) {\n if (word1.charAt(i-1)==word2.charAt(j-1)) {\n dp[i][j]=dp[i-1][j-1]+1;\n } else {\n dp[i][j]=Math.max(dp[i-1][j], dp[i][j-1]);\n }\n }\n }\n return N+M-2*dp[N][M];\n }", "public static int minDistanceIteration(String word1, String word2) {\n\n int m = word1.length();\n int n = word2.length();\n\n //op[i][j] 代表word1[0...i-1]与word2[0...j-1]的编辑距离\n int[][] op = new int[m + 1][n + 1];\n\n for (int i = 0; i <= m; i++) {\n op[i][0] = i;\n }\n\n for (int i = 0; i <=n; i++) {\n op[0][i] = i;\n }\n\n for (int i = 1; i <=m; i++) {\n for (int j = 1; j <=n; j++) {\n if (word1.charAt(i-1) == word2.charAt(j-1)) {\n op[i][j] = op[i-1][j-1];\n } else {\n op[i][j] = Math.min(Math.min(op[i-1][j-1], op[i-1][j]), op[i][j-1]) + 1;\n }\n }\n }\n\n return op[m][n];\n }", "public int minDistance(String word1, String word2) {\n int m=word1.length();\n int n=word2.length();\n \n int dp[][]=new int[m+1][n+1];\n \n for(int i=0;i<m+1;i++){\n for(int j=0;j<n+1;j++){\n //if first string is empty then only option is add all chars from second\n if(i==0)\n dp[i][j]=j;\n \n //if second string is empty then only option is remove all chars from 1st\n else if(j==0)\n dp[i][j]=i;\n //do nothing and copy from diagonal ie. ignore \n else if(word1.charAt(i-1)==word2.charAt(j-1))\n dp[i][j]=dp[i-1][j-1];\n else\n {\n //insert , //remove // replace\n dp[i][j]=1+Math.min(dp[i][j-1], Math.min(dp[i-1][j], dp[i-1][j-1]));\n }\n }\n }\n return dp[m][n];\n }", "private static final int weightedLevenshteinDistance(String str1,\n \t\t\tString str2) {\n \t\tint[][] distances = new int[str1.length() + 1][str2.length() + 1];\n \n \t\tfor (int i = 0; i < str1.length() + 1; i++) {\n \t\t\tdistances[i][0] = i;\n \t\t}\n \n \t\tfor (int j = 1; j < str2.length() + 1; j++) {\n \t\t\tdistances[0][j] = j;\n \t\t}\n \n \t\tfor (int i = 1; i < str1.length() + 1; i++) {\n \t\t\tfor (int j = 1; j < str2.length() + 1; j++) {\n \t\t\t\tdistances[i][j] = getKeyDistance(str1.charAt(0), str2.charAt(0))\n \t\t\t\t\t\t+ Math.min(\n \t\t\t\t\t\t\t\tdistances[i - 1][j - 1]\n \t\t\t\t\t\t\t\t\t\t+ (str1.charAt(i - 1) == str2\n \t\t\t\t\t\t\t\t\t\t\t\t.charAt(j - 1) ? 0 : 1), Math\n \t\t\t\t\t\t\t\t\t\t.min(distances[i - 1][j] + 1,\n \t\t\t\t\t\t\t\t\t\t\t\tdistances[i][j - 1] + 1));\n \t\t\t}\n \t\t}\n \n \t\treturn distances[str1.length()][str2.length()];\n \t}", "private int bfs(String source, String destination, final Set<String> uniqueWords) {\n\n class Node {\n String word;\n int distance;\n\n public Node(String word, int distance) {\n this.word = word;\n this.distance = distance;\n }\n }\n\n final Queue<Node> queue = new LinkedList<>();\n Set<String> visited = new HashSet<>();\n queue.offer(new Node(source, 0)); //distance of source to source is 0\n visited.add(source);\n\n while (!queue.isEmpty()) {\n\n final Node node = queue.poll();\n final int distance = node.distance;\n\n //if we reached the destination node\n if (node.word.equals(destination))\n return distance + 1;\n\n //try all word which is 1 weight away\n for (String neighbour : getNeighbour(node.word, uniqueWords)) {\n if (!visited.contains(neighbour)) {\n visited.add(neighbour);\n queue.offer(new Node(neighbour, distance + 1));\n }\n }\n\n\n }\n return 0;\n }", "public int calcDistance(String wordOne, String wordTwo) {\n int [][]table = new int[wordOne.length()][wordTwo.length()];\n for (int i = 0; i < wordOne.length(); ++i) {\n for (int j = 0; j < wordTwo.length(); ++j) {\n table[i][j] = -1;\n }\n }\n\n return calcDistanceRecursive(wordOne.length()-1, wordTwo.length()-1, wordOne.toCharArray(), wordTwo.toCharArray(), table);\n }", "public int distance(String noun1, String noun2) {\n if (!isNoun(noun1) || !isNoun(noun2)) {\n throw new IllegalArgumentException(\"Either noun1 or noun2 is not a wordnet noun\");\n }\n LinkedList<Integer> x = synsetList.get(noun1);\n LinkedList<Integer> y = synsetList.get(noun2);\n return shortestCA.lengthSubset(x, y);\n\n }", "public int minDistanceDP(String s1, String s2){\n\t\tint [][] dp = new int [s1.length()+1][s2.length()+1];\n\t\tfor(int i = 0 ; i <= s1.length(); i ++){\n\t\t\tfor(int j = 0; j <= s2.length(); j++){\n\t\t\t\tif (s1.charAt(i) == s2.charAt(j)){\n\t\t\t\t\tdp[i][j] = 1 + dp[i-1][j-1];\n\t\t\t\t}else{\n\t\t\t\t\tdp[i][j] = Math.max(dp[i-1][j], dp[i][j-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn s1.length() + s2.length() - 2*dp[s1.length()][s2.length()];\n\t}", "private static Word getShortestTransformation(String startWord, String endWord, Set<String> dictionary) {\n\n if (dictionary.contains(startWord) && dictionary.contains(endWord)) {\n\n List<String> shortestPath = new LinkedList<String>();\n shortestPath.add(startWord);\n\n Queue<Word> queue = new LinkedList<Word>();\n\n // adding start wor d to queue\n queue.add(new Word(shortestPath, 0, startWord));\n\n // begin with start word and remove from dictionary to avoid visiting again the same word\n dictionary.remove(startWord);\n\n // queue iteration until queue is empty or found end word.\n while (!queue.isEmpty() && !queue.peek().equals(endWord)) {\n Word ladder = queue.remove();\n\n if (endWord.equals(ladder.setStartWord())) {\n return ladder;\n }\n\n Iterator<String> i = dictionary.iterator();\n while (i.hasNext()) {\n String string = i.next();\n\n if (letterDifferByOne(string, ladder.setStartWord())) {\n\n List<String> list = new LinkedList<String>(ladder.getTransformationPath());\n list.add(string);\n\n // letter difference between the two words is 1, add that to queue for iteration\n queue.add(new Word(list, ladder.getPathLength() + 1, string));\n System.out.print(\"values in queue\" + queue.element().toString());\n\n\n i.remove();\n }\n }\n }\n\n // returns the head of the node but do not remove from the queue\n if (!queue.isEmpty()) {\n return queue.peek();\n\n }\n }\n\n return null;\n }", "public static int editDistance(String s1, String s2) {\n int[] costs = new int[s2.length() + 1];\n for (int i = 0; i <= s1.length(); i++) {\n int lastValue = i;\n for (int j = 0; j <= s2.length(); j++) {\n if (i == 0)\n costs[j] = j;\n else {\n if (j > 0) {\n int newValue = costs[j - 1];\n if (s1.charAt(i - 1) != s2.charAt(j - 1))\n newValue = Math.min(Math.min(newValue, lastValue),\n costs[j]) + 1;\n costs[j - 1] = lastValue;\n lastValue = newValue;\n }\n }\n }\n if (i > 0)\n costs[s2.length()] = lastValue;\n }\n return costs[s2.length()];\n }", "public static int computeLevenshteinDistance(CharSequence str1, CharSequence str2) {\n int[][] distance = new int[str1.length() + 1][str2.length() + 1];\n\n for (int i = 0; i <= str1.length(); i++)\n distance[i][0] = i;\n for (int j = 0; j <= str2.length(); j++)\n distance[0][j] = j;\n\n for (int i = 1; i <= str1.length(); i++)\n for (int j = 1; j <= str2.length(); j++)\n distance[i][j] = minimum(\n distance[i - 1][j] + 1,\n distance[i][j - 1] + 1,\n distance[i - 1][j - 1]\n + ((str1.charAt(i - 1) == str2.charAt(j - 1)) ? 0\n : 1));\n\n return distance[str1.length()][str2.length()];\n }", "int partDist(String w1, String w2, int w1len, int w2len) {\n // To remember previous state\n int [][] matrix = new int [w1len + 1][w2len +1];\n for(int i = 0; i <= w1len; i++){\n for(int j = 0; j <= w2len; j++){\n // If word 1 is empty\n if(i == 0)\n matrix[i][j] = j;\n // If word 2 is empty\n else if(j == 0)\n matrix[i][j] = i;\n\n // if the previous letter are the same\n else if(w1.charAt(i-1) == w2.charAt(j-1))\n matrix[i][j] = matrix[i-1][j-1];\n /*\n remove one letter matrix[i][j-1]\n add one letter matrix[i-1][j]\n change letter matrix[i-1][j-1]\n */\n else\n matrix[i][j] = 1 + min(matrix[i][j-1], matrix[i-1][j], matrix[i-1][j-1]);\n }\n }\n\n return matrix[w1len][w2len];\n }", "public int distance(String nounA, String nounB)\n {\n if (nounA == null || nounB == null) throw new NullPointerException();\n if (!(isNoun(nounA) && isNoun(nounB))) throw new IllegalArgumentException();\n return shortestPath.length(synsetHash.get(nounA), synsetHash.get(nounB));\n }", "private static int LevenshteinDistance(String src, String dest){\n int[][] d = new int[src.length() + 1][dest.length() + 1];\n int i, j, cost;\n char[] str1 = src.toCharArray();\n char[] str2 = dest.toCharArray();\n \n for (i = 0; i <= str1.length; i++){d[i][0] = i;}\n for (j = 0; j <= str2.length; j++){d[0][j] = j;}\n for (i = 1; i <= str1.length; i++){\n for (j = 1; j <= str2.length; j++){\n if (str1[i - 1] == str2[j - 1])\n cost = 0;\n else\n cost = 1;\n d[i][j] =\n Math.min(\n d[i - 1][j] + 1, // Deletion\n Math.min(\n d[i][j - 1] + 1, // Insertion\n d[i - 1][j - 1] + cost)); // Substitution\n\n if ((i > 1) && (j > 1) && (str1[i - 1] == str2[j - 2]) && (str1[i - 2] == str2[j - 1]))\n {\n d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + cost);\n } \n }\n }\n return d[str1.length][str2.length];\n }", "public float minDistancePair(int doc) throws IOException {\n float distance = 0f;\n final SortedSet<Integer> pos = new TreeSet<Integer>();\n final LeafReader reader = this.context.reader();\n if (reader != null && this.terms.size() > 1) {\n // get a sorted list of positions\n for (final TermCountPair term : this.terms) {\n final PostingsEnum posting =\n reader.postings(new Term(this.privateField, term.getTerm()), PostingsEnum.POSITIONS);\n if (posting != null) {\n // move to the document currently looking at\n posting.advance(doc);\n int count = 0;\n final int freq = posting.freq();\n // make sure to add them all\n while (count < freq) {\n pos.add(new Integer(posting.nextPosition()));\n count += 1;\n }\n }\n }\n // now find the closest pairs\n Integer dist = Math.abs(pos.first() - pos.last());\n final Iterator<Integer> it = pos.iterator();\n Integer prev = pos.last();\n Integer current;\n while (it.hasNext()) {\n current = it.next();\n if (Math.abs(current - prev) < dist) {\n dist = Math.abs(current - prev);\n }\n prev = current;\n }\n distance = dist.intValue();\n } else if (this.terms.size() > 1) {\n distance = this.getDocLength(doc);\n }\n return distance;\n }", "static int levenshteinDistance(String x, String y) {\r\n\t\tint[][] dp = new int[x.length() + 1][y.length() + 1];\r\n\r\n\t\tfor (int i = 0; i <= x.length(); i++) {\r\n\t\t\tfor (int j = 0; j <= y.length(); j++) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tdp[i][j] = j;\r\n\t\t\t\t}\r\n\t\t\t\telse if (j == 0) {\r\n\t\t\t\t\tdp[i][j] = i;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tdp[i][j] = min(dp[i - 1][j - 1] \r\n\t\t\t\t\t\t\t+ costOfSubstitution(x.charAt(i - 1), y.charAt(j - 1)), \r\n\t\t\t\t\t\t\tdp[i - 1][j] + 1, \r\n\t\t\t\t\t\t\tdp[i][j - 1] + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn dp[x.length()][y.length()];\r\n\t}", "private int calculateLevenshtein(String lhs, String rhs) {\n\t\tint len0 = lhs.length() + 1; \n\t int len1 = rhs.length() + 1; \n\t \n\t // the array of distances \n\t int[] cost = new int[len0]; \n\t int[] newcost = new int[len0]; \n\t \n\t // initial cost of skipping prefix in String s0 \n\t for (int i = 0; i < len0; i++) cost[i] = i; \n\t \n\t // dynamically computing the array of distances \n\t \n\t // transformation cost for each letter in s1 \n\t for (int j = 1; j < len1; j++) { \n\t // initial cost of skipping prefix in String s1 \n\t newcost[0] = j; \n\t \n\t // transformation cost for each letter in s0 \n\t for(int i = 1; i < len0; i++) { \n\t // matching current letters in both strings \n\t int match = (lhs.charAt(i - 1) == rhs.charAt(j - 1)) ? 0 : 1; \n\t \n\t // computing cost for each transformation \n\t int cost_replace = cost[i - 1] + match; \n\t int cost_insert = cost[i] + 1; \n\t int cost_delete = newcost[i - 1] + 1; \n\t \n\t // keep minimum cost \n\t newcost[i] = Math.min(Math.min(cost_insert, cost_delete), cost_replace);\n\t } \n\t \n\t // swap cost/newcost arrays \n\t int[] swap = cost; cost = newcost; newcost = swap; \n\t } \n\t \n\t // the distance is the cost for transforming all letters in both strings \n\t return cost[len0 - 1]; \n }", "void calculateDistance()\t{\n\t\t\t\t\t\t\t\t\t\n\t\tfor (String substringOne : setOne)\t{\n\t\t\t\tif (setTwo.contains(substringOne))\n\t\t\t\t\toverlapSubstringCount++;\n\t\t}\t\t\t\t\t\t\t\n\n\t\tsubstringCount = (length1 - q) + (length2 - q) + 2 - overlapSubstringCount; \n\t\tdistance = (double)overlapSubstringCount/(substringCount - overlapSubstringCount);\t\n\t}", "private static int editDistance(String str1, String str2)\n {\n // if either of the strings is null, distance cannot be computed\n if (str1 == null || str2 == null)\n {\n return -1; // indicates error input\n }\n \n // all values are by default initialized to 0 by JVM\n int[][] distanceTable = new int[str1.length()+1][str2.length()+1];\n \n int numRows = str1.length() + 1;\n int numCols = str2.length() + 1;\n \n for (int m = 0; m < numRows; m++)\n {\n for (int n = 0; n < numCols; n++)\n {\n // if length of str1 is 0, we have no option but to insert all of str2 \n if (m == 0)\n {\n distanceTable[m][n] = n;\n }\n \n // if length of str2 is 0, delete all of str1 of make it match with str2\n else if (n == 0)\n {\n distanceTable[m][n] = m;\n }\n \n /*\n * if last characters of str1 and str2 are equal, compute distance ending at\n * second last characters for both str1 and str2 \n */\n else if (str1.charAt(m-1) == str2.charAt(n-1))\n {\n distanceTable[m][n] = distanceTable[m-1][n-1]; \n }\n \n /*\n * else use minimum of following three cases:\n * delete last character of str1 and check distance: distance(str1, str2, m-1, n)\n * insert last character of str2 into str1 and check distance: distance(str1, str2, m, n-1)\n * replace last char of str1 with last char of str2 and check distance: distance(str1, str2, m-1, n-1) \n */\n else\n {\n distanceTable[m][n] = min (\n 1 + distanceTable[m-1][n],\n 1 + distanceTable[m][n-1],\n 1 + distanceTable[m-1][n-1]\n );\n }\n }\n }\n \n return distanceTable[numRows-1][numCols-1];\n }", "public int minEditDistance(String str1,String str2){\n\n\t \t return minEditDistanceHelper(str1,str1.length(),str2,str2.length());\n\t }", "public Collection<String> wordsNearest(String word,int n) {\n INDArray vec = Transforms.unitVec(this.getWordVectorMatrix(word));\n\n\n if(cache instanceof InMemoryLookupCache) {\n InMemoryLookupCache l = (InMemoryLookupCache) cache;\n INDArray syn0 = l.getSyn0();\n INDArray weights = syn0.norm2(0).rdivi(1).muli(vec);\n INDArray distances = syn0.mulRowVector(weights).sum(1);\n INDArray[] sorted = Nd4j.sortWithIndices(distances,0,false);\n INDArray sort = sorted[0];\n List<String> ret = new ArrayList<>();\n VocabWord word2 = cache.wordFor(word);\n if(n > sort.length())\n n = sort.length();\n //there will be a redundant word\n for(int i = 0; i < n + 1; i++) {\n if(sort.getInt(i) == word2.getIndex())\n continue;\n ret.add(cache.wordAtIndex(sort.getInt(i)));\n }\n\n\n return ret;\n }\n\n if(vec == null)\n return new ArrayList<>();\n Counter<String> distances = new Counter<>();\n\n for(String s : cache.words()) {\n if(s.equals(word))\n continue;\n INDArray otherVec = getWordVectorMatrix(s);\n double sim = Transforms.cosineSim(vec,otherVec);\n distances.incrementCount(s, sim);\n }\n\n\n distances.keepTopNKeys(n);\n return distances.keySet();\n\n }", "public static int levenshtein(String a, String b) {\n a = a.toLowerCase();\n b = b.toLowerCase();\n\n if (a.equals(b)) {\n return 0;\n }\n\n return lev(a, b, a.length(), b.length());\n }", "private static int editDistance(String a, String b) {\n int m = a.length() + 1, n = b.length() + 1;\n int[] dists = new int[m], newDists = new int[m];\n for (int i = 0; i < m; i++) dists[i] = i;\n for (int j = 1; j < n; j++) {\n newDists[0] = j;\n for (int i = 1; i < m; i++) {\n newDists[i] = Math.min(Math.min(\n dists[i] + 1, // Insert\n newDists[i-1] + 1), // Delete\n dists[i-1] + (a.charAt(i-1) == b.charAt(j-1) ? 0 : 1)); // Replace\n }\n int[] swap = dists; dists = newDists; newDists = swap;\n }\n return dists[m-1];\n }", "public int findShortestDistance(String s, String t) {\r\n //store the vertex and distance closest to each vertex\r\n Map<String, Vertex> finalMap = new HashMap<>(this.number_of_vertices);\r\n for (String vertex : all_vertices) {\r\n finalMap.put(vertex, new Vertex(s, Integer.MAX_VALUE));\r\n }\r\n finalMap.put(s, null);\r\n Queue<Vertex> pq = new PriorityQueue<>(new Comparator() {\r\n @Override\r\n public int compare(Object o1, Object o2) {\r\n Vertex v1 = (Vertex) o1;\r\n Vertex v2 = (Vertex) o2;\r\n return v1.dist - v2.dist;\r\n }\r\n });\r\n pq.add(new Vertex(s, 0));\r\n Set<String> visited = new HashSet<>(this.number_of_vertices);\r\n while (!pq.isEmpty()) {\r\n Vertex minVertex = pq.poll();\r\n if (!visited.add(minVertex.v)) {\r\n continue;\r\n }\r\n Map<String, Integer> edgeMap = adj.get(minVertex.v);\r\n for (Map.Entry<String, Integer> entry : edgeMap.entrySet()) {\r\n int distance = minVertex.dist + entry.getValue();\r\n if (finalMap.get(entry.getKey()) != null && distance < finalMap.get(entry.getKey()).dist) {\r\n finalMap.get(entry.getKey()).dist = distance;\r\n finalMap.get(entry.getKey()).v = minVertex.v;\r\n }\r\n pq.add(new Vertex(entry.getKey(), distance));\r\n }\r\n }\r\n if (!s.equals(t)){\r\n return finalMap.get(t).dist;\r\n }else{\r\n return calculateDistance(s, finalMap);\r\n }\r\n }", "public Set<String> calculateDistance() throws IOException {\n booleanSearch();\n\n Set<String> words = invertedIndexForQuerryWords.keySet();\n Map<String, Double> tfidfQuerry = new TreeMap<>();\n\n //load idf\n char c='a';\n char prC = 'v';\n for (String word : words){\n c = word.charAt(0);\n if(c != prC) {\n String path = Constants.PATH_TO_IDF + c + \"IDF.idf\";\n prC = c;\n idfMap.putAll(objectMapper.readValue(new File(path), new TypeReference<TreeMap<String, Double>>(){}));\n }\n }\n\n Map<String, Double> distanceMap = new HashMap<>();\n double sum = 0.0;\n //calculez norma interogarii\n for(String word:words){\n double idf, tf;\n if(idfMap.containsKey(word)) {\n idf = idfMap.get(word);\n tf = 1.0 / words.size();\n tfidfQuerry.put(word, tf * idf);\n\n sum += (tf * idf) * (tf * idf);\n } else {\n sum += 0.0;\n }\n }\n\n double normQuerry = Math.sqrt(sum);\n\n //iau toate documentele rezultate din boolean search\n Set<String> docs = new TreeSet<>();\n for(List<MyPair> list : invertedIndexForQuerryWords.values()) {\n if (list != null) {\n docs.addAll(list.stream().map(p -> p.getKey()).collect(Collectors.toSet()));\n }\n }\n\n List<File> documents = FileLoader.getFilesForInternalPath(\"Norms\", \".norm\");\n\n Map<String, Double> norms = new HashMap<>();\n for(File file : documents) {\n norms.putAll(objectMapper.readValue(file, new TypeReference<TreeMap<String, Double>>(){}));\n }\n\n //pentru fiecare document din boolean search calculez distanta cosinus\n for(String doc : docs) {\n\n String fileName = Paths.get(doc).getFileName().toString();\n\n String filePath = Constants.PATH_TO_TF + fileName.replaceFirst(\"[.][^.]+$\", \".tf\");\n\n Map<String, Double> tf = objectMapper.readValue(new File(filePath), new TypeReference<TreeMap<String, Double>>(){});\n double wordTF, wordIDF;\n double vectorialProduct = 0.0;\n double tfidfForQueryWord;\n\n for(String word : words) {\n if (tf.containsKey(word)) {\n wordTF = tf.get(word);\n wordIDF = idfMap.get(word);\n tfidfForQueryWord = tfidfQuerry.get(word);\n\n vectorialProduct += tfidfForQueryWord * wordIDF * wordTF;\n }\n }\n\n double normProduct = normQuerry * norms.get(Paths.get(doc).getFileName().toString());\n\n distanceMap.put(doc, vectorialProduct / normProduct);\n }\n\n //sortare distance map\n distanceMap = distanceMap.entrySet().stream()\n .sorted(Map.Entry.comparingByValue(Collections.reverseOrder()))\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n Map.Entry::getValue,\n (e1, e2) -> e1,\n LinkedHashMap::new));\n\n// System.out.println(\"Cos distance:\");\n// for(Map.Entry entry : distanceMap.entrySet()){\n// System.out.println(entry);\n// }\n\n return distanceMap.keySet();\n }", "private Map<String, Double> distance1Generation(String word) {\n if (word == null || word.length() < 1) throw new RuntimeException(\"Input words Error: \" + word);\n\n Map<String, Double> result = new HashMap<String, Double>();\n\n String prev;\n String last;\n\n for (int i = 0; i < word.length(); i++) {\n // Deletion\n prev = word.substring(0, i);\n last = word.substring(i + 1, word.length());\n result.put(prev + last, 1.0);\n\n // transposition\n if ((i + 1) < word.length()) {\n prev = word.substring(0, i);\n last = word.substring(i + 2, word.length());\n String trans = prev + word.charAt(i + 1) + word.charAt(i) + last;\n result.put(trans, 1.0);\n }\n\n // alter\n prev = word.substring(0, i);\n last = word.substring(i + 1, word.length());\n for (int j = 0; j < 26; j++) {\n result.put(prev + (char) (j + 97) + last, 1.0);\n }\n\n // insertion\n prev = word.substring(0, i);\n last = word.substring(i + 1, word.length());\n for (int j = 0; j < 26; j++) {\n result.put(prev + (char) (j + 97) + word.charAt(i) + last, 1.0);\n result.put(prev + word.charAt(i) + (char) (j + 97) + last, 1.0);\n }\n\n }\n\n result.remove(word);\n return result;\n }", "private int bfs(String source, String destination, Map<String, List<String>> graph) {\n\n class Node {\n String word;\n int distance = 0;\n\n public Node(String word, int distance) {\n this.word = word;\n this.distance = distance;\n }\n }\n\n final Queue<Node> queue = new LinkedList<>();\n Set<String> visited = new HashSet<>();\n queue.offer(new Node(source, 0)); //distance of source to source is 0\n visited.add(source);\n\n while (!queue.isEmpty()) {\n\n final Node node = queue.poll();\n final int distance = node.distance;\n\n //if we reached the destination node\n if (node.word.equals(destination)) {\n return distance + 1;\n }\n\n //try all word which is 1 weight away\n for (String neighbour : graph.getOrDefault(node.word, new ArrayList<>())) {\n if (!visited.contains(neighbour)) {\n visited.add(neighbour);\n queue.offer(new Node(neighbour, distance + 1));\n }\n }\n\n\n }\n return 0;\n }", "private static int levenshteinDistance(String word, int wordLen, String other, int otherLen) {\n if (wordLen == 0 || otherLen == 0) {\n return Math.max(wordLen, otherLen);\n }\n\n int cost = word.charAt(wordLen - 1) == other.charAt(otherLen - 1) ? 0 : 1;\n\n int deleteFromWord = levenshteinDistance(word, wordLen - 1, other, otherLen) + 1;\n int deleteFromOther = levenshteinDistance(word, wordLen, other, otherLen - 1) + 1;\n int deleteFromBoth = levenshteinDistance(word, wordLen - 1, other, otherLen - 1) + cost;\n\n return Math.min(deleteFromWord, Math.min(deleteFromOther, deleteFromBoth));\n }", "public static int editDistance(String s1, String s2){\n int m=s1.length();\n int n=s2.length();\n int[][] dp=new int[m+1][n+1];\n for(int i=0;i<=m;i++){\n dp[i][0]=i;\n }\n for(int j=0;j<=n;j++){\n dp[0][j]=j;\n }\n for(int i=1;i<=m;i++){\n for(int j=1;j<=n;j++){\n if(s1.charAt(m-i)==s2.charAt(n-j)){\n dp[i][j]=dp[i-1][j-1];\n }\n else{\n dp[i][j]=1+Math.min(dp[i-1][j-1],Math.min(dp[i][j-1],dp[i-1][j]));\n }\n }\n \n }\n int res=dp[m][n];\n return res;\n\n\t}", "public static int sringDistance(String S1, String S2) {\r\n\r\n int m = S1.length(), n = S2.length();\r\n int[] D1;\r\n int[] D2 = new int[n + 1];\r\n\r\n for (int i = 0; i <= n; i++) {\r\n D2[i] = i;\r\n }\r\n\r\n for (int i = 1; i <= m; i++) {\r\n D1 = D2;\r\n D2 = new int[n + 1];\r\n for (int j = 0; j <= n; j++) {\r\n if (j == 0) {\r\n D2[j] = i;\r\n } else {\r\n int cost = (S1.charAt(i - 1) != S2.charAt(j - 1)) ? 1 : 0;\r\n if (D2[j - 1] < D1[j] && D2[j - 1] < D1[j - 1] + cost) {\r\n D2[j] = D2[j - 1] + 1;\r\n } else if (D1[j] < D1[j - 1] + cost) {\r\n D2[j] = D1[j] + 1;\r\n } else {\r\n D2[j] = D1[j - 1] + cost;\r\n }\r\n }\r\n }\r\n }\r\n return D2[n];\r\n }", "static int editDist(String str1, String str2, int m, int n)\r\n {\n if(m == 0)\r\n return n;\r\n \r\n //if the second string is empty,the only option is insert all characters of\r\n //first string to the second\r\n if(n == 0)\r\n return m;\r\n \r\n //if the last characters of two strings are same,nothing much to do.\r\n //Ignore last characters and get count for remaining strings\r\n if(str1.charAt(m-1) == str2.charAt(n-1))\r\n return editDist(str1, str2, m-1, n-1);\r\n \r\n //if the last characters of two strings are not same,consider all three\r\n //oprations on last character of first string ,recursively compute minimum\r\n //cost for all thress oprations and take minimum of three values\r\n return 1 + min(editDist(str1,str2,m,n-1)\r\n ,editDist(str1,str2,m-1,n)\r\n ,editDist(str1,str2,m-1,n-1));\r\n }", "public static int getLevenshteinDistance (String s, String t) {\n\tif (s == null || t == null) {\n\t throw new IllegalArgumentException(\"Strings must not be null\");\n\t}\n\t\n\t/*\n\t The difference between this impl. and the previous is that, rather \n\t than creating and retaining a matrix of size s.length()+1 by t.length()+1, \n\t we maintain two single-dimensional arrays of length s.length()+1. The first, d,\n\t is the 'current working' distance array that maintains the newest distance cost\n\t counts as we iterate through the characters of String s. Each time we increment\n\t the index of String t we are comparing, d is copied to p, the second int[]. Doing so\n\t allows us to retain the previous cost counts as required by the algorithm (taking \n\t the minimum of the cost count to the left, up one, and diagonally up and to the left\n\t of the current cost count being calculated). (Note that the arrays aren't really \n\t copied anymore, just switched...this is clearly much better than cloning an array \n\t or doing a System.arraycopy() each time through the outer loop.)\n\t \n\t Effectively, the difference between the two implementations is this one does not \n\t cause an out of memory condition when calculating the LD over two very large strings. \t\t\n\t*/\t\t\n\t\n\tint n = s.length(); // length of s\n\tint m = t.length(); // length of t\n\t\n\tif (n == 0) {\n\t return m;\n\t} else if (m == 0) {\n\t return n;\n\t}\n\t\n\tint p[] = new int[n+1]; //'previous' cost array, horizontally\n\tint d[] = new int[n+1]; // cost array, horizontally\n\tint _d[]; //placeholder to assist in swapping p and d\n\t\n\t// indexes into strings s and t\n\tint i; // iterates through s\n\tint j; // iterates through t\n\t\n\tchar t_j; // jth character of t\n\t\n\tint cost; // cost\n\t\n\tfor (i = 0; i<=n; i++) {\n\t p[i] = i;\n\t}\n\t\n\tfor (j = 1; j<=m; j++) {\n\t t_j = t.charAt(j-1);\n\t d[0] = j;\n\t \n\t for (i=1; i<=n; i++) {\n\t\tcost = s.charAt(i-1)==t_j ? 0 : 1;\n\t\t// minimum of cell to the left+1, to the top+1, diagonally left and up +cost\t\t\t\t\n\t\td[i] = Math.min(Math.min(d[i-1]+1, p[i]+1), p[i-1]+cost); \n\t }\n\t \n\t // copy current distance counts to 'previous row' distance counts\n\t _d = p;\n\t p = d;\n\t d = _d;\n\t} \n\t\n\t// our last action in the above loop was to switch d and p, so p now \n\t// actually has the most recent cost counts\n\treturn p[n];\n }", "public int getDistance(String s1, String s2) {\r\n\t\tint score = getSimlarityScore(s1, s2);\r\n\t\tint retVal = INT_MAX;\r\n\t\tif (score != 0) {\r\n\t\t\t//int length = s1.length() + s2.length() - score;\r\n\t\t\tint length = s1.length();\r\n\t\t\tretVal = (int)((1 - (double)score/length) * 100);\r\n\t\t}\r\n\t\t\r\n\t\tif (retVal > alignmentThreshold) {\r\n\t\t\tretVal = INT_MAX;\r\n\t\t}\r\n\t\treturn retVal;\r\n\t}", "public static int computeLevenshteinDistance(String str1,\n String str2) {\n return score(str1, str2);\n }", "private int move(Queue<String> queue, Map<String, Integer> mainPath, Map<String, Integer> otherPath, Set<String> uniqueWords) {\n\n if (queue.isEmpty())\n return -1;\n\n final String node = queue.poll();\n final int distance = mainPath.get(node);\n\n //try all word which is 1 weight away\n for (String neighbour : getNeighbour(node, uniqueWords)) {\n\n if (otherPath.containsKey(neighbour))\n return distance + otherPath.get(neighbour);\n\n if (!mainPath.containsKey(neighbour)) {\n mainPath.put(neighbour, distance + 1);\n queue.offer(neighbour);\n }\n }\n\n\n return -1;\n }", "public int distance(String nounA, String nounB) {\n checkValid(nounA, nounB);\n Queue<Integer> pA = synsetsStrToNum.get(nounA);\n Queue<Integer> pB = synsetsStrToNum.get(nounB);\n return wnSAP.length(pA, pB);\n }", "private static Path mergeLongWord(Path tempResultFilePath) throws IOException {\n // Create two files to save temp insertion results turn by turn.\n // If in this turn, results are saved in file one,\n // then in next turn, words are read from file one, and the insertion results are saved in file two.\n List<Path> sortResultPath = new ArrayList<>(2);\n sortResultPath.add(tempResultFilePath);\n sortResultPath.add(createTempFile(TEMP_FOLDER));\n boolean[] usedFirstPath = new boolean[1]; // Record which file was used to save results in last turn\n usedFirstPath[0] = true;\n\n // Go through all the files containing the long words\n Files.walk(Paths.get(TEMP_LONG_WORD_FOLDER)).filter(Files::isRegularFile).forEach(path -> {\n\n // Decide which file has the results from last turn and which file to save the results for current turn\n Path lastResultPath = sortResultPath.get(usedFirstPath[0] ? 0 : 1);\n Path outputPath = sortResultPath.get(usedFirstPath[0] ? 1 : 0);\n\n try (FileReader fileStream1 = new FileReader(lastResultPath.toFile().getAbsolutePath())) {\n\n int lineCount = 0;\n boolean finish = false;\n\n int i1;\n boolean b1;\n int i2;\n boolean b2;\n\n // Read the long word again for every word comparison\n while (true) {\n try (FileReader fileStream2 = new FileReader(path.toFile().getAbsolutePath())) {\n\n // Read every character of the words to compare\n while (true) {\n i1 = fileStream1.read();\n i2 = fileStream2.read();\n\n b1 = isWhitespace(i1);\n b2 = isWhitespace(i2);\n\n if (i2 == -1 || b2) { // Reach the end of the long word\n if (i1 != -1 && !b1) { // The sorted word is longer than the long word,\n // insert the long word here\n finish = true;\n break;\n } else { // Also reach the end of the sorted word,\n // means the long word is a duplicate, skip it\n return;\n }\n } else { // Not reach the end of the long word\n if (i1 == -1) { // Reach the end of the sorted word file,\n // Insert the long word to the end of the file\n lineCount++;\n finish = true;\n break;\n } else if (b1) { // Reach the end of the sorted word,\n // compare with next sorted word\n break;\n } else { // Compare one character of the long word with one character of the sorted word\n if (i1 == i2) {\n continue;\n } else if (i1 > i2) { // if the character of the long word is smaller, insert long word here\n finish = true;\n break;\n } else { // if the character of the long word is greater, skip to the next sorted word\n while ((i1 = fileStream1.read()) != -1 && !isWhitespace(i1)) {\n }\n break;\n }\n }\n }\n\n }\n\n }\n\n if (finish) { // insert the long word to the file\n appendWordLineToFile(path, lastResultPath, outputPath, lineCount);\n usedFirstPath[0] = !usedFirstPath[0];\n return;\n }\n\n lineCount++;\n }\n\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n });\n\n return sortResultPath.get(usedFirstPath[0] ? 0 : 1);\n }", "public static String shortestWord(Scanner s){\n\t\t\n\t\t//assume the first word is shortest\n\t\tString shortest = s.next();\n\t\t\n\t\twhile(s.hasNext()){\n\t\t\t\n\t\t\tString temp = s.next();\n\t\t\t\n\t\t\t//check to see if 'temp' is shorter than the current shortest string\n\t\t\tif ( temp.length()< shortest.length()){\n\t\t\t\tshortest = temp;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn shortest;\n\t}", "public static int editDistance4(String s1, String s2) {\r\n\t\tint m = s1.length();\r\n\t\tint n = s2.length();\r\n\t\tint[][] mem = new int[m + 1][n + 1];\r\n\t\tfor (int j = 0; j <= n; ++j) \r\n\t\t\tmem[m][j] = n-j;\r\n\t\tfor (int i = 0; i <= m; ++i) \r\n\t\t\tmem[i][n] = m-i;\r\n\r\n\t\tfor (int i = m - 1; i >= 0; --i) {\r\n\t\t\tfor (int j = n - 1; j >= 0; --j) {\r\n\t\t\t\tif (s1.charAt(i) != s2.charAt(j)) {\r\n\t\t\t\t\tint rcost = mem[i + 1][j + 1];\r\n\t\t\t\t\tint icost = mem[i][j + 1];\r\n\t\t\t\t\tint dcost = mem[i + 1][j];\r\n\t\t\t\t\tmem[i][j] = Math.min(dcost, Math.min(rcost, icost)) + 1;\r\n\t\t\t\t} else \r\n\t\t\t\t\tmem[i][j] = mem[i + 1][j + 1];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mem[0][0];\r\n\t}", "private static int levenshteinDistance(String vocabTerm, String queryTerm){\n\t\tint dMatrix[][]= new int[vocabTerm.length()+1][queryTerm.length()+1];\n\t\t\n\t\tfor (int i = 0; i<vocabTerm.length()+1; i++){\n\t\t\tdMatrix[i][0]=i;\n\t\t}\n\t\tfor (int i = 0; i<queryTerm.length()+1; i++){\n\t\t\tdMatrix[0][i]=i;\n\t\t}\n\t\tfor (int i = 1; i < queryTerm.length()+1; i++){\n\t\t\tfor (int j= 1; j < vocabTerm.length()+1; j++){\n\t\t\t\tif (vocabTerm.charAt(j-1)==queryTerm.charAt(i-1)){\n\t\t\t\t\tdMatrix[j][i]=dMatrix[j-1][i-1];\n\t\t\t\t}else{\n\t\t\t\t\tdMatrix[j][i]=min(dMatrix[j-1][i-1], dMatrix[j][i-1], dMatrix[j-1][i]) +1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dMatrix[vocabTerm.length()][queryTerm.length()];\n\t}", "public int minimumDeleteSum(String s1, String s2) {\n int m = s1.length();\n int n = s2.length();\n int[][] dp = new int[m + 1][n + 1];\n for (int i = m - 1; i >= 0; i--) {\n dp[i][n] = dp[i + 1][n] + s1.codePointAt(i);\n }\n\n for (int j = n - 1; j >= 0; j--) {\n dp[m][j] = dp[m][j + 1] + s2.codePointAt(j);\n }\n\n for (int i = m - 1; i >= 0; i--) {\n for (int j = n - 1; j >= 0; j--) {\n if (s1.charAt(i) == s2.charAt(j)) {\n dp[i][j] = dp[i + 1][j + 1];\n } else {\n dp[i][j] = Math.min(dp[i + 1][j] + s1.codePointAt(i), dp[i][j + 1] + s2.codePointAt(j));\n }\n }\n }\n return dp[0][0];\n }", "public void findStrongestPathsFromFile(String filename){\n\n try {\n\n finputStream = new FileInputStream(filename);\n\n fileScanner = new Scanner(finputStream);\n\n String sourceVertex = fileScanner.nextLine();\n\n IVertex<String> source = this.weightedGraph.getVertex(sourceVertex);\n\n if(source == null){\n throw new Exception(\"Invalid Source Vertex found\");\n }\n\n this.findAllPahtsInGraphWithSource(source);\n\n fileScanner.nextLine(); // Empty line read out.. and ignore\n\n foutStream = new FileOutputStream(this.outputFileName); // open the file for writing\n\n while(fileScanner.hasNextLine()){\n\n try {\n\n String nodeNext = fileScanner.nextLine();\n\n IVertex<String> targetNode = this.weightedGraph.getVertex(nodeNext);\n\n if(targetNode!=null && distance.get(targetNode)!=null) {\n\n String lineout = sourceVertex + \"\\t\" + nodeNext + \" \\t \" + Double.toString(\n distance.get(targetNode)) + \" : \";\n\n lineout += printablePath(targetNode);\n\n lineout += \"\\r\\n\";\n\n foutStream.write(lineout.getBytes());\n }\n\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n\n foutStream.close();\n\n finputStream.close();\n\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }", "public int distance(String nounA, String nounB){\n\n\n\n return 0;\n }", "public int DeleteOperationforTwoStrings(String word1, String word2)\n\t{\n\t\tint n1 = word1.length();\n int n2 = word2.length();\n int[][] dp = new int[n1 + 1][n2 + 1];\n for(int i = 1; i <= n1; i ++)\n {\n for(int j = 1; j <= n2; j ++)\n {\n dp[i][j] = word1.charAt(i - 1) == word2.charAt(j - 1) ? \n dp[i - 1][j - 1] + 1 : Math.max(dp[i - 1][j], dp[i][j - 1]);\n }\n }\n return n1 + n2 - 2 * dp[n1][n2];\n\t}", "public double getSimilarityMetric(String word1, String word2) {\n\t\t// given two words, this function computes two measures of similarity\n\t\t// and returns the average\n\t\tint l1 = word1.length();\n\t\tint l2 = word2.length();\n\t\tint lmin = Math.min(l1, l2);\n\t\tint leftSimilarity = 0;\n\t\tint rightSimilarity = 0;\n\n\t\t// calculate leftSimilarity\n\t\tfor(int i = 0; i < lmin; i++) {\n\t\t\tif(word1.charAt(i) == word2.charAt(i)) {\n\t\t\t\tleftSimilarity += 1;\n\t\t\t}\n\t\t}\n\n\t\t// calculate rightSimilarity\n\t\tfor(int j = 0; j < lmin; j++) {\n\t\t\tif(word1.charAt(l1-j-1) == word2.charAt(l2-j-1)) {\n\t\t\t\trightSimilarity += 1;\n\t\t\t}\n\t\t}\n\t\treturn (leftSimilarity + rightSimilarity)/2.0;\n\t}", "public int minimumDeleteSum(String s1, String s2) {\n int n1 = s1.length();\n int n2 = s2.length();\n int dp[][] = new int[n1 + 1][n2 + 1];\n for(int i = 1; i <= n1; i ++)\n {\n for(int j = 1; j <= n2; j ++)\n {\n dp[i][j] = s1.charAt(i - 1) == s2.charAt(j - 1) ?\n dp[i - 1][j - 1] + s1.charAt(i - 1) : \n Math.max(dp[i - 1][j], dp[i][j - 1]);\n }\n }\n int sum = 0;\n for(int i = 0; i < n1; i ++)\n sum += s1.charAt(i);\n for(int i = 0; i < n2; i ++)\n sum += s2.charAt(i);\n return sum - 2 * dp[n1][n2];\n }", "public static int getLevenshteinDistance(String s, String t) {\n\t\tif (s == null || t == null) {\n\t\t\tthrow new IllegalArgumentException(\"Strings must not be null\");\n\t\t}\n\n\t\t/*\n\t\t * The difference between this impl. and the previous is that, rather\n\t\t * than creating and retaining a matrix of size s.length()+1 by\n\t\t * t.length()+1, we maintain two single-dimensional arrays of length\n\t\t * s.length()+1. The first, d, is the 'current working' distance array\n\t\t * that maintains the newest distance cost counts as we iterate through\n\t\t * the characters of String s. Each time we increment the index of\n\t\t * String t we are comparing, d is copied to p, the second int[]. Doing\n\t\t * so allows us to retain the previous cost counts as required by the\n\t\t * algorithm (taking the minimum of the cost count to the left, up one,\n\t\t * and diagonally up and to the left of the current cost count being\n\t\t * calculated). (Note that the arrays aren't really copied anymore, just\n\t\t * switched...this is clearly much better than cloning an array or doing\n\t\t * a System.arraycopy() each time through the outer loop.)\n\t\t * \n\t\t * Effectively, the difference between the two implementations is this\n\t\t * one does not cause an out of memory condition when calculating the LD\n\t\t * over two very large strings.\n\t\t */\n\n\t\tint n = s.length(); // length of s\n\t\tint m = t.length(); // length of t\n\n\t\tif (n == 0) {\n\t\t\treturn m;\n\t\t} else if (m == 0) {\n\t\t\treturn n;\n\t\t}\n\n\t\tint p[] = new int[n + 1]; // 'previous' cost array, horizontally\n\t\tint d[] = new int[n + 1]; // cost array, horizontally\n\t\tint _d[]; // placeholder to assist in swapping p and d\n\n\t\t// indexes into strings s and t\n\t\tint i; // iterates through s\n\t\tint j; // iterates through t\n\n\t\tchar t_j; // jth character of t\n\n\t\tint cost; // cost\n\n\t\tfor (i = 0; i <= n; i++) {\n\t\t\tp[i] = i;\n\t\t}\n\n\t\tfor (j = 1; j <= m; j++) {\n\t\t\tt_j = t.charAt(j - 1);\n\t\t\td[0] = j;\n\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tcost = s.charAt(i - 1) == t_j ? 0 : 1;\n\t\t\t\t// minimum of cell to the left+1, to the top+1, diagonally left\n\t\t\t\t// and up +cost\n\t\t\t\td[i] = Math.min(Math.min(d[i - 1] + 1, p[i] + 1), p[i - 1]\n\t\t\t\t\t\t+ cost);\n\t\t\t}\n\n\t\t\t// copy current distance counts to 'previous row' distance counts\n\t\t\t_d = p;\n\t\t\tp = d;\n\t\t\td = _d;\n\t\t}\n\n\t\t// our last action in the above loop was to switch d and p, so p now\n\t\t// actually has the most recent cost counts\n\t\treturn p[n];\n\t}", "private int lcs(String word1, String word2) {\n int m = word1.length();\n int n = word2.length();\n int[][] dp = new int[m + 1][n + 1];\n //mem[i][j] means the LCS length formed by A[:i] and B[:j]\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n if (word1.charAt(i) == word2.charAt(j)) {\n dp[i + 1][j + 1] = dp[i][j] + 1;\n } else {\n dp[i + 1][j + 1] = Math.max(dp[i + 1][j], dp[i][j + 1]);\n }\n }\n }\n return dp[m][n];\n }", "public static int minLength(String[] words) {\n ArrayList<String> minimized = new ArrayList<>();\n int len = words[0].length() + 1;\n minimized.add(words[0]);\n\n for (int i = 1; i < words.length; i++) {\n for (int j = 0; j < minimized.size(); j++) {\n if (encoded(minimized.get(j), words[i])) {\n break;\n }\n if (encoded(words[i], minimized.get(j))) {\n len -= minimized.get(j).length();\n minimized.remove(j);\n\n len += words[i].length();\n minimized.add(words[i]);\n break;\n }\n\n if (j == minimized.size() - 1) {\n minimized.add(words[i]);\n len += (words[i].length() + 1);\n break;\n }\n }\n }\n\n return len;\n }", "public int searchWord(File filePath, String s1) throws IOException, NullPointerException\r\n\t{\r\n\t\tint counter = 0;\r\n\t\tString data = \"\";\r\n\t\tBufferedReader bufferReader = new BufferedReader(new FileReader(filePath));\r\n\t\tString line = null;\r\n\t\twhile ((line = bufferReader.readLine()) != null)\r\n\t\t{\r\n\t\t\tdata = data + line;\r\n\t\t}\r\n\t\tbufferReader.close();\r\n\t\tString txt = data;\r\n\t\tBoyerMoore bm = new BoyerMoore(s1);\r\n\t\tint offset = 0;\r\n\t\tfor (int loc = 0; loc <= txt.length(); loc += offset + s1.length())\r\n\t\t{\r\n\t\t\t offset = bm.search(s1, txt.substring(loc));\r\n\t\t\t if ((offset + loc) < txt.length())\r\n\t\t\t { \r\n\t\t\t\t counter++; \r\n\t\t\t\t System.out.printf(\"The word '\"+s1 +\"' is present at the position \" + (offset + loc)+\"\\n\"); //printing position of word \r\n\t\t\t } \r\n\t\t}\r\n\t\tif(counter!=0)\r\n\t\t{ \r\n\t\t\t System.out.println(\" In the FILE: \"+filePath.getName()+\"\\n\");\r\n\t\t}\r\n\t\treturn counter; \r\n\t}", "public void readPairs(String fileName) {\n BufferedReader r = null;\n try {\n r = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (true) {\n String line = null;\n try {\n line = r.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (line == null) {\n break;\n }\n assert line.length() == 11; // indatakoll, om man kör med assertions på\n String start = line.substring(0, 5);\n String goal = line.substring(6, 11);\n\n int s = words.indexOf(start);\n int v = words.indexOf(goal);\n\n shortestPathPairs(s, v);\n }\n\n }", "public static int hammingDistance(String a, String b) {\n int count = 0;\n if (a.length() == b.length()) {\n for (int i = 0; i < a.length(); i++) {\n if (a.charAt(i) != b.charAt(i)) { // if characters are different, add one to count\n count++;\n }\n }\n return count;\n }\n else { // if lengths aren't similar\n return -1;\n }\n }", "public static String distance(String x1, String x2){\n\n }", "private static ArrayList<sri.Pair<String,Integer>> mostFrequentWords(String path) throws IOException {\r\n PriorityQueue<Pair<String, Integer>> listOfWords = new PriorityQueue<>(10,(o1, o2) -> {\r\n return ((int) o2.getSecond() - (int) o1.getSecond());\r\n });\r\n\r\n HashMap<String,Integer> mapOfWords = new HashMap<>();\r\n\r\n BufferedReader br;\r\n String word;\r\n ArrayList outputList = new ArrayList();\r\n\r\n File file = new File(path);\r\n\r\n br = new BufferedReader(new FileReader(file));\r\n\r\n while ( (word = br.readLine()) != null) {\r\n if (mapOfWords.containsKey(word)) {\r\n mapOfWords.put(word, mapOfWords.get(word) + 1);\r\n } else {\r\n mapOfWords.put(word, 1);\r\n }\r\n }\r\n\r\n for (Map.Entry<String,Integer> entry: mapOfWords.entrySet()){\r\n sri.Pair<String,Integer> tuple = new sri.Pair<String,Integer>(entry.getKey(),entry.getValue());\r\n listOfWords.offer(tuple);\r\n }\r\n\r\n for (int i = 0; i < 5; i++){\r\n outputList.add(new sri.Pair<String,Integer>(listOfWords.peek().getFirst(),listOfWords.poll().getSecond()));\r\n }\r\n\r\n return outputList;\r\n\r\n\r\n }", "public static int editDistance1(String s1, String s2) {\r\n\t\tMyInteger gmin = new MyInteger(Integer.MAX_VALUE);\r\n\t\tauxDistance1(0, 0, 0, s1, s2, gmin);\r\n\t\treturn gmin.get();\r\n\t}", "public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);", "private double oneWayDistance(Shape other, Vector3D direction) {\n // for every vertex in this shape,\n // would it intersect the other shape if moved in direction dir?\n // if so, at what distance? Find the min.\n\n Vector3D d = direction.normalize();\n double[] v = this.getTransformedVertices();\n double tmin = -1;\n\n for (int i = 0; i < v.length; i += 3) {\n Vector3D vertex = new Vector3D(v[i], v[i + 1], v[i + 2]);\n double t = other.rayIntersect(vertex, d, false, null, null);\n tmin = Util.Math.minIfValid(t, tmin);\n }\n\n return tmin;\n }", "public static List<Integer> findWordConcatenation(String str, String[] words) {\n List<Integer> resultIndices = new ArrayList<Integer>();\n if (str == null || str.isEmpty() || words == null || words.length == 0)\n return resultIndices;\n\n int len = words[0].length();\n Map<String, Integer> freqMap = new HashMap();\n\n for (String word : words)\n freqMap.put(word, freqMap.getOrDefault(word, 0) + 1);\n\n Map<String, Integer> curMap = new HashMap();\n int l = 0, cc = 0;\n int i = 0;\n while (i < str.length() - len + 1) {\n String cur = str.substring(i, i + len);\n if (!freqMap.containsKey(cur)) {\n curMap.clear();\n ++i; l = i;\n continue;\n }\n\n curMap.put(cur, curMap.getOrDefault(cur, 0) + 1);\n if (curMap.get(cur) == freqMap.get(cur))\n cc++;\n\n while(curMap.get(cur) > freqMap.get(cur)) {\n String word1 = str.substring(l, l + len);\n curMap.put(word1, curMap.get(word1) - 1);\n if (curMap.get(word1) < freqMap.get(word1))\n --cc;\n l+=len;\n }\n\n if (cc == freqMap.size())\n resultIndices.add(l);\n i+=len;\n }\n return resultIndices;\n }", "public int distance(String nounA, String nounB) {\n if (!isNoun(nounA) || !isNoun(nounB)) throw new IllegalArgumentException();\n // read_hypernyms(hypernyms);\n int a = data.get(nounA);\n int b = data.get(nounB);\n return (sap.length(a, b));\n }", "public int distance(String nounA, String nounB) {\n\t\treturn sap.length(nouns.get(nounA), nouns.get(nounB));\n\n\t}", "public String findFirstWord(String a, String b) {\n\t\tchar[] aArray = a.toCharArray();\n\t\tchar[] bArray = b.toCharArray();\n\n\t\t//loop through letters of each\n\t\tfor (int i = 0; i < aArray.length; i++) {\n\n\t\t\t// if letter in a comes before b, then return a\n\t\t\tif (aArray[i] < bArray[i]) {\n\t\t\t\treturn a;\n\t\t\t}\n\n\t\t\t// check if letter in b comes before a\n\t\t\tif (aArray[i] > bArray[i]) {\n\t\t\t\treturn b;\n\t\t\t}\n\n\t\t\t// otherwise they are equal and you can move to the next letter\n\t\t}\n\n\t\t// you need this line in case the above loop doesn't return anything.\n\t\t// this is for the compiler.\n\t\treturn a;\n\t}", "public int distance(String nounA, String nounB){\n ArrayList<Integer> idA = this.nounToIdMap.get(nounA);\n ArrayList<Integer> idB = this.nounToIdMap.get(nounB);\n if(idA.isEmpty() || idB.isEmpty()){\n throw new IllegalArgumentException();\n }\n return this.wordNetSap.length(idA, idB);\n }", "private static Path mergeSortWord() throws IOException {\n // Create two files to save temp merge results turn by turn.\n // If in this turn, results are saved in file one,\n // then in next turn, words are read from file one to be merged, and the merge results are saved in file two.\n List<Path> tempSortResultPath = new ArrayList<>(2);\n boolean[] usedFirstPath = new boolean[1]; // Record which file was used to save results in last turn\n\n // Buffers to keep the two current comparing words and the last merged word\n TextArray currentText1 = new TextArray(WORD_LENGTH_THRESHOLD);\n TextArray currentText2 = new TextArray(WORD_LENGTH_THRESHOLD);\n TextArray previousText = new TextArray(WORD_LENGTH_THRESHOLD);\n\n // Go through files of the sorted words\n Files.walk(Paths.get(TEMP_SORTED_WORD_FOLDER)).filter(Files::isRegularFile).forEach(path -> {\n try {\n if (tempSortResultPath.isEmpty()) { // Take the words from the first encountered file as the initial merge results\n Path filePath1 = createTempFile(TEMP_FOLDER);\n Path filePath2 = createTempFile(TEMP_FOLDER);\n\n tempSortResultPath.add(filePath1);\n tempSortResultPath.add(filePath2);\n\n copyFile(path, filePath2);\n\n usedFirstPath[0] = false;\n } else {\n // Decide which file has the results from last turn and which file to save the results for current turn\n Path lastResultPath = tempSortResultPath.get(usedFirstPath[0] ? 0 : 1);\n Path outputPath = tempSortResultPath.get(usedFirstPath[0] ? 1 : 0);\n usedFirstPath[0] = !usedFirstPath[0];\n\n // Read the words from current encountered file\n // Read the previously merge sorted words\n try (FileWriter outputStream = new FileWriter(outputPath.toFile().getAbsolutePath(), false);\n FileReader fileStream1 = new FileReader(path.toFile().getAbsolutePath());\n FileReader fileStream2 = new FileReader(lastResultPath.toFile().getAbsolutePath())) {\n\n readText(fileStream1, currentText1);\n readText(fileStream2, currentText2);\n\n // Loop until words from both files are visited\n while (!currentText1.isNoChar() || !currentText2.isNoChar()) {\n if (currentText1.isNoChar()) { // If no more words from the first file, save all the rest words from the second file\n writeText(outputStream, currentText2, previousText);\n readText(fileStream2, currentText2);\n } else if (currentText2.isNoChar()) { // If no more words from the second file, save all the rest words from the first file\n writeText(outputStream, currentText1, previousText);\n readText(fileStream1, currentText1);\n } else {\n // Compare the words and save the smaller one\n int comp = currentText1.compareTo(currentText2);\n if (comp <= 0) {\n writeText(outputStream, currentText1, previousText);\n readText(fileStream1, currentText1);\n } else {\n writeText(outputStream, currentText2, previousText);\n readText(fileStream2, currentText2);\n }\n }\n\n }\n }\n }\n\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n });\n\n return tempSortResultPath.get(usedFirstPath[0] ? 0 : 1);\n }", "private static double get_distance ( String one, String two){\n String temp[] = one.split(\" \");\n double lat1 = Double.parseDouble(temp[0]);\n double long1 = Double.parseDouble(temp[1]);\n\n String temp2[] = two.split(\" \");\n double lat2 = Double.parseDouble(temp2[0]);\n double long2 = Double.parseDouble(temp2[1]);\n\n// Get distance between two lats and two lans\n double latDistance = Math.toRadians(lat1 - lat2);\n double lngDistance = Math.toRadians(long1 - long2);\n\n// Step 1\n double a = (Math.sin ( latDistance / 2 ) * Math.sin (latDistance / 2)) +\n (Math.cos ( Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) )\n * ( Math.sin (lngDistance /2 ) * Math.sin(lngDistance / 2) );\n// Step 2\n double c = ( 2 * (Math.atan2( Math.sqrt(a), Math.sqrt(1-a))));\n// Step 3\n double d = ( EARTH_RADIUS * c );\n return d;\n }", "public static int med(String target,String source){\n\t\tint result = 0;\n\t\t\n\t\tint n = target.length();\n\t\tint m = source.length();\n\t\tint[][] distance = new int[n+1][m+1];\n\t\tdistance[0][0] = 0;\n\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tdistance[i][0] = distance[i-0][0]+ins_cost(target.charAt(i-1));\n\t\t}\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tdistance[0][j] = distance[0][j-1]+ins_cost(target.charAt(j-1));\n\t\t}\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tfor(int j=1;j<=m;j++){\n\t\t\t\tint ins = distance[i-1][j]+ins_cost(target.charAt(i-1));\n\t\t\t\tint sub = distance[i-1][j-1] + subs_cost(target.charAt(i-1), source.charAt(j-1));\n\t\t\t\tint del = distance[i][j-1] + del_cost(source.charAt(j-1));\n\t\t\t\tdistance[i][j] = min(ins,min(sub,del));\n\t\t\t}\n\t\t}\n\t\tresult = distance[n][m];\n\t\treturn result;\n\t}", "public static int editDistance(String str1, String str2)\r\n\t{\r\n\t\tint length1 = str1.length();\r\n\t\tint length2 = str2.length();\r\n\r\n\t\tint[][] arr = new int[length1 + 1][length2 + 1];\r\n\r\n\t\tfor (int i = 0; i <= length1; i++)\r\n\t\t{\r\n\t\t\tarr[i][0] = i;\r\n\t\t}\r\n\t\tfor (int j = 0; j <= length2; j++)\r\n\t\t{\r\n\t\t\tarr[0][j] = j;\r\n\t\t}\r\n\r\n\t\t// iterate though, and check last char\r\n\t\tfor (int i = 0; i < length1; i++)\r\n\t\t{\r\n\t\t\tchar c1 = str1.charAt(i);\r\n\t\t\tfor (int j = 0; j < length2; j++)\r\n\t\t\t{\r\n\t\t\t\tchar c2 = str2.charAt(j);\r\n\r\n\t\t\t\tif (c1 == c2)\r\n\t\t\t\t{\r\n\t\t\t\t\tarr[i + 1][j + 1] = arr[i][j];\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tint replace = arr[i][j] + 1;\r\n\t\t\t\t\tint insert = arr[i][j + 1] + 1;\r\n\t\t\t\t\tint delete = arr[i + 1][j] + 1;\r\n\r\n\t\t\t\t\tint min = replace > insert ? insert : replace;\r\n\t\t\t\t\tmin = delete > min ? min : delete;\r\n\t\t\t\t\tarr[i + 1][j + 1] = min;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn arr[length1][length2];\r\n\t}", "private boolean hasRightPositionedWords(LinkedList<Integer> p1, LinkedList<Integer> p2, int distance){\r\n int j = 0;\r\n int k = 0;\r\n\r\n\r\n while( (j< p1.size() ) && (k< p2.size()) ){\r\n \r\n if(p1.get(j) + distance < p2.get(k)){\r\n j++;\r\n }\r\n else if (p2.get(k) < p1.get(j) + distance){\r\n k++;\r\n }\r\n else if(p2.get(k) == p1.get(j) + distance){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public static int LevenshteinDistance(char[] s1, char[] s2, int s1Idx, int s2Idx) {\n\t\tif (s1Idx == 0 && s2Idx == 0) {\n\t\t\treturn 0;\n\t\t} else if (s1Idx == 0) {\n\t\t\treturn s2Idx; \n\t\t} else if (s2Idx == 0) {\n\t\t\treturn s1Idx;\n\t\t} else {\n\t\t\tint res1 = (s1[s1Idx - 1] != s2[s2Idx - 1] ? 1 : 0) + LevenshteinDistance(s1, s2, s1Idx - 1, s2Idx - 1);\n\t\t\tint res2 = LevenshteinDistance(s1, s2, s1Idx - 1, s2Idx) + 1;\n\t\t\tint res3 = LevenshteinDistance(s1, s2, s1Idx, s2Idx - 1) + 1;\n\t\t\treturn Math.min(res1, Math.min(res2, res3));\n\t\t}\n\t}", "@Override\r\n\tpublic void shorter() {\n\t\tsuper.shorter();\r\n\t\twordSize = (int) Math.max((Math.abs(x2 - x1) + Math.abs(y2 - y1)) / 3, 2);\r\n\t}", "public int getShortestDistance(T vertex1, T vertex2){\n DijkstraShortestPath p = new DijkstraShortestPath(vertex1, vertex2);\n return p.getMinDistance();\n }", "@Override\r\n\tpublic double calculateDistance(Object obj1, Object obj2) {\r\n\t\treturn Math.abs(((String)obj1).split(\" \").length - \r\n\t\t\t\t((String)obj1).split(\" \").length);\r\n\t}", "public int minCharacters(String a, String b) {\n int[] c1 = new int[26];\n int[] c2 = new int[26];\n for (char c: a.toCharArray()) {\n c1[c-'a']++;\n }\n for (char c: b.toCharArray()) {\n c2[c-'a']++;\n }\n\n // initialize res\n int m = a.length();\n int n = b.length();\n int res = m + n;\n\n // 1. make string a and b only consist of distinct character\n for (int i = 0; i < 26; ++i) {\n // means operations to change all characters(m+n) to character i (c1[i] and c2[i])\n res = Math.min(res, m + n - c1[i] - c2[i]);\n }\n\n // cal prefix sum\n // this prefix sum represents the frequency of all characters less than i;\n for (int i = 1; i < 26; ++i) {\n c1[i] += c1[i - 1];\n c2[i] += c2[i - 1];\n }\n\n // 2,3 a less than b or b less than a\n // why the up-limit is 25? cos, the character 'z' can not be the base character. there is no one\n for (int i = 0; i < 25; ++i) {\n // c1[i] for freq of characters less than or equal to i in a\n // c2[i] for freq of characters less than or equal to i in b\n\n // 2. make a < b\n // replace all characters less or equal to i in `b` to larger ones and all characters grater than i in `a` to less ones\n res = Math.min(res, c2[i] + m - c1[i]);\n // 3. make a > b\n // replace all characters less or equal to i in `a` to larger ones and all characters grater than i in `b` to less ones\n res = Math.min(res, c1[i] + n - c2[i]);\n }\n return res;\n }", "Execution getClosestDistance();", "private static String lookForSentenceWhichContains(String[] words, String documentPath) throws IOException {\r\n\r\n File document = new File(documentPath);\r\n\r\n if (!document.exists()) throw new FileNotFoundException(\"File located at \"+documentPath+\" doesn't exist.\\n\");\r\n\r\n FileReader r = new FileReader(document);\r\n BufferedReader br = new BufferedReader(r);\r\n\r\n String line;\r\n String documentText = \"\";\r\n while ( (line=br.readLine()) != null) {\r\n documentText += line;\r\n }\r\n\r\n documentText = Jsoup.parse(documentText).text();\r\n\r\n String[] listOfSentences = documentText.split(\"\\\\.\");\r\n HashMap<String,String> originalToNormalized = new HashMap<>();\r\n String original;\r\n\r\n for (String sentence: listOfSentences){\r\n\r\n original = sentence;\r\n\r\n sentence = sentence.toLowerCase();\r\n sentence = StringUtils.stripAccents(sentence);\r\n sentence = sentence.replaceAll(\"[^a-z0-9-._\\\\n]\", \" \");\r\n\r\n originalToNormalized.put(original,sentence);\r\n }\r\n\r\n int matches, maxMatches = 0;\r\n String output = \"\";\r\n\r\n for (Map.Entry<String,String> sentence: originalToNormalized.entrySet()){\r\n\r\n matches = 0;\r\n\r\n for (String word: words){\r\n if (sentence.getValue().contains(word)) matches++;\r\n }\r\n\r\n if (matches == words.length) return sentence.getKey();\r\n if (matches > maxMatches){\r\n maxMatches = matches;\r\n output = sentence.getKey();\r\n }\r\n }\r\n\r\n return output;\r\n\r\n }", "private int calculateDistance(String s, Map<String, Vertex> finalMap) {\r\n int dist = Integer.MAX_VALUE;\r\n for (Map.Entry<String, Vertex> entry : finalMap.entrySet()) {\r\n if (entry.getValue() != null && entry.getValue().v.equals(s) && entry.getValue().dist < dist){\r\n String next = entry.getKey();\r\n int currDist = entry.getValue().dist + findShortestDistance(next , s);\r\n if (currDist < dist){\r\n dist = currDist;\r\n }\r\n }\r\n }\r\n return dist;\r\n }", "public static int shortestDistance(Graph graph, Vertex a, Vertex b) {\n Set<List<Vertex>> listSetVertex=breadthFirstSearch(graph);\n int distance=graph.getVertices().size();\n for(List<Vertex> lv: listSetVertex){\n int aindex=lv.indexOf(a);\n int bindex=lv.indexOf(b);\n if(aindex>=0&&bindex>=0){\n distance=distance>Math.abs(aindex-bindex)?Math.abs(aindex-bindex):distance;\n }\n }\n return distance==graph.getVertices().size()?-1:distance;\n }", "private int calculateDistance(int w, int w2, AnalysisFragment fragment, String[] patterns) {\r\n\r\n List<Word> words = fragment.getWords();\r\n\r\n int distance = 0;\r\n\r\n //Statement to make pattern sequence irrelevant;\r\n if(w2<w){\r\n int temp=w;\r\n w=w2;\r\n w2=temp;\r\n }\r\n\r\n for(int i = w+1; i < w2; i++){\r\n\r\n Word word = words.get(i);\r\n\r\n //System.out.println(word.display());\r\n if(!isOneOf(word, fragment, patterns))\r\n distance += (word.isMinor() ? 1 : 10);\r\n }\r\n\r\n return distance;\r\n }", "public static int levenshteinDistance(String a, String b, int threshold) {\n // wrapper for org.apache.commons.lang3 getLevenshteinDistance\n return StringUtils.getLevenshteinDistance(a, b, threshold);\n }", "@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }", "public static void main(String[] args) {\n String[] words = {\"practice\", \"makes\", \"perfect\", \"coding\", \"makes\"};\n ShortestWordDistIII245 sw = new ShortestWordDistIII245();\n System.out.println(sw.shortestWordDistance(words, \"makes\", \"makes\"));\n }", "private double findDistance(int[] pos1, int[] pos2) {\n return sqrt((pos1[0]-pos2[0])*(pos1[0]-pos2[0])+\n (pos1[1]-pos2[1])*(pos1[1]-pos2[1]));\n }", "private double dijkstrasAlgo(String source, String dest) {\r\n\r\n\t\tclearAll(); // running time: |V|\r\n\t\tint count = 0; // running time: Constant\r\n\t\tfor (Vertex v : vertexMap.values()) // running time: |V|\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tcount++;\r\n\r\n\t\tVertex[] queue = new Vertex[count]; // running time: Constant\r\n\t\tVertex start = vertexMap.get(source); // running time: Constant\r\n\t\tstart.dist = 0; // running time: Constant\r\n\t\tstart.prev = null; // running time: Constant\r\n\r\n\t\tint index = 0; // running time: Constant\r\n\t\tfor (Vertex v : vertexMap.values()) { // running time: |V|\r\n\t\t\tif (v.isStatus()) {\r\n\t\t\t\tqueue[index] = v;\r\n\t\t\t\tv.setHandle(index);\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tbuildMinHeap(queue, count); // running time: |V|\r\n\r\n\t\twhile (count != 0) { // running time: |V|\r\n\t\t\tVertex min = extractMin(queue, count); // running time: log |V|\r\n\t\t\tcount--; // running time: Constant\r\n\r\n\t\t\tfor (Iterator i = min.adjacent.iterator(); i.hasNext();) { // running time: |E|\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus()) {\r\n\t\t\t\t\tVertex adjVertex = vertexMap.get(edge.getDestination());\r\n\t\t\t\t\tif (adjVertex.dist > (min.dist + edge.getCost()) && adjVertex.isStatus()) {\r\n\t\t\t\t\t\tadjVertex.dist = (min.dist + edge.getCost());\r\n\t\t\t\t\t\tadjVertex.prev = min;\r\n\t\t\t\t\t\tint pos = adjVertex.getHandle();\r\n\t\t\t\t\t\tHeapdecreaseKey(queue, pos, adjVertex); // running time: log |V|\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn vertexMap.get(dest).dist; // running time: Constant\r\n\t}", "public Object[][] get20LeastFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn -(map.get(s1) - map.get(s2));\n\t\t\t}\n\t\t});\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\tif(token.length()==0)continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) < map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "public int distance(String nounA, String nounB) {\n if (!isNoun(nounA) || !isNoun(nounB)) {\n throw new IllegalArgumentException();\n }\n return sap.length(nounMap.get(nounA), nounMap.get(nounB));\n }", "public int distance(String nounA, String nounB)\n {\n if (!isNoun(nounA) || !isNoun(nounB)) throw new IllegalArgumentException();\n return sap.length(h.get(nounA), h.get(nounB));\n }", "public static double getMatchScore(String obj1, String obj2) {\n\tint distance = getLevenshteinDistance(obj1, obj2);\n\tSystem.out.println(\"distance = \" + distance);\n\tdouble match = 1.0 - ((double)distance / (double)(Math.max(obj1.length(), obj2.length())));\n\t\n\tSystem.out.println(\"match is \" + match);\n\treturn match;\n }", "private static Path analyzeFile(Path filePath) throws IOException {\n\n try (FileReader inputStream = new FileReader(filePath.toFile().getAbsolutePath())) {\n\n Path analyzeResultFilePath = createTempFile(TEMP_FOLDER);\n\n try (FileWriter outputStream = new FileWriter(analyzeResultFilePath.toFile().getAbsolutePath())) {\n\n int wordLength = 0;\n\n // Create a buffer of the given length to save each word in memory\n StringBuilder stringBuilder = new StringBuilder(WORD_LENGTH_THRESHOLD + 2);\n\n // Read the word from the input file, character by character\n int i;\n while ((i = inputStream.read()) != -1) {\n wordLength++;\n\n\n if (isWhitespace(i)) { // Finish reading a word, save it to the file\n if (wordLength > 1) {\n stringBuilder.append('\\n');\n outputStream.write(stringBuilder.toString());\n stringBuilder.setLength(0);\n }\n wordLength = 0;\n } else {\n // If the word is too long for the buffer, save it directly to a separate file, character by character\n if (wordLength > WORD_LENGTH_THRESHOLD) {\n Path longWordFilePath = createTempFile(TEMP_LONG_WORD_FOLDER);\n\n try (FileWriter longWordOutputStream = new FileWriter(longWordFilePath.toFile().getAbsolutePath())) {\n // First save what is already in the buffer\n longWordOutputStream.write(stringBuilder.toString());\n stringBuilder.setLength(0);\n wordLength = 0;\n\n // Then save the rest of the characters\n longWordOutputStream.write(toChars(i));\n\n while ((i = inputStream.read()) != -1) {\n if (!isWhitespace(i)) {\n longWordOutputStream.write(toChars(i));\n } else {\n break;\n }\n }\n }\n } else {\n // Keep adding character to buffer\n stringBuilder.append(toChars(i));\n }\n }\n }\n\n // Finish reading the input file, save what's left in the buffer to the file\n stringBuilder.append('\\n');\n outputStream.write(stringBuilder.toString());\n }\n\n return analyzeResultFilePath;\n }\n }", "public int ladderLength(String beginWord, String endWord, List<String> wordList) {\r\n\t\tSet<String> dict = new HashSet<String>();\r\n for (String word : wordList) {\r\n dict.add(word);\r\n }\r\n\r\n Set<String> wordsReached = new HashSet<String>();\r\n // start not in dict, need to have some initial point to start BFS\r\n wordsReached.add(beginWord);\r\n\r\n int distance = 1;\r\n while (!wordsReached.contains(endWord)) {\r\n Set<String> wordsToReach = new HashSet<String>();\r\n for (String wordReached : wordsReached) {\r\n for (int i = 0; i < wordReached.length(); i++) {\r\n // where to toCharArray is crucial\r\n // 每个位置有26个可能性\r\n char[] chars = wordReached.toCharArray();\r\n for (char c = 'a'; c <= 'z'; c++) {\r\n chars[i] = c;\r\n String next = new String(chars);\r\n if (dict.contains(next)) {\r\n wordsToReach.add(next);\r\n dict.remove(next);\r\n }\r\n }\r\n }\r\n }\r\n // no new words can be reached, early return\r\n if (wordsToReach.size() == 0) {\r\n return 0;\r\n }\r\n\r\n distance++;\r\n wordsReached = wordsToReach;\r\n }\r\n \r\n return distance;\r\n\t}" ]
[ "0.776567", "0.7607485", "0.7463207", "0.7390457", "0.73546696", "0.7294773", "0.72754884", "0.7261059", "0.72053695", "0.71678996", "0.7153858", "0.7056578", "0.7009927", "0.6980986", "0.67864347", "0.6626735", "0.64402926", "0.64031446", "0.62973416", "0.6202228", "0.61938596", "0.6153395", "0.61524826", "0.6150512", "0.6118724", "0.6074493", "0.6071046", "0.60559946", "0.6037921", "0.60287803", "0.6024977", "0.601849", "0.60065883", "0.5959065", "0.5949026", "0.5917283", "0.59012574", "0.5889789", "0.5850389", "0.58450586", "0.5821642", "0.58191085", "0.58170474", "0.5806167", "0.57986474", "0.5796006", "0.5793076", "0.57743585", "0.57668805", "0.57496804", "0.5741064", "0.57302433", "0.5718976", "0.57130903", "0.5710032", "0.5688888", "0.56751966", "0.56632257", "0.56627786", "0.56568635", "0.5642911", "0.5640441", "0.5614403", "0.55698764", "0.55499715", "0.55302876", "0.5523002", "0.5521817", "0.55182445", "0.5506629", "0.5495295", "0.5474441", "0.54721636", "0.5469537", "0.54648995", "0.5457448", "0.54529494", "0.5447991", "0.5442817", "0.54408115", "0.5438912", "0.54272807", "0.5423106", "0.5418714", "0.5413042", "0.54105985", "0.54093325", "0.540866", "0.54086185", "0.5408105", "0.5396507", "0.53866285", "0.5377283", "0.53768265", "0.5376604", "0.53756607", "0.5352684", "0.5346088", "0.5345052", "0.5343997" ]
0.5781051
47
Constructeur d'un editeur simple
public EditeurSimple() { super(); this.buffer = new Buffer(); this.pressPapier = new PressePapier(); this.selection = new Selection(); this.fluxFile = new FluxFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Simple createSimple();", "public SimpleCitizen(){\n super();\n information = \"let's help to find mafias and take them out\";\n }", "public Cgg_jur_anticipo(){}", "public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Pasien() {\r\n }", "public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}", "private UsineJoueur() {}", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "public AntrianPasien() {\r\n\r\n }", "@Test\n\tpublic void testConstructeur() {\n\t\tassertEquals(\"La liste de matiere devrait etre initialise\", 0, f.getMatiere().size());\n\t\tassertEquals(\"L'id de formation devrait etre 1\", 1, f.getId());\n\t}", "public Caso_de_uso () {\n }", "public SlanjePoruke() {\n }", "public Clade() {}", "Vaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();", "public Chauffeur() {\r\n\t}", "SimpleLiteral createSimpleLiteral();", "public Estudiante(String nom) // Constructor 1: Se le asigna un valor al atributo nombre cuando se cree el objeto.\r\n {\r\n this.nombre = nom;\r\n }", "Petunia() {\r\n\t\t}", "StudenteImpl(String nome, String cognome, Cdl corso, int annoCorso, String matricola) {\n super(nome, cognome);\n initialize(corso, annoCorso, matricola);\n }", "public Jeu(){\n Saisie.Initialiser();\n this.premierJoueur = CreationDePersonnage(\"joueur1\");\n this.secondJoueur = CreationDePersonnage(\"joueur2\");\n Combat();\n Saisie.Terminer();\n }", "public ElementoInicial() {\r\n\t\tsuper();\r\n\t}", "public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public CyanSus() {\n\n }", "public prueba()\r\n {\r\n }", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public Simulador(){\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Lanceur() {\n\t}", "public Demo() {\n\t\t\n\t}", "public Empleado(String n, int ed, float es, float s){\r\n super(n, ed, es);\r\n this.sueldo=s;\r\n System.out.println(\"Constructor Empleado\");\r\n \r\n }", "public YonetimliNesne() {\n }", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public Basic() {}", "public ListSemental() {\n }", "protected SimpleMatrix() {}", "public abstract String construct();", "public Laboratorio() {}", "public SimpleCondition() {\n\n\t}", "public Employe () {\n this ( NOM_BIDON, null );\n }", "Casilla(String nombre){\n this.nombre=nombre; \n }", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public TTau() {}", "protected Asignatura()\r\n\t{}", "public Promo(String n){\nnom = n;\n}", "public MorteSubita() {\n }", "public Alojamiento() {\r\n\t}", "public NhanVien()\n {\n }", "public Aso() {\n\t\tName = \"Aso\";\n\t\ttartossag = 3;\n\t}", "public CrearQuedadaVista() {\n }", "public HolaMundo() {\n \n System.out.println( \"Hola mundo\" );\n }", "public Candidatura (){\n \n }", "public Nombre() {\n char v[] = { 'a', 'e', 'i', 'o', 'u' };\n char c[] = { 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'ñ', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x',\n 'y', 'z' };\n vocales = new Letras(v);\n consonantes = new Letras(c);\n r = new Random();\n }", "public Soil()\n\t{\n\n\t}", "public Pitonyak_09_02() {\r\n }", "public StringType() {\n\n }", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public Propiedad(){\n\t}", "public TebakNusantara()\n {\n }", "public QLNhanVien(){\n \n }", "public Documento() {\n\n\t}", "public Vehiculo() {\r\n }", "public bebedor(String nombre)\n {\n // initialise instance variables\n this.nombre = nombre;\n alcoholimetro = 0;\n }", "public BeanSimpleConverter() {\n super(BeanSimple.class);\n }", "public Square() {\n content = \"EMPTY\";\n \n }", "public Laboratorio(String nombre) {\r\n\t\tsuper();\r\n\t\tthis.nombre = nombre;\r\n\t}", "Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();", "public Manager() {\n\t\tthis(\"Nom par defaut\", \"Prenom par defaut\", 0);\n\t}", "public MusiqueFiducial(){\n\t\tinitialisation();\n\t}", "public PersonaFisica() {}", "Traditional createTraditional();", "public SgaexpedbultoImpl()\n {\n }", "public NamedEntity() { this(\"\", \"\"); }", "private ControleurAcceuil(){ }", "public SimulasiBean() {\n this.crane = \"L\";\n this.tipePelayaran = \"d\";\n indonesianNumberConverter = new IndonesianNumberConverter();\n }", "public Classe() {\r\n }", "public Harimau(String namaHarimau)\n\t{\n\t//mengisi pengubah yang diwarisi oleh kelas abstract\n\tHarimau.nama = namaHarimau;\n\t}", "public Tmio1Sitio() {\r\n\t}", "public LitteralString() \n\t{\n\t\tthis(\"Chaine Litterale\");\n\t\t// TODO Auto-generated constructor stub\n\t}", "protected Sentence() {/* intentionally empty block */}", "public Fruitore()\r\n\t{\r\n\t\tthis.nomeUtente = Costanti.STRINGA_VUOTA;\r\n\t}", "public EstadosSql() {\r\n }", "public Joueur(String nomJoueur){\n\t\tthis.nom= nomJoueur;\n\t\tthis.cartesEnMain=new Main();\n\t\tthis.pileCartes=new Pile();\n\t\tthis.estDansPartie = true;\n\t\tthis.estDansBataille = true;\n\t}", "public BasicSpecies() {\r\n\r\n\t}", "public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}", "Vaisseau_longueur createVaisseau_longueur();", "public void testConstructor() throws Exception {\n\t\tStringWriter source = new StringWriter();\n\t\tthis.compiler.writeConstructor(source, \"Simple\", this.compiler.createField(String.class, \"field\"),\n\t\t\t\tthis.compiler.createField(int.class, \"value\"), this.compiler.createField(boolean[].class, \"flags\"));\n\t\tStringWriter expected = new StringWriter();\n\t\texpected.append(\" private java.lang.String field;\\n\");\n\t\texpected.append(\" private int value;\\n\");\n\t\texpected.append(\" private boolean[] flags;\\n\");\n\t\texpected.append(\" public Simple(java.lang.String field, int value, boolean[] flags) {\\n\");\n\t\texpected.append(\" this.field = field;\\n\");\n\t\texpected.append(\" this.value = value;\\n\");\n\t\texpected.append(\" this.flags = flags;\\n\");\n\t\texpected.append(\" }\\n\");\n\t\tassertEquals(\"Incorrect constructor\", expected.toString(), source.toString());\n\t}", "public Individual()\r\n\t{\r\n\t}", "public Stabel(){\n elementer = 0;\n hode = new Node(null);\n hale = hode;\n hode.neste = hale;\n hale.forrige = hode;\n }", "public Exercicio(){\n \n }", "public FiltroMicrorregiao() {\r\n }", "public Generateur() {\n }", "public TutorIndustrial() {}", "public Mannschaft() {\n }", "public Stupide(Plateau p,String nom) {\r\n\t\tsuper(p,nom);\r\n\t\tcapaciteMemoire = 0;\r\n\t}", "public Constructor(){\n\t\t\n\t}", "public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }", "public Demo3() {}", "public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "SensorDescription(){\n\n }" ]
[ "0.71171033", "0.6369028", "0.62707585", "0.62033737", "0.6198826", "0.61744577", "0.6168295", "0.61604595", "0.61432475", "0.6105196", "0.60927504", "0.6060516", "0.6050824", "0.6045804", "0.60376155", "0.6033647", "0.6019248", "0.6012843", "0.5999019", "0.5984498", "0.59817135", "0.5971824", "0.59496146", "0.58942467", "0.5888794", "0.5888184", "0.58777946", "0.58740467", "0.5867846", "0.583975", "0.5820728", "0.58202744", "0.5807647", "0.5803984", "0.58016497", "0.5799456", "0.579877", "0.5797768", "0.57930315", "0.5782509", "0.578208", "0.5777865", "0.5777709", "0.5773589", "0.5765729", "0.57638174", "0.5747275", "0.57426935", "0.57349", "0.5732605", "0.5730037", "0.5729024", "0.57275903", "0.5718021", "0.57062423", "0.5698968", "0.5696585", "0.56884176", "0.56801426", "0.5679387", "0.5667489", "0.5665133", "0.56536907", "0.56510293", "0.5648444", "0.5646152", "0.56438243", "0.56433046", "0.5634106", "0.5633134", "0.562917", "0.56288534", "0.5622935", "0.5618519", "0.56152874", "0.5613932", "0.5612264", "0.56084096", "0.5607665", "0.5602248", "0.5601005", "0.55951864", "0.55943286", "0.55903", "0.5586084", "0.5584669", "0.5584205", "0.55841976", "0.5580627", "0.5577578", "0.5577105", "0.5575241", "0.5569584", "0.5568034", "0.5567603", "0.556735", "0.55672354", "0.55646896", "0.55646205", "0.55627364" ]
0.62735593
2
Obtention de la valeur
public int getValeur() { return valeur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getVal();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "public String getValue () { return value; }", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public int getValue() \n {\n return value;\n }", "public String getValue() { return value; }", "@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}", "public String getItsvalue() {\n return itsvalue;\n }", "public int getValue(){\n return value;\n }", "public int getVal()\r\n\t{\r\n\t\treturn value;\r\n\t}", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "String getValue()\n {\n return value.toString();\n }", "@Override\r\n\tpublic String getValue() {\n\t\treturn value;\r\n\t}", "public java.lang.String getValor();", "@Override\n public String getValue() {\n return this.value.toString();\n }", "public int getValue(){\n return this.value;\n }", "String getCurrentValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "public int getValue(){\n\t\treturn value;\n\t}", "public String getValue(){\n return this.value;\n }", "@Override\n\tpublic String getValue() {\n\t\treturn \"?\";\n\t}", "public int value() { \n return this.value; \n }", "public String getValue(){\n\t\treturn _value;\n\t}", "public V valor() {\n return value;\n }", "public int getValue() \n {\n return value;\n }", "public String getValue()\r\n\t{\r\n\t\treturn value;\r\n\t}", "public\t\tString\t\tgetValue()\n\t\t{\n\t\treturn(\"\" + getNormalizedValue());\n\t\t}", "public int value(){\n return this.value;\n }", "@Override\n\tpublic String getValue() {\n\t\treturn value;\n\t}", "public String getValue(){\n\t\treturn this.value;\n\t}", "public String getValue() {\n return value;\n }", "public int getInital_value(){\n return this.inital_value;\n }", "@Override\n public int getValue() {\n return super.getValue();\n }", "@Override\n public String getValue() {\n return value;\n }", "public int getValue () {\n return value;\n }", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue() {\r\n return value;\r\n }", "public String getValue()\n {\n return value;\n }", "public int getValue();", "public int getValue();", "public String getValue() {\n\t\t\treturn this.val; // to be replaced by student code\n\t\t}", "String value();", "String value();", "public int getValor() {\r\n return valor;\r\n }", "public String value()\n {\n return value;\n }", "public int getValue()\r\n {\r\n return value;\r\n }", "public int value() \n {\n return value;\n }", "private byte getValue() {\n\t\treturn value;\n\t}", "public int getValore() {\n return valore;\n }", "public int getValue()\n {\n return value;\n }", "public String getValue()\n {\n return fValue;\n }", "public String getValue()\n {\n return value;\n }", "public String getValue()\n {\n return value;\n }", "public Object getValue(){\n \treturn this.value;\n }", "public String getValue()\n {\n return this.value;\n }", "public int getValue()\n {\n return value;\n }", "public int getVal() {\n return val;\n }", "public String getValue() {\n\n return this.value;\n\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public String getValor() {\n return valor;\n }", "@Override\n public int getValue() {\n return Integer.parseInt(gValue.getText());\n }", "public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}", "public long getValue() {\n\treturn value;\n }" ]
[ "0.7240182", "0.7078479", "0.7078479", "0.7078479", "0.7078479", "0.7078479", "0.7078479", "0.7078479", "0.7078479", "0.7078479", "0.7078479", "0.7019756", "0.70047766", "0.70047766", "0.70047766", "0.70047766", "0.70047766", "0.70047766", "0.68964523", "0.68964523", "0.68964523", "0.68964523", "0.68964523", "0.68964523", "0.68964523", "0.68964523", "0.68964523", "0.6889202", "0.6884336", "0.68817693", "0.6850823", "0.6844443", "0.6838511", "0.68330324", "0.6825708", "0.6813584", "0.6808822", "0.6799445", "0.6796924", "0.6777492", "0.6774859", "0.6774859", "0.6774859", "0.6774859", "0.6774859", "0.67662543", "0.6766031", "0.6765808", "0.6765623", "0.676459", "0.67517406", "0.67501235", "0.67405134", "0.6720424", "0.6716033", "0.6707283", "0.6700961", "0.668672", "0.6679872", "0.6679231", "0.6675473", "0.66708106", "0.66695327", "0.66695327", "0.66695327", "0.666531", "0.666531", "0.666531", "0.6660815", "0.6655223", "0.6655006", "0.6655006", "0.66548014", "0.66509235", "0.66509235", "0.6650467", "0.6642025", "0.66356295", "0.6632479", "0.6629471", "0.6628974", "0.6618101", "0.6612348", "0.6611282", "0.6611282", "0.66099155", "0.66061795", "0.6605616", "0.6598249", "0.6595997", "0.65951496", "0.65951496", "0.65951496", "0.65951496", "0.65951496", "0.65951496", "0.6586309", "0.65779626", "0.65778196", "0.65750647" ]
0.7296507
0
Restitution de la valeur
public int getType () { return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getInfraredValue();", "public int getAltNeg(){\n return this._alturaNegra;\n }", "public double getRisultato() {\r\n return risultato;\r\n }", "public void setRisultato(double risultato) {\r\n this.risultato = risultato;\r\n }", "public float getRestitution() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 24);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 24);\n\t\t}\n\t}", "double getRealValue();", "public int getArmadura(){return armadura;}", "public double getSalario() {\r\n\t\treturn super.getSalario()-10000;\r\n\t}", "public abstract int getPreferredValue();", "protected int getTreinAantal(){\r\n return treinaantal;\r\n }", "Object getValor();", "public void setRestitution(float restitution) {\n constructionInfo.restitution = restitution;\n rBody.setRestitution(restitution);\n }", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public int getValeur() {\r\n return valeur;\r\n }", "public Float getRest() {\n return rest;\n }", "@Override\r\n\tpublic float valorFinal() {\n\t\treturn 0;\r\n\t}", "public void setRestitution(float restitution) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 24, restitution);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 24, restitution);\n\t\t}\n\t}", "public double ValidaValor(){\n\t return 0;\n }", "public java.lang.String getValor();", "double defendre();", "int getAlphaOff(){\n return getPercentageValue(\"alphaOff\");\n }", "int getLumOff(){\n return getPercentageValue(\"lumOff\");\n }", "public int getDefilade();", "public double getRe() {\r\n return re;\r\n }", "EDataType getSusceptance();", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "public double getResy() {\n return resy;\n }", "public int getInital_value(){\n return this.inital_value;\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public double getResistance() \n {\n //dummy return value.\n return 0;\n }", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "public double getSubidaSalarial() {\n\t\tdouble sueldoActual = super.getRetribucion();\n\t\tif(super.getAntigüedad() >= 5) {\n\t\t\treturn (sueldoActual*2/100);\n\t\t}\n\t\telse {\n\t\t\treturn (sueldoActual * 0.015);\n\t\t}\n\t}", "float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}", "private float getRsiPotential() {\r\n\t\treturn 1F - (float)(stochRsiCalculator.getCurrentValue()/50.0);\r\n\t}", "String getVal();", "public int getFECHACRREVAL() {\n return fechacrreval;\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "public double getRe() {\n return re;\n }", "@Override\n public OptionalInt getValence() {\n return IndigoUtil.valueOrEmpty(atom.explicitValence());\n }", "public int getBrillo(){\n return brillo;\n }", "int getLumMod(){\n return getPercentageValue(\"lumMod\");\n }", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "public double redemptionValue()\n\t{\n\t\treturn _dblRedemptionValue;\n\t}", "public abstract ArithValue negate();", "int getSatMod(){\n return getPercentageValue(\"satMod\");\n }", "public float getDry() {\r\n\t\treturn dry;\r\n\t}", "@Override\n public final float getSpecialDefenseValue() {\n return _defenseValue;\n }", "float getValue();", "float getValue();", "float getValue();", "@Override\n public int altura() {\n return altura(this.raiz);\n }", "public int getValor() {\r\n return valor;\r\n }", "public double getPercepcion(){\n return localPercepcion;\n }", "@Override\n public int getAltura(){\n return(super.getAltura());\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public double getRe() {\n\t\treturn re;\n\t}", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "public Double getValor() {\n return valor;\n }", "Expression getRValue();", "public int getValor() {\n return valor;\n }", "public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }", "public int getPantallaActual() {\r\n return this.iPantallaActual;\r\n }", "public int resta(){\r\n return x-y;\r\n }", "int getAssetValue();", "public int getValore() {\n return valore;\n }", "public\t\tString\t\tgetValue()\n\t\t{\n\t\treturn(\"\" + getNormalizedValue());\n\t\t}", "public abstract double getPreis();", "public boolean getVDD(){return this.vientDeDouble;}", "void unsetValueRatio();", "protected abstract int getInitialValue();", "public abstract void setMontant(Double unMontant);", "public int getRRPP(){\n return RRPP; \n }", "int getRed(){\n return getPercentageValue(\"red\");\n }", "int getCauseValue();", "public void azzera() { setEnergia(0.0); }", "int getLum(){\n return getPercentageValue(\"lum\");\n }", "int getAlpha(){\n return getPercentageValue(\"alpha\"); \n }", "public int getValor() {\n return Valor;\n }", "public char get_Rest() {\r\n if (this.do_rest)\r\n return 'E';\r\n if (this.no_rest)\r\n return 'W';\r\n else\r\n return 'z';\r\n }", "public void setRest(Float rest) {\n this.rest = rest;\n }", "public Double getPotencia(){\n return this.valor;\n }", "public void setRe(double re) {\r\n this.re = re;\r\n }", "public double getFlete(){\n return localFlete;\n }", "int getExclusionTypeValue();", "int getSat(){\n return getPercentageValue(\"sat\");\n }", "public int getEstValue(){\r\n return this.estValue;\r\n }", "public double getRise(\n )\n {return rise;}", "int getSatOff(){\n return getPercentageValue(\"satOff\");\n }", "public void setRaggio(double raggio){\n this.raggio = raggio;\n }", "public int getNiveau() {\r\n return niveau;\r\n }", "public int getModopelea(){return modopelea;}", "public float getRawValue() { return rawValue; }", "Integer getBusinessValue();", "void unsetValue();", "void unsetValue();" ]
[ "0.6031253", "0.5908656", "0.5902409", "0.58373255", "0.5829983", "0.5821453", "0.572719", "0.5697686", "0.56806433", "0.5675399", "0.56668377", "0.56626135", "0.56540334", "0.5653698", "0.56201804", "0.5608785", "0.5601821", "0.55912524", "0.5587743", "0.5587688", "0.5572015", "0.5571913", "0.55454123", "0.55433923", "0.554289", "0.55406004", "0.5514045", "0.55122596", "0.55095404", "0.55016035", "0.5499964", "0.5499964", "0.5499964", "0.5499964", "0.5499964", "0.5491423", "0.5490805", "0.54815716", "0.54761684", "0.54759854", "0.5463511", "0.5457545", "0.5452741", "0.5442185", "0.5440442", "0.5436307", "0.54331595", "0.5432365", "0.54282093", "0.542467", "0.5420717", "0.54185903", "0.54185903", "0.54185903", "0.541807", "0.5405702", "0.54032177", "0.5396638", "0.5390906", "0.53866255", "0.53866255", "0.5372116", "0.5366806", "0.53650415", "0.5360069", "0.53528047", "0.53473204", "0.5345743", "0.53407365", "0.5339817", "0.5339603", "0.5336624", "0.53343946", "0.5333602", "0.5328161", "0.5325574", "0.53244334", "0.5308338", "0.53066933", "0.53029984", "0.5296104", "0.5293237", "0.52919096", "0.5287726", "0.5285459", "0.52819", "0.52792233", "0.52765876", "0.5275018", "0.5274531", "0.5273604", "0.52723485", "0.527145", "0.5270829", "0.52628523", "0.5261518", "0.5253568", "0.5250715", "0.5244185", "0.52433246", "0.52433246" ]
0.0
-1
Affichage des attributs du message
public void afficherMessage () { System.out.println("("+valeur+", "+type+")"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map<String, String> getSourceAttributes() {\n return sqsMessage.getAttributes();\n }", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "@Override\n\tpublic void onSetMessageAttributes(EMMessage message) {\n\n\t}", "@AutoEscape\n\tpublic String getMessageInfo();", "void mostrarAtributos() {\n\t\tString mensaje = \"nombre=\" + nombre + \", apellido=\" + apellido + \", tipoDocumento=\" + tipoDocumento\n\t\t\t\t+ \", numeroDocumento=\" + numeroDocumento + \", edad=\" + edad + \" y es \"\n\t\t\t\t+ (edad >= 18 ? \"mayor de edad\" : \"menor de edad\");\n\t\tSystem.out.println(mensaje);\n\t}", "Attributes getAttributes();", "public Map getMessageProperties()\r\n\t{\r\n\t\treturn this.properties;\r\n\t}", "Map<String, String> getAttributes();", "public Pattern getMessageAttribute() {\r\n return pattern_messageContinuationLine;\r\n }", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "public String[] getRelevantAttributes();", "@Override\n protected String createEntityAsString(Message entity) {\n String stringToIds = \"\";\n List<User> listUsers = entity.getTo();\n for (User friend : listUsers) {\n stringToIds += friend.getId() + \",\";\n }\n if (stringToIds.length() >= 1)\n stringToIds = stringToIds.substring(0, stringToIds.length() - 1);\n String messageAttributes = \"\";\n messageAttributes += entity.getId() + \";\" +\n entity.getFrom().getId() + \";\" +\n stringToIds + \";\" +\n entity.getMessage() + \";\" +\n entity.getDate().format(Constants.DATE_TIME_FORMATTER);\n return messageAttributes;\n }", "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "public trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes() {\n if (attributesBuilder_ == null) {\n return attributes_ == null ? trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : attributes_;\n } else {\n return attributesBuilder_.getMessage();\n }\n }", "public Map<String, String> getAttributes();", "IAttributes getAttributes();", "public String getCssValue_txt_ThankYou_Message_Text(String attribute) {\r\n\t\treturn txt_ThankYou_Message_Text.getCssValue(attribute);\r\n\t}", "private Hashtable<String, Object> getMessageData(String cif, String msg) {\r\n\t\tHashtable<String, Object> messageData = super.getMessageData();\r\n\t\tVector<Object> v = new Vector<Object>();\r\n\t\tv.add(\"SUPERVISOR\");\r\n\t\tmessageData.put(\"UsuarioDestino\", v);\r\n\t\tString contenido = msg;\r\n\t\tmessageData.put(INoticeSystem.NOTICE_CONTENT, contenido);\r\n\t\treturn new Hashtable<String, Object>(messageData);\r\n\t}", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "public Map getAttributes() {\n Map common = channel.getAttributes();\n \n if(map == null) {\n map = new HashMap(common);\n }\n return map;\n }", "BalloonAttributes getAttributes();", "@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}", "Map getPassThroughAttributes();", "public String getMessage() {\n\t\treturn \" whose content is a\";\n\t}", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "public HashMap<String, String> getCustomMessageProperties() {\n return this.customMessageProperties;\n }", "public Attributes getAttributes() { return this.attributes; }", "private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }", "public abstract Map<String, Object> getAttributes();", "private String getMessageSummary() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(MAIL_FROM).append(\":\").append(props.getProperty(MAIL_FROM, \"\"));\n\n\t\tif (props.containsKey(MAIL_REPLY_TO)) {\n\t\t\tsb.append(\",\").append(MAIL_REPLY_TO).append(\":\").append(props.getProperty(MAIL_REPLY_TO));\n\t\t}\n\n\t\tsb.append(\",\").append(MAIL_TO).append(\":\").append(props.getProperty(MAIL_TO));\n\n\t\tif (props.containsKey(MAIL_CC)) {\n\t\t\tsb.append(\",\").append(MAIL_CC).append(\":\").append(props.getProperty(MAIL_CC));\n\t\t}\n\n\t\tif (props.containsKey(MAIL_CC)) {\n\t\t\tsb.append(\",\").append(MAIL_BCC).append(\":\").append(props.getProperty(MAIL_BCC));\n\t\t}\n\n\t\tsb.append(\",\").append(MAIL_SUBJECT).append(\":\").append(props.getProperty(MAIL_SUBJECT, \"\"));\n\n\t\treturn sb.toString();\n\t}", "public final String[] getAttributes() {\n return this.attributes;\n }", "public SecureMessageAttributes getSecureMessageAttributes() {\r\n\t\treturn this.secureMessageAttributes;\r\n\t}", "@Override\n public Message extractEntity(List<String> attributes) {\n Long idMessage = Long.parseLong(attributes.get(0));\n Long idSender = Long.parseLong(attributes.get(1));\n String[] listIDSReceivers = attributes.get(2).split(\",\");\n List<User> listReceivers = new ArrayList<>();\n\n // TODO: verifica in UI daca userii pe care ii adauga exista\n for(int i = 0; i < listIDSReceivers.length; i++) {\n listReceivers.add(userRepository.findOne(Long.parseLong(listIDSReceivers[i])));\n }\n String textMessage = attributes.get(3);\n LocalDateTime data = LocalDateTime.parse(attributes.get(4), Constants.DATE_TIME_FORMATTER);\n Message message = new Message(userRepository.findOne(idSender), listReceivers, \"Subject\",\n textMessage, data);\n message.setId(idMessage);\n return message;\n }", "com.google.protobuf.ByteString getAttributeBytes();", "@Override\n\tpublic String toString(){\n\t\treturn this.message;\n\t}", "java.lang.String getAttribute();", "public java.util.Collection getAttributes();", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "@Override\n public String toString() {\n return message;\n }", "public Map<TextAttribute,?> getAttributes(){\n return (Map<TextAttribute,?>)getRequestedAttributes().clone();\n }", "public String getMessage(){\n return this.message;\n }", "private String getCustomAttributes() {\n StringBuilder sb = new StringBuilder();\n\n customAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "public String getMessage(){\n return(message);\n }", "@Override\n public String toString() { // for request attribute logging\n return DfTypeUtil.toClassTitle(this) + \":{messages=\" + messages + \"}@\" + Integer.toHexString(hashCode());\n }", "@Override\n public String getMailetInfo() {\n return \"Sieve Mailbox Mailet\";\n }", "private List<String> getAttributes(ModuleURN inURN) throws Exception {\r\n MBeanInfo beanInfo = getMBeanServer().getMBeanInfo(inURN.toObjectName());\r\n List<String> attribs = new ArrayList<String>();\r\n for(MBeanAttributeInfo info: beanInfo.getAttributes()) {\r\n attribs.add(info.getName());\r\n }\r\n return attribs;\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMessageId() != null)\n sb.append(\"MessageId: \").append(getMessageId()).append(\",\");\n if (getFromEmailAddress() != null)\n sb.append(\"FromEmailAddress: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getSubject() != null)\n sb.append(\"Subject: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getEmailTags() != null)\n sb.append(\"EmailTags: \").append(getEmailTags()).append(\",\");\n if (getInsights() != null)\n sb.append(\"Insights: \").append(getInsights());\n sb.append(\"}\");\n return sb.toString();\n }", "public Message getMessage(){\n return message;\n }", "void setMessage(char msg[], char attribs[]) {\n copyString(msg, statusLine, 1, MESSAGE_LENGTH);\n notifyDisplay();\n }", "public String getMessage()\n {\n return String.format(\"MessageType=%s,TransactionId=%s,TerminalId=%s,MerchantId=%s,FingerData=%s,CustomerId=%s,IdData=%s, CustomerData=%s\", this.messageType, this.transactionId, this.terminalId, this.merchantId, this.fingerData, this.customerId, this.idData, this.customerData);\n }", "public String getMessageText();", "public String getPersonalMessage()\n \t{\n \t\treturn personalMessage;\n \t}", "public abstract Map getAttributes();", "public String getMessage(){\n\t\treturn this.message;\n\t}", "public String getData() {\n return message;\n }", "public Object getMessage() {\n return m_message;\n }", "java.util.List<? extends tendermint.abci.EventAttributeOrBuilder> \n getAttributesOrBuilderList();", "public String getMessage(){\r\n return message;\r\n }", "public String getMessage(){\r\n return message;\r\n }", "public String get() {\n\n\t\treturn Tools.parseColors(message, false);\n\t}", "public Map<String, String> getAttributes() {\n\t\treturn attributes;\n\t}", "public String numAttributesTipText() {\n return \"The number of attributes the generated data will contain.\";\n }", "@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }", "@Override\n public String getAttributesToString() {\n StringBuilder attributes = new StringBuilder();\n attributes.append(\"1 - Nominal Power: \" + nominalPower + \"\\n\");\n attributes.append(\"2 - Number of Bottles: \" + numberOfBottles + \"\\n\");\n attributes.append(\"3 - Annual Energy Consumption: \" + annualEnergyConsumption + \"\\n\");\n\n return attributes.toString();\n }", "Map<String, ?> getFlashAttributes();", "public ListaAttributi getExtra() {\r\n return this.extra;\r\n }", "public String getMessage(){\n return message;\n }", "public String getMessage()\n {\n return fMessage;\n }", "public trinsic.services.common.v1.CommonOuterClass.JsonPayloadOrBuilder getAttributesOrBuilder() {\n if (attributesBuilder_ != null) {\n return attributesBuilder_.getMessageOrBuilder();\n } else {\n return attributes_ == null ?\n trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : attributes_;\n }\n }", "public Map<String, Object> getAttrs();", "private String getDataAttributes() {\n StringBuilder sb = new StringBuilder();\n\n dataAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}", "public HashMap<String, String> GetRawAttributes();", "public String getMessage()\r\n {\r\n return myMessage;\r\n }", "public String getMessage(){\n return saisieMessage.getText();\n }", "public String getStringAttribute();", "private Hashtable getRequestedAttributes() {\n\tif (fRequestedAttributes == null) {\n\t fRequestedAttributes = new Hashtable(7, (float)0.9);\n fRequestedAttributes.put(TextAttribute.TRANSFORM,\n\t\t\t\t IDENT_TX_ATTRIBUTE);\n fRequestedAttributes.put(TextAttribute.FAMILY, name);\n fRequestedAttributes.put(TextAttribute.SIZE, new Float(size));\n\t fRequestedAttributes.put(TextAttribute.WEIGHT,\n\t\t\t\t (style & BOLD) != 0 ? \n\t\t\t\t TextAttribute.WEIGHT_BOLD :\n\t\t\t\t TextAttribute.WEIGHT_REGULAR);\n\t fRequestedAttributes.put(TextAttribute.POSTURE,\n\t\t\t\t (style & ITALIC) != 0 ? \n\t\t\t\t TextAttribute.POSTURE_OBLIQUE :\n\t\t\t\t TextAttribute.POSTURE_REGULAR);\n fRequestedAttributes.put(TextAttribute.SUPERSCRIPT,\n new Integer(superscript));\n fRequestedAttributes.put(TextAttribute.WIDTH,\n new Float(width));\n\t}\n\treturn fRequestedAttributes;\n }", "com.google.protobuf.ByteString getExtra();", "private String getStyleAttribute() {\n StringBuilder sb = new StringBuilder();\n\n styleAttribute.forEach((key, value) -> {\n sb.append(key).append(\":\").append(value).append(\";\");\n });\n\n return sb.toString();\n }", "@JsonGetter(\"message\")\r\n public String getMessage ( ) { \r\n return this.message;\r\n }", "public Map<String, Set<String>> getAttributes() {\n return attributes;\n }", "public java.lang.String getMessageField1() {\r\n return messageField1;\r\n }", "public String getMessage() { return message; }", "public String[] getMessageParameters() {\n return messageParameters;\n }", "private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}", "@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}", "public String getMessageContent() {\n return messageContent;\n }", "public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n if (attributesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(attributes_);\n } else {\n return attributesBuilder_.getMessageList();\n }\n }", "public List<String> attributes() {\n return this.attributes;\n }", "public java.lang.String getMessageField2() {\r\n return messageField2;\r\n }", "@Override\n public String getDescription() {\n return \"Arbitrary message\";\n }", "public List<Pair<String, String>> getAttributes() {\n\t\treturn attributes;\n\t}", "public String getMessage(){\r\n\t\treturn message;\r\n\t}", "@Override\n public String toString() {\n return getUserName() + \" on \" + getDate() + \"\\n\" + message + \"\\nType: \" + getType();\n }", "String getAttribute();", "@Override\n public String toString() {\n return \"\\r\\nUser: \" + user + \" Message: \" + message +\" \\r\\n\" ;\n }", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }" ]
[ "0.64090115", "0.6204275", "0.6154801", "0.6145103", "0.6078535", "0.6072661", "0.6055345", "0.6050394", "0.60304505", "0.5981609", "0.5981609", "0.59798384", "0.5958535", "0.5951379", "0.5950549", "0.593628", "0.5844902", "0.5839198", "0.582947", "0.5823151", "0.5823151", "0.5823151", "0.58014673", "0.57754", "0.5763761", "0.5751502", "0.5750788", "0.57404584", "0.57404584", "0.571128", "0.5681597", "0.5671969", "0.56611407", "0.56565744", "0.5656546", "0.56509274", "0.5647512", "0.5642632", "0.56273514", "0.5621011", "0.560793", "0.5605661", "0.5600358", "0.5590664", "0.55845135", "0.55786914", "0.557589", "0.5572156", "0.5567118", "0.5559308", "0.5559173", "0.5549951", "0.55441034", "0.5531557", "0.55266804", "0.5526591", "0.55040646", "0.5488848", "0.54877263", "0.5477679", "0.54692566", "0.5454033", "0.5454033", "0.5432809", "0.54321086", "0.54233617", "0.5411574", "0.5408658", "0.5403919", "0.54002714", "0.5397179", "0.53957474", "0.53916556", "0.5390913", "0.53906035", "0.53882813", "0.538551", "0.5377432", "0.5372083", "0.5371883", "0.53700507", "0.5369638", "0.5369499", "0.5364816", "0.5364378", "0.536328", "0.5353896", "0.5352961", "0.53354555", "0.53320307", "0.5329538", "0.53293073", "0.53248894", "0.5322293", "0.5311314", "0.5310805", "0.5306308", "0.5304708", "0.5299177", "0.5297452", "0.5295497" ]
0.0
-1
Constructor when the node doesnt have a parent
public Node(Board board){ children = new ArrayList<>(); counter = 0; this.board = board; parent = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node(){}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public TreeNode (TreeNode parent)\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"new TreeNode parent=\" + parent);\r\n }\r\n\r\n if (parent != null) {\r\n parent.addChild(this);\r\n }\r\n }", "Node<T> parent();", "public TreeNode(Object e) {\n element = e;\n //this.parent = null;\n left = null;\n right = null;\n }", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public TreeNode(){ this(null, null, 0);}", "public TNode(E item, TNode<E> parent) {\r\n element = item;\r\n this.parent = parent;\r\n }", "public Node(){\n\n\t\t}", "private Node() {\n\n }", "public Node() {\n\t}", "public Node()\n {\n this.name=\"/\";\n this.type=0;\n this.stage=0;\n children=new ArrayList<Node>();\n }", "public Node() {\n }", "public Parent() {\n super();\n }", "public FpTreeNode() {\n item_num = -1;\n parentNode = null;\n }", "public TreeNode() {\n // do nothing\n }", "public Node() {\n\n }", "private Node(int c) {\n this.childNo = c; // Construct a node with c children.\n }", "public Node(Node parent, Board board){\n children = new ArrayList<>();\n counter = 0;\n this.parent = parent;\n this.board = board;\n }", "public Node(){\n }", "public Node()\n\t{\n\t\toriginalValue = sumValue = 0;\n\t\tparent = -1;\n\t}", "public AVLTree() { \n super();\n // This acts as a sentinel root node\n // How to identify a sentinel node: A node with parent == null is SENTINEL NODE\n // The actual tree starts from one of the child of the sentinel node !.\n // CONVENTION: Assume right child of the sentinel node holds the actual root! and left child will always be null.\n \n }", "@Override\n public Node getParentNode() {\n return null;\n }", "public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }", "private Node( T data_ )\n {\n data = data_;\n parent = this;\n }", "public TreeNode(TreeNode parent, Object value)\r\n\t{\r\n\t\tm_parent = parent;\r\n\t\tm_value = value;\r\n\t}", "private Node createNullLeaf(Node parent) {\n Node leaf = new Node();\n leaf.color = Color.BLACK;\n leaf.isNull = true;\n leaf.parent = parent;\n leaf.count = Integer.MAX_VALUE;\n leaf.ID = Integer.MAX_VALUE;\n return leaf;\n }", "public void setParent(Node node) {\n parent = node;\n }", "private void setParent(Node<T> parent) {\n this.parent = parent;\n }", "public TreeNode() {\n }", "public Node() \r\n\t{\r\n\t\tincludedNode = new ArrayList<Node>();\r\n\t\tin = false; \r\n\t\tout = false;\r\n\t}", "public TreeNode()\r\n\t\t{\r\n\t\t\thead = null; //no data so set head to null\r\n\t\t}", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public void setParent(Node parent){\n this.parent = parent;\n }", "public Tree(){\n root = null;\n }", "public LeafNode(Item item, ParentNode parent) {\n super(item, parent);\n }", "public Tree() {\n // constructor. no nodes in tree yet\n root = null;\n }", "public ChildNode() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "protected TreeChild () {\n }", "@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public Node(E e, Node<E> above, Node<E> leftChild, Node<E> rightChild) {\n element = e;\n parent = above;\n left = leftChild;\n right = rightChild;\n }", "public Node( Item root ) {\r\n\t\t\tsuper( null, 0, INTERACTIVE, null );\r\n\t\t\tthis.root = root;\r\n\t\t\tthis.root.parent = this;\r\n\t\t\tthis.children = new Container( false );\r\n\t\t\tthis.children.parent = this;\r\n\t\t}", "public Tree() // constructor\n\t{ root = null; }", "public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }", "public ETreeNode(T userObject) {\n super(userObject);\n children = null; // not initialized (lazy)\n }", "@Override\n\tpublic void setParent(ASTNode node) {\n\t\tthis.parent = node;\n\t\t\n\t}", "Node(E value) {\n this.value = value;\n this.childen = new ArrayList<>();\n }", "public XNodeParent(TypeExpr type, XNode<V>[] sons) {\n\t\tsuper(type, sons);\n\t\tUtilities.control(sons.length > 0, \"Pb with this node that should be a parent\");\n\t}", "private Node() {\n // Start empty.\n element = null;\n }", "CoreParentNode coreGetParent();", "public Node(T value) {\n this.value = value;\n this.height = 0;\n this.leftChild = null;\n this.rightChild = null;\n this.parent = null;\n }", "public void setParent(IAVLNode node);", "public void setParent(IAVLNode node);", "public Node<E> createNode(E e, Position<E> parent){\n Node<E> p = (Node<E>) parent;\n return new Node<>(e, p);\n }", "Node(String e){\r\n this.element = e;\r\n }", "public void setParent(Node<T> parent) {\n this.parent = parent;\n }", "TreeNode(TreeNode<T> parent, T value) {\n this.parent = parent;\n this.value = value;\n }", "public void setParent(Node parent) {\n this.parent = parent;\n }", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "public FObj(FONode parent) {\n super(parent);\n \n // determine if isOutOfLineFODescendant should be set\n if (parent != null && parent instanceof FObj) {\n if (((FObj)parent).getIsOutOfLineFODescendant()) {\n isOutOfLineFODescendant = true;\n } else {\n int foID = getNameId();\n if (foID == FO_FLOAT || foID == FO_FOOTNOTE\n || foID == FO_FOOTNOTE_BODY) {\n isOutOfLineFODescendant = true;\n }\n }\n }\n }", "public TrieNode(){}", "private Node createNode(EventPair ep, Color c, Node parent) {\n Node node = new Node();\n node.ID = ep.ID;\n node.count = ep.count;\n node.color = c;\n node.left = createNullLeaf(node);\n node.right = createNullLeaf(node);\n node.parent = parent;\n return node;\n }", "@Test\n\tpublic void testNodeInit() {\n\t\tNode<Integer> node = new Node<Integer>(3);\n\t\tassertTrue(node.getData() == 3);\n\t\tassertTrue(node.getParent() == null);\n\t\tassertTrue(node.countChildren() == 0);\n\t}", "public NamedTree()\r\n {\r\n head = null;\r\n }", "public TrieNode() {\n \n }", "public TreeRootNode() {\n super(\"root\");\n }", "public OrderByNode() {\n super();\n }", "public void testSetParent_NullParent() {\n instance.setParent(null);\n assertNull(\"null expected.\", instance.getParent());\n }", "public NodeInfo() {\n }", "public InternalNode (int d, Node p0, String k1, Node p1, Node n, Node p){\n\n super (d, n, p);\n ptrs [0] = p0;\n keys [1] = k1;\n ptrs [1] = p1;\n lastindex = 1;\n\n if (p0 != null) p0.setParent (new Reference (this, 0, false));\n if (p1 != null) p1.setParent (new Reference (this, 1, false));\n }", "public HtmlTree()\n {\n // do nothing\n }", "public Node(){\n this(9);\n }", "void setParent(TestResultTable.TreeNode p) {\n parent = p;\n }", "public Leaf(){}", "public Node()\n\t{\n\t\ttitle = \" \";\n\t\tavail = 0;\n\t\trented = 0;\n\t\tleft = null;\n\t\tright = null;\n\t\t\n\t}", "@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}", "TreeNode(){\n this.elem = null;\n this.left = null;\n this.right = null;\n }", "public Tree(T value, Tree<T> parent)\n {\n this.value = value;\n this.parent = parent;\n // initialize the empty arraylist of children\n children = new ArrayList<Tree<T>>();\n }", "public Entry() \n { \n \tleft = right = parent = -1;\n }", "public Node()\r\n\t{\r\n\t\tnext = null;\r\n\t\tinfo = 0;\r\n\t}", "protected AST_Node() {\r\n\t}", "public CassandraNode() {\r\n\t\tthis(null, 0);\r\n\t}", "public TreeNode(Object value)\r\n\t{\r\n\t\tthis(null, value);\r\n\t}", "@DerivedProperty\n\tCtElement getParent() throws ParentNotInitializedException;", "public TreeNode(Object initValue)\r\n {\r\n this(initValue, null, null);\r\n }", "void setParent(TreeNode<T> parent);", "Event_tree()//constructor\r\n\t{\r\n\t\troot_e = null ;\r\n\t}", "public Tree()\n\t{\n\t\tsuper(\"Tree\", \"tree\", 0);\n\t}", "public void setParent(IAVLNode node) {\n\t\t\tthis.parent = node; // to be replaced by student code\n\t\t}", "@Override\n public boolean isMissingNode() { return false; }", "public Node getParent(){\n return parent;\n }", "public EventTree()\n\t{\n\t\tthis.root = null;\n\t}", "public ContainerElement(Document document, ContainerElement parent, String nsUri, String localName) {\n/* 80 */ this.parent = parent;\n/* 81 */ this.document = document;\n/* 82 */ this.nsUri = nsUri;\n/* 83 */ this.startTag = new StartTag(this, nsUri, localName);\n/* 84 */ this.tail = this.startTag;\n/* */ \n/* 86 */ if (isRoot())\n/* 87 */ document.setFirstContent(this.startTag); \n/* */ }", "protected TreeNode(NodeLayout node, TreeLayoutObserver owner) {\n\t\t\tthis.node = node;\n\t\t\tthis.owner = owner;\n\t\t}", "private XrNode(String nodeName, ElPropertyValue prop, BeanDescriptor<?> parentDesc, StringFormatter formatter,\r\n StringParser parser, XoiNode[] childNodes, XoiAttribute[] attributes, boolean assocBeanValue) {\r\n\r\n super(nodeName, prop, parentDesc, formatter, parser);\r\n \r\n this.assocBeanValue = assocBeanValue;\r\n this.attributes = attributes;\r\n this.hasAttributes = (attributes != null && attributes.length > 0);\r\n\r\n this.childNodes = childNodes;\r\n this.hasChildNodes = (childNodes!= null && childNodes.length > 0);\r\n\r\n boolean selfClosing = false;\r\n \r\n this.beginTagEnd = selfClosing ? \"/>\" : \">\";\r\n this.beginTag = \"<\" + nodeName;\r\n this.endTag = selfClosing ? \"\" : \"</\" + nodeName + \">\";\r\n }" ]
[ "0.71468264", "0.71002364", "0.71002364", "0.71002364", "0.71002364", "0.70505214", "0.6924722", "0.6894801", "0.68909824", "0.68909824", "0.68877816", "0.6881742", "0.6829067", "0.6822268", "0.68055505", "0.6795519", "0.67588663", "0.67574286", "0.6746651", "0.6734456", "0.6731828", "0.66637975", "0.6634645", "0.6632245", "0.6607962", "0.66058314", "0.6599576", "0.6557633", "0.6542619", "0.65384257", "0.6530469", "0.6509805", "0.65069824", "0.6477443", "0.6466305", "0.6459064", "0.6423669", "0.6423669", "0.64000005", "0.63893515", "0.6358009", "0.635626", "0.6355384", "0.63524073", "0.6346872", "0.6345915", "0.6337922", "0.6328303", "0.63169575", "0.63088536", "0.6303135", "0.62861544", "0.6280808", "0.62691903", "0.62331945", "0.62297386", "0.62117136", "0.62117136", "0.62106955", "0.6206877", "0.6205706", "0.62043965", "0.6204218", "0.619953", "0.6193577", "0.6179637", "0.6165076", "0.61537147", "0.6150289", "0.61371607", "0.6136911", "0.61294717", "0.61187243", "0.6117546", "0.6115911", "0.6100197", "0.6091826", "0.6089223", "0.6083091", "0.60752916", "0.60688317", "0.6066632", "0.6062546", "0.6050214", "0.6039911", "0.6038501", "0.6012526", "0.60119396", "0.60108507", "0.60055757", "0.60000885", "0.59912175", "0.59900403", "0.598778", "0.59868807", "0.5981036", "0.5977054", "0.59767437", "0.5943273", "0.59410846" ]
0.6448111
36
Constructor when the node has a parent
public Node(Node parent, Board board){ children = new ArrayList<>(); counter = 0; this.parent = parent; this.board = board; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode (TreeNode parent)\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"new TreeNode parent=\" + parent);\r\n }\r\n\r\n if (parent != null) {\r\n parent.addChild(this);\r\n }\r\n }", "public TNode(E item, TNode<E> parent) {\r\n element = item;\r\n this.parent = parent;\r\n }", "public Parent() {\n super();\n }", "Node<T> parent();", "private void setParent(Node<T> parent) {\n this.parent = parent;\n }", "public void setParent(Node node) {\n parent = node;\n }", "public void setParent(Node parent){\n this.parent = parent;\n }", "public TreeNode(TreeNode parent, Object value)\r\n\t{\r\n\t\tm_parent = parent;\r\n\t\tm_value = value;\r\n\t}", "public TreeNode(Object e) {\n element = e;\n //this.parent = null;\n left = null;\n right = null;\n }", "public Node(){}", "@Override\n\tpublic void setParent(ASTNode node) {\n\t\tthis.parent = node;\n\t\t\n\t}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public void setParent(Node parent) {\n this.parent = parent;\n }", "public LeafNode(Item item, ParentNode parent) {\n super(item, parent);\n }", "public Node(){\n\n\t\t}", "public void setParent(Node<T> parent) {\n this.parent = parent;\n }", "private Node(int c) {\n this.childNo = c; // Construct a node with c children.\n }", "public Node()\n {\n this.name=\"/\";\n this.type=0;\n this.stage=0;\n children=new ArrayList<Node>();\n }", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "private Node( T data_ )\n {\n data = data_;\n parent = this;\n }", "CoreParentNode coreGetParent();", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "public Node(E e, Node<E> above, Node<E> leftChild, Node<E> rightChild) {\n element = e;\n parent = above;\n left = leftChild;\n right = rightChild;\n }", "public FpTreeNode() {\n item_num = -1;\n parentNode = null;\n }", "void setParent(TestResultTable.TreeNode p) {\n parent = p;\n }", "public TreeNode(){ this(null, null, 0);}", "private Node() {\n\n }", "public void setParent(IAVLNode node);", "public void setParent(IAVLNode node);", "public Node() {\n\t}", "TreeNode(TreeNode<T> parent, T value) {\n this.parent = parent;\n this.value = value;\n }", "@Override\n public Node getParentNode() {\n return null;\n }", "public XNodeParent(TypeExpr type, XNode<V>[] sons) {\n\t\tsuper(type, sons);\n\t\tUtilities.control(sons.length > 0, \"Pb with this node that should be a parent\");\n\t}", "public Node()\n\t{\n\t\toriginalValue = sumValue = 0;\n\t\tparent = -1;\n\t}", "public Node() {\n }", "public Node() {\n\n }", "public Node<E> createNode(E e, Position<E> parent){\n Node<E> p = (Node<E>) parent;\n return new Node<>(e, p);\n }", "public Node(Board board){\n children = new ArrayList<>();\n counter = 0;\n this.board = board;\n parent = null;\n }", "Parent() {\n\t System.out.println(\"i am from Parent Class\");\n\t }", "public Tree(T value, Tree<T> parent)\n {\n this.value = value;\n this.parent = parent;\n // initialize the empty arraylist of children\n children = new ArrayList<Tree<T>>();\n }", "public Node() \r\n\t{\r\n\t\tincludedNode = new ArrayList<Node>();\r\n\t\tin = false; \r\n\t\tout = false;\r\n\t}", "void setParent(TreeNode<T> parent);", "public void setParent(IAVLNode node) {\n\t\t\tthis.parent = node; // to be replaced by student code\n\t\t}", "public Node(){\n }", "public ChildNode() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public Node( Item root ) {\r\n\t\t\tsuper( null, 0, INTERACTIVE, null );\r\n\t\t\tthis.root = root;\r\n\t\t\tthis.root.parent = this;\r\n\t\t\tthis.children = new Container( false );\r\n\t\t\tthis.children.parent = this;\r\n\t\t}", "public void setParent(RBNode<T> node, RBNode<T> parent) {\n if(node != null)\r\n node.parent = parent;\r\n }", "public FObj(FONode parent) {\n super(parent);\n \n // determine if isOutOfLineFODescendant should be set\n if (parent != null && parent instanceof FObj) {\n if (((FObj)parent).getIsOutOfLineFODescendant()) {\n isOutOfLineFODescendant = true;\n } else {\n int foID = getNameId();\n if (foID == FO_FLOAT || foID == FO_FOOTNOTE\n || foID == FO_FOOTNOTE_BODY) {\n isOutOfLineFODescendant = true;\n }\n }\n }\n }", "public Node getParent(){\n return parent;\n }", "public void setParent(ASTNeoNode parent) {\r\n \t\tassertTrue(parent != null);\r\n \t\tassertTrue(this.parent == null); // Can only set parent once\r\n \t\tthis.parent = parent;\r\n \t}", "@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public TreeNode() {\n // do nothing\n }", "public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }", "public void setParent(FileNode parent) {\r\n this.parent = parent;\r\n }", "public void setParent(final @Nullable Node<@Nullable T> parent) {\n this.parent = parent;\n }", "protected TreeChild () {\n }", "@Override\n\tpublic void setParent(TreeNode parent) {\n\t\tthis.parent = parent ;\n\t}", "@Override\n\tpublic void setParent(TreeNode parent) {\n\t\tthis.parent = parent ;\n\t}", "@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}", "public Node(String name, Node parent, boolean isSource)\n\t{\n\t\tthis.name = name;\n\t\tthis.isSource = isSource;\n\t\tif (name.endsWith(\"}\")) {\n\t\t\tthis.name = name.substring(0, name.lastIndexOf(\"{\"));\n\t\t\tString [] split = name.substring(name.lastIndexOf(\"{\") + 1, name.length() - 1).split(\"\\\\-\");\n\t\t\tsourceStart = Integer.parseInt(split[0]);\n\t\t\tsourceEnd = Integer.parseInt(split[1]);\n\t\t}\n\t\telse {\n\t\t\tsourceStart = parent.sourceStart();\n\t\t\tsourceEnd = parent.sourceEnd();\n\t\t}\n\t}", "Parent()\n\t{\n\t\tSystem.out.println(\"This is parent's default constructor\");\n\t}", "public AVLTree() { \n super();\n // This acts as a sentinel root node\n // How to identify a sentinel node: A node with parent == null is SENTINEL NODE\n // The actual tree starts from one of the child of the sentinel node !.\n // CONVENTION: Assume right child of the sentinel node holds the actual root! and left child will always be null.\n \n }", "Node(E value) {\n this.value = value;\n this.childen = new ArrayList<>();\n }", "public ContainerElement(Document document, ContainerElement parent, String nsUri, String localName) {\n/* 80 */ this.parent = parent;\n/* 81 */ this.document = document;\n/* 82 */ this.nsUri = nsUri;\n/* 83 */ this.startTag = new StartTag(this, nsUri, localName);\n/* 84 */ this.tail = this.startTag;\n/* */ \n/* 86 */ if (isRoot())\n/* 87 */ document.setFirstContent(this.startTag); \n/* */ }", "public void testSetParent_NullParent() {\n instance.setParent(null);\n assertNull(\"null expected.\", instance.getParent());\n }", "@Override\n\tpublic void setParent(WhereNode parent) {\n\t\tthis.parent = parent;\n\t}", "public void setParent(String parent) {\n _parent = parent;\n }", "@DerivedProperty\n\tCtElement getParent() throws ParentNotInitializedException;", "public TreeNode() {\n }", "public void setParent(String parent) {\r\n this.parent = parent;\r\n }", "private Node createNullLeaf(Node parent) {\n Node leaf = new Node();\n leaf.color = Color.BLACK;\n leaf.isNull = true;\n leaf.parent = parent;\n leaf.count = Integer.MAX_VALUE;\n leaf.ID = Integer.MAX_VALUE;\n return leaf;\n }", "public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }", "private Node createNode(EventPair ep, Color c, Node parent) {\n Node node = new Node();\n node.ID = ep.ID;\n node.count = ep.count;\n node.color = c;\n node.left = createNullLeaf(node);\n node.right = createNullLeaf(node);\n node.parent = parent;\n return node;\n }", "public Tree(){\n root = null;\n }", "public TreeNode getParent() { return par; }", "public ETreeNode(T userObject) {\n super(userObject);\n children = null; // not initialized (lazy)\n }", "public void setParent(Concept _parent) { parent = _parent; }", "public void setParent(String parent) {\n this.parent = parent;\n }", "public InternalNode (int d, Node p0, String k1, Node p1, Node n, Node p){\n\n super (d, n, p);\n ptrs [0] = p0;\n keys [1] = k1;\n ptrs [1] = p1;\n lastindex = 1;\n\n if (p0 != null) p0.setParent (new Reference (this, 0, false));\n if (p1 != null) p1.setParent (new Reference (this, 1, false));\n }", "@Test\r\n public void testSetParent_getParent() {\r\n System.out.println(\"setParent\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n assertEquals(configNode, childNode1.getParent());\r\n }", "public Node(T value) {\n this.value = value;\n this.height = 0;\n this.leftChild = null;\n this.rightChild = null;\n this.parent = null;\n }", "public void setParent(AsNode parent) {\n\t\tthis.state.setG(parent.getState().getG() + parent.childCost.get(this));\n\t\tthis.parent = parent;\n\t}", "public ParentNode(GroupItem group, ParentNode parent) {\n super(group, parent);\n // TODO: this really should be a separate pass to handle fixed class names\n String prefix = NameUtils.toNameWord(group.getEffectiveClassName());\n m_prefix = prefix;\n int select = NestingCustomBase.SELECTION_UNCHECKED;\n boolean exposed = false;\n ComponentExtension extension = group.getComponentExtension();\n switch (group.getSchemaComponent().type()) {\n case SchemaBase.CHOICE_TYPE:\n select = extension.getChoiceType();\n exposed = extension.isChoiceExposed();\n break;\n case SchemaBase.UNION_TYPE:\n select = extension.getUnionType();\n exposed = extension.isUnionExposed();\n break;\n }\n if (select != NestingCustomBase.SELECTION_UNCHECKED) {\n \n // no selector needed if handled by parent, or if no choices\n if ((parent != null && parent.getSchemaComponent() == group.getSchemaComponent()) ||\n group.getChildCount() <= 1) {\n select = NestingCustomBase.SELECTION_UNCHECKED;\n exposed = false;\n }\n }\n m_selectorType = select;\n m_selectorExposed = exposed;\n m_values = new ArrayList();\n }", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public void setParent(Node newParent) {\r\n\t\t\tparent = newParent;\r\n\t\t}", "public MenuTree(IController value, MenuTree parent){\n this(value);\n this.parentMenuTree = parent;\n }", "public Tree() {\n // constructor. no nodes in tree yet\n root = null;\n }", "public TempTableHeaderParent (ResidentNode parent , Entity value) {\r\n\t\t\tthis(parent, value, null);\r\n\t\t}", "public TreeNode()\r\n\t\t{\r\n\t\t\thead = null; //no data so set head to null\r\n\t\t}", "public ParseTreeNode getParent() {\r\n return _parent;\r\n }", "public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }", "protected void setParent(CodeItem codeItem) {\n this.parent = codeItem;\n }", "Node(String e){\r\n this.element = e;\r\n }", "TMNodeModelComposite getParent() {\n return parent;\n }", "public Tree() // constructor\n\t{ root = null; }" ]
[ "0.74408644", "0.72260934", "0.721449", "0.71572727", "0.6989892", "0.6939273", "0.69332045", "0.688303", "0.68819344", "0.6849867", "0.6767087", "0.67644346", "0.67644346", "0.67644346", "0.67644346", "0.6747589", "0.67390645", "0.67259735", "0.67252207", "0.66979784", "0.66803527", "0.6630561", "0.6630561", "0.6626", "0.6592706", "0.65926874", "0.6592397", "0.658312", "0.65817475", "0.6579057", "0.65730095", "0.6567932", "0.6567932", "0.6557318", "0.6546794", "0.6498056", "0.64951515", "0.6484088", "0.6472479", "0.6457661", "0.6452847", "0.64520526", "0.64386344", "0.64362836", "0.6417854", "0.6406808", "0.6404329", "0.6404273", "0.63993275", "0.6392709", "0.6383856", "0.6377228", "0.6359533", "0.6358282", "0.63533247", "0.6348434", "0.63448834", "0.63413125", "0.63394094", "0.6331367", "0.63305956", "0.63305956", "0.63289946", "0.63201475", "0.631311", "0.6300071", "0.62980515", "0.62971437", "0.62821054", "0.6281565", "0.6262287", "0.6247727", "0.6247292", "0.6237637", "0.62358546", "0.6234846", "0.62205577", "0.62168735", "0.62157935", "0.6210188", "0.62011945", "0.6196302", "0.61948836", "0.61770004", "0.6160354", "0.61573416", "0.61571276", "0.6156881", "0.6156881", "0.61541665", "0.6152027", "0.6136275", "0.6134077", "0.61204374", "0.61174375", "0.6107637", "0.61072075", "0.61055154", "0.6104159", "0.6101959" ]
0.69070995
7
Adding a child to the node
public void addChild(Node node){ children.add(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addChild(Node child){\n children.add(child);\n }", "public abstract void addChild(Node node);", "@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}", "public void addChild(Node childnode)\n {\n children.add(childnode);\n }", "public void addChild( ChildType child );", "public void addChild(Node child)\n\t{\n\t\tchild.parent = this;\n\t\t//if (!children.contains(child))\n\t\t//{\t\n\t\tchildren.add(child);\n\t\t//children.get(children.indexOf(child)-1).setBro(child);\n\t\t//}\n\t}", "void appendChild(Object child);", "@Override\n public void childAdded(Node child) {\n }", "public void addChild(WSLNode node) {children.addElement(node);}", "public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }", "TreeNode addChild(TreeNode node);", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void add(QueryNode child);", "public void add(Node<E> child) {\n this.children.add(child);\n }", "public void addChildNode (Node child) {\n\t\tObjects.requireNonNull(child);\n\t\t\n\t\tif(children == null) {\n\t\t\tchildren = new ArrayIndexedCollection();\t\n\t\t}\n\t\t\n\t\tchildren.add(child);\n\t}", "public void addChild(DecTreeNode child) {\r\n if (children != null)\r\n children.add(child);\r\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addRootNode(Node child){\r\n this.child = child;\r\n }", "public void addChild(FileNode child) {\r\n child.setParent(this);\r\n children.add(child);\r\n childNum++;\r\n }", "protected void addChild(PafDimMember childNode) throws PafException {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// Create a new ArrayList of child nodes, if this is the first child\r\n\t\t\tif (children == null) \r\n\t\t\t\tchildren = new ArrayList<PafDimMember>();\r\n\t\t\t\r\n\t\t\t// Set parent of child node to current PafBaseMember node\r\n\t\t\tchildNode.parent = this;\r\n\r\n\t\t\t// Add child node to PafBaseTree\r\n\t\t\tchildren.add(childNode);\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// throw Paf Exception\r\n\t\t\tString errMsg = \"Java Exception: \" + ex.getMessage();\r\n\t\t\tlogger.error(errMsg);\r\n\t\t\tPafException pfe = new PafException(errMsg, PafErrSeverity.Error, ex);\t\r\n\t\t\tthrow pfe;\r\n\t\t}\r\n\t}", "@DISPID(1)\n\t// = 0x1. The runtime will prefer the VTID if present\n\t@VTID(7)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject addChild(\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object node);", "public void addChild(DecTreeNode child) {\n\t\tif (children != null) {\n\t\t\tchildren.add(child);\n\t\t}\n\t}", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "public void addChild(Character ch){\n children.put(ch,new Node(ch));\n }", "public void addChild(T child) {\n this.children.add(child);\n child.setParent(this);\n this.invalidate();\n }", "public void addChild(Node node) {\n\t\tthis.children.add(node);\n\t}", "public void addChild( StringNode child )\r\n\t{\r\n\t\tthis.children.add( child );\r\n\t}", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "public void addChild(String branch, CommitNode child) {\r\n\t\tchildren.put(branch, child);\r\n\t}", "public void addChild(final IBiNode c) {\n // 1st child\n if (this.child == null) {\n this.setChild(c);\n } else {\n // 2nd - nth child\n this.child.addSibling(c);\n }\n }", "public void addChild(Node newChild) {\r\n\t\t\tchildren.reset();\r\n\t\t\t\r\n\t\t\tnewChild.setParent(this);\r\n\r\n\t\t\tif (children.size() == 0)\r\n\t\t\t\tchildren.add(newChild);\r\n\t\t\telse if (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\tchildren.insert(newChild);\r\n\t\t\telse {\r\n\t\t\t\twhile (children.hasNext()) {\r\n\t\t\t\t\tif (children.next().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\tif (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\t\tchildren.insert(newChild);\r\n\t\t\t\telse\r\n\t\t\t\t\tchildren.add(newChild);\r\n\t\t\t}\r\n\t\t}", "public void addChild(Node child, int weight) {\n\t\tthis.children.put(child, weight);\n\t}", "public void addChild(Element child) {\n super.addChild(child);\n if (child instanceof TerminalDevice) terminalDevice = (TerminalDevice)child;\n }", "@Override\n\tpublic void insert(Node node) {\n\t\tchildren.add(node);\n\t}", "public void addChild(AsNode child, double cost) {\n\t\tif(!children.contains(child)) {\n\t\t\tchildren.add(child);\n\t\t\tchildCost.put(child, cost);\n\t\t}\n\t}", "public void addChild(int index, Node node) {\n\t\tthis.children.add(index, node);\n\t}", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "protected void addChild(Layer child) {\n\t\tchildren.add(child);\n\t}", "public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}", "public void addChild(TreeNode child) {\n if (this.children!= null && !this.children.contains(child) && child != null)\n this.children.add(child);\n }", "public void addChildAt(int index, FileNode child) {\r\n child.setParent(this);\r\n this.children.add(index, child);\r\n childNum++;\r\n }", "abstract void addChild(SpanBranch span, int position);", "public void addChild(BTreeNode<E> newChild) {\n\t\tint index = 0;\n\t\tfor (BTreeNode<E> node : children) {\n\t\t\tif (node == null || cmp.compare(newChild.getData(0), node.data.get(0)) > 0) {\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tchildren.add(index, newChild);\n\t\tnewChild.parent = this;\n\t}", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "public void add(TreeNode child){\r\n\t\t\tchildren.add(child);\r\n\t\t\t//child.setParent(this);\r\n\t\t}", "public void addChild(String value){\n\t\tInstructionNode child = new InstructionNode();\n\t\tchild.setMyRunValue(value);\n\t\tArrayList<InstructionNode> newChildren = new ArrayList<InstructionNode> ();\n\t\tnewChildren.add(child);\n\t\tgetHead().setMyChildren(newChildren);\n\t}", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public void addChild(Node n) {\n\t\taddChild(n, (rand.nextDouble()*0.02 - 0.01));\n\t}", "public static void add(String parent, String child, node tree){\n\t\ttree = names.get(parent);\r\n\t\tnode tmp = new node(child);\r\n\t\tnames.put(child, tmp);\t\r\n\t\ttree.children.add(tmp);\r\n\t}", "public void insertNodeInto(MutableTreeNode child, MutableTreeNode par, int i) {\n insertNodeInto(child, par);\n }", "private Node addChild(Node parent, NodeTypes type, String name, String indexName) {\r\n Node child = null;\r\n child = neo.createNode();\r\n child.setProperty(INeoConstants.PROPERTY_TYPE_NAME, type.getId());\r\n // TODO refactor 2 property with same name!\r\n child.setProperty(INeoConstants.PROPERTY_NAME_NAME, name);\r\n child.setProperty(INeoConstants.PROPERTY_SECTOR_NAME, indexName);\r\n luceneInd.index(child, NeoUtils.getLuceneIndexKeyByProperty(getNetworkNode(), INeoConstants.PROPERTY_NAME_NAME, type),\r\n indexName);\r\n if (parent != null) {\r\n parent.createRelationshipTo(child, NetworkRelationshipTypes.CHILD);\r\n debug(\"Added '\" + name + \"' as child of '\" + parent.getProperty(INeoConstants.PROPERTY_NAME_NAME));\r\n }\r\n return child;\r\n }", "public GeoMindMapNode addChildNode(EuclidianBoundingBoxHandler addHandler) {\n\t\tNodeAlignment newAlignment = toAlignment(addHandler);\n\n\t\tGPoint2D newLocation = computeNewLocation(newAlignment);\n\t\tGeoMindMapNode child = new GeoMindMapNode(node.getConstruction(), newLocation);\n\t\tchild.setContentHeight(GeoMindMapNode.CHILD_HEIGHT);\n\t\tchild.setSize(GeoMindMapNode.MIN_WIDTH, GeoMindMapNode.CHILD_HEIGHT);\n\t\tchild.setParent(node, newAlignment);\n\t\tchild.setVerticalAlignment(VerticalAlignment.MIDDLE);\n\t\tchild.setBackgroundColor(child.getKernel().getApplication().isMebis()\n\t\t\t\t? GColor.MOW_MIND_MAP_CHILD_BG_COLOR : GColor.MIND_MAP_CHILD_BG_COLOR);\n\t\tchild.setBorderColor(child.getKernel().getApplication().isMebis()\n\t\t\t\t? GColor.MOW_MIND_MAP_CHILD_BORDER_COLOR : GColor.MIND_MAP_CHILD_BORDER_COLOR);\n\t\tchild.setLabel(null);\n\t\treturn child;\n\t}", "private void addChild(final INode node, final int insertionPoint) {\r\n if (children == null) {\r\n children = new ArrayList<INode>(DEFAULT_FILES_PER_DIRECTORY);\r\n }\r\n node.setParent(this);\r\n children.add(-insertionPoint - 1, node);\r\n\r\n if (node.getGroupName() == null) {\r\n node.setGroup(getGroupName());\r\n }\r\n }", "void addChild(InetSocketAddress address) throws IOException, JAXBException {\n if (!isRoot && parent.getAddress().equals(address)) {\n throw new IllegalArgumentException(\"Cannot assign parent to be a child\");\n }\n if (!children.containsKey(address)) {\n children.put(address, new Neighbor(socket, address, eventDispatcher));\n }\n }", "public void childAdder(Character ch)\n {\n node.put(ch,new Node());\n }", "void insertChild(K key, Node child) {\r\n\t\t\tint loc = Collections.binarySearch(keys, key);\r\n\t\t\tint childIndex = loc >= 0 ? loc + 1 : -loc - 1;\r\n\t\t\tif (loc >= 0) {\r\n\t\t\t\tchildren.set(childIndex, child);\r\n\t\t\t} else {\r\n\t\t\t\tkeys.add(childIndex, key);\r\n\t\t\t\tchildren.add(childIndex + 1, child);\r\n\t\t\t}\r\n\t\t}", "public void setChild(int position, Node n) {\r\n System.out.println(\"Attempt to add child to Variable\");\r\n }", "public void addChild(TreeNode toAdd) {\n\t\t\tthis.children.add(toAdd);\n\t\t}", "public Node appendNode(Node node);", "public void addChild(char label, TrieNode<F> node) {\r\n trieNodeMap.put(label, node);\r\n numChildren++;\r\n }", "private void addNode(Node<E> node, E value) {\n if (node.children == null) {\n node.children = new ArrayList<>();\n }\n node.children.add(new Node<>(value));\n }", "@Override\r\n public void addChild (TreeNode node)\r\n {\r\n super.addChild(node);\r\n\r\n // Side effect for note, since the geometric parameters of the chord\r\n // are modified\r\n if (node instanceof Note) {\r\n reset();\r\n }\r\n }", "public void addChild(final ParseTreeNode child) {\r\n child.setParent(this);\r\n if (_children == null) { _children = new ArrayList<ParseTreeNode>(); }\r\n _children.add(child);\r\n }", "protected void addChild(TreeNode child) {\n\t\t\tchildren.add(child);\n\t\t\tchild.parent = this;\n\t\t}", "private TrieNode addChild(char c) {\n TrieNode newChild = new TrieNode(c);\n children.add(newChild);\n return newChild;\n }", "public void addChild(final int childIndex) {\n if (!this.children.contains(childIndex)) {\n this.children.add(childIndex);\n }\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addNode(Node node){subNodes.add(node);}", "@Override\n public boolean add(T parent, T child) {\n boolean result = false;\n if (this.root == null) {\n this.root = new Node<>(parent);\n this.root.add(new Node<>(child));\n result = true;\n this.modCount++;\n } else if (findBy(parent).isPresent()) {\n findBy(parent).get().add(new Node<>(child));\n result = true;\n this.modCount++;\n }\n return result;\n }", "public void add( Bacteria child) {\n\t\tinds.add(child);\n\t\tpopSize++;\n\t}", "public Node getChild();", "public DefaultMutableTreeNode addObject(GUIMain guiMn, Object child) {\n DefaultMutableTreeNode parentNode = null;\n TreePath parentPath = guiMn.myTree.getSelectionPath();\n\n if (parentPath == null) {\n parentNode = guiMn.simMain.rootNode;\n } else {\n parentNode = (DefaultMutableTreeNode) (parentPath.getLastPathComponent());\n }\n\n return addObject(guiMn, parentNode, child, true);\n }", "public Tree<T> addChild(T childVal)\n {\n Tree<T> child = new Tree<T>(childVal, this);\n this.children.add(child);\n return child;\n }", "public void\n addChild\n (\n int col, \n BaseGenerator gen\n ) \n throws ParseException\n {\n validateChildColumn(col); \n pChildColumn = col;\n\n if(gen == null) \n throw new ParseException(\"The generator cannot be (null)!\");\n\n Comparable key = gen.getCellKey();\n if(childExists(key))\n throw new ParseException\n (\"Attempting to overwrite an existing child generator for the cell value \" + \n \"(\" + key + \")!\"); \n\n pChildren.put(key, gen); \n }", "private TypeNode addNode (String parentName, TypeDescription childTypeMetadata) \n {\t\n // Find \"parent\" node\n if (parentName != null && parentName.trim().length() == 0) {\n parentName = null;\n }\n TypeNode nodeParent = null;\n if (parentName != null) {\n nodeParent = (TypeNode) _nodesHashtable.get(parentName);\n }\n \n // Find \"child\" node\n String childName = childTypeMetadata.getName();\n \tTypeNode node = (TypeNode) _nodesHashtable.get(childName);\n\n \t// System.err.println(\" parentName: \" + parentName + \" ; childName: \" + childName);\n \n // NEW type definition ?\n \tif ( node == null ) {\t\t\n \t\t// Not found \"child\". NEW type definition.\n \t\tif ( nodeParent == null ) {\n // Parent is NEW\n // TOP has null parent\n if (parentName != null) {\n TypeDescription typeParent = getBuiltInType(parentName);\n if (typeParent != null) {\n // Built-in Type as Parent\n nodeParent = addNode (typeParent.getSupertypeName(), typeParent);\n // Trace.trace(\" -- addNode: \" + childName + \" has New Built-in Parent: \" + parentName);\n } else { \n \t\t\t// NEW parent also.\n // \"parentName\" is FORWARD Reference Node\n \t\t\tnodeParent = insertForwardedReferenceNode(_rootSuper, parentName); \n // Trace.trace(\" -- addNode: \" + childName + \" has New FORWARD Parent: \" + parentName);\n }\n }\n \t\t}\n \t\t// System.out.println(\" -- addNode: New child\");\t\t\n \t\treturn insertNewNode (nodeParent, childTypeMetadata);\n \t}\n \t\n //\n // childTypeMetadata is ALREADY in Hierarchy\n //\n \n \t// This node can be a Forwarded Reference type\n \tif (node.getObject() == null) {\n \t\t// Set Object for type definition\n \t\t// Reset label.\n \t\t// Trace.trace(\"Update and define previously forwarded reference type: \"\n \t\t//\t\t+ node.getLabel() + \" -> \" + parentName);\n // Need to \"remove\" and \"put\" back for TreeMap (no modification is allowed ?)\n node.getParent().removeChild(node);\n \t\tnode.setObject(childTypeMetadata);\n node.setLabel(childTypeMetadata.getName());\n node.getParent().addChild(node);\n \n // Remove from undefined types\n // Trace.trace(\"Remove forward ref: \" + childTypeMetadata.getName());\n _undefinedTypesHashtable.remove(childTypeMetadata.getName());\n \t}\n \t\n \tif (parentName == null) {\n \t\t// NO Parent\n if (childTypeMetadata.getName().compareTo(UIMA_CAS_TOP) != 0) {\n Trace.err(\"??? Possible BUG ? parentName==null for type: \"\n + childTypeMetadata.getName());\n }\n \t\treturn node;\n \t}\n \t\n \t// Found \"child\".\n \t// This node can be the \"parent\" of some nodes \n \t// and it own parent is \"root\" OR node of \"parentName\".\n \tif ( node.getParent() == _rootSuper ) {\n \t\t// Current parent is SUPER which may not be the right parent\n \t\t// if \"node\" has a previously forward referenced parent of some type.\n \t\t// Find the real \"parent\".\n \t\tif ( nodeParent != null ) {\n \t\t // Parent node exists. \n \t\t\tif ( nodeParent != _rootSuper ) {\n \t\t\t // Move \"node\" from \"root\" and put it as child of \"nodeParent\"\n \t\t\t\t// Also, remove \"node\" from \"root\"\n \t\t\t // _rootSuper.getChildren().remove(node.getLabel());\n // System.out.println(\"B remove\");\n \t\t\t if (_rootSuper.removeChild(node) == null) {\n System.out.println(\"??? [.addNode] Possible BUG 1 ? cannot remove \"\n + node.getLabel() + \" from SUPER\");\n System.out.println(\" node: \" + ((Object)node).toString()); \n Object[] objects = _rootSuper.getChildrenArray();\n for (int i=0; i<objects.length; ++i) {\n System.out.println(\" \" + objects[i].toString()); \n } \n }\n // System.out.println(\"E remove\");\n \t\t\t} else {\n \t\t\t\t// \"nodeParent\" is \"SUPER\".\n \t\t\t\treturn node;\n \t\t\t}\n \t\t} else {\n \t\t\t// NEW parent\n\t\t\t\t// Remove \"node\" from \"SUPER\" and insert it as child of \"nodeParent\"\n\t\t\t // _rootSuper.getChildren().remove(node);\n if (_rootSuper.removeChild(node) == null) {\n System.err.println(\"??? [.addNode] Possible BUG 2 ? cannot remove \"\n + node.getLabel() + \" from SUPER\");\n }\t\t\t \n TypeDescription typeParent = getBuiltInType(parentName);\n if (typeParent != null) {\n // Built-in Type as Parent\n nodeParent = addNode (typeParent.getSupertypeName(), typeParent);\n // Trace.trace(\" -- addNode 2: \" + childName + \" has New Built-in Parent: \" + parentName);\n } else { \n \t\t\t // It is a NEW parent and this parent is forwarded reference (not defined yet). \n \t\t\t // Insert this parent as child of \"SUPER\"\n \t\t\t\tnodeParent = insertForwardedReferenceNode(_rootSuper, parentName);\n // Trace.trace(\" -- addNode 2: \" + childName + \" has New FORWARD Parent: \" + parentName);\n }\n \t\t}\t\t\t\t\n \t\tTypeNode tempNode;\n \t\tif ( (tempNode = nodeParent.insertChild(node)) != null && tempNode != node) {\n \t\t\t// Duplicate Label\n Trace.err(\"Duplicate Label 1\");\n// \t\t\tnode.setShowFullName(true);\n \t\t\tif (node.getObject() != null) {\n \t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n \t\t\t}\t\t\t\t\n \t\t\tnodeParent.insertChild(node);\n \t\t}\n \t} else if ( node.getParent() != null ) {\n \t //\n \t //\tERROR !!!\n \t\t// \"duplicate definition\" or \"have different parents\"\n \t //\n \t \n \t // \"nodeParent\" should be non-null and be the same as \"node.getParent\"\n \t // In this case, it is duplicate definition\n \t if ( nodeParent != null ) {\n \t if (nodeParent == node.getParent()) {\n \t\t\t\t// Error in descriptor\n \t\t // Duplicate definition\n \t\t\t\t// System.err.println(\"[TypeSystemHierarchy - addNode] Duplicate type: child=\" + childName + \" ; parent =\" + parentName);\n \t } else {\n \t // Error: \"node\" has different parents\n \t // Both parents are registered\n \t\t\t\tSystem.err.println(\"[TypeSystemHierarchy - addNode] Different registered parents: child=\" + childName \n \t\t\t\t + \" ; old node.getParent() =\" + node.getParent().getLabel()\n \t\t\t\t + \" ; new parent =\" + parentName);\n \t }\n \t } else {\n \t // Error \n // Error: \"node\" has different parents\n // Old parent is registered\n \t // New parent is NOT registered\n \t\t\tSystem.err.println(\"[TypeSystemHierarchy - addNode] Different parents: child=\" + childName \n \t\t\t + \" ; old registered node.getParent() =\" + node.getParent().getLabel()\n \t\t\t + \" ; new NON-registered parent =\" + parentName);\n \t }\n \t return null; // ERROR\n \n \t} else {\n \t\t//\n \t // Program BUG !!!\n \t\t// since Parent of \"registered\" node cannot be null.\n // if (childTypeMetadata.getName().compareTo(UIMA_CAS_TOP) != 0) {\n System.err.println(\"[TypeSystemHierarchy - addNode] Program BUG !!! (node.getParent() == null): child=\" + childName + \" ; parent =\" + parentName);\n return null;\n // }\n \t}\n \t\t\n \treturn node;\n }", "protected final void addChild(final XmlAntTask child) {\n\t\tchilds.add(child);\n\t\tchild.setParent(this);\n\t}", "public void addChildNode(TreeNode treeNode) {\n initChildList();\n childList.add(treeNode);\n }", "public Node newChild(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.appendChild(n.e);\n return n;\n }", "public void addChild(Element child) {\n super.addChild(child);\n if (child instanceof LbInstances) lbInstances = (LbInstances)child;\n else if (child instanceof DataInstances) dataInstances = (DataInstances)child;\n }", "private void renderNode(Node n) {\n root.getChildren().add(n);\n }", "public Element addChild(String name, String value) {\n org.w3c.dom.Element child = (org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name));\n child.appendChild(element.getOwnerDocument().createTextNode(value));\n\n return new Element(child);\n }", "@Override\n public boolean add(E parent, E child) {\n Node tmp;\n boolean isAdded = true;\n\n if (parent == null || child == null) {\n isAdded = false;\n }\n //Add root and his child.\n if (root == null) {\n root = new Node(parent);\n root.children.add(new Node(child));\n } else {\n tmp = serchNode(parent, root);\n tmp.children.add(new Node(child));\n isAdded = true;\n\n }\n\n return isAdded;\n }", "private void addChild(String parent, String child, int mode)\n\t{\n\t\tif (!sub.containsKey(parent))\n\t\t{\n\t\t\tsub.put(parent, new ArrayList<String>());\n\t\t\tsmodes.put(parent, new ArrayList<Integer>());\n\t\t}\n\n\t\t((List<String>) sub.get(parent)).add(child);\n\t\t((List<Integer>) smodes.get(parent)).add(mode);\n\t}", "public void addChild(Taxon child) {\n\t\tif (child != null) {\n\t\t\tchildren.add(child);\n\t\t}\n\t}", "public void addChild(TreeNode child)\r\n\t{\r\n child.setParent(this);\r\n\t\tm_children.addElement(child);\r\n\t}", "public ChildNode() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "@Override\n public void addChild(IStatement n) {\n\t this._children.add(n);\n\t n.setParent(this);\n }", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "public void addChild(IDirectory child) {\n children.add(child);\n }", "void addNode(String node);", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public DefaultMutableTreeNode addObject(GUIMain guiMn, DefaultMutableTreeNode parent,\n Object child,\n boolean shouldBeVisible) {\n \n DefaultMutableTreeNode childNode\n = new DefaultMutableTreeNode(child);\n\n if(child instanceof DefaultMutableTreeNode)\n {\n parent.add((MutableTreeNode) child);\n return childNode;\n }\n \n if (parent == null) {\n parent = guiMn.simMain.rootNode;\n }\n\n //It is key to invoke this on the TreeModel, and NOT DefaultMutableTreeNode\n guiMn.simMain.treeModel.insertNodeInto(childNode, parent,\n parent.getChildCount());\n\n //Make sure the user can see the lovely new node.\n if (shouldBeVisible) {\n guiMn.myTree.scrollPathToVisible(new TreePath(childNode.getPath()));\n }\n return childNode;\n }", "public XMLPath addChild(String childLocalName) {\r\n if (childLocalName == null) {\r\n throw new IllegalArgumentException(\"XMLPath child localName cannot be null.\");\r\n }\r\n XMLPath child = new XMLPath(childLocalName, this);\r\n this.childs.put(childLocalName, child);\r\n return child;\r\n }", "abstract public void addChild(Command cmd);" ]
[ "0.7899784", "0.782775", "0.77095103", "0.7593572", "0.75777334", "0.7441491", "0.74305004", "0.7417135", "0.74004835", "0.7361076", "0.7357968", "0.7345016", "0.73378754", "0.7323685", "0.7321948", "0.7293579", "0.72791713", "0.72791713", "0.72791713", "0.72791713", "0.72791713", "0.72791713", "0.72791713", "0.72468245", "0.7191934", "0.71292424", "0.71055645", "0.70557886", "0.69754475", "0.6959141", "0.68928504", "0.6884726", "0.68489873", "0.6823451", "0.6812652", "0.6794175", "0.6783695", "0.6719773", "0.67151254", "0.67130715", "0.6703076", "0.6699277", "0.6673492", "0.66624475", "0.6657136", "0.66456133", "0.66423655", "0.66380125", "0.66243094", "0.6623985", "0.6617679", "0.6606903", "0.6593275", "0.6585681", "0.6577734", "0.6535935", "0.6526998", "0.652499", "0.6521831", "0.6501853", "0.6497023", "0.647883", "0.64744383", "0.6458443", "0.6457946", "0.6448742", "0.64374477", "0.64370835", "0.64366657", "0.6423122", "0.64205396", "0.64131147", "0.64130527", "0.64096177", "0.6390415", "0.63408434", "0.6336487", "0.6325549", "0.63141143", "0.63124615", "0.6311956", "0.6295483", "0.6284109", "0.62840116", "0.6271449", "0.6269972", "0.62666875", "0.62662697", "0.62616956", "0.6250554", "0.6249686", "0.6249278", "0.6233501", "0.623197", "0.6222487", "0.6221684", "0.6205251", "0.6193589", "0.6184", "0.6169604" ]
0.75058055
5
Accessor method for the children of the node
public ArrayList<Node> getChildren(){ return children; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node[] getChildren(){return children;}", "public ArrayList<Node> getChildren() { return this.children; }", "@Override\n\tpublic TreeNode[] getChildren() {\n\t\treturn this.children ;\n\t}", "Node[] getChildren(Node node);", "public Vector getChildren() {\n return this.children;\n }", "public abstract List<Node> getChildNodes();", "List<Node<T>> children();", "public Vector getChildren()\r\n\t{\r\n\t\treturn m_children;\r\n\t}", "@Override\n\tpublic List<Node> chilren() {\n\t\treturn children;\n\t}", "@JsProperty\n NodeList getChildNodes();", "public Node[] getChildren(){\n return children.values().toArray(new Node[0]);\n }", "public String getChildren() {\n return children;\n }", "public JodeList children() {\n return new JodeList(node.getChildNodes());\n }", "public ParseTree[] getChildren() {\n\t\treturn children;\n\t}", "public List<String> children() {\n return this.children;\n }", "@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }", "public Node[] getChildren() {\n\t\treturn children.toArray(new Node[0]);\n\t}", "@NotNull\n @Override\n public TreeElement[] getChildren() {\n return callChildren(this, navigationItem);\n }", "@Override\n public List<TreeNode<N>> children() {\n return Collections.unmodifiableList(children);\n }", "public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }", "public String getChildren() {\n\t\treturn children;\n\t}", "public ArrayList<Node> getChildren() {\n return children;\n }", "public Enumeration<Node> children() { return null; }", "public ArrayList<PiptDataElement> getChildren()\n {\n\treturn children;\n }", "@Override\n public int getChildrenCount()\n {\n return children.getSubNodes().size();\n }", "public ArrayList<LexiNode> getChilds(){\n\t\treturn childs;\n\t}", "@DISPID(4)\n\t// = 0x4. The runtime will prefer the VTID if present\n\t@VTID(10)\n\tcom.gc.IList children();", "@Override\n\tpublic Set<HtmlTag> getChildren()\n\t{\n\t\tImmutableSet.Builder<HtmlTag> childrenBuilder = ImmutableSet.builder();\n\t\tfor(TreeNode<? extends HtmlTag> child : node.getChildren())\n\t\t{\n\t\t\tchildrenBuilder.add(child.getValue());\n\t\t}\n\t\treturn childrenBuilder.build();\n\t}", "public int getChildCount() {return children.size();}", "@Nonnull\n Iterable<? extends T> getChildren();", "public List<TreeNode> getChildrenNodes();", "public ArrayList getChildren()\n {\n return children;\n }", "public Item2Vector<Concept> getChildren() { return children; }", "public ResultMap<BaseNode> listChildren();", "public Enumeration enumerateChildren() {\n return this.children.elements();\n }", "public List<FileNode> getChildren() {\r\n return this.children;\r\n }", "Collection<DendrogramNode<T>> getChildren();", "public @NonNull List<@NonNull Node<@Nullable T>> getChildren() {\n return Collections.unmodifiableList(this.children);\n }", "public AST[] getChildren()\r\n {\n \tif (children == null) {\r\n \t\tList<AST> temp = new java.util.ArrayList<AST>();\r\n \t\ttemp.addAll(fields);\r\n \t\ttemp.addAll(predicates);\r\n \t\ttemp.addAll(constructors);\r\n \t\ttemp.addAll(methods);\r\n \t\tchildren = (AST[]) temp.toArray(new AST[0]);\r\n \t}\r\n \treturn children;\r\n }", "public Iterator<ParseTreeNode> children() {\r\n if ((_children == null) || (_children.size() == 0)) {\r\n return NULL_ITERATOR;\r\n }\r\n return _children.iterator();\r\n }", "public Vector<GraphicalLatticeElement> getChildren() {\n\t\tVector<GraphicalLatticeElement> children = new Vector<GraphicalLatticeElement>();\n\t\tif (childrenEdges != null)\n\t\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t\tEdge edge = childrenEdges.elementAt(i);\n\t\t\t\tchildren.add(edge);\n\t\t\t\tchildren.add(edge.getDestination());\n\t\t\t}\n\t\t\n\t\treturn children;\n\t}", "public SeleniumQueryObject children() {\n\t\treturn ChildrenFunction.children(this, elements);\n\t}", "ArrayList<Expression> getChildren();", "public Collection<ChildType> getChildren();", "public java.util.List<BinomialTree<KEY, ITEM>> children()\n\t{\n\t\treturn _children;\n\t}", "public List<PafDimMember> getChildren() {\r\n\t\t\r\n\t\tList<PafDimMember> childList = null;\r\n\t\t\r\n\t\t// If no children are found, return empty array list\r\n\t\tif (children == null) {\r\n\t\t\tchildList = new ArrayList<PafDimMember>();\r\n\t\t} else {\r\n\t\t\t// Else, return pointer to children\r\n\t\t\tchildList = children;\r\n\t\t}\r\n\t\treturn childList;\r\n\t}", "public List<RealObject> getChildren();", "protected abstract List<T> getChildren();", "public Human[] getChildren() {\n return children;\n }", "public List<TreeNode> getChildren ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"getChildren of \" + this);\r\n }\r\n\r\n return children;\r\n }", "public List<TreeNode> getNotes ()\r\n {\r\n return children;\r\n }", "@Override\r\n\tpublic List<TreeNode> getChildren() {\n\t\tif(this.children==null){\r\n\t\t\treturn new ArrayList<TreeNode>();\r\n\t\t}\r\n\t\treturn this.children;\r\n\t}", "@Override\n\tpublic int getChildrenNum() {\n\t\treturn children.size();\n\t}", "public List<Node> getChildren() {\r\n\t\t\tchildren.reset();\r\n\t\t\treturn children;\r\n\t\t}", "public List<EntityHierarchyItem> children() {\n return this.innerProperties() == null ? null : this.innerProperties().children();\n }", "protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "int childCount(){\n return this.children.size();\n }", "@Override\n public int getNumChildren() {\n\t return this._children.size();\n }", "public Collection<BaseGenerator> \n getChildren() \n {\n return Collections.unmodifiableCollection(pChildren.values());\n }", "public ObjectList<DynamicModelPart> getChildren() {\n return this.children;\n }", "public List<ChronologElement> getChildren() {\r\n return children;\r\n }", "@Override\r\n\tpublic List<Node> getChildren() {\r\n\t\treturn null;\r\n\t}", "public Collection<VisualLexiconNode> getChildren() {\n \t\treturn children;\n \t}", "public Vector getChildren() {\n return null;\n }", "protected String[] doListChildren()\n {\n return (String[])m_children.toArray( new String[ m_children.size() ] );\n }", "public List<GuiElementBase> getChildren()\n\t\t{ return Collections.unmodifiableList(children); }", "public List<TreeNode> getChildren() {\n\t\treturn children;\n\t}", "public Enumeration children()\n {\n return new Enumeration(){\n int i = 0;\n public boolean hasMoreElements()\n {\n return i < mChildren.length;\n }\n\n public Object nextElement()\n {\n return mChildren[i++];\n }\n };\n }", "public List<String> getChildren() {\n\t\treturn null;\n\t}", "public JodeList children(String nodeName) {\n return this.children().filter(nodeName);\n }", "Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;", "public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }", "public List<AST> getChildNodes ();", "public List<XML2JSONObject> getChildren() {\r\n return _childs;\r\n }", "public String[] listChildren()\n/* */ {\n/* 519 */ int childCount = getChildCount();\n/* 520 */ String[] outgoing = new String[childCount];\n/* 521 */ for (int i = 0; i < childCount; i++) {\n/* 522 */ outgoing[i] = getChild(i).getName();\n/* */ }\n/* 524 */ return outgoing;\n/* */ }", "public ListNode[] getChildren(){\n\t\tListNode[] ret = new ListNode[length()];\n\t\tListNode temp = firstNode;\n\t\tfor(int i = 0; i < ret.length && temp != null; i++){\n\t\t\tret[i] = temp;\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\n\t\treturn ret;\n\t}", "public List<HtmlMap<T>> getChildren()\n\t{\n\t\treturn m_children;\n\t}", "public ArrayList<ExpandableListItems_Child> getChildren()\n {\n return children;\n }", "public ArrayList<BTreeNode<E>> getChildren() {\n\t\treturn children;\n\t}", "public Vector<Node> getChildren(){\n\t\t Vector<Node> children = new Vector<>(0);\n\t\t Iterator<Link> l= myLinks.iterator();\n\t\t\twhile(l.hasNext()){\n\t\t\t\tLink temp=l.next();\n\t\t\t\tif(temp.getM().equals(currNode))\n\t\t\t\t children.add(temp.getN());\n\t\t\t\tif(temp.getN().equals(currNode))\n\t\t\t\t children.add(temp.getM());\n\t\t\t}\n\t\treturn children;\n\t}", "@FameProperty(name = \"numberOfChildren\", derived = true)\n public Number getNumberOfChildren() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public LinkedList<ApfsElement> getChildren() {\n return this.ApfsChildren;\n }", "@Override\n\tpublic List<AbstractNode> getChildren()\n\t{\n\t\treturn new ArrayList<>(pairs.values());\n\t}", "@DISPID(-2147417075)\n @PropGet\n com4j.Com4jObject children();", "public List<PlanNode> getChildren() {\n return childrenView;\n }", "public ArrayList getChildren() {\n return m_values;\n }", "public List<AccessibleElement> getAccessibleChildren();", "public Node getChild();", "public abstract int getNumChildren();", "@NotNull\n public abstract JBIterable<T> children(@NotNull T root);", "public List<NamespaceNode> getChildNodes() {\n return childNodes;\n }", "public int getChildCount() {\r\n if (_children == null) {\r\n return 0;\r\n }\r\n return _children.size();\r\n }", "@Override\n\tpublic Object[] getChildren(Object parentElement) {\n\t\tObject[] children = this.getList(parentElement, POCOutlineContentProvider.KEY_CHILDREN);\n\t\treturn children != null ? children : new Object[0];\n\t}", "abstract public Collection<? extends IZipNode> getChildren();", "@Override\n public int getChildrenCount(String name)\n {\n return children.getSubNodes(name).size();\n }", "@objid (\"808c084f-1dec-11e2-8cad-001ec947c8cc\")\n public final List<GmNodeModel> getChildren() {\n return new ArrayList<>(this.children);\n }", "public Set<Taxon> getChildren() {\n\t\treturn children;\n\t}" ]
[ "0.7973526", "0.76014054", "0.7560388", "0.75271964", "0.7526172", "0.7456038", "0.7389994", "0.73880076", "0.73664224", "0.73556435", "0.7343193", "0.7335514", "0.7305724", "0.73004913", "0.7278165", "0.72248286", "0.7224626", "0.7220773", "0.7214746", "0.721351", "0.72057587", "0.72005117", "0.7189294", "0.7133613", "0.71312183", "0.7120439", "0.71116245", "0.7111349", "0.7096285", "0.7091138", "0.7082702", "0.7051961", "0.70408785", "0.70268327", "0.7005609", "0.70004857", "0.699775", "0.69763327", "0.69719744", "0.6968362", "0.69680804", "0.6967852", "0.695683", "0.6955757", "0.69476515", "0.6922755", "0.69175565", "0.68984365", "0.6894448", "0.6887974", "0.6883559", "0.68691826", "0.68687284", "0.68345463", "0.6829179", "0.6825684", "0.68207973", "0.68207973", "0.68207973", "0.6818031", "0.68164515", "0.6804345", "0.67942494", "0.6793674", "0.6790904", "0.6784888", "0.6772152", "0.6768178", "0.6765971", "0.67510736", "0.67388606", "0.67380065", "0.672725", "0.67220926", "0.670551", "0.6695851", "0.6687339", "0.66843975", "0.66621375", "0.6655458", "0.6637696", "0.6632384", "0.6621056", "0.661631", "0.6613261", "0.6608667", "0.6606291", "0.6601273", "0.6591509", "0.6577936", "0.6564847", "0.6527475", "0.65152645", "0.6514262", "0.650843", "0.65063953", "0.6491104", "0.64789206", "0.6477238", "0.6475452" ]
0.7309304
12
Method to return next child
public Node returnNextChild(){ try{ return children.get(counter); }catch(Exception ex){ return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}", "ComponentAgent getNextSibling();", "public SlideNode getNext() {\n\t\treturn next;\n\t}", "public E getNext() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index >= this.size() - 1)\n\t\t\t\tindex = -1;\n\t\t\treturn this.get(++index);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic Node getNextChild(Node existing) {\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic Node getNextSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public DNode getNext() { return next; }", "public HL7DataTree next() {\n final int size = Util.size(this.list), i = this.next == null ? size : this.list.indexOf(this.next) + 1;\n final HL7DataTree curr = this.next;\n \n this.next = i == size ? more() : this.list.get(i);\n \n return curr;\n }", "public Nodo getNextHijo() {\n Nodo result = null;\n Vector<Nodo> hijos = this.getHijos();\n int lastIndex = hijos.size() - 1;\n if (this.nextChildIndex <= lastIndex) {\n result = hijos.get(this.nextChildIndex);\n this.nextChildIndex++;\n }\n return result;\n }", "public T getNextElement();", "public BSCObject next()\n {\n if (ready_for_fetch)\n {\n // the next sibling is waiting to be returned, so just return it\n ready_for_fetch = false;\n return sibling;\n }\n else if (hasNext())\n {\n // make sure there is a next sibling; if so, return it\n ready_for_fetch = false;\n return sibling;\n }\n else\n throw new NoSuchElementException();\n }", "@Override\r\n\tpublic Tuple getNextTuple() {\r\n\t\tTuple t = next;\r\n\t\tTuple tempNext = next;\r\n\t\twhile (tempNext != null && tempNext.sameAs(t))\r\n\t\t\ttempNext = child.getNextTuple();\r\n\t\tnext = tempNext;\r\n\t\treturn t;\r\n\t}", "public E next() \n {\n \tfor(int i = 0; i < size; i++)\n \t\tif(tree[i].order == next) {\n \t\t\tnext++;\n \t\t\ttree[i].position = i;\n \t\t\treturn tree[i].element;\n \t\t}\n \treturn null;\n }", "public MyNode<? super E> getNext()\n\t{\n\t\treturn this.next;\n\t}", "public Level getNext() {\n\t\treturn next;\n\t}", "@Override\n public NestedData next() {\n NestedQuest node = queue.remove();\n queue.addAll(node.children);\n\n return\n node.data;\n }", "@Override\n\tpublic Node getNextSibling() {\n\t\treturn null;\n\t}", "private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }", "public Item next() throws XPathException {\n curr = base.next();\n if (curr == null) {\n pos = -1;\n } else {\n pos++;\n }\n return curr;\n }", "HNode getNextSibling();", "public E next()\n {\n removeLevelIfEmpty();\n if (noLevelsExist()) {\n return null;\n }\n return popNextObject();\n }", "public ListElement<T> getNext()\n\t{\n\t\treturn next;\n\t}", "public C getNext();", "public Node getNext(){\n\t\t\treturn next;\n\t\t}", "@Override public T next() {\n T elem = null;\n if (hasNext()) {\n Nodo<T> nodo = pila.pop();\n elem = nodo.elemento;\n nodo = nodo.derecho;\n while(nodo != null){\n pila.push(nodo);\n nodo = nodo.izquierdo;\n }\n return elem;\n }\n return elem;\n }", "private Object getNextElement()\n {\n return __m_NextElement;\n }", "@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}", "public Node<E> getNext() { return next; }", "public Node getNext() { return next; }", "public node getNext() {\n\t\t\treturn next;\n\t\t}", "public SimpleNode getNext() {\n return next;\n }", "public TreeNode getNextSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index < (parent.children.size() - 1)) {\r\n return parent.children.get(index + 1);\r\n }\r\n }\r\n\r\n return null;\r\n }", "public Node<D> getNext(){\n\t\treturn next;\n\t}", "public Node getNext(){\n\t\treturn next;\n\t}", "public Wagon<T> getNext() {\n\t\treturn next;\n\t}", "Node<T> getNext() {\n\t\t\treturn nextNode;\n\t\t}", "public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}", "public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}", "public Pageable next() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public Node getNext()\n\t{\n\t\treturn next;\n\t}", "public Node getNext()\n\t{\n\t\treturn next;\n\t}", "@Override\n public Node next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Node current = next;\n next = next.getNextSibling();\n return current;\n }", "protected final Node<N> getNext() {\n return this.next;\n }", "public Content getNavLinkNext() {\n Content li;\n if (next != null) {\n Content nextLink = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS, next)\n .label(nextclassLabel).strong(true));\n li = HtmlTree.LI(nextLink);\n }\n else\n li = HtmlTree.LI(nextclassLabel);\n return li;\n }", "public E next() {\r\n\r\n\t\tE result = null;\r\n\t\tif (hasNext()) {\r\n\t\t\tresult = links.get(counter);\r\n\t\t\tcounter++;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public DependencyElement next() {\n\t\treturn next;\n\t}", "protected abstract D getNext(D d);", "public Node<E> getNext() {\r\n\t\treturn next;\r\n\t}", "public Node getNext() {\n\t\treturn next;\n\t}", "public Node getNext() {\r\n\t\treturn next;\r\n\t}", "Object getNextElement() throws NoSuchElementException;", "@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}", "public Node<S> getNext() { return next; }", "public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }", "public Node getNext() {\n return next;\n }", "public LinearNode<T> getNext() {\r\n\t\t\r\n\t\treturn next;\r\n\t\r\n\t}", "public ListElement getNext()\n\t {\n\t return this.next;\n\t }", "public ShapeNode getNext()\n {\n return next;\n }", "public Object getNext() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.next; // Get the reference to the next item\n\t\t}\n\t\treturn current == null ? null : current.item;\n\t}", "public abstract void goNext();", "public T getNextItem();", "public Node getNext() {\n return next;\n }", "public T getNext()\n {\n T elem = handler.getTop();\n handler.pop();\n return elem;\n }", "public Prism getNext() {\r\n\t\treturn next;\r\n\t}", "public Node<T> getNext() {\n\t\treturn next;\n\t}", "@Override\n\t\tpublic Node next() {\n\t\t\tif (this.next == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tNode element = this.next;\n\t\t\t\tthis.next = (Node) this.next.getNextNode();\n\t\t\t\treturn (Node) element;\n\t\t\t}\n\t\t}", "public LLNode<T> getNext() {\n return next;\n }", "@Override\n public NodoL next() {\n posicionActual = posicionActual.getSiguiente();\n return posicionActual;\n }", "public GameNode getNext() {\n return this.next;\n }", "public AttackTreeNode buildNextChild(AttackTreeNode activeChild) {\n \n return null;\n }", "public Node getNext() {\n\t\treturn this.next;\n\t}", "public T getNext() {\n\n // Create a new item to return\n T nextElement = getInstance();\n\n // Check if there are any more items from the list\n if (cursor <= arrayLimit) {\n nextElement = collection.get(cursor);\n cursor++;\n } else {\n // There are no more items - set to null\n nextElement = null;\n }\n\n // Return the derived item (will be null if not found)\n return nextElement;\n }", "public Node getChild();", "public ListNode<Item> getNext() {\n return this.next;\n }", "public Element<T> getNextElement() \n\t{\n\t\treturn nextElement;\n\t}", "public Node getNext() {\t\t//O(1)\n\t\treturn next;\n\t}", "public Node getNext()\n {\n return this.next;\n }", "public int next() {\n TreeNode iter = dq.pop();\n int val = iter.val;\n if(iter.right!=null)\n process(iter.right);\n return val;\n }", "public AttackTreeNode buildNextChild(AttackTreeNode activeChild) {\n \n AttackTreeNode nextNode = null;\n \n // AttackParameter has no children...\n \n return nextNode;\n }", "ASTNode getNextLeafOrBranch() {\n return getNextLeafOrBranch(0, children.size());\n }", "public final TemplateSubPatternAssociation getNext() {\n/* 230 */ return this.m_next;\n/* */ }", "public GameObject getNext();", "public K next()\n {\n\tif (hasNext()) {\n\t K element = current.data();\n\t current = current.next(0);\n\t return element; \n\t} else {\n\t return null; \n\t}\n }", "protected Tuple fetchNext() throws NoSuchElementException, TransactionAbortedException, DbException {\n\t\t// some code goes here\n\t\tTuple ret;\n\t\twhile (childOperator.hasNext()) {\n\t\t\tret = childOperator.next();\n\t\t\tif (pred.filter(ret))\n\t\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic Package next() {\r\n\t\t\tif (first.next == null)\r\n\t\t\t\treturn null;\r\n\t\t\telse\r\n\t\t\t\treturn first.next;\r\n\r\n\t\t}", "public Item next(){\n if(current==null) {\n throw new NoSuchElementException();\n }\n\n Item item = (Item) current.item;\n current=current.next;\n return item;\n }", "public T next()\n {\n T data = current.item;\n current = current.next;\n return data;\n }", "public CommitNode getNext(){\r\n\t\treturn next;\r\n\t}", "public abstract void nextElement();", "@Override\n public Object next() {\n Object retval = this.nextObject;\n advance();\n return retval;\n }", "public Node<T> getNext()\n\t{\treturn this.next; }", "@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }", "public ElectionNode getNextNode() {\r\n return nextNode;\r\n }", "public Object next()\n {\n if(!hasNext())\n {\n throw new NoSuchElementException();\n //return null;\n }\n previous= position; //Remember for remove;\n isAfterNext = true; \n if(position == null) \n {\n position = first;// true == I have not called next \n }\n else\n {\n position = position.next;\n }\n return position.data;\n }", "Entry getNext()\n {\n return (Entry) m_eNext;\n }", "public Node<T> getNext() {\n return this.next;\n }", "public com.Node<T> getNextRef() {\n\t\treturn null;\n\t}", "@Override\n public String getQuestion() throws TimeoutException {\n String nextChild= \"\";\n if(this.children.length == 1){\n nextChild = this.children[0];\n }else if (this.children.length == 2){\n if(this.answers.get(this.answers.size() - 1).toLowerCase().equals(\"yes\")){\n nextChild = this.children[0];\n }else{\n nextChild = this.children[1];\n }\n }else{\n throw new NoSuchElementException(\"there is no more elements to get questions from\");\n }\n\n String query = getQuery(\"Question,LeftChild,RightChild\", \"ID=\" + \"'\" + nextChild + \"'\");\n\n String raw = this.excuteQuery(query).trim().replace(\"\\n\", \"\");\n Log.e(\"raw\", raw);\n if(raw.equals(\"null\")){\n return null;\n }\n if(!raw.equals(\"\")) {\n String[] raw_parsed = raw.split(\",\");\n try {\n current = nextChild;\n this.children = new String[]{raw_parsed[1], raw_parsed[2]};\n\n }catch (ArrayIndexOutOfBoundsException a){\n this.children = new String[]{null,null};\n done = true;\n }\n Log.e(\"question\", raw_parsed[0]);\n return raw_parsed[0];\n }else{\n done = true;\n return null;\n }\n }", "ListNode getNext() { /* package access */ \n\t\treturn next;\n\t}", "public Variable getNext(){\n\t\treturn this.next;\n\t}" ]
[ "0.71338713", "0.70766294", "0.70535046", "0.69809395", "0.6980287", "0.6970798", "0.69475365", "0.69181883", "0.6910127", "0.68609554", "0.68448627", "0.6839921", "0.68313396", "0.68282944", "0.68241936", "0.6809323", "0.6806358", "0.68031645", "0.680233", "0.679188", "0.678475", "0.6760969", "0.6740035", "0.6725741", "0.67140985", "0.6711249", "0.66975826", "0.6681147", "0.66593313", "0.6652397", "0.6651363", "0.663235", "0.6631819", "0.66201025", "0.66098815", "0.65915906", "0.6580827", "0.6580827", "0.65766865", "0.6565992", "0.6565992", "0.6557962", "0.654047", "0.6540136", "0.65330267", "0.6532755", "0.6528572", "0.65268725", "0.65128917", "0.6509202", "0.6505894", "0.6496336", "0.64852536", "0.6484984", "0.648056", "0.64769477", "0.6476615", "0.6472944", "0.647216", "0.64687335", "0.64581275", "0.6449086", "0.6444585", "0.6438513", "0.6438116", "0.64308447", "0.6427127", "0.642178", "0.64153874", "0.64086354", "0.6386592", "0.6386208", "0.6383893", "0.6373569", "0.6367407", "0.63644284", "0.6356431", "0.6346376", "0.6345611", "0.6327627", "0.632389", "0.632228", "0.6318156", "0.63040096", "0.6292689", "0.62765104", "0.6274959", "0.6269842", "0.6267172", "0.62570155", "0.6254877", "0.6250981", "0.6239151", "0.62381977", "0.6234919", "0.62310004", "0.6226867", "0.621526", "0.61945456", "0.61909544" ]
0.8298286
0
Accessor method for the board
public Board getBoard(){ return board; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Board getBoard ();", "Board getBoard() {\r\n return _board;\r\n }", "public Board getBoard(){return board;}", "Board getBoard() {\n return _board;\n }", "public Board getBoard() {\r\n return board;\r\n }", "public Board getBoard(){\n return m_board;\n }", "public Board getBoard() {\n return board;\n }", "protected Board getBoard() { // nao vou deixar public, vou deixar privado\n\t\treturn board;\n\t}", "public Board getBoard() {\n return board;\n }", "private Board getBoard() {\n return gameStatus.getBoard();\n }", "public Board getBoard() {\n return this.board;\n }", "public Board getBoard() {\n return this.board;\n }", "public FloorTile[][] getBoard(){\r\n return board;\r\n }", "public Tile[][] getBoard() {\r\n return board;\r\n }", "public Piece[][] getBoard(){\r\n\t\treturn this.board;\r\n\t}", "public Piece[][] getBoard() {\n return _board;\n }", "public Board getBoard()\r\n {\r\n return gameBoard;\r\n }", "public static Board getBoard(){\n\t\treturn board;\n\t}", "public int getBoardLocation() {return boardLocation;}", "public Marker[][] getBoard() { return board; }", "String getBoard();", "public char[][] getBoard() {\n return board;\n\t}", "public Piece[] getBoard() {\n return board;\n }", "public Integer[][] getBoard() {\n\t\treturn _board;\n\t}", "public Board getBoard() {\n\t\treturn this.board;\n\t}", "public GameBoard getBoard() {\n return board;\n }", "public Board getBoard() {\n\t\treturn board;\n\t}", "public Board getBoard() {\n\t\treturn board;\n\t}", "public int[][] getBoard() {\r\n\t\treturn board;\r\n\t}", "public int[][] getBoard();", "public GUIBoard getBoard() {\n return board;\n }", "public int[][] getBoard() {\n\t\treturn board;\n\t}", "public Board getBoard() {\n return gameBoard;\n }", "public int[] getBoard() {\n\t return board;\n }", "Color get(int col, int row) {\n return _board[row][col]; // FIXED.\n }", "public Board aiGetBoard() {\n return b;\n }", "public GameToken[][] getBoard() {\n\t\treturn this.board;\n\t}", "public static char[][] getBoard() {\n\t\treturn board;\n\t}", "public Board getBoard() {\n\t\treturn (this.gameBoard);\n\t}", "public EditableBoard getBoard() {\n\treturn board;\n }", "public void setBoard(Board board){this.board = board;}", "public boolean[][] getBoard() {\r\n return board;\r\n }", "private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }", "public Board getBoardObject() {\n return boardObject;\n }", "public GameCell[] getBoardCells(){\r\n return this.boardCells;\r\n }", "@Override\n public BlockGrid getBoard() {\n return checkersBoard;\n }", "public int[][] get() {\r\n return gameBoard;\r\n }", "public JButton[][] getBoard(){\n return jbtnBoard;\n }", "public int[] getBoard() {\n return board.clone(); //return board.clone();\n }", "public BlockFor2048[][] getBoard() {\n\t\treturn this.myBoard;\n\t}", "public SudokuBoard getBoard() {\n return board;\n }", "public char[][] getBoardState(){\n return board;\n }", "protected int[][] getBoard() {\n\t// EDIT: usar directamente .clone() referencia al mismo objeto, para\n\t// reutilizar el método en las rotaciones copiamos la matriz de forma\n\t// que no se referencien entre sí.\n\treturn deepCopy(board);\n }", "public FourBoard getBoard() {\n return board;\n }", "String[][] getBoard();", "public Board getPlayersBoard() {\n return playersBoard;\n }", "public static WildBoard getBoard()\n {\n System.out.println(\"*** WildApp.getBoard() called\");\n \n return myBoard;\n }", "public Integer[][] GetCurrentBoard()\n {\n return new Integer[2][3];\n }", "public Board getCurrentBoard() {\n return boardIterator.board;\n }", "public int getBoardPosition() {\n return boardPosition;\n }", "public char[][] getBoardState(){\n\t\treturn board;\n\t}", "public int getBoard_id(){\n return Board_id;\n }", "String getBoardString();", "public SudokuBoard getBoard() {\n return sb;\n }", "public Color getColor() {\r\n return this.BoardColor;\r\n }", "int getBoardSize() {\n return row * column;\n }", "final Piece get(int col, int row) {\r\n return board[col][row];\r\n }", "public int getBoardWidth(){\n return Cols;\n }", "public Board getBoard(){\n return undoBoards.peek();\n }", "@Test\r\n public void testInvalidCustomBoard() throws IllegalAccessException, NoSuchFieldException\r\n {\r\n Board b = new Board(-1,6);\r\n assertEquals(8, b.xLength);\r\n assertEquals(8, b.yLength);\r\n Class<?> bClass = Board.class;\r\n Field field = bClass.getDeclaredField(\"board\");\r\n field.setAccessible(true);\r\n Piece[][] internalBoard = (Piece[][]) field.get(b);\r\n assertEquals(8, internalBoard.length);\r\n assertEquals(8, internalBoard[0].length);\r\n }", "int getBoardSize() {\n return this.boardSize;\n }", "protected static char[][] update_Board(){\n return null;\n }", "public abstract Move getMove(Board board);", "public String getBoard() {\r\n\t\tString r = \"\";\r\n\t\tfor (int y = 0; y < 3; y++) {\r\n\t\t\tfor (int x = 0; x < 3; x++) {\r\n\t\t\t\tr = r + board[y][x];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "private CurrentBoard board() throws IOException, EncodeException {\n\n //obtain current board state to init POJO\n boolean[][] player = new boolean[model.BOARD_SIZE][model.BOARD_SIZE];\n boolean[][] occupied = new boolean[model.BOARD_SIZE][model.BOARD_SIZE];\n boolean[][] king = new boolean[model.BOARD_SIZE][model.BOARD_SIZE];\n for(int row = 0; row < model.getBoard().length; row++){\n for(int col = 0; col < model.getBoard()[row].length; col++) {\n player[row][col] = model.isPlayerOne(row, col);\n occupied[row][col] = model.squareIsOccupied(row, col);\n king[row][col] = model.squareHoldsKing(row,col);\n }\n }\n currentBoard.setDoubleJump(model.canDoubleJump);\n currentBoard.setPlayerOne(player);\n currentBoard.setKing(king);\n currentBoard.setOccupied(occupied);\n return currentBoard;\n }", "public Playboard getPlayboard();", "protected int getBoardSize(){\n\t\treturn boardSize;\n\t}", "public int getBoardCode() {\r\n\t\treturn boardCode;\r\n\t}", "ImmutableBoard getImmutableView();", "public Pawn[][] getBoardGrid() {\n\t\treturn boardGrid;\n\t}", "public BoardView getRedBoard() {\n return redBoard;\n }", "public Scoreboard getScoreboard ( ) {\n\t\treturn extract ( handle -> handle.getScoreboard ( ) );\n\t}", "@Test\r\n public void testCustomBoardConstructor() throws IllegalAccessException, NoSuchFieldException\r\n {\r\n Board b = new Board(5,6);\r\n assertEquals(5, b.xLength);\r\n assertEquals(6, b.yLength);\r\n Class<?> bClass = Board.class;\r\n Field field = bClass.getDeclaredField(\"board\");\r\n field.setAccessible(true);\r\n Piece[][] internalBoard = (Piece[][]) field.get(b);\r\n assertEquals(5, internalBoard.length);\r\n assertEquals(6, internalBoard[0].length);\r\n }", "public BoardInterface[] getBoards();", "public ArrayList<Integer> getCurBoard() {\n return curBoard;\n }", "Square getSquare(int x, int y){\n return board[x][y];\n }", "public long getBitboard() {\r\n return bitboard;\r\n }", "public void showBoard(){\n }", "public GoPlayingBoard getCurrentBoard() {\n \t\treturn currentBoard.clone();\n \t}", "private void generateBoard(){\n\t}", "public PentagoBoard getPentagoBoard() {\n return board;\n }", "public BufferedImage getImage() {\n return boardImage;\n }", "public int getBoardLength() {\n return boardLength;\n }", "public ChessPiece getPiece(){return piece;}", "public BoardView getWhiteBoard() {\n return whiteBoard;\n }", "@Override\n public Tile[][] getGrid() { return grid; }", "Piece get(int c, int r) {\n return this.boardArr[r - 1][c - 1];\n }", "public Board getOpponentsBoard() {\n return opponentsBoard;\n }", "@Override\n\tpublic Piece view(Position boardPosition) {\n\t\tPiece temp;\n\t\ttemp = grid[boardPosition.row][boardPosition.col];\n\t\treturn temp;\n\t}", "PieceColor whoseMove() {\n return _whoseMove;\n }" ]
[ "0.8059148", "0.79456145", "0.79102635", "0.7859652", "0.7745465", "0.7737508", "0.7692123", "0.7627506", "0.76264423", "0.761972", "0.760164", "0.760164", "0.7596214", "0.75723904", "0.7530922", "0.75270236", "0.7520389", "0.7507798", "0.7505681", "0.75050235", "0.747392", "0.7379437", "0.73786396", "0.7332771", "0.73156327", "0.73139864", "0.73133576", "0.73133576", "0.7274223", "0.72713304", "0.7267343", "0.7249098", "0.724671", "0.71996796", "0.71636057", "0.71627235", "0.7150632", "0.71449494", "0.7144636", "0.714171", "0.71153104", "0.7101155", "0.70641744", "0.7059185", "0.7043681", "0.70214975", "0.7014942", "0.7010578", "0.69992644", "0.6996106", "0.6995295", "0.6990469", "0.6963436", "0.69563705", "0.6941213", "0.6909287", "0.68996483", "0.68659145", "0.68640006", "0.68234056", "0.68230706", "0.6774155", "0.6756339", "0.67497694", "0.6723401", "0.6712359", "0.66982865", "0.66687185", "0.6612016", "0.6604112", "0.65831465", "0.65788364", "0.65624535", "0.6562275", "0.6544744", "0.6520765", "0.6496738", "0.64904934", "0.64889556", "0.64786965", "0.64639264", "0.64553005", "0.64496255", "0.64360416", "0.64345866", "0.6432152", "0.64302534", "0.6430206", "0.6423906", "0.6408527", "0.64042294", "0.6396451", "0.6393573", "0.63696265", "0.636515", "0.63638127", "0.6362331", "0.63531685", "0.6349298", "0.63468355" ]
0.7693798
6
Method to increment the counter
public void incCounter(){ counter++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public void incCounter()\n {\n counter++;\n }", "void incrementCount();", "public void incrementCount() {\n\t\tcount++;\n\t}", "public void incrementCount() {\n count++;\n }", "public void incCount() { }", "public void incrementCount(){\n count+=1;\n }", "public static void increment() {\n\t\tcount.incrementAndGet();\n//\t\tcount++;\n\t}", "public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }", "public static synchronized void increment() {\n counter++;\n }", "public static synchronized void increment() {\r\n\t\tcount++;\r\n\t}", "public void increment() {\n increment(1);\n }", "private static void setCounter() {++counter;}", "@Override\n public synchronized void increment() {\n count++;\n }", "private synchronized void increment() {\n count++;\n atomicInteger.incrementAndGet();\n }", "public void increaseCount(){\n myCount++;\n }", "public void increasecounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter + 1).commit();\r\n\t}", "private synchronized void increment() {\n ++count;\n }", "private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}", "public void increment() {\n\t\tsynchronized (this) {\n\t\t\tCounter.count++;\n\t\t\tSystem.out.print(Counter.count + \" \");\n\t\t}\n\t\n\t}", "public /*synchronized*/ void increment() {\n counter++;\n }", "public static synchronized void inccount()\r\n\t{\r\n\t\tcount++;\r\n\t}", "public static synchronized void increment(){\n count++;\n }", "public void addCount()\n {\n \tcount++;\n }", "public void increment() {\n sync.increment();\n }", "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}", "public void increase()\n {\n setCount(getCount() + 1);\n }", "public void inc() {\n inc(1);\n }", "public void inc(){\n this.current += 1;\n }", "public void increment() {\n mNewNotificationCount.setValue(mNewNotificationCount.getValue() + 1);\n }", "void incrementAddedCount() {\n addedCount.incrementAndGet();\n }", "public void increment() {\n this.data++;\n }", "public void increment(){\n value+=1;\n }", "public void increase(int number) {\r\n this.count += number;\r\n }", "public void increase(int number) {\r\n this.count += number;\r\n }", "void incCount() {\n ++refCount;\n }", "public void increment(){\n\t\twordCount += 1;\n\t}", "@Test\n\tpublic void testIncrement() {\n\t\tvar counter = new Counter();\n\t\tassertEquals(0, counter.get());\n\t\tcounter.increment();\n\t\tcounter.increment();\n\t\tassertEquals(2, counter.get());\n\t}", "public synchronized void incrementCount() {\r\n\t\tcount++;\r\n\t\tnotifyAll();\r\n\t}", "@Override\r\n\tpublic int increase() throws Exception {\n\t\treturn 0;\r\n\t}", "public void incrementLoopCount() {\n this.loopCount++;\n }", "public static void increase(){\n c++;\n }", "public void IncrementCounter()\r\n {\r\n \tif (startAtUsed==false\r\n \t\t\t|| (!counter.encounteredAlready)) {\r\n \t\t// Defer setting the startValue until the list\r\n \t\t// is actually encountered in the main document part,\r\n \t\t// since otherwise earlier numbering (using the\r\n \t\t// same abstract number) would use this startValue\r\n \tcounter.setCurrentValue(this.startValue); \r\n \tlog.debug(\"not encounteredAlready; set to startValue \" + startValue);\r\n \tcounter.encounteredAlready = true;\r\n \tstartAtUsed = true;\r\n \t}\r\n counter.IncrementCounter();\r\n }", "public void Increase()\n {\n Increase(1);\n }", "public int increase()\n {\n return this.increase(1);\n }", "void incrementAccessCounter();", "public void increase() {\r\n\t\t\tsynchronized (activity.getTaskTracker()) {\r\n\t\t\t\tactivity.getTaskTracker().count++;\r\n\t\t\t\tLog.d(LOGTAG, \"Incremented task count to \" + count);\r\n\t\t\t}\r\n\t\t}", "public void increment() {\n items++;\n }", "public void incrementCount () {\n count = count + 1; // == count++ == count += 1 \n if (count == modulus) {\n count = 0;\n }\n }", "void increase();", "void increase();", "public int increase() {\r\n return ++value;\r\n }", "public void incrRefCounter() {\n\t\tthis.refCounter++;\n\t}", "public void incFileCount(){\n\t\tthis.num_files++;\n\t}", "private void incrPositiveCount(){\n m_PositiveCount++;\n }", "private static void increaseReference(Counter counter) {\n counter.advance(1);\n }", "public void incrementAmount() { amount++; }", "public void incrementDelayCounter(int increment) {\n delayCounter += increment;\n }", "public void incrementCoinCount() {\n coinCount++;\n System.out.println(\"Rich! Coin count = \" + coinCount);\n }", "public void increaseScore(){\n this.inc.seekTo(0);\n this.inc.start();\n this.currentScore++;\n }", "public void changeCount(final int c) {\n\t\tcount += c;\n\t}", "public void incA() {\n this.countA++;\n }", "public void addCount()\r\n {\r\n bookCount++;\r\n }", "private void incrementUsageCount() {\n usageCount++;\n }", "public int counter (){\n return currentID;\n }", "public void incrementNumAttacked( ){\n this.numAttacked++;\n }", "public long inc(final String key) {\n String c = get(key);\n if (c == null) c = \"0\";\n final long l = Long.parseLong(c) + 1;\n put(key, Long.toString(l));\n return l;\n }", "public void incrementCount(View view) {\n\t\tcounterModel.incrementCounter();\n\t\tcurrentCountTextView.setText(Integer.toString(counterModel.getCount()));\n\t}", "public void inc(String name) {\n inc(name, 1);\n }", "default void inc(long value) {\n\t\tcount(Math.abs(value));\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcounter.increment();\n\t\t\t\t}", "public void increment() { this.progressBar.setValue(++this.progressValue); }", "@CallSuper\n public long incrementAndGet() {\n return addAndGet(1);\n }", "public int inc(Object key)\r\n {\r\n return add(key, 1);\r\n }", "public static void incTestCount() {\n mTestCount++;\n }", "protected void incrementCurrent() {\n current++;\n }", "public void incrementNumAddRequests() {\n this.numAddRequests.incrementAndGet();\n }", "private synchronized static void upCount() {\r\n\t\t++count;\r\n\t}", "public void inc(String name, long count) {\n counters.addTo(name, count);\n }", "public void increment() {\n\t\tif (m_bYear) {\n\t\t\tm_value++;\n\t\t\tif (m_value > 9999)\n\t\t\t\tm_value = 0;\n\t\t} else {\n\t\t\tm_value++;\n\t\t\tif (m_value > 11)\n\t\t\t\tm_value = 0;\n\n\t\t}\n\t\trepaint();\n\t}", "public void increaseTurnCount()\n\t{\n\t\tturnNumber++;\n\t\tthis.currentPlayerID++;\n\t\tthis.currentPlayerID = this.currentPlayerID % this.playerList.size();\n\t}", "void upCount(){\n count++;\n }", "public void increaseCount(View view) {\n count++;\n display(count);\n }", "public void incrementNumSearchRequests() {\n this.numSearchRequests.incrementAndGet();\n }", "public void increaseCourseCount(){}", "public void incrementLevel()\r\n {\r\n counts.addFirst( counts.removeFirst() + 1 );\r\n }", "public void increment() {\n long cnt = this.count.incrementAndGet();\n if (cnt > max) {\n max = cnt;\n // Remove this after refactoring to Timer Impl. This is inefficient\n }\n this.lastSampleTime.set(getSampleTime ());\n }", "public void incPieceCount () {\n m_PieceCount++;\n\t}", "public int counter()\n {\n if(count<=825){\n return count++;\n }\n else{ \n count = 0;\n return count;\n }\n }", "public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}", "private static void add() {\n\tcount.incrementAndGet();\n}", "public void publicCountIncrement(){\n synchronized(Sample.monitor){\n publicIncrement++;\n }\n }", "public void incuploadcount(){\n\t\tthis. num_upload++;\n\t}", "protected int incModCount() {\n\n if (LOG.isDebugEnabled()) {\n\n Throwable trace = new Throwable(\"Stack Trace\");\n StackTraceElement elements[] = trace.getStackTrace();\n\n Logging.logCheckedDebug(LOG,\"Modification #\" + (getModCount() + 1) + \" to PeerAdv@\" + Integer.toHexString(System.identityHashCode(this))\n + \" caused by : \" + \"\\n\\t\" + elements[1] + \"\\n\\t\" + elements[2]);\n\n }\n\n return modCount.incrementAndGet();\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcounter.accumulate(1);\n\t\t\t\t}", "private static void increasePrimitive(int value) {\n value++;\n }", "void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }", "public void inc(int index) {\r\n\t\tthis.vclock.set(index, this.vclock.get(index)+1);\r\n\t}", "public void incrementActiveRequests() \n {\n ++requests;\n }" ]
[ "0.877152", "0.8619971", "0.8576509", "0.85320085", "0.8429592", "0.84108615", "0.834988", "0.83497643", "0.8266571", "0.8204324", "0.8192942", "0.8170363", "0.81654185", "0.8154569", "0.8100323", "0.8033249", "0.80252886", "0.80032814", "0.79568136", "0.7942193", "0.79219943", "0.7871812", "0.78186435", "0.77634954", "0.7742953", "0.7740075", "0.7722776", "0.77182984", "0.76408684", "0.764004", "0.7600582", "0.7581909", "0.75679827", "0.75625366", "0.75244284", "0.75244284", "0.7460802", "0.744173", "0.7417229", "0.73939204", "0.7384439", "0.7371978", "0.7349073", "0.7337292", "0.7324067", "0.7320033", "0.73009545", "0.7296409", "0.7295382", "0.7277157", "0.72652566", "0.72652566", "0.72651124", "0.72492605", "0.72312903", "0.72283", "0.7210137", "0.7207498", "0.7206725", "0.7204134", "0.71692616", "0.7145488", "0.7140462", "0.7131014", "0.70707816", "0.70620793", "0.70319945", "0.69988316", "0.6997287", "0.6992614", "0.6989541", "0.69797474", "0.69776946", "0.6968933", "0.69657433", "0.6956028", "0.69410324", "0.6921143", "0.6913757", "0.6906163", "0.69006425", "0.6887672", "0.6871697", "0.6862411", "0.68613625", "0.68607694", "0.6860274", "0.68412334", "0.6824988", "0.68074393", "0.6789634", "0.6779679", "0.67705584", "0.6769972", "0.67669874", "0.67548496", "0.67474854", "0.6744115", "0.67420614", "0.67404836" ]
0.84802574
4
Accessor method for counter
public int getCounter(){ return counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getCounter() {return counter;}", "public int getCounter()\n {\n return counter;\n }", "public int getCounter() {\r\n return counter;\r\n }", "@Override\n\tpublic int getCounter() {\n\t\treturn counter;\n\t}", "public int getCounter() {\n return counter;\n }", "public int getCounter() {\nreturn this.counter;\n}", "public Integer getCounter() {\n return counter;\n }", "public int getcounter() {\n\t\treturn counter;\r\n\t}", "public void incCount() { }", "public static int returnCount()\n {return counter;}", "public void incCounter(){\n counter++;\n }", "@Override\n public Integer get() {\n return ++counter;\n }", "public void incCounter()\n {\n counter++;\n }", "public int counter (){\n return currentID;\n }", "private static void setCounter() {++counter;}", "public Short getCounter()\n {\n return counter;\n }", "static IterV<String, Integer> counter() {\n return cont(count.f(0));\n }", "io.dstore.values.IntegerValue getCounter();", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public void increaseCount(){\n myCount++;\n }", "public AtomicLong getCounter() {\n return counter;\n }", "public long getCount() {\n return counter.get();\n }", "public String getCounter() {\n counter = Integer.valueOf(counterInt++).toString();\n return counter;\n }", "public int get_count();", "int getInCount();", "void incrementCount();", "public int currentCount () {\n return count;\n }", "public long count() { return count.get(); }", "public int counter()\n {\n if(count<=825){\n return count++;\n }\n else{ \n count = 0;\n return count;\n }\n }", "public long count() ;", "public interface Counter {\n \n \n public int getCount();\n}", "public myCounter() {\n\t\tcounter = 1;\n\t}", "interface Counter {\n\n void inc();\n\n long get();\n}", "public void setCounter(int number){\n this.counter = number;\n }", "public int getCurrentCounter() {\n return currentCounter;\n }", "public Counter() {\r\n this.count = 0;\r\n }", "public void incrementCount(){\n count+=1;\n }", "public Integer getIncrement() {\n return increment;\n }", "public void incrementCount() {\n count++;\n }", "public long count() {\n/* 154 */ return this.count;\n/* */ }", "public void addCount()\n {\n \tcount++;\n }", "public io.dstore.values.IntegerValue getCounter() {\n if (counterBuilder_ == null) {\n return counter_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : counter_;\n } else {\n return counterBuilder_.getMessage();\n }\n }", "public Counter(int val) {\r\n value = val;\r\n }", "Counter getCounter(String counterName);", "public double getIncrement() {\n return increment;\n }", "public io.dstore.values.IntegerValue getCounter() {\n return counter_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : counter_;\n }", "public static int GetIncrement(){\n\t\treturn m_Incrementer;\n\t}", "public Counter() {\r\n value = 0;\r\n }", "public int count() {\n return this.count;\n }", "public void setCounter(int counter) {\n this.counter = counter;\n }", "private Count() {}", "private Count() {}", "public int count() {\n\treturn 1;\n}", "protected short getCount() \r\n {\r\n // We could move this to the individual implementing classes\r\n // so they have their own count\r\n synchronized(AbstractUUIDGenerator.class) \r\n {\r\n if (counter < 0)\r\n {\r\n counter = 0;\r\n }\r\n return counter++;\r\n }\r\n }", "public abstract int getCntRod();", "public void set_count(int c);", "public io.dstore.values.IntegerValueOrBuilder getCounterOrBuilder() {\n return getCounter();\n }", "public int getIncrement() {\n \tcheckWidget();\n \treturn increment;\n }", "@Test\n\tpublic void testIncrement() {\n\t\tvar counter = new Counter();\n\t\tassertEquals(0, counter.get());\n\t\tcounter.increment();\n\t\tcounter.increment();\n\t\tassertEquals(2, counter.get());\n\t}", "public void counter(MetricCounter<Integer> metric, int value);", "public int _count() {\n return _count(\"\");\n }", "@Override\npublic String toString() {\nreturn \"\" + counter;\n}", "public int count() {\r\n return count;\r\n }", "public void addCount()\r\n {\r\n bookCount++;\r\n }", "public long get_counter() {\n return (long)getUIntBEElement(offsetBits_counter(), 32);\n }", "int getAccessCounter();", "public int count() {\n return count;\n }", "io.dstore.values.IntegerValueOrBuilder getCounterOrBuilder();", "public Map<Object, Integer> getCounter() {\n if (counterMap == null) {\n counterMap = FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<Object, Integer>() {\n @Override\n public Integer get(Object key) {\n if (counters == null) {\n counters = new HashMap<Object, Integer>();\n }\n final int ctr = FxSharedUtils.get(counters, key, -1) + 1;\n counters.put(key, ctr);\n return ctr;\n }\n }, true);\n }\n return counterMap;\n }", "int getReaultCount();", "@FameProperty(name = \"numberOfAccesses\", derived = true)\n public Number getNumberOfAccesses() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "public long count() {\n return this.count;\n }", "public abstract long count();", "public static int getIdcounter() {\n return idcounter;\n }", "@Override\n\tpublic void count() {\n\t\t\n\t}", "public void incrementCount() {\n\t\tcount++;\n\t}", "public long getCount() {\n return count.get();\n }", "public abstract int getSelfCount();", "public int getCounterId() {\r\n\t\treturn counterId;\r\n\t}", "private int getPositiveCount(){\n return m_PositiveCount;\n }", "public TextView getCounterView() {\n return mCounterView;\n }", "void incCount() {\n ++refCount;\n }", "public void incA() {\n this.countA++;\n }", "@Override\n public synchronized void increment() {\n count++;\n }", "public abstract int getCntPrepaid();", "public abstract int count();", "public abstract int count();", "public ConnectionCount(int counter) {\nthis.counter = counter;\n}", "public int count();", "public int count();", "public int count();", "public int count();", "public Counter(int count)\n {\n this.setCount(count);\n }", "@Override\n public long count();", "public synchronized int getCount(){\n return count;\n }", "public synchronized int getCount () {\n int c = count;\n count = 0;\n return c;\n }", "public BasicCounter() {\n count = 0;\n }", "@DISPID(118)\n @PropGet\n int getCount();", "public int getAddCount() {\n return addCount;\n }" ]
[ "0.8214249", "0.81480247", "0.80813694", "0.80230373", "0.80208117", "0.8006015", "0.7883793", "0.7769012", "0.75051534", "0.74795574", "0.74615884", "0.729604", "0.7284416", "0.7279856", "0.72756934", "0.7244634", "0.7217828", "0.7192883", "0.7180563", "0.71745056", "0.7093706", "0.70931053", "0.7086297", "0.70680887", "0.7027748", "0.7008952", "0.6972467", "0.6959822", "0.68783396", "0.68201745", "0.6815306", "0.6809218", "0.6777953", "0.6758464", "0.6743669", "0.67311966", "0.6724714", "0.67167085", "0.6712123", "0.66974527", "0.66892564", "0.6685015", "0.66797733", "0.66649836", "0.6658256", "0.665587", "0.663908", "0.66302514", "0.6626997", "0.661291", "0.66031814", "0.66031814", "0.6603074", "0.6592914", "0.6588451", "0.65841657", "0.6571258", "0.6568504", "0.65682346", "0.65569997", "0.65548265", "0.6553592", "0.6547499", "0.6541243", "0.6529371", "0.6516936", "0.65165794", "0.65121144", "0.6508945", "0.6506635", "0.6502707", "0.6499725", "0.6499638", "0.64950913", "0.6489418", "0.6465682", "0.6463551", "0.64472955", "0.6439139", "0.63940775", "0.6390955", "0.6389089", "0.63875884", "0.6385022", "0.63704705", "0.63617337", "0.6343078", "0.6343078", "0.63423973", "0.6341861", "0.6341861", "0.6341861", "0.6341861", "0.63359004", "0.6328826", "0.6325903", "0.6325276", "0.6322524", "0.6312401", "0.63031507" ]
0.82347524
0
Method to set counter
public void setCounter(int number){ this.counter = number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void setCounter() {++counter;}", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "public void setCounter(int counter) {\n this.counter = counter;\n }", "public void set_count(int c);", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public void incCount() { }", "public void incCounter()\n {\n counter++;\n }", "void incrementCount();", "public void incCounter(){\n counter++;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void incrementCount() {\n count++;\n }", "public void setCount(final int c) {\n\t\tcount = c;\n\t}", "public void setCounter(Short __newValue)\n {\n counter = __newValue;\n }", "public myCounter() {\n\t\tcounter = 1;\n\t}", "public void incrementCount() {\n\t\tcount++;\n\t}", "public void setCounter(int counter) {\n this.counter = counter;\n this.totalPoints = counter;\n updateCounterView(null);\n }", "public void set_counter(long value) {\n setUIntBEElement(offsetBits_counter(), 32, value);\n }", "public void addCount()\n {\n \tcount++;\n }", "public void incrementCount(){\n count+=1;\n }", "public myCounter(int startValue) {\n\t\tcounter = startValue;\n\t}", "public static void setidCounter(int a)\n\t{\n\t\tidCounter = a;\n\t}", "public void increaseCount(){\n myCount++;\n }", "private void setId() {\n id = count++;\n }", "public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }", "public Counter(int init){\n \tvalue = init;\n }", "public void increasecounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter + 1).commit();\r\n\t}", "public Counter(int val) {\r\n value = val;\r\n }", "public Counter(int count)\n {\n this.setCount(count);\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "void setAccessCounter(int cnt);", "public static void setCount(int aCount) {\n count = aCount;\n }", "public void setUpdateOften(int i){\n countNum = i;\n }", "public int counter (){\n return currentID;\n }", "public void setlatercounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, 7).commit();\r\n\t}", "public Builder setCount(int value) {\n \n count_ = value;\n onChanged();\n return this;\n }", "public abstract void setCntRod(int cntRod);", "public Counter() {\r\n this.count = 0;\r\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "private void resetCounter() {\n // Obtain the most recent changelist available on the client\n String depot = parent.getDepot();\n Client client = Client.getClient();\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Reset the Perforce counter value\n String counterName = parent.getCounter();\n Counter.setCounter(counterName, toChange.getNumber());\n }", "public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}", "public void setOneNewWanted () {\r\n numWanted ++;\r\n }", "public Counter() {\r\n value = 0;\r\n }", "public void setinitialcounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, 0).commit();\r\n\t}", "private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public Builder setCounter(io.dstore.values.IntegerValue value) {\n if (counterBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n counter_ = value;\n onChanged();\n } else {\n counterBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "public void setCount(int count)\n {\n this.count = count;\n }", "public static int getCounter() {return counter;}", "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "public static void resetCount() {\n count = 1;\n }", "public void setCount(int count) {\r\n this.count = count;\r\n }", "void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "public void setPassCounter()\r\n {\r\n passCounter++;\r\n\r\n }", "public void changeCount(final int c) {\n\t\tcount += c;\n\t}", "protected void setCurrentCounter(int currentCounter) {\n this.currentCounter = currentCounter;\n }", "public int getCounter(){\n return counter;\n }", "public static int setStudentNumber(){\n countNumbers++;//1 2 3\n return countNumbers;\n\n }", "public void addCount()\r\n {\r\n bookCount++;\r\n }", "void incCount() {\n ++refCount;\n }", "public void setSessionCounter(long sessionCounter);", "public void IncrementCounter()\r\n {\r\n \tif (startAtUsed==false\r\n \t\t\t|| (!counter.encounteredAlready)) {\r\n \t\t// Defer setting the startValue until the list\r\n \t\t// is actually encountered in the main document part,\r\n \t\t// since otherwise earlier numbering (using the\r\n \t\t// same abstract number) would use this startValue\r\n \tcounter.setCurrentValue(this.startValue); \r\n \tlog.debug(\"not encounteredAlready; set to startValue \" + startValue);\r\n \tcounter.encounteredAlready = true;\r\n \tstartAtUsed = true;\r\n \t}\r\n counter.IncrementCounter();\r\n }", "public void setdecrementcounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter - 1).commit();\r\n\t}", "public ConnectionCount(int counter) {\nthis.counter = counter;\n}", "public void setCount(final int count)\n {\n this.count = count;\n }", "public int getCounter() {\r\n return counter;\r\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "@Override\n\tpublic void call(int val) {\n\t\tmKeyCount = val;\n\t\tmCurGroup.setCount(val);\n\t\tComFunc.log(\"get count:\" + mKeyCount);\n\t}", "public static synchronized void inccount()\r\n\t{\r\n\t\tcount++;\r\n\t}", "public int getcounter() {\n\t\treturn counter;\r\n\t}", "public SynchronizedCounter(int count) {\n\t\tthis.count = count;\n\t}", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count){\n\t\tthis.count = count;\n\t}", "public int getCounter()\n {\n return counter;\n }", "public int getCounter() {\nreturn this.counter;\n}", "@Override\n public synchronized void increment() {\n count++;\n }", "public abstract void setCntFtc(int cntFtc);", "public void setDataCounterLabel()\n\t{\n\t\tcurrentDataIndex= table.getCurrentDataIndex();\n\n\t\tnavPanel.setDataCounterLabel();\n\n\t\tfor (TablePanel subTablePanel:\tSubTablePanels.values()) {\n\t\t\ttry {\n\t\t\t\tsubTablePanel.parentIDChanged(table.getCurrentDataID());\n\t\t\t\tsubTablePanel.navPanel.updateControls();\n\t\t\t} catch (Exception e) {\n\t\t\t\tMainUIFrame.setStatusMessage(\"Error Updating data index: \"+e.getMessage());\n\t\t\t\tlogger.error(\"Error Updating data index: \",e);\n\t\t\t}\n\t\t}\n\t}", "public int getCounter() {\n return counter;\n }", "public void counter(MetricCounter<Integer> metric, int value);", "public void resetCount() {\n count = 0;\n }", "public void resetCount() {\n\t\tcount = 0;\n\t}", "@Override\n\tpublic int getCounter() {\n\t\treturn counter;\n\t}", "public abstract void setCntCod(int cntCod);", "public void notifyCounter() {\n if (counter > 0) {\n this.counter = this.counter - 1;\n }\n }" ]
[ "0.8581774", "0.8215397", "0.8057855", "0.8010437", "0.7677692", "0.7564729", "0.74871343", "0.7446129", "0.74183875", "0.72959596", "0.72959596", "0.72959596", "0.72729343", "0.7258018", "0.72480774", "0.72031206", "0.7181098", "0.71810853", "0.71798664", "0.7157824", "0.7134142", "0.71224797", "0.712191", "0.71215457", "0.70910364", "0.7075108", "0.70297164", "0.7023759", "0.6983926", "0.6973348", "0.69535923", "0.69535923", "0.69019973", "0.68892974", "0.68753844", "0.6860163", "0.6849125", "0.68487877", "0.6808885", "0.6802131", "0.67972815", "0.67904127", "0.67904127", "0.6785644", "0.67442185", "0.6743538", "0.6740673", "0.6730357", "0.672926", "0.6729083", "0.67276895", "0.6726121", "0.67156374", "0.67099845", "0.66936404", "0.66930723", "0.66855246", "0.6656151", "0.66281253", "0.6620865", "0.6618074", "0.661528", "0.6606651", "0.660373", "0.65988207", "0.6593044", "0.656367", "0.6561508", "0.6560544", "0.65603673", "0.6560331", "0.6544893", "0.6534058", "0.6534058", "0.6534058", "0.6534058", "0.6534058", "0.6534058", "0.6532796", "0.65321153", "0.65005624", "0.6500332", "0.64858335", "0.64858335", "0.64858335", "0.64858335", "0.64858335", "0.6485026", "0.64776176", "0.6472646", "0.64630836", "0.6456973", "0.6425207", "0.64244723", "0.6417258", "0.6414744", "0.64097255", "0.63942057", "0.63908035", "0.637147" ]
0.8087657
2
Accessor method for parent
public Node getParent(){ return parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n Derived get();", "@Override\n public void get() {}", "protected abstract MethodDescription accessorMethod();", "T childValue(T parentValue) {\n throw new UnsupportedOperationException();\n }", "public int Parent() { return this.Parent; }", "protected String getName(){\r\n return this.name;\r\n }", "@Override\n String get();", "public abstract String get();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "protected abstract T getThis();", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public String getName(){\n return Name; \n }", "@Override\n protected void getExras() {\n }", "@Override\n public int getValue() {\n return super.getValue();\n }", "@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "public abstract String getNombre();", "@Override\n public String getName() {\n return super.getName();\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "protected abstract Actor getAccessor();", "@Override\n\tpublic void getPrix() {\n\t\t\n\t}", "public interface Parent {\n \n /**\n * Get start offset of the child with the given index.\n * <br>\n * The child can be either flyweight or regular view.\n *\n * @param childViewIndex &gt;=0 index of the child.\n * @return start offset of the requested child.\n */\n public int getStartOffset(int childViewIndex);\n \n /**\n * Get end offset of the child with the given index.\n * <br>\n * The child can be either flyweight or regular view.\n *\n * @param childViewIndex &gt;=0 index of the child.\n * @return start offset of the requested child.\n */\n public int getEndOffset(int childViewIndex);\n \n }", "@Override\n\t\t\t\t\tpublic Attribute handleAttribute(Element parent,\n\t\t\t\t\t\t\tFAttribute src) {\n\t\t\t\t\t\treturn super.handleAttribute(parent, src);\n\t\t\t\t\t}", "public abstract Object getCustomData();", "public Foo getParent() {\n return parent;\n }", "private ReadProperty()\r\n {\r\n\r\n }", "@Override\n public C get() {\n return content;\n }", "public abstract String getChildTitle();", "@Override\r\npublic int getNumber() {\n\treturn super.getNumber();\r\n}", "private GetProperty(Builder builder) {\n super(builder);\n }", "@java.lang.Override\n public long getAmount() {\n return instance.getAmount();\n }", "public abstract IAccessor getAccessor(IContext context);", "@Override\n \tpublic IValue getValue() {\n \t\treturn this;\n \t}", "@Override\n public int getPeso(){\n return(super.getPeso());\n }", "@Override\n\t\t\t\t\tpublic Method handleSimpleMethod(Element parent, FMethod src) {\n\t\t\t\t\t\treturn super.handleSimpleMethod(parent, src);\n\t\t\t\t\t}", "public String getName () { return this.name; }", "@Override\n\tpublic void getDetail() {\n\t\t\n\t}", "protected Object getOwner(){\n return owner;\n }", "public Element getElement() {\n return super.getElement();\n }", "@Mixin(EntityPlayerSP.class)\npublic interface AccessorEntityPlayerSP {\n\n @Accessor(\"handActive\")\n void gsSetHandActive(boolean value);\n\n}", "protected Player getPlayer() { return player; }", "public Method getGetter() {\n return this.getter;\n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "Spring getParent() {\n return parent;\n }", "@Override\n public String getName() {\n return this.name;\n }", "public void get() {\n }", "@Override\n protected Validator getValidator() {\n return super.getValidator();\n }", "@Override\n public abstract String getName();", "public final int child ()\r\n {\r\n return _value.child();\r\n }", "public TDataObject getBaseDataObject(\n )\n {return baseDataObject;}", "public String getter() {\n\t\treturn name;\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public String getName(){return this.name;}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "String superGetterCode() {\n return isPrivate ? String.format(\"super.%s()\", getterMethodName) : fieldName;\n }", "String getName(){return this.name;}", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "@Override\n public Object getValue()\n {\n return value;\n }", "@Override\r\n\tpublic void getRegimeAlimentaire() {\n\t\t\r\n\t}", "public DocumentoBase getDocumentoBase()\r\n/* 130: */ {\r\n/* 131:154 */ return this.documentoBase;\r\n/* 132: */ }", "public Point getLocPoint(){\n return super.getLocation();\n }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "@java.lang.Override\n public int getAge() {\n return age_;\n }", "@Override\n protected void prot() {\n }", "public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }", "@Override\r\n\tpublic String getHerria() {\n\t\treturn super.getHerria();\r\n\t}", "public String getValue() {\n return super.getAttributeValue();\n }", "public child getChild() {\n return this.child;\n }", "public abstract String getAuthor();", "@Override\r\n\tpublic void exportThis()\r\n\t{\n\t\tsuper.exportThis();\r\n\t}", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public String getName(){ return name; }", "public abstract Object getUnderlyingObject();", "@Override\r\n public Object getValue() {\r\n return value;\r\n }", "@Override\n public String toString() {\n return (super.toString());\n\n }", "public Point getLocation(){\r\n return super.getLocation();\r\n }", "@Override\n\tpublic String getName() {\n\t\treturn super.getName();\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn super.getName();\n\t}", "protected V getValue() {\n return this.value;\n }", "@Override\n String getName();", "public N getChild() {\n\t\tcheckRep();\n\t\treturn this.child;\n\t}", "@Override\n\tpublic String getName()\n\t{\n\t\treturn super.getName();\n\t}", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child) {\n if (property == NAME_PROPERTY) {\n if (get) {\n return getName();\n } else {\n setName((SimpleName) child);\n return null;\n }\n }\n if (property == EXPRESSION_PROPERTY) {\n if (get) {\n return getExpression();\n } else {\n setExpression((Expression) child);\n return null;\n }\n }\n // allow default implementation to flag the error\n return super.internalGetSetChildProperty(property, get, child);\n }", "@Override\n public String toString () {\n return super.toString();\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public String getName() {\n return this.name();\n }", "public void extractFromParent() {\n this.parent.extractChild(this);\n }", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "@Override\n public String getName() {\n return name;\n }", "@Override\n public String getName() {\n return name;\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public String getGetter() {\n return \"get\" + getCapName();\n }", "@Override\r\n\tpublic Long getEventParentClass() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Long getEventParentClass() {\n\t\treturn null;\r\n\t}" ]
[ "0.66575074", "0.64563215", "0.61662817", "0.60924435", "0.6049424", "0.5995793", "0.59881824", "0.5952249", "0.593827", "0.59165597", "0.59165597", "0.5913777", "0.58969796", "0.58465654", "0.5841143", "0.57979065", "0.57964176", "0.57927656", "0.57856345", "0.5771468", "0.5768339", "0.57305586", "0.5719914", "0.5685674", "0.56837296", "0.5677534", "0.5675601", "0.56223285", "0.56199163", "0.56148803", "0.5613618", "0.56103474", "0.56057936", "0.559896", "0.5594238", "0.5593891", "0.55901915", "0.5539068", "0.5522791", "0.55160487", "0.551512", "0.55104023", "0.5508813", "0.549886", "0.5488223", "0.5485041", "0.5479783", "0.54741836", "0.5466413", "0.54584", "0.5457527", "0.5456041", "0.5451773", "0.5442747", "0.54324424", "0.54316956", "0.5430592", "0.5430592", "0.54305404", "0.542433", "0.5421091", "0.54092395", "0.5408065", "0.5405135", "0.5404355", "0.5403766", "0.54011184", "0.53976816", "0.53959566", "0.53823805", "0.53678334", "0.53589445", "0.5358663", "0.53560346", "0.53535044", "0.5351481", "0.5351346", "0.53478944", "0.5334431", "0.53342444", "0.53310144", "0.53299195", "0.53299195", "0.5328636", "0.5326483", "0.532503", "0.5323953", "0.5322968", "0.5322389", "0.532019", "0.5319107", "0.53182477", "0.53167194", "0.531521", "0.53150624", "0.53105015", "0.53105015", "0.5307692", "0.530377", "0.52952373", "0.52952373" ]
0.0
-1
Accessor method for generated check
public boolean getGeneratedCheck(){ return generatedCheck; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "public String getCheckMethod() {\r\n return checkMethod;\r\n }", "public abstract String check() throws Exception;", "abstract protected boolean checkMethod();", "void check();", "void check();", "void check() throws YangException;", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "boolean checkVerification();", "void checkValid();", "private CheckUtil(){ }", "public int Check(){\n return 6;\n }", "public CheckInOut getCheck() {\n\t\treturn check;\n\t}", "@Override\n\tpublic void check() throws Exception {\n\t}", "public void checkData2019() {\n\n }", "boolean getValid();", "public void checkData(){\n\n }", "default void checkInOk(String name) {\n }", "@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "public void checkFields(){\n }", "boolean isSetComplianceCheckResult();", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "public void validate() {}", "public void testCheck()\r\n {\n DataUtil.check(9, \"This is a test!\");\r\n }", "public boolean isValidated(){\n return getValidatedFlag();\n }", "@Test\n public void testCheckPositive() {\n Helper.checkPositive(1, \"obj\", \"method\", LogManager.getLog());\n }", "private CheckBoolean() {\n\t}", "public abstract void check(Manager manager);", "boolean checkValidity();", "public boolean isCheckable() {\n/* 738 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean getMyChecksExtists(){\n return my_checks_exists;\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "public abstract boolean verify();", "protected void check(String name, Object value) {\n\t\tcheck(name,value,false);\n\t}", "Boolean getIsValid();", "public abstract boolean isValid();", "public abstract boolean isValid();", "public abstract boolean isValid();", "public abstract boolean verifyInput();", "public Boolean getIsCheck()\r\n\t{\r\n\t\treturn isCheck;\r\n\t}", "public AttrCheck getAttrchk()\n {\n return this.attrchk;\n }", "public Expression getExpression() {\n \treturn nullCheck;\n }", "protected abstract boolean isValid();", "protected abstract boolean isValidate();", "public void setGeneratedCheck(){\n generatedCheck = !generatedCheck;\n }", "public String validate() {\n\t\treturn \"valid\";\n\t}", "public Checks(kotlin.reflect.jvm.internal.impl.name.Name r8, kotlin.reflect.jvm.internal.impl.util.Check[] r9, kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String> r10) {\n /*\n r7 = this;\n java.lang.String r0 = \"name\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)\n java.lang.String r0 = \"checks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)\n java.lang.String r0 = \"additionalChecks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)\n int r0 = r9.length\n kotlin.reflect.jvm.internal.impl.util.Check[] r6 = new kotlin.reflect.jvm.internal.impl.util.Check[r0]\n int r0 = r9.length\n r1 = 0\n java.lang.System.arraycopy(r9, r1, r6, r1, r0)\n r3 = 0\n r4 = 0\n r1 = r7\n r2 = r8\n r5 = r10\n r1.<init>((kotlin.reflect.jvm.internal.impl.name.Name) r2, (kotlin.text.Regex) r3, (java.util.Collection<kotlin.reflect.jvm.internal.impl.name.Name>) r4, (kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String>) r5, (kotlin.reflect.jvm.internal.impl.util.Check[]) r6)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.util.Checks.<init>(kotlin.reflect.jvm.internal.impl.name.Name, kotlin.reflect.jvm.internal.impl.util.Check[], kotlin.jvm.functions.Function1):void\");\n }", "default String getCheckName() {\n return getClass().getSimpleName();\n }", "public abstract boolean validate();", "@NotNull\n public String getName() {\n return \"Validate Call Argument..\";//InspectionsBundle.message(\"inspection.comparing.references.use.quickfix\");\n }", "public Boolean getValidate(){\n return validated;\n }", "public abstract Result check(WebBundleDescriptor descriptor);", "interface Checker\n {\n /** @param text a string to consider for acceptance\n * @return true if this Checker accepts text; false otherwise\n */\n boolean accept(String text);\n }", "int verify(Requirement o);", "public boolean getValidity();", "Boolean getCompletelyCorrect();", "void check () {\r\n OzcError.setLineNumber (body.line_no);\r\n\r\n check_constructor:\r\n\r\n if (method.isNew () && !method.wasCalledSuper ()) {\r\n ClassType c = method.getDefinedClass ();\r\n ClassImplementation ci;\r\n if (c.isClassInterface ()) \r\n\tci = ((ClassInterface) c).getImplementation ();\r\n else \r\n\tci = (ClassImplementation) c;\r\n do {\r\n\tci = ci.getSuperClass ();\r\n\tif (ci == null || School.isSystem (ci)) break check_constructor;\r\n } while (!ci.hasConstructor ());\r\n\r\n OzcError.constructorMustCallSuper (method);\r\n }\r\n\r\n /* need return statement as last statement */\r\n try {\r\n body.check (this);\r\n } catch (Unreachable e) {\r\n Statement st = e.getStatement ();\r\n if (st != null) \r\n\tOzcError.unreachableSt (st);\r\n else if (method.isNew () && need_return)\r\n\tOzcError.unreachableLastSt (body.line_no);\r\n }\r\n }", "@Override\n\tpublic void check(String arguments, Map<String, String> defValue, Set<String> errors) {\n\n\t}", "private Checking(String name) {\r\n\t\tsuper(name);\r\n\t}", "public void check()\n {\n typeDec.check();\n }", "public TypeCheckerProofRule getRule ( ) ;", "Object findOperatorNeedCheck();", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkThrough() {\n\t\tboolean flag = oTest.checkThrough();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "ValidationError getValidationError();", "protected abstract boolean checkInput();", "abstract boolean check(Env env);", "@Test\n public void testGetIsLocked() {\n System.out.println(\"getIsLocked Test (Passing value)\");\n Boolean expResult = Boolean.FALSE;\n Boolean result = user.getIsLocked();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "public Checker getChecker() {\n return checker;\n }", "public abstract List<Requirement> getFailedChecks();", "public String getCheckFlag() {\r\n return checkFlag;\r\n }", "protected void validate() {\n // no op\n }", "public boolean validate(){\n return true;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "ValidationResponse validate();", "protected boolean getValidatedFlag() {\n createFlags();\n return flags[VALIDATED];\n }", "public String getCheckFlag() {\n return checkFlag;\n }", "boolean hasCustomValue();", "public interface LicenseCheck {\n /**\n * Performs this license check.\n */\n Result evaluate();\n\n /**\n * Indicates this license check has been passed.\n */\n Result PASS = new Result(ImmutableList.of(), \"\");\n\n /**\n * Indicates that a license check has failed but does not have any failing {@link LicenseDetails licenses}.\n */\n Result FAIL = new Failure(ImmutableList.of(), \"\");\n\n /**\n * Indicates that a license check has failed but because no {@link LicenseDetails licenses} are present.\n */\n Result FAIL_NO_LICENSES = new Failure(ImmutableList.of(), \"No licenses present\");\n\n /**\n * Encapsulates the result of a {@link LicenseCheck}, which may be either passed or failed, depending on the\n * return value of {@link #isPass()}.\n */\n class Result {\n private final List<LicenseDetails> failedLicenses;\n private final String reason;\n\n public Result(Iterable<? extends LicenseDetails> failedLicenses, String reason) {\n this.failedLicenses = ImmutableList.copyOf(failedLicenses);\n this.reason = reason;\n }\n\n /**\n * Returns a {@link List} of {@link LicenseDetails licenses} that\n * failed this {@link LicenseCheck}.\n */\n public List<LicenseDetails> getFailedLicenses() {\n return failedLicenses;\n }\n\n /**\n * Returns the reason why this {@link LicenseCheck} failed, or the empty string if it passed.\n */\n public String getFailureMessage() {\n return reason;\n }\n\n /**\n * Returns true if this {@link LicenseCheck} was passed.\n */\n public boolean isPass() {\n return failedLicenses.isEmpty();\n }\n }\n\n /**\n * Implements a {@link com.atlassian.jira.license.LicenseCheck.Result} that always {@link #isPass() fails}.\n */\n class Failure extends Result {\n public Failure(final List<? extends LicenseDetails> failedLicenses, final String reason) {\n super(failedLicenses, reason);\n }\n\n @Override\n public boolean isPass() {\n return false;\n }\n }\n}", "private void checkEnabled() {\n }", "@Override\r\n public String precondition() {\r\n return \"<html> The method call that returns an object is called twice in series. <br/>\" +\r\n \"Both method calls have no parameters, only return statements. <br/>\" +\r\n \"The object returned by the method call must be defined as a class. </html>\";\r\n }", "public boolean verify();", "@Override\r\n\tprotected void doVerify() {\n\t\t\r\n\t}", "boolean valid() {\n return true;\n }", "boolean valid() {\n return true;\n }", "boolean valid() {\n return true;\n }", "protected void validate() {\n // no implementation.\n }", "protected Checkpoint() {\n super();\n }", "public static void verify() {\n\n\t\t\t\n\t\t\t\n\t\t\n\t}", "boolean getCheckState();", "private void cmdCheck(String line) throws NoSystemException {\n boolean verbose = false;\n boolean details = false;\n boolean all = false;\n boolean noGenInv = true;\n ArrayList<String> invNames = new ArrayList<String>();\n StringTokenizer tokenizer = new StringTokenizer(line);\n // skip command\n tokenizer.nextToken();\n while (tokenizer.hasMoreTokens()) {\n String token = tokenizer.nextToken();\n if (token.equals(\"-v\")) {\n verbose = true;\n } else if (token.equals(\"-d\")) {\n details = true;\n } else if (token.equals(\"-a\")) {\n all = true;\n } else {\n MClassInvariant inv = system().model().getClassInvariant(token);\n if (system().generator() != null && inv == null) {\n GFlaggedInvariant gInv = system().generator()\n .flaggedInvariant(token);\n if (gInv != null) {\n inv = gInv.classInvariant();\n noGenInv = false;\n }\n }\n if (!noGenInv) {\n if (inv == null)\n Log.error(\"Model has no invariant named `\" + token\n + \"'.\");\n else\n invNames.add(token);\n }\n }\n }\n\n PrintWriter out;\n if (Options.quiet && !Options.quietAndVerboseConstraintCheck) {\n out = new PrintWriter(new NullWriter());\n } else {\n out = new PrintWriter(Log.out());\n }\n fLastCheckResult = system().state().check(out, verbose, details, all,\n invNames);\n }" ]
[ "0.6698035", "0.6698035", "0.65036184", "0.6433506", "0.6389291", "0.6336355", "0.6336355", "0.6335343", "0.62347054", "0.62347054", "0.62347054", "0.6143479", "0.6136821", "0.60993475", "0.608707", "0.6054289", "0.60214347", "0.59942627", "0.59659237", "0.59393096", "0.5911749", "0.5888266", "0.5810519", "0.57913995", "0.5776728", "0.5764679", "0.5732592", "0.57286936", "0.56703395", "0.5662559", "0.5657819", "0.5642197", "0.5641178", "0.5629276", "0.5620432", "0.5620432", "0.5620432", "0.5608765", "0.5601769", "0.5584187", "0.55815655", "0.55815655", "0.55815655", "0.5552152", "0.55520606", "0.55442905", "0.55384606", "0.5537928", "0.55278987", "0.5520968", "0.5502117", "0.5482541", "0.54755473", "0.54604596", "0.54575324", "0.54502404", "0.54304487", "0.54199946", "0.5386667", "0.5379256", "0.5379241", "0.53742594", "0.5370574", "0.5368232", "0.5355245", "0.53499204", "0.53497654", "0.5348871", "0.533967", "0.5339145", "0.53348005", "0.5331299", "0.53292274", "0.5324282", "0.53173476", "0.53113765", "0.53082263", "0.53081644", "0.52969736", "0.52969736", "0.52969736", "0.52969736", "0.52969736", "0.5295711", "0.5287388", "0.5285028", "0.5277918", "0.52772266", "0.5275504", "0.5270919", "0.52607274", "0.5250272", "0.52473515", "0.52473515", "0.52473515", "0.52467096", "0.5242095", "0.52419114", "0.5240094", "0.5238385" ]
0.6248153
8
Mutator method for generated check
public void setGeneratedCheck(){ generatedCheck = !generatedCheck; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "public abstract void setCheck(Boolean check);", "void check() throws YangException;", "abstract protected boolean checkMethod();", "void check();", "void check();", "void checkValid();", "@Override\n\tpublic void check() throws Exception {\n\t}", "boolean checkVerification();", "public NotChecker(Checker chk1)\n {\n checker1 = chk1;\n }", "protected void check(String name, Object value) {\n\t\tcheck(name,value,false);\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "public void checkData(){\n\n }", "public void checkFields(){\n }", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "public abstract String check() throws Exception;", "protected void validate() {\n // no op\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "public abstract void check(Manager manager);", "protected void updateValidity(){}", "public void setCheckable(boolean checkable) {\n/* 753 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "default void checkInOk(String name) {\n }", "private static void processValidation(boolean passed, String property, CHECK check) {\n if (!passed) {\n LOG.error(\"'{}' failed in {} validation\", property, check);\n HealthCheck.setFailed();\n } else {\n LOG.info(\"'{}' passed\", property);\n }\n }", "boolean shouldModify();", "public void validate() {}", "private CheckUtil(){ }", "void setManualCheck (boolean value);", "public void checkData2019() {\n\n }", "private CheckBoolean() {\n\t}", "@Override\n\tpublic void check(String arguments, Map<String, String> defValue, Set<String> errors) {\n\n\t}", "public abstract boolean verify();", "public abstract void\n bypassValidation_();", "public abstract boolean verifyInput();", "protected abstract boolean checkInput();", "private void checkEnabled() {\n }", "public boolean getGeneratedCheck(){\n return generatedCheck;\n }", "protected abstract boolean isValid();", "public int Check(){\n return 6;\n }", "protected void validate() {\n // no implementation.\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkThrough() {\n\t\tboolean flag = oTest.checkThrough();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "private void processPropValidators() {\n getMethodsWithAnnotation(component, PropValidator.class).forEach(method -> {\n PropValidator propValidator = method.getAnnotation(PropValidator.class);\n\n if (!TypeName.get(method.getReturnType()).equals(TypeName.BOOLEAN)) {\n printError(\"Method \"\n + method.getSimpleName()\n + \" annotated with PropValidator must return a boolean.\");\n }\n\n String exposedMethodName = exposeExistingJavaMethodToJs(method);\n String propertyName = propValidator.value();\n optionsBuilder.addStatement(\"options.addJavaPropValidator(p.$L, $S)\",\n exposedMethodName,\n propertyName);\n });\n }", "protected void doAdditionalChecking(Contributor contr) {\n }", "public void validate(){\n if (validated){\n validated = false;\n } else {\n validated = true;\n }\n }", "public void setCheck(CheckInOut check) {\n\t\tthis.check = check;\n\t}", "@Override\r\n\tprotected void doVerify() {\n\t\t\r\n\t}", "private void setMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(true);\r\n checkShaffer.setEnabled(true);\r\n checkBergman.setEnabled(true);\r\n\r\n checkIman.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n }", "protected abstract boolean isValidate();", "public void testCheck()\r\n {\n DataUtil.check(9, \"This is a test!\");\r\n }", "public static void verify() {\n\n\t\t\t\n\t\t\t\n\t\t\n\t}", "public abstract boolean isValid();", "public abstract boolean isValid();", "public abstract boolean isValid();", "@Override\n\tpublic void selfValidate() {\n\t\t\n\t}", "public String getCheckMethod() {\r\n return checkMethod;\r\n }", "public abstract boolean validate();", "private void validateData() {\n }", "public void setInvalid();", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "public boolean isValidated(){\n return getValidatedFlag();\n }", "public void setChecked(boolean checked) {\n/* 776 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\tpublic void preCheck(CheckCommand checkCommand) throws Exception {\n\r\n\t}", "boolean isSetComplianceCheckResult();", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}", "void check () {\r\n OzcError.setLineNumber (body.line_no);\r\n\r\n check_constructor:\r\n\r\n if (method.isNew () && !method.wasCalledSuper ()) {\r\n ClassType c = method.getDefinedClass ();\r\n ClassImplementation ci;\r\n if (c.isClassInterface ()) \r\n\tci = ((ClassInterface) c).getImplementation ();\r\n else \r\n\tci = (ClassImplementation) c;\r\n do {\r\n\tci = ci.getSuperClass ();\r\n\tif (ci == null || School.isSystem (ci)) break check_constructor;\r\n } while (!ci.hasConstructor ());\r\n\r\n OzcError.constructorMustCallSuper (method);\r\n }\r\n\r\n /* need return statement as last statement */\r\n try {\r\n body.check (this);\r\n } catch (Unreachable e) {\r\n Statement st = e.getStatement ();\r\n if (st != null) \r\n\tOzcError.unreachableSt (st);\r\n else if (method.isNew () && need_return)\r\n\tOzcError.unreachableLastSt (body.line_no);\r\n }\r\n }", "private void cmdCheck(String line) throws NoSystemException {\n boolean verbose = false;\n boolean details = false;\n boolean all = false;\n boolean noGenInv = true;\n ArrayList<String> invNames = new ArrayList<String>();\n StringTokenizer tokenizer = new StringTokenizer(line);\n // skip command\n tokenizer.nextToken();\n while (tokenizer.hasMoreTokens()) {\n String token = tokenizer.nextToken();\n if (token.equals(\"-v\")) {\n verbose = true;\n } else if (token.equals(\"-d\")) {\n details = true;\n } else if (token.equals(\"-a\")) {\n all = true;\n } else {\n MClassInvariant inv = system().model().getClassInvariant(token);\n if (system().generator() != null && inv == null) {\n GFlaggedInvariant gInv = system().generator()\n .flaggedInvariant(token);\n if (gInv != null) {\n inv = gInv.classInvariant();\n noGenInv = false;\n }\n }\n if (!noGenInv) {\n if (inv == null)\n Log.error(\"Model has no invariant named `\" + token\n + \"'.\");\n else\n invNames.add(token);\n }\n }\n }\n\n PrintWriter out;\n if (Options.quiet && !Options.quietAndVerboseConstraintCheck) {\n out = new PrintWriter(new NullWriter());\n } else {\n out = new PrintWriter(Log.out());\n }\n fLastCheckResult = system().state().check(out, verbose, details, all,\n invNames);\n }", "public boolean isCheckable() {\n/* 738 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void check()\n {\n typeDec.check();\n }", "protected abstract boolean checkedParametersAppend();", "@Test\n public void testSetIsAccountVerified() {\n System.out.println(\"setIsAccountVerified Test (Passing value)\");\n Boolean isAccountVerified = Boolean.TRUE;\n user.setIsAccountVerified(isAccountVerified);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertTrue(violations.isEmpty());\n }", "private Checking(String name) {\r\n\t\tsuper(name);\r\n\t}", "public void check(List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev, String[] input, String[] output, RowMetaInterface info) {\n\t\t// TODO: Do something here?\n\t}", "@Test\n public void testSetIsLocked() {\n System.out.println(\"setIsLocked Test (Passing value)\");\n Boolean isLocked = Boolean.FALSE;\n user.setIsLocked(isLocked);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertTrue(violations.isEmpty());\n }", "public void doRequiredCheck() {\n\t\tthis.checkValue(listener);\n\t}", "public Expression staticCheck(Expression expr, int flags)\n {\n Expression e = simpleStaticCheck(expr, flags);\n if(UpdatingExpr.isUpdating(e))\n error(\"XUST0001\", e, \"updating expression is not allowed here\");\n return e;\n }", "String validate(T newValue);", "boolean isSetValue();", "boolean isSetValue();", "@Override\n protected Result validate() {\n return successful(this);\n }", "boolean getValid();", "boolean checkValidity();", "protected boolean isValid()\r\n {\r\n \treturn true;\r\n }", "public void doChecking() {\n \tdoCheckingDump();\n \tdoCheckingMatl();\n }", "@Override\n public boolean hasValenceError() {\n String valenceCheck = atom.checkBadValence();\n//\n// System.out.println(\"valenceCheckBad \" + valenceCheck);\n// System.out.println(\"calling actual checkValence \" + atom.checkValence());\n// System.out.println(\"valenceCheckBad again \" + atom.checkBadValence());\n return !valenceCheck.isEmpty();\n }", "abstract Checker newChecker(int x, int y);", "protected Checkpoint() {\n super();\n }", "public void checkIn() {\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tcheck();\n\t\t}", "abstract protected void _checkState() throws IllegalStateException;", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAbout() {\n\t\tboolean flag = oTest.checkAbout();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "int verify(Requirement o);", "public boolean validate(){\n return true;\n }", "public Checks(kotlin.reflect.jvm.internal.impl.name.Name r8, kotlin.reflect.jvm.internal.impl.util.Check[] r9, kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String> r10) {\n /*\n r7 = this;\n java.lang.String r0 = \"name\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)\n java.lang.String r0 = \"checks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)\n java.lang.String r0 = \"additionalChecks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)\n int r0 = r9.length\n kotlin.reflect.jvm.internal.impl.util.Check[] r6 = new kotlin.reflect.jvm.internal.impl.util.Check[r0]\n int r0 = r9.length\n r1 = 0\n java.lang.System.arraycopy(r9, r1, r6, r1, r0)\n r3 = 0\n r4 = 0\n r1 = r7\n r2 = r8\n r5 = r10\n r1.<init>((kotlin.reflect.jvm.internal.impl.name.Name) r2, (kotlin.text.Regex) r3, (java.util.Collection<kotlin.reflect.jvm.internal.impl.name.Name>) r4, (kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String>) r5, (kotlin.reflect.jvm.internal.impl.util.Check[]) r6)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.util.Checks.<init>(kotlin.reflect.jvm.internal.impl.name.Name, kotlin.reflect.jvm.internal.impl.util.Check[], kotlin.jvm.functions.Function1):void\");\n }" ]
[ "0.6823829", "0.6823829", "0.65503216", "0.63052994", "0.6215914", "0.6176387", "0.6176387", "0.59935117", "0.593131", "0.5918452", "0.59039", "0.59029275", "0.58809066", "0.58809066", "0.58809066", "0.5774067", "0.5754762", "0.574694", "0.57172525", "0.57026017", "0.5698772", "0.5698772", "0.5698772", "0.56987613", "0.56911695", "0.56752414", "0.5674425", "0.5665384", "0.56644386", "0.5652473", "0.56256664", "0.5624347", "0.5601043", "0.55943644", "0.559334", "0.55848837", "0.55833864", "0.5560374", "0.55529904", "0.5523053", "0.5509058", "0.5506719", "0.5502618", "0.5488621", "0.54832727", "0.5482712", "0.5481526", "0.5443796", "0.5438124", "0.5421459", "0.5416931", "0.5404903", "0.5404775", "0.53814036", "0.5380803", "0.5375089", "0.5375089", "0.5375089", "0.5342897", "0.532898", "0.532765", "0.532429", "0.5303904", "0.52978575", "0.5295043", "0.52841425", "0.5283848", "0.5267034", "0.5266113", "0.5264143", "0.52636296", "0.52521825", "0.5247297", "0.524382", "0.52385813", "0.5237918", "0.523481", "0.5234195", "0.5229625", "0.522363", "0.5222597", "0.52152663", "0.521419", "0.5212804", "0.5212804", "0.5211733", "0.5210443", "0.5205956", "0.52058923", "0.5196634", "0.51962996", "0.51925313", "0.5188332", "0.5184929", "0.5181673", "0.51808107", "0.5180348", "0.51791877", "0.5175904", "0.51747537" ]
0.6408175
3
To String method to get info out of node
@Override public String toString(){ return "the node has: " + children.size() + " the counter is " + counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\n return \"Node: \" + data;\n }", "public String printNodeData(Node<T> node){\n return String.valueOf(node.data);\n }", "@Override\n public Object string(Object node) {\n return ((Node<E>) node).element.toString();\n }", "public String getInfoString();", "public static String TNodeToString(TNode n) {\n if (n == null)\n return \"NULL\";\n else\n return n.getName() + \":\" + n.getPort();\n }", "public String toString() {\r\n\t\tString cad = \"\";\r\n\t\tfor (int i = 0; i < nodes_.size(); i++) {\r\n\t\t\tcad += nodes_.get(i).getVal() + \" - \";\r\n\t\t}\r\n\t\treturn cad;\r\n\t}", "@Override\n public String toString() {\n return info();\n }", "@Override\n public String toString() {\n return InternalNodeSerializer.toString(this);\n }", "public String nodeToString(Node givenNode) throws SCNotifyRequestProcessingException {\n\t\tStringWriter sw = new StringWriter();\n\t\tString str;\n\t\ttry {\n\t\t\tTransformer t = TransformerFactory.newInstance().newTransformer();\n\t\t\tt.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n\t\t\tt.setOutputProperty(OutputKeys.ENCODING, \"UTF-16\");\n\t\t\tt.transform(new DOMSource(givenNode), new StreamResult(sw));\n\t\t\tstr = sw.toString();\n\t\t} catch (TransformerException te) {\n\t\t\tthrow new SCNotifyRequestProcessingException();\n\t\t}\n\t\treturn str;\n\t}", "@Override\r\n\tpublic String toInfoString() {\n\t\treturn null;\r\n\t}", "public static String getNodeStr(Node curr) {\r\n\t\treturn curr.str;\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n traverseNode(sb, \"\", \"\", root, false);\n return sb.toString();\n }", "public String toString(){\r\n\t\treturn root.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn (this.id + \"\\t\" + this.name + \"\\t\" + this.nodeType);\r\n\t}", "public String toString()\n {\n String result = \"\";\n\n Node first = this.first;\n while (first != null) {\n result += \"X = \" + first.getX() + \"\\n\";\n result += \"Y = \" + first.getY() + \"\\n\";\n result += \"X2 = \" + first.getX2() + \"\\n\";\n result += \"XY = \" + first.getXY() + \"\\n\";\n result += \"Y2 = \" + first.getY2() + \"\\n\";\n\n first = first.getNext();\n }\n\n return result;\n }", "public String toString(){\n return XMLParser.parseObject(this);\n }", "@Override\n public Object string(Object node) {\n Node<E> myNode = (Node<E>)node;\n String parentString = \"null\";\n if (myNode.parent != null) {\n parentString = myNode.parent.element.toString();\n }\n return myNode.element + \"_p(\" + parentString + \")\"; }", "String getInfo();", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder(\"BNNode \" + name + \":\\n\");\n\t\tif (isEvidence)\n\t\t\tsb.append(\" EVIDENCE\\n\");\n\t\tsb.append(\" value: \" + value + \"\\n\");\n\t\tsb.append(\" parents:\");\n\t\tif (parents.length == 0)\n\t\t\tsb.append(\" (none)\");\n\t\telse\n\t\t\tfor (BNNode parent : parents) \n\t\t\t\tsb.append(\" \" + parent.name);\n\t\tsb.append(\"\\n children:\");\n\t\tif (children.length == 0)\n\t\t\tsb.append(\" (none)\");\n\t\telse\n\t\t\tfor (BNNode child : children) \n\t\t\t\tsb.append(\" \" + child.name);\n\t\tsb.append(\"\\n CPT:\");\n\t\tfor (double cp : cpt)\n\t\t\tsb.append(\" \" + cp);\n\t\treturn sb.toString();\n\t}", "private String getString(Node node) {\n\n\t\tif (stringWriter == null) {\n\t\t\tprtln(\"ERROR: trying to execute sp without a stringWriter\");\n\t\t\treturn null;\n\t\t}\n\t\tStringWriter sw = new StringWriter();\n\n\t\ttry {\n\t\t\tstringWriter.setWriter(sw);\n\t\t\tstringWriter.write(node);\n\t\t\tstringWriter.flush();\n\t\t} catch (Exception e) {\n\t\t\tprtln(\"sp: \" + e.getMessage());\n\t\t}\n\t\treturn sw.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"node:\\n\").append(nodeJo);\n\t\tsb.append(\"\\nedges:\\n\").append(edgesJa);\n\t\treturn sb.toString();\n\t}", "public String toString()\r\n {\n \tString result = \"\";\r\n \tNode n = this.top;\r\n \twhile (n != null)\r\n \t{\r\n \t\tresult = result + \" \" + n.getItem().toString();\r\n \t\tn = n.getNext();\r\n \t}\r\n \treturn result.trim();\r\n }", "public String toString()\r\n/* 112: */ {\r\n/* 113:199 */ String s = \"\";\r\n/* 114:200 */ for (N node : getNodes())\r\n/* 115: */ {\r\n/* 116:201 */ s = s + \"\\n{ \" + node + \" \";\r\n/* 117:202 */ for (N suc : getSuccessors(node)) {\r\n/* 118:203 */ s = s + \"\\n ( \" + getEdge(node, suc) + \" \" + suc + \" )\";\r\n/* 119: */ }\r\n/* 120:205 */ s = s + \"\\n} \";\r\n/* 121: */ }\r\n/* 122:207 */ return s;\r\n/* 123: */ }", "protected String toString(Node<T> node) {\n\t\tif (node == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn node.value.toString() + \" \" \n\t\t\t\t+ toString(node.left) + \" \"\n\t\t\t\t+ toString(node.right);\n\t}", "public String toString()\n\t{\n\t\tNode current = head.getNext();\n\t\tString output = \"\";\n\t\t\n\t\twhile(current != null){\n\t\t\toutput += \"[\" + current.getData().toString() + \"]\\n\";\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\treturn output;\n\t}", "public String toString() {\n String toReturn = \"\";\n\n Node walker = this.first;\n while(walker != null) {\n toReturn += walker.data + \"\\t\";\n walker = walker.next;\n }\n\n return toReturn;\n }", "public String toString(org.w3c.dom.Node n){\n int nodeHandle=getDTMHandleFromNode(n);\n DTM dtm=getDTM(nodeHandle);\n XMLString strVal=dtm.getStringValue(nodeHandle);\n return strVal.toString();\n }", "public String toString(){\n return \"info\";\n }", "@Override\n public String toString() {\n return (this.originalValue == null ? this.getValue() : this.originalValue) + (this.nodeType.getName() == null\n ? \"\" : (\":\" + this.nodeType.getName()));\n }", "public String toString() {\n\t\treturn root.toString();\n\t}", "public String toString() {\n return tree.toString();\n }", "public String toString() {\n String s = \"\";\n\n if (FormEditor.compress) {\n if (domNode.getNodeName().equals(\"concept\")) {\n // s = \"ConceptName\";\n org.w3c.dom.Node name = domNode.getFirstChild();\n\n while ((name != null) && !name.getNodeName().equals(\"name\")) {\n name = name.getNextSibling();\n }\n\n if (name == null) {\n s += \"ConceptName\";\n } else {\n AdapterNode adpNode = new AdapterNode(name);\n s += adpNode.content();\n }\n } else if (domNode.getNodeName().equals(\"conceptList\")) {\n // s = \"ConceptName\";\n org.w3c.dom.Node name = domNode.getFirstChild();\n\n while ((name != null) && !name.getNodeName().equals(\"name\")) {\n name = name.getNextSibling();\n }\n\n if (name == null) {\n s += \"ConceptList\";\n } else {\n AdapterNode adpNode = new AdapterNode(name);\n s += adpNode.content();\n }\n } else if (domNode.getNodeName().equals(\"attribute\")) {\n org.w3c.dom.NamedNodeMap attributeList =\n domNode.getAttributes();\n org.w3c.dom.Node name = attributeList.getNamedItem(\"name\");\n s = name.getNodeValue();\n } else {\n String nodeName = domNode.getNodeName();\n\n if (!nodeName.startsWith(\"#\")) {\n s = nodeName;\n } else {\n s = typeName[domNode.getNodeType()];\n }\n }\n\n return s;\n }\n\n s = typeName[domNode.getNodeType()];\n\n String nodeName = domNode.getNodeName();\n\n if (!nodeName.startsWith(\"#\")) {\n s += (\": \" + nodeName);\n }\n\n if (domNode.getNodeValue() != null) {\n if (s.startsWith(\"ProcInstr\")) {\n s += \", \";\n } else {\n s += \": \";\n }\n\n // Trim the value to get rid of NL's at the front\n String t = domNode.getNodeValue().trim();\n int x = t.indexOf(\"\\n\");\n\n if (x >= 0) {\n t = t.substring(0, x);\n }\n\n s += t;\n }\n\n return s;\n }", "@Override\r\n public String toString(){\r\n return Integer.toString(node);\r\n }", "private static String node2Str(JsonNode node) {\n try {\n return jsonWriter.writeValueAsString(node);\n } catch (JsonProcessingException e) {\n throw new IllegalStateException(\"Error writing JsonNode as a String: \" + node.asText(), e);\n }\n }", "public String toString() {\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\t\t\r\n\t\tbuffer.append(\"<\" + xmltag + \" subgraph=\\\"\" + subgraph + \"\\\">\" + newline);\r\n\t\t\r\n\t\tfor (Variable currentVariable : variables) {\r\n\t\t\tbuffer.append(\"\\t\\t\\t\\t\\t\" + currentVariable);\r\n\t\t}\r\n\t\t\r\n\t\tbuffer.append(\"\\t\\t\\t\\t</\" + xmltag + \">\" + newline);\r\n\t\t\r\n\t\treturn buffer.toString();\r\n\t}", "public String makeString(){\n\t\tString title = getTitle();\n\t\tString xlabel = getXLabel();\n\t\tString ylabel = getYLabel();\n\t\tString GraphableDataInfoString = (\"<\" + title + \",\" + xlabel + \",\" + ylabel + \">\");\n\t\treturn GraphableDataInfoString;\n\t}", "public String toString() {\n\t\tString tester = \"\";\n\t\tfor(String node : nodes.keySet())\n\t\t{\n\t\t\ttester += \" \" + nodes.get(node) + \" \\n\";\n\t\t}\n\t\treturn tester;\n\t}", "public String toString() {\n\t\tString result = \"\";\n\t\tNode current = head;\n\n\t\twhile(current != null) {\n\t\t\tif (current.getCar() instanceof GasCar) {\n\t\t\t\tresult += ((GasCar)current.getCar()).getData() + \"\\n\";\n\t\t\t} else if (current.getCar() instanceof GreenCar) {\n\t\t\t\tresult += ((GreenCar)current.getCar()).getData() + \"\\n\";\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\treturn result;\n\t}", "public String toString() {\n\treturn createString(data);\n }", "public String toString() {\n\t\tString NL = \"\\n\\t\";\n\t\tString s = \"id: \" + getId();\n\t\ts += NL + \"definition: \" + getDefinition();\n\t\ts += NL + \"label: \" + getLabel();\n\t\ts += NL + \"fullText: \" + getFullText();\n\t\ts += NL + \"itemText: \" + getItemText();\n\t\ts += NL + \"isLeafNode: \" + getIsLeafNode();\n\t\treturn s;\n\t}", "public String toString()\n\t{\n\t\t//string to print out\n\t\tString printOut = \"\";\n\t\t//set the current node to head\n\t\tLinkedListNode<T> currentNode = head;\n\t\t//go through the list\n\t\twhile (currentNode.getNext() != null){\n\t\t\t//add to the string\n\t\t\tprintOut += currentNode.getData().toString() + \" \";\n\t\t\t//set the current node to next node\n\t\t\tcurrentNode = currentNode.getNext(); \n\t\t}\n\t\tprintOut += getLastNode().getData().toString();\n\t\treturn printOut;\n\t}", "public String toString(){\n String re = null;\n Node tmp = head;\n while(tmp != null) {\n re = re + \" \" + tmp.element.toString();\n }\n return re;\n }", "public String toString(){\n\t\treturn \"<== at \" + time + \": \" + name + \", \" + type + \", \" + data + \"==>\"; \n\t}", "public static String nodeToString(Node node)\n {\n StringWriter sw = new StringWriter();\n try\n {\n Transformer t = TransformerFactory.newInstance().newTransformer();\n t.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n t.setOutputProperty(OutputKeys.INDENT, \"no\");\n /* CB - Since everything is already stored as strings in memory why shoud an encoding be required here? */\n t.setOutputProperty(OutputKeys.ENCODING, RuntimeConstants.ENCODING_DEFAULT);\n t.transform(new DOMSource(node), new StreamResult(sw));\n }\n catch (TransformerException te)\n {\n LOGGER.error(\"could not convert XML node to string\", te);\n }\n return sw.toString();\n }", "public String getNodeValue ();", "public String toStringX() {\n\n StringBuffer\tsb\t= new StringBuffer(\"MMPCOrderNode[\");\n\n sb.append(getName()).append(\"-\").append(getActionInfo());\n\n return sb.toString();\n\n }", "public String toString() { return stringify(this, true); }", "public String toString()\r\n\t{\r\n\t\treturn root.toString();\r\n\t}", "public String toString() {\r\n\t\tNode<E> current = head;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\twhile (current != null) {\r\n\t\t\tsb.append(\",\" + current.data);\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public String toString() { return kind() + \":\"+ text() ; }", "public String toString() {\n\t\t// Anmerkung: StringBuffer wäre die bessere Lösung.\n\t\tString text = \"\";\n\t\tListNode<E> p = head;\n\t\twhile (p != null) {\n\t\t\ttext += p.toString() + \" \";\n\t\t\tp = p.getTail();\n\t\t}\n\t\treturn \"( \" + text + \") \";\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAddedToClusterTime() != null)\n sb.append(\"AddedToClusterTime: \").append(getAddedToClusterTime()).append(\",\");\n if (getBrokerNodeInfo() != null)\n sb.append(\"BrokerNodeInfo: \").append(getBrokerNodeInfo()).append(\",\");\n if (getInstanceType() != null)\n sb.append(\"InstanceType: \").append(getInstanceType()).append(\",\");\n if (getNodeARN() != null)\n sb.append(\"NodeARN: \").append(getNodeARN()).append(\",\");\n if (getNodeType() != null)\n sb.append(\"NodeType: \").append(getNodeType()).append(\",\");\n if (getZookeeperNodeInfo() != null)\n sb.append(\"ZookeeperNodeInfo: \").append(getZookeeperNodeInfo());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString() {\r\n if (typeSystemNode!=null) {\t// kann null sein z.B. bei PIDLs\r\n return typeSystemNode.getAbsoluteName() + \" \" + name;\r\n }\r\n else {\r\n return name;\r\n }\r\n }", "public String getAsText()\n {\n StringWriter sw = new StringWriter();\n DOMWriter dw = new DOMWriter(sw);\n dw.print((Node)getValue());\n return sw.toString();\n }", "public String toString() {\n\t\tStringBuilder temp = new StringBuilder();\n\n\t\tfor (int index = 0; index < verticesNum; index++) {\n\t\t\tif(list[index] == null)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttemp.append(\"node:\");\n\t\t\ttemp.append(index);\n\t\t\ttemp.append(\": \");\n\t\t\ttemp.append(list[index].toString());\n\t\t\ttemp.append(\"\\n\");\n\t\t}\n\n\t\treturn temp.toString();\n\t}", "public String toString()\n {\n return this.j2ksec + \",\" + this.eid + \",\" + this.lat + \",\" + this.lon + \",\" + this.depth + \",\" + this.prefmag;\n }", "public String toString() {\n\n\t\tString s = \"\";\n\t\tNode N = head;\n\t\twhile (N != null) {\n\t\t\ts += N.item + \" \";\n\t\t\tN = N.next;\n\t\t}\n\t\treturn s;\n\n\t}", "public String serialize(Node15 root) {\n\t if(root == null) return \"\";\n\t serializeT(root);\n\t return sb.toString();\n\t }", "@Override\n public String toString(){\n Node curr=this.head;\n String str=\"\";\n while(curr!=null){\n str+=(curr.data + \" -> \");\n curr=curr.next;\n }\n return str;\n }", "public String toXML() {\n\t StringBuilder builder = new StringBuilder(\"<info \");\n\t builder.append(\"id=\\\"\" + mId + \"\\\"\");\n\t builder.append(\" type=\\\"\" + mType + \"\\\"\");\n\t builder.append(\" bytes=\\\"\" + mBytes + \"\\\"\");\n\n\t if (mHeight > 0)\n\t\tbuilder.append(\" height=\\\"\" + mHeight + \"\\\"\");\n\t if (mWidth > 0)\n\t\tbuilder.append(\" width=\\\"\" + mWidth + \"\\\"\");\n\t if (mUrl != null)\n\t\tbuilder.append(\" url=\\\"\" + mUrl + \"\\\"\");\n\t builder.append(\" />\");\n\t return builder.toString();\n\t}", "private static String toStatisticsString(Node node) {\n\t\tStatistics stats = new Statistics();\n\t\ttoStatisticsString(node, stats);\n\t\t\n\t\tNumberFormat f = NumberFormat.getPercentInstance();\n\t\tf.setMaximumFractionDigits(2);\n\t\tdouble nodes = stats.nodes * 1.0;\n\t\tdouble chars = stats.chars * 1.0;\n\t\t\n\t\treturn \n\t\t\"[\" + \n\t\t\"nodes=\" + stats.nodes +\n\t\t\", elements=\" + f.format(stats.elements / nodes) +\n\t\t\", attributes=\" + f.format(stats.attributes / nodes) +\n\t\t\", texts=\" + f.format(stats.texts / nodes) +\n\t\t\", comments=\" + f.format(stats.comments / nodes) +\n\t\t\", pis=\" + f.format(stats.pis / nodes) +\n\t\t\", docTypes=\" + f.format(stats.docTypes / nodes) +\n\t\t\n\t\t\", chars=\" + stats.chars +\n\t\t\", tagChars=\" + f.format(stats.tagChars / chars) +\n\t\t\", whitespaceChars=\" + f.format(stats.whitespaceChars / chars) +\n\t\t\", nonASCIIChars=\" + f.format(stats.nonASCIIChars / chars) +\n//\t\t\", memorySizeMB=\" + (getMemorySize(node) / (1024.0f * 1024.0f)) +\n\t\t\"]\";\n\t}", "public String toString() {\r\n\t\tString s = \"\";\r\n\t\t\r\n\t\tfor ( IntNode i = this; i!= null; i = i.link ) {\r\n\t\t\tif (i.link == null)\r\n\t\t\t\ts = s + i.data;\r\n\t\t\telse\r\n\t\t\t\ts = s + i.data + \"->\";\r\n\t\t} // end for\r\n\t\t\r\n\t\treturn s;\r\n\t}", "@Override\n public String toString(){\n Node curr=this.head;\n String str=\"\";\n while(curr!=null){\n str+=(curr.data + \" -> \");\n curr=curr.next;\n }\n return str;\n }", "public String toString() {\n\t\tString str = \"\";\n\t\tfor (TrieNode n : nodes) {\n\t\t\tstr += n.toString();\n\t\t}\n\t\treturn str;\n\t}", "public String toString() {\n\t\tString temp;\n\t\tint i;\n\n\t\ttemp = new String(\"\");\n\n\t\t//Seperate each word by a space (leave off \"_start_node_\" and \"_end_node_\")\n\t\tfor (i = 1; i < wc.size() - 1; i++) {\n\t\t\ttemp = temp.concat(((String) wc.elementAt(i)));\n\t\t\tif (i < wc.size() - 2) {\n\t\t\t\ttemp = temp.concat(\" \");\n\t\t\t}\n\t\t}\n\t\tif (temp.length() <= 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn temp;\n\t}", "public String toString() {\n\t\tif(this.start != null && this.end != null){\n\t\t\tString s1 = (\"\\n\\nEdge: \" + this.edgeId + \"\\nReliable: \" + this.isReliable\n\t\t\t\t+ \"\\nMessage Flow Type: \" + this.msgFlowType\n\t\t\t\t+ \"\\nDelay type: \"\n\t\t\t\t+ this.delayType + \"\\nNode 1: \" + this.start.getNodeId()\n\t\t\t\t+ \"\\nNode 2: \" + this.end.getNodeId());\n\t\t\treturn s1;\n\t\t\t\n\t\t}else{\t\t\n\t\t\tString s2 = (\"\\n\\nEdge: \" + this.edgeId + \"\\nReliable: \" + this.isReliable\n\t\t\t\t+ \"\\nMessage Flow Type: \" + this.msgFlowType\n\t\t\t\t+ \"\\nNum Message Entered: \" + \"\\nDelay type: \"\n\t\t\t\t+ this.delayType);\n\t\t\treturn s2;\n\t\t}\t\t\n\t}", "public String toString() {\n\t\treturn data.toString();\n }", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "public String toString() {\n Class<? extends AST> tclass = this.getClass();\n // isolate relative name (starting after the rightmost '.')\n String absoluteClassName = tclass.toString();\n int dotIndex = absoluteClassName.lastIndexOf(\".\", absoluteClassName.length());\n String relativeClassName = absoluteClassName.substring(dotIndex+1);\n // retrieving fields (note that, unfortunately, they are not ordered)\n // TO DO : get rid of static fields (pb in case of singletons)\n Field[] fields = tclass.getDeclaredFields();\n // building string representation of the arguments of the nodes\n int arity = fields.length;\n String args = \"\";\n for(int index = 0; index < arity; index++) {\n String arg;\n try {\n arg = fields[index].get(this).toString(); // retrieve string representation of all arguments\n } catch (Exception e) {\n arg = \"?\"; // IllegalArgument or IllegalAccess Exception (this shouldn't happen)\n }\n if (index != 0) // a separator is required before each argument except the first\n args = args + \", \" + arg;\n//\t\t\t\targs = args + \" \" + arg;\n else\n args = args + arg;\n }\n return relativeClassName + \"(\" + args + \")\";\n//\t\treturn \"<\" + relativeClassName + \">\" + args + \"</\" + relativeClassName + \">\";\n }", "public String toString() {\r\n return DOM2Writer.nodeToString((Node) element);\r\n }", "public static String asString(final Node node) {\r\n if (node == null) {\r\n return \"null\";\r\n }\r\n\r\n return asString(new DOMSource(node), DEFAULT_BUFFER_SIZE);\r\n }", "public String toString() { \r\n\t\tString Sresult = \"(\" + lChild.toString() + \" / \" + rChild.toString() + \")\";\r\n\t\treturn Sresult; \r\n\t}", "@Override\n public String toString(){\n String result = \"\";\n Node n = first;\n while(n != null){\n result += n.value + \" \";\n n = n.next;\n }\n return result;\n }", "@Override\n public String toString() {\n \t\n \t//call method is empty to check if there is a first node\n if (isEmpty()) {\n return nameList + \" is empty\";\n }\n \n //here StringBuilder is used to make sentence: \"The (name of list) id\"\n StringBuilder buffer = new StringBuilder();\n buffer.append(\"The \").append(nameList).append(\" contains:\\n\");\n \n //create current node and assign it to first node\n Node<T> current = firstNode;\n \n \n //while current node has next node, retrieve data from current node and append a \",\" to make it readeble\n while (current != null) {\n buffer.append(current.getData()).append(\"\");\n current = current.getNext();\n }\n return buffer.toString();\n }", "public String toString() {\n\t\tNode current = top;\n\t\tStringBuilder s = new StringBuilder();\n\t\twhile (current != null) {\n\t\t\ts.append(current.value + \" \");\n\t\t\tcurrent = current.next;\n\t\t}\n\n\t\treturn s.toString();\n\t}", "public String toString ()\n {\n String str = \"\";\n Node nodeRef = head;\n for (int i = 0; i < size&& nodeRef!= null; i++) {\n str = str + nodeRef.data + \"\\n\";\n nodeRef = nodeRef.next;}\n return str;\n }", "public String toString() {\n String text = xmlNode.getText();\n\n return (text != null) ? text.trim() : \"\";\n }", "public String toString()\n\t{\n\n if ( !isEmpty() )\n\t\t{ \n Node tNode = head;\n String str = tNode.item;\n\t\t\twhile (tNode.next != null)\n\t\t\t{\n\t\t\t\ttNode = tNode.next;\n str = str + \" -> \" + tNode.item;\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t\treturn null;\n\t\t//return \"\";\n }", "public String toString() {\n return \"\" + data;\n }", "public String getInfo() {\n Object ref = info_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n info_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public static String toString(FeatureNode head)\n\t{\n\t\tif (head == null) return \"\";\n\t\tFeatureNode fn = head.get(\"phr-head\");\n\t\tif (fn == null)\n\t\t{\n\t\t\tfn = head.get(\"phr-type\");\n\t\t\tif (fn != null) return fn.getValue();\n\t\t\tfn = head.get(\"phr-word\");\n\t\t\tif (fn != null)\n\t\t\t{\n\t\t\t\tfn = fn.get(\"orig_str\");\n\t\t\t\tif (fn != null) return fn.getValue();\n\t\t\t}\n\t\t\treturn \"\";\n\t\t}\n\t\tString str = \"\";\n\t\treturn _toString(fn, str);\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tNode current = head;\n\t\tstr += \"[ \";\n\t\twhile (current != null) {\n\t\t\tstr += current.value;\n\t\t\tif (current.next != null) {\n\t\t\t\tstr += \", \";\n\t\t\t}\n\n\t\t\tcurrent = current.next;\n\t\t}\n\t\tstr += \" ]\";\n\n\t\treturn str;\n\t}", "private String getStringValue(Node node) {\n switch (node.getNodeType()) {\n case Node.ATTRIBUTE_NODE:\n case Node.TEXT_NODE:\n return node.getNodeValue();\n default: {\n try {\n Transformer transformer = TRANSFORMER_FACTORY.newTransformer();\n StringWriter buffer = new StringWriter();\n transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n transformer.transform(new DOMSource(node), new StreamResult(buffer));\n return buffer.toString();\n } catch (Exception e) {\n }\n return null;\n }\n }\n }", "public String toString() {\n\t\tcheckRep();\n\t\treturn (this.getLabel() + \" pointing to \" + this.getChild());\n\t}", "public String toString() {\n StringBuilder s = new StringBuilder(\"{\");\n\n Node<T> next;\n if (start != null) {\n next = start;\n s.append(next);\n next = next.next;\n while (next != null) {\n s.append(\", \" + next);\n next = next.next;\n }\n }\n s.append(\"}\");\n return s.toString();\n }", "public String toString(){\n String result = \"\";\n LinearNode<T> trav = front;\n while (trav != null){\n result += trav.getElement();\n trav = trav.getNext();\n }\n return result;\n }", "private String toString2(BinaryNode<E> t) {\n if (t == null) return \"\";\n StringBuilder sb = new StringBuilder();\n sb.append(toString2(t.left));\n sb.append(t.element.toString() + \" \");\n sb.append(toString2(t.right));\n return sb.toString();\n }", "public abstract <T extends INode<T>> String nodeToString(int nodeId, T node, boolean isInitial, boolean isTerminal);", "public String getSaveString() {\n try {\n Node node = getSaveNode();\n\n StringWriter writer = new StringWriter();\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.transform(new DOMSource(node), new StreamResult(writer));\n return writer.toString();\n }\n catch (TransformerConfigurationException e) {\n throw new RuntimeException(e);\n }\n catch (TransformerException e) {\n throw new RuntimeException(e);\n }\n }", "public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}", "public String toString() {\n String s = \"\";\n try {\n s += get_nodeid()+\"\\t\";\n //s += \" [nodeid=0x\"+Long.toHexString(get_nodeid())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += get_counter()+\"\\t\";\n //s += \" [counter=0x\"+Long.toHexString(get_counter())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_p_sendts()+\"\\t\";\n //s += \" [p_sendts=0x\"+Long.toHexString(get_p_sendts())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_receivets()+\"\\t\";\n //s += \" [receivets=0x\"+Long.toHexString(get_receivets())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_virtual_clk())+\"\\t\";\n //s += \" [virtual_clk=\"+Float.toString(get_virtual_clk())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_skew_cmp())+\"\\t\";\n //s += \" [skew_cmp=\"+Float.toString(get_skew_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_offset_cmp())+\"\";\n //s += \" [offset_cmp=\"+Float.toString(get_offset_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }", "public String toString()\n{\n StringBuffer buf = new StringBuffer();\n buf.append(\"[SOURCE: \" + for_source.getName() + \",\\n\");\n if (getTransforms() != null) {\n buf.append(\"TRANS:\");\n for (S6Transform.Memo m : getTransforms()) {\n\tbuf.append(\" \");\n\tbuf.append(m.getTransformName());\n }\n }\n else {\n buf.append(\" TEXT: \" + getFragment().getText());\n }\n buf.append(\"]\");\n\n return buf.toString();\n}", "@Override\r\n \tpublic final String toStringAsNode(boolean printRangeInfo) {\r\n \t\tString str = toStringClassName();\r\n \t\t\r\n \t\tif(printRangeInfo) {\r\n \t\t\tif(hasNoSourceRangeInfo()) {\r\n \t\t\t\tstr += \" [?+?]\";\r\n \t\t\t} else {\r\n \t\t\t\tstr += \" [\"+ getStartPos() +\"+\"+ getLength() +\"]\";\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn str;\r\n \t}", "@Nullable\n public static String toString(final Node node) {\n\n return toString( node, true );\n }", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}", "@Override\n public String toString() {\n StringBuilder outString = new StringBuilder();\n int currentTreeIndex = this.indexCorrespondingToTheFirstElement;\n if (treeSize > 0) {\n while (currentTreeIndex != -1) {\n Node<T> currentNode = getHelper(currentTreeIndex);\n outString.append(currentNode.data).append(\", \");\n currentTreeIndex = currentNode.nextIndex;\n }\n }\n\n if (outString.length() != 0) {\n outString.deleteCharAt(outString.length() - 1); // \", \"\n outString.deleteCharAt(outString.length() - 1);\n }\n return \"[\" + outString.toString() + \"]\";\n }", "String toString();", "String toString();" ]
[ "0.7326153", "0.708378", "0.69515824", "0.6946687", "0.69449306", "0.6895503", "0.68818146", "0.68278223", "0.680483", "0.6801037", "0.6779999", "0.6710065", "0.6664246", "0.66612774", "0.66453105", "0.6639522", "0.6615232", "0.6602645", "0.658746", "0.6586792", "0.6579281", "0.65786064", "0.65764123", "0.6574577", "0.6572582", "0.6566415", "0.65532434", "0.6549334", "0.6539867", "0.65076107", "0.6505432", "0.6498789", "0.6491896", "0.64905965", "0.6486764", "0.647759", "0.6463985", "0.6457082", "0.64523214", "0.6446407", "0.6443056", "0.64410764", "0.6439294", "0.64302677", "0.6429447", "0.6420642", "0.6419932", "0.641741", "0.6409432", "0.64062434", "0.6405861", "0.6405252", "0.63964", "0.6395048", "0.6388848", "0.6388307", "0.6384849", "0.6383479", "0.63834214", "0.6378417", "0.6377829", "0.637725", "0.6375475", "0.6375396", "0.63723934", "0.6367763", "0.6358077", "0.63521343", "0.63521343", "0.6349769", "0.63480854", "0.63342184", "0.6334138", "0.6328862", "0.6318592", "0.63137573", "0.63033396", "0.63000864", "0.62939245", "0.6291505", "0.62786686", "0.62777615", "0.62727714", "0.62680537", "0.6267664", "0.62574893", "0.62553585", "0.62540853", "0.6253412", "0.6250793", "0.62490964", "0.6248986", "0.6245134", "0.6243315", "0.6240763", "0.6233633", "0.62312806", "0.62309074", "0.62276506", "0.62265104", "0.62265104" ]
0.0
-1
Fetches the number of searches and unique IPs grouped by date.
@Override public List<Object[]> getStatistics(String owner, StatisticsGroup group) { String groupHQL = this.groupToHQL(group); List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam("select count(*), " + "count(distinct ipAddress), " + groupHQL + " " + "from SearchEvent " + "where owner like :owner " + "group by col_2_0_", "owner", owner); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countUniqueIPs(){\n ArrayList<String> uniqueIps = new ArrayList<String>();\n for(LogEntry le : records){\n String iprAddr = le.getIpAddress();\n if(!uniqueIps.contains(iprAddr)){\n uniqueIps.add(iprAddr);\n } \n } \n return uniqueIps.size();\n }", "public SearchResponse getNumberOfFactsPerMacAdresse(String lastInputDate, TransportClient client){\n return client.prepareSearch(\"cityflow\")\n .setTypes(\"facts\")\n .setQuery(QueryBuilders.rangeQuery(\"insertDate\").gt(lastInputDate))\n .setScroll(new TimeValue(6000000))\n .addAggregation(AggregationBuilders.terms(\"macAdresses\").field(\"macAdresse\").size(Integer.MAX_VALUE))\n .setSize(10000).execute().actionGet();\n }", "int findAllCount() ;", "Long getAllCount();", "public ArrayList<String> iPsWithMostVisitsOnDay(HashMap<String, ArrayList<String>> dates, String day){\n ArrayList<String> visitsOnDay = dates.get(day);\n \n //Make a NEW HashMap to hold the unique IP addresses and the number of times they occur\n HashMap<String, Integer> ipCounts = new HashMap<String, Integer>();\n \n //Now fill this HashMap using the same algorithm we've been using for the previous few assignments\n for(String ip : visitsOnDay){\n if(!ipCounts.containsKey(ip)){\n ipCounts.put(ip, 1);\n }\n else{\n ipCounts.put(ip, ipCounts.get(ip) + 1);\n }\n }\n \n //Now, the answer is as simple as calling iPsMostVisits (which returns an ArrayList<String>) on the HashMap you just made!\n return iPsMostVisits(ipCounts);\n }", "int getResultsCount();", "int getResultsCount();", "Set<VisitedResource> getVisitingStatistic(Date date);", "List<Integer> getCounts(SearchQuery... conditions);", "int getSeenInfoCount();", "Map<String, Long> hits();", "long countSearchByComputerName(Map<String, String> options);", "long getRequestsCount();", "int getNumberOfResults();", "public static int countDays(List<MonitoredData> data){\n System.out.println(\"3) How many times has appeared each activity for each day: \");\n long result = 0;\n ArrayList<String> days = new ArrayList<>();\n ArrayList<MonitoredData> dataTrunc = new ArrayList<>();\n for (int i=0; i<data.size(); i++){\n String day = \"\";\n day += data.get(i).getStartTime().charAt(8);\n day += data.get(i).getStartTime().charAt(9);\n days.add(day);\n }\n for (int i=0; i<data.size(); i++){\n dataTrunc.add(data.get(i));\n if (i<days.size()-1){\n if (!days.get(i+1).equals(days.get(i))){\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n dataTrunc.clear();\n }\n }else{\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n }\n }\n Stream<String> daysStream = days.stream();\n result = daysStream\n .distinct()\n .count();\n return (int)result;\n }", "@Override\r\n\tpublic int getDayCount(Date date) {\n\t\tString hql = \"select cc.count from cinema_condition cc where cc.date = ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, date);\r\n\t\tif(query.uniqueResult()==null){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint resutl = (Integer) query.uniqueResult();\r\n\t\treturn resutl;\r\n\t}", "@Override\r\n\tpublic int countAll() {\r\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\tFINDER_ARGS_EMPTY, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_SHARE);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\r\n\t\t\t\t\tcount);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\t\tFINDER_ARGS_EMPTY);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}", "List<RecordCount> getRecordCounts(String clientId) throws Exception;", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group, String from, String to) {\n String date = parseDateLimit(from, to);\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + date + \" \"\n + \"group by col_2_0_\", \"owner\", owner);\n return list;\n }", "int getRequestsCount();", "int getRequestsCount();", "List<CabResponse> getCountByMedallionAndPickupDate(List<String> medallions, Date pickupDate);", "@Query (\"SELECT c.client, COUNT(c.client) from Reserva AS c group by c.client order by COUNT(c.client)DESC\")\r\n public List<Object[]> countTotalReservationsByClient();", "@LogExceptions\n public int getNumberOfEvents(String date) throws SQLException {\n Connection conn = DatabaseConnection.getConnection();\n int i = 0;\n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_DATE)) \n {\n stmt.setString(1, date);\n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n i++;\n }\n }\n }\n return i;\n }", "private void fillIPDaily() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n String sqlSelect = \"SELECT COUNT(*), SUM(volume_s_to_c), date(datetime), i.t_ip_id, site_id, type, mime_type, auth, request_statuscode, COALESCE(a.t_http_agent_id, 0) FROM t_http_log_data l LEFT JOIN http.t_http_agent a ON (a.agent_name = l.user_agent AND ((a.version IS NULL AND l.agent_version IS NULL) OR a.version = l.agent_version)) INNER JOIN net.t_ip i ON client_ip = host(i.ip) WHERE NOT l.intranet GROUP BY date(datetime), t_ip_id, site_id, type, mime_type, site_name, auth, request_statuscode, a.t_http_agent_id\";\n String sqlInsert = \"INSERT INTO http.t_ip_daily (occurences, volume, calc_day, t_ip_id, t_domain_site_id, trafic_type, mime_type_id, t_authorization_id, request_statuscode, t_http_agent_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n String sqlUpdate = \"UPDATE http.t_ip_daily SET occurences = occurences + ?, volume = volume + ? WHERE calc_day = ? AND t_ip_id = ? AND t_domain_site_id = ? AND trafic_type = ? AND mime_type_id = ? AND t_authorization_id = ? AND request_statuscode = ? AND t_http_agent_id = ?\";\n PreparedStatement pstSelect = db.prepareStatement(sqlSelect);\n PreparedStatement pstInsert = db.prepareStatement(sqlInsert);\n PreparedStatement pstUpdate = db.prepareStatement(sqlUpdate);\n ResultSet rs = db.executeQuery(pstSelect);\n if (rs.next()) {\n do {\n Integer mimeId = mime.getMimeTypeId(rs.getString(7));\n pstUpdate.setInt(1, rs.getInt(1));\n pstUpdate.setLong(2, rs.getLong(2));\n pstUpdate.setDate(3, rs.getDate(3));\n pstUpdate.setInt(4, rs.getInt(4));\n pstUpdate.setInt(5, rs.getInt(5));\n pstUpdate.setInt(6, rs.getInt(6));\n pstUpdate.setObject(7, mimeId);\n pstUpdate.setInt(8, rs.getInt(8));\n pstUpdate.setInt(9, rs.getInt(9));\n pstUpdate.setInt(10, rs.getInt(10));\n if (db.executeUpdate(pstUpdate) == 0) {\n pstInsert.setInt(1, rs.getInt(1));\n pstInsert.setLong(2, rs.getLong(2));\n pstInsert.setDate(3, rs.getDate(3));\n pstInsert.setInt(4, rs.getInt(4));\n pstInsert.setInt(5, rs.getInt(5));\n pstInsert.setInt(6, rs.getInt(6));\n pstInsert.setObject(7, mimeId);\n pstInsert.setInt(8, rs.getInt(8));\n pstInsert.setInt(9, rs.getInt(9));\n pstInsert.setInt(10, rs.getInt(10));\n db.executeUpdate(pstInsert);\n }\n } while (rs.next());\n } else {\n _logger.debug(\"No IP daily to insert\");\n }\n } finally {\n db.exit();\n }\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_VCMSPORTION);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getTravelGroupListCount(Map conditions);", "int getServicesCount();", "int getServicesCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }", "public Map<String, Long> findIssues() {\n SearchResponse searchResponse = client.prepareSearch(INDEX_BASE)\n .addAggregation(terms(\"issues\").field(\"issue\"))\n .setSize(0)\n .get();\n\n Terms issues = searchResponse.getAggregations().get(\"issues\");\n Map<String, Long> foundIssues = new LinkedHashMap<>();\n issues.getBuckets().forEach(bucket -> {\n foundIssues.put(bucket.getKeyAsString(), bucket.getDocCount());\n });\n\n return foundIssues;\n }", "public long countAll();", "@Override\n\tpublic int datecount() throws Exception {\n\t\treturn dao.datecount();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_INTERVIEWSCHEDULE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getVulnerabilityReportsCount();", "public NSArray<NSDictionary <Object, Integer>> itemCounts(Result result) {\n //TODO\n return NSArray.EmptyArray;\n }", "int getResponseCount();", "Map<String, Long> getVisitIpLogs();", "long countAll();", "long countAll();", "public ArrayList<StatisticsVo> showCount(String sDate,String eDate) {\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\tResultSet rs=null;\r\n\t\tString sql=\"select rc.rcarname,count(*) cnt from(select * from rentlist where rstartdate between to_date(?, 'YYYY/MM/DD HH24:MI') and to_date(?, 'YYYY/MM/DD HH24:MI'))rl,rentcar rc where rl.rennum=rc.rennum group by rc.rcarname\";\r\n\t\ttry {\r\n\t\t\tconn=DbcpBean.getConn();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, sDate+\" 00:00\");\r\n\t\t\tpstmt.setString(2, eDate+\" 23:59\");\r\n\t\t\trs=pstmt.executeQuery();\r\n\t\t\tArrayList<StatisticsVo> list=new ArrayList<>();\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tint cnt=rs.getInt(\"cnt\");\r\n\t\t\t\t\r\n\t\t\t\tString rcarName=rs.getString(\"rcarName\");\r\n\t\t\t\r\n\t\t\t\tStatisticsVo vo=new StatisticsVo(null, rcarName, 0, null, cnt);\r\n\t\t\t\tlist.add(vo);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t}catch(SQLException se) {\r\n\t\t\tSystem.out.println(se.getMessage());\r\n\t\t\treturn null;\r\n\t\t}finally {\r\n\t\t\tDbcpBean.close(conn, pstmt, rs);\r\n\t\t}\r\n\t}", "private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}", "public int countResults() \n {\n return itsResults_size;\n }", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "int getHotelImageURLsCount();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LOCALRICHINFO);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private void appointmentReport() {\n Set<String> types = new HashSet<>();\n Set<Month> months = new HashSet<>();\n HashMap<String, Integer> numberByType = new HashMap<>();\n HashMap<Month, Integer> numberByMonth = new HashMap<>();\n\n for (Appointment appointment: Data.getAppointments()) {\n months.add(appointment.getStart().toLocalDateTime().getMonth());\n types.add(appointment.getType());\n }\n\n for (String type: types) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n\n if (type.equals(appointment.getType())) {\n count++;\n }\n numberByType.put(type, count);\n }\n }\n for (Month month: months) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n if (month.equals(appointment.getStart().toLocalDateTime().getMonth())) {\n count++;\n }\n numberByMonth.put(month, count);\n }\n }\n\n reportText.appendText(\"Report of the number of appointments by type:\\n\\n\");\n reportText.appendText(\"Count \\t\\tType\\n\");\n numberByType.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n reportText.appendText(\"\\n\\n\\nReport of the number of appointments by Month:\\n\\n\");\n reportText.appendText(\"Count \\t\\tMonth\\n\");\n numberByMonth.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n\n }", "int getListSnIdCount();", "Map<String, Integer> getSearchResults(String searchTerm) {\n\n Map<String, Integer> libCount = new ConcurrentHashMap<>();\n\n try {\n Document document = Jsoup.connect(google + URLEncoder.encode(searchTerm, charset))\n .userAgent(userAgent)\n .referrer(\"http://www.google.com\")\n .get();\n\n Elements links = document.select(\"a[href]\");\n Set<String> urls = new HashSet<>();\n for (Element link: links) {\n if (link.attr(\"href\") != null && link.attr(\"href\").contains(\"=\")) {\n String url = link.attr(\"href\").split(\"=\")[1];\n if (url.contains(\"http\")) {\n urls.add(getDomainName(url));\n }\n }\n }\n\n CountDownLatch latch = new CountDownLatch(urls.size());\n\n for (String url: urls) {\n AnalysePage analysePage = new AnalysePage(url);\n completionService.submit(analysePage);\n }\n\n int completed = 0;\n\n while(completed < urls.size()) {\n try {\n Future<Set<String>> resultFuture = completionService.take();\n Set<String> strings = resultFuture.get();\n for (String lib : strings) {\n Integer count = libCount.get(lib);\n if (count == null) {\n libCount.put(lib, 1);\n } else {\n libCount.put(lib, ++count);\n }\n }\n completed++;\n latch.countDown();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n } catch (MalformedURLException e) {\n System.out.println(\"The URL is Malformed\");\n } catch (UnsupportedEncodingException e) {\n System.out.println(\"Incorrect URL encoding\");\n } catch (IOException e) {\n System.out.println(\"Unable to read from google\");\n e.printStackTrace();\n }\n executor.shutdown();\n return libCount;\n }", "@Override\n\tpublic List<String> countDate() {\n\t\treturn controlA.countDate();\n\t}", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group, SearchEventType type, String from, String to) {\n String date = parseDateLimit(from, to);\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + \"and eventType = :type \"\n + date + \" \"\n + \"group by col_2_0_\", new String[]{\"owner\", \"type\"}, new Object[]{owner, type});\n return list;\n }", "public ArrayList<CustomerCountry> getCountryByCustomerCount(){\n ArrayList<CustomerCountry> customerCountry = new ArrayList<>();\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n // (https://stackoverflow.com/questions/39565394/how-to-rename-result-set-of-count-in-sql)\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT Country, COUNT(*) as numcustomers FROM Customer GROUP BY Country ORDER BY numcustomers DESC\");\n\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n customerCountry.add(new CustomerCountry(set.getString(\"Country\"), set.getString(\"numcustomers\")));\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return customerCountry;\n\n }", "public int searchRowsCount(SearchCriteria cri);", "int getServiceAccountsCount();", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_FACILITY_HOST);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getListCount();", "long countUniqueClientsBetween(String companyId, DateTime startDate, DateTime endDate);", "public long numPostingEntries();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_USERSTATISTICS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CANDIDATE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getNumberOfDetectedDuplicates();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LINKGROUP);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_ADDRESSCHANGEREQDETAILS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getTotalCreatedConnections();", "int getDataScansCount();", "public long countRecords();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "int getTotalCount();", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group, SearchEventType type) {\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + \"and eventType = :type \"\n + \"group by col_2_0_\", new String[]{\"owner\", \"type\"}, new Object[]{owner, type});\n return list;\n }", "int getIndexEndpointsCount();", "@Override\n\tpublic String getAdIdSet(String date) {\n\t\tString sql=\"select creative_id from \" + hiveTableName +\" where business_id='\"\n\t\t\t\t+ businessId+\"' and ad_date='\"+date+\"' group by creative_id\";\n\t\tlog.info(\"FrequencyTask Running-->\"+sql);\n\t\tList<Map<String, Object>> result = hiveJdbcTemplate.queryForList(sql);\n\t\tIterator<Map<String,Object>> it = result.iterator();\n\t\tString ads=null;\n\t\twhile (it.hasNext()) {\n\t\t\tMap<String, Object> map = (Map<String, Object>)it.next();\n\t\t\tString ad_id = String.valueOf(map.get(\"creative_id\"));\n\t\t\tif(ads==null){\n\t\t\t\tads = ad_id;\n\t\t\t}else{\n\t\t\t\tif(Integer.valueOf(ad_id)!=0){\n\t\t\t\t\tads += (\",\" + ad_id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ads;\n\t}", "public int getNumberOfDates() {\n return dateList.size();\n }", "int getCachedCount();", "int getCityImageURLsCount();", "public String fetchCountMyData(User loginUser);", "public int findAllCount() {\n\t\treturn mapper.selectCount(null);\n\t}", "public String aggregations(String query, String since, String until, String fields, String limit, String count)\n \t throws Exception {\n \t\tString apiUrl = \"api/search.json?\";\n\n \t\tthis.query = query;\n \t\tthis.since = since;\n \t\tthis.until = until;\n \t\tthis.fields = fields;\n \t\tthis.limit = limit == \"\" ? \"6\" : limit;\n \t\tthis.count = count == \"\" ? \"0\" : count;\n\n \t\tif (query != \"\") {\n \t\t\tapiUrl = apiUrl + \"query=\" + this.query;\n if (since != \"\") {\n \tapiUrl = apiUrl + \" since:\" + this.since;\n }\n if (until != \"\") {\n \tapiUrl = apiUrl + \" until:\" + this.until;\n }\n apiUrl = apiUrl + \"&source=cache\";\n apiUrl = apiUrl + \"&count=\" + this.count;\n if (fields != \"\") {\n \tapiUrl = apiUrl + \"&fields=\" + this.fields;\n }\n apiUrl = apiUrl + \"&limit=\" + this.limit;\n\n String url = this.baseUrl + apiUrl;\n\n URL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) urlObj.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n String response = \"\";\n\t\t\tif (responseCode == 200) {\n response = buildReponse(con);\n\t\t\t} else {\n\t\t response = \"{'error': 'Something went wrong, looks like the server is down.'}\";\n\t\t\t}\n\n\t\t\treturn response;\n \t\t} else {\n\t\t\treturn \"{'error': 'No Query string has been sent to query for an account'}\";\n\t\t}\n \t}", "public long countAllLots() throws MiddlewareQueryException;", "public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}", "@Override\r\n\tpublic int getCountByAll() throws Exception {\n\t\treturn 0;\r\n\t}", "@Query(\"select count(r) from Reservation r group by r.user\")\n\tCollection<Double> dashboardRendezvousesRsvp();", "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic Long searchCountData(List<? extends SearchObject> searchCriteria) throws Exception {\n\t\treturn poDAO.searchCountData(searchCriteria);\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_DMHISTORYGOODS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private Integer getTotalRecords(String search) {\n\t\tif (search == null || search.isEmpty())\n\t\t\treturn customerRepo.findByIsActive(true).size();\n\n\t\telse\n\t\t\treturn customerRepo\n\t\t\t\t\t.findByCustomerNameContainsIgnoreCaseOrCustomerDescriptionContainsIgnoreCaseOrCustomerEmailIdContainsIgnoreCaseOrCustomerGroupEmailIdContainsIgnoreCaseOrCustomerMobileNumberContainsIgnoreCaseOrUtilityIdContainsIgnoreCaseAndIsActive(\n\t\t\t\t\t\t\tsearch, search, search, search, search, search, true)\n\t\t\t\t\t.size();\n\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_PHATVAY);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}" ]
[ "0.59976584", "0.5990726", "0.5773595", "0.5743895", "0.56419003", "0.5485763", "0.5485763", "0.5463687", "0.5438733", "0.5344848", "0.53411216", "0.53121215", "0.52847034", "0.5284569", "0.5277835", "0.52686155", "0.5203704", "0.5186207", "0.5182087", "0.51796216", "0.51796216", "0.51722443", "0.5169032", "0.5162696", "0.5142707", "0.51418865", "0.513337", "0.5123169", "0.5123169", "0.5112562", "0.5112562", "0.5112562", "0.5112562", "0.5112562", "0.51070505", "0.5099321", "0.5091241", "0.5086042", "0.5083372", "0.5074569", "0.50634056", "0.50584525", "0.5041883", "0.50385123", "0.50385123", "0.50319874", "0.5019276", "0.50189567", "0.50063646", "0.49948937", "0.4992742", "0.49910668", "0.49887446", "0.49861363", "0.4981153", "0.49777406", "0.49772137", "0.49580577", "0.49559808", "0.4951409", "0.49484172", "0.49456522", "0.49406853", "0.4940491", "0.49307278", "0.4930594", "0.49296024", "0.49240413", "0.49173445", "0.49140227", "0.49116927", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.4908193", "0.49075106", "0.49053648", "0.4899046", "0.48959798", "0.48914617", "0.48899835", "0.48786178", "0.48764735", "0.48708194", "0.48703253", "0.4862808", "0.48608205", "0.48585856", "0.4850766", "0.48493013", "0.4848192", "0.48453254" ]
0.51440686
24
Fetches the number of searches and unique IPs grouped by date.
@Override public List<Object[]> getStatistics(String owner, StatisticsGroup group, SearchEventType type) { String groupHQL = this.groupToHQL(group); List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam("select count(*), " + "count(distinct ipAddress), " + groupHQL + " " + "from SearchEvent " + "where owner like :owner " + "and eventType = :type " + "group by col_2_0_", new String[]{"owner", "type"}, new Object[]{owner, type}); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countUniqueIPs(){\n ArrayList<String> uniqueIps = new ArrayList<String>();\n for(LogEntry le : records){\n String iprAddr = le.getIpAddress();\n if(!uniqueIps.contains(iprAddr)){\n uniqueIps.add(iprAddr);\n } \n } \n return uniqueIps.size();\n }", "public SearchResponse getNumberOfFactsPerMacAdresse(String lastInputDate, TransportClient client){\n return client.prepareSearch(\"cityflow\")\n .setTypes(\"facts\")\n .setQuery(QueryBuilders.rangeQuery(\"insertDate\").gt(lastInputDate))\n .setScroll(new TimeValue(6000000))\n .addAggregation(AggregationBuilders.terms(\"macAdresses\").field(\"macAdresse\").size(Integer.MAX_VALUE))\n .setSize(10000).execute().actionGet();\n }", "int findAllCount() ;", "Long getAllCount();", "public ArrayList<String> iPsWithMostVisitsOnDay(HashMap<String, ArrayList<String>> dates, String day){\n ArrayList<String> visitsOnDay = dates.get(day);\n \n //Make a NEW HashMap to hold the unique IP addresses and the number of times they occur\n HashMap<String, Integer> ipCounts = new HashMap<String, Integer>();\n \n //Now fill this HashMap using the same algorithm we've been using for the previous few assignments\n for(String ip : visitsOnDay){\n if(!ipCounts.containsKey(ip)){\n ipCounts.put(ip, 1);\n }\n else{\n ipCounts.put(ip, ipCounts.get(ip) + 1);\n }\n }\n \n //Now, the answer is as simple as calling iPsMostVisits (which returns an ArrayList<String>) on the HashMap you just made!\n return iPsMostVisits(ipCounts);\n }", "int getResultsCount();", "int getResultsCount();", "Set<VisitedResource> getVisitingStatistic(Date date);", "List<Integer> getCounts(SearchQuery... conditions);", "int getSeenInfoCount();", "Map<String, Long> hits();", "long countSearchByComputerName(Map<String, String> options);", "long getRequestsCount();", "int getNumberOfResults();", "public static int countDays(List<MonitoredData> data){\n System.out.println(\"3) How many times has appeared each activity for each day: \");\n long result = 0;\n ArrayList<String> days = new ArrayList<>();\n ArrayList<MonitoredData> dataTrunc = new ArrayList<>();\n for (int i=0; i<data.size(); i++){\n String day = \"\";\n day += data.get(i).getStartTime().charAt(8);\n day += data.get(i).getStartTime().charAt(9);\n days.add(day);\n }\n for (int i=0; i<data.size(); i++){\n dataTrunc.add(data.get(i));\n if (i<days.size()-1){\n if (!days.get(i+1).equals(days.get(i))){\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n dataTrunc.clear();\n }\n }else{\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n }\n }\n Stream<String> daysStream = days.stream();\n result = daysStream\n .distinct()\n .count();\n return (int)result;\n }", "@Override\r\n\tpublic int getDayCount(Date date) {\n\t\tString hql = \"select cc.count from cinema_condition cc where cc.date = ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, date);\r\n\t\tif(query.uniqueResult()==null){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint resutl = (Integer) query.uniqueResult();\r\n\t\treturn resutl;\r\n\t}", "@Override\r\n\tpublic int countAll() {\r\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\tFINDER_ARGS_EMPTY, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_SHARE);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\r\n\t\t\t\t\tcount);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\t\tFINDER_ARGS_EMPTY);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}", "List<RecordCount> getRecordCounts(String clientId) throws Exception;", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group, String from, String to) {\n String date = parseDateLimit(from, to);\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + date + \" \"\n + \"group by col_2_0_\", \"owner\", owner);\n return list;\n }", "int getRequestsCount();", "int getRequestsCount();", "List<CabResponse> getCountByMedallionAndPickupDate(List<String> medallions, Date pickupDate);", "@Query (\"SELECT c.client, COUNT(c.client) from Reserva AS c group by c.client order by COUNT(c.client)DESC\")\r\n public List<Object[]> countTotalReservationsByClient();", "@LogExceptions\n public int getNumberOfEvents(String date) throws SQLException {\n Connection conn = DatabaseConnection.getConnection();\n int i = 0;\n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_DATE)) \n {\n stmt.setString(1, date);\n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n i++;\n }\n }\n }\n return i;\n }", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group) {\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + \"group by col_2_0_\", \"owner\", owner);\n return list;\n }", "private void fillIPDaily() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n String sqlSelect = \"SELECT COUNT(*), SUM(volume_s_to_c), date(datetime), i.t_ip_id, site_id, type, mime_type, auth, request_statuscode, COALESCE(a.t_http_agent_id, 0) FROM t_http_log_data l LEFT JOIN http.t_http_agent a ON (a.agent_name = l.user_agent AND ((a.version IS NULL AND l.agent_version IS NULL) OR a.version = l.agent_version)) INNER JOIN net.t_ip i ON client_ip = host(i.ip) WHERE NOT l.intranet GROUP BY date(datetime), t_ip_id, site_id, type, mime_type, site_name, auth, request_statuscode, a.t_http_agent_id\";\n String sqlInsert = \"INSERT INTO http.t_ip_daily (occurences, volume, calc_day, t_ip_id, t_domain_site_id, trafic_type, mime_type_id, t_authorization_id, request_statuscode, t_http_agent_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n String sqlUpdate = \"UPDATE http.t_ip_daily SET occurences = occurences + ?, volume = volume + ? WHERE calc_day = ? AND t_ip_id = ? AND t_domain_site_id = ? AND trafic_type = ? AND mime_type_id = ? AND t_authorization_id = ? AND request_statuscode = ? AND t_http_agent_id = ?\";\n PreparedStatement pstSelect = db.prepareStatement(sqlSelect);\n PreparedStatement pstInsert = db.prepareStatement(sqlInsert);\n PreparedStatement pstUpdate = db.prepareStatement(sqlUpdate);\n ResultSet rs = db.executeQuery(pstSelect);\n if (rs.next()) {\n do {\n Integer mimeId = mime.getMimeTypeId(rs.getString(7));\n pstUpdate.setInt(1, rs.getInt(1));\n pstUpdate.setLong(2, rs.getLong(2));\n pstUpdate.setDate(3, rs.getDate(3));\n pstUpdate.setInt(4, rs.getInt(4));\n pstUpdate.setInt(5, rs.getInt(5));\n pstUpdate.setInt(6, rs.getInt(6));\n pstUpdate.setObject(7, mimeId);\n pstUpdate.setInt(8, rs.getInt(8));\n pstUpdate.setInt(9, rs.getInt(9));\n pstUpdate.setInt(10, rs.getInt(10));\n if (db.executeUpdate(pstUpdate) == 0) {\n pstInsert.setInt(1, rs.getInt(1));\n pstInsert.setLong(2, rs.getLong(2));\n pstInsert.setDate(3, rs.getDate(3));\n pstInsert.setInt(4, rs.getInt(4));\n pstInsert.setInt(5, rs.getInt(5));\n pstInsert.setInt(6, rs.getInt(6));\n pstInsert.setObject(7, mimeId);\n pstInsert.setInt(8, rs.getInt(8));\n pstInsert.setInt(9, rs.getInt(9));\n pstInsert.setInt(10, rs.getInt(10));\n db.executeUpdate(pstInsert);\n }\n } while (rs.next());\n } else {\n _logger.debug(\"No IP daily to insert\");\n }\n } finally {\n db.exit();\n }\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_VCMSPORTION);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getTravelGroupListCount(Map conditions);", "int getServicesCount();", "int getServicesCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }", "public Map<String, Long> findIssues() {\n SearchResponse searchResponse = client.prepareSearch(INDEX_BASE)\n .addAggregation(terms(\"issues\").field(\"issue\"))\n .setSize(0)\n .get();\n\n Terms issues = searchResponse.getAggregations().get(\"issues\");\n Map<String, Long> foundIssues = new LinkedHashMap<>();\n issues.getBuckets().forEach(bucket -> {\n foundIssues.put(bucket.getKeyAsString(), bucket.getDocCount());\n });\n\n return foundIssues;\n }", "public long countAll();", "@Override\n\tpublic int datecount() throws Exception {\n\t\treturn dao.datecount();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_INTERVIEWSCHEDULE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getVulnerabilityReportsCount();", "public NSArray<NSDictionary <Object, Integer>> itemCounts(Result result) {\n //TODO\n return NSArray.EmptyArray;\n }", "int getResponseCount();", "Map<String, Long> getVisitIpLogs();", "long countAll();", "long countAll();", "public ArrayList<StatisticsVo> showCount(String sDate,String eDate) {\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\tResultSet rs=null;\r\n\t\tString sql=\"select rc.rcarname,count(*) cnt from(select * from rentlist where rstartdate between to_date(?, 'YYYY/MM/DD HH24:MI') and to_date(?, 'YYYY/MM/DD HH24:MI'))rl,rentcar rc where rl.rennum=rc.rennum group by rc.rcarname\";\r\n\t\ttry {\r\n\t\t\tconn=DbcpBean.getConn();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, sDate+\" 00:00\");\r\n\t\t\tpstmt.setString(2, eDate+\" 23:59\");\r\n\t\t\trs=pstmt.executeQuery();\r\n\t\t\tArrayList<StatisticsVo> list=new ArrayList<>();\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tint cnt=rs.getInt(\"cnt\");\r\n\t\t\t\t\r\n\t\t\t\tString rcarName=rs.getString(\"rcarName\");\r\n\t\t\t\r\n\t\t\t\tStatisticsVo vo=new StatisticsVo(null, rcarName, 0, null, cnt);\r\n\t\t\t\tlist.add(vo);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t}catch(SQLException se) {\r\n\t\t\tSystem.out.println(se.getMessage());\r\n\t\t\treturn null;\r\n\t\t}finally {\r\n\t\t\tDbcpBean.close(conn, pstmt, rs);\r\n\t\t}\r\n\t}", "private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}", "public int countResults() \n {\n return itsResults_size;\n }", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "int getHotelImageURLsCount();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LOCALRICHINFO);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private void appointmentReport() {\n Set<String> types = new HashSet<>();\n Set<Month> months = new HashSet<>();\n HashMap<String, Integer> numberByType = new HashMap<>();\n HashMap<Month, Integer> numberByMonth = new HashMap<>();\n\n for (Appointment appointment: Data.getAppointments()) {\n months.add(appointment.getStart().toLocalDateTime().getMonth());\n types.add(appointment.getType());\n }\n\n for (String type: types) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n\n if (type.equals(appointment.getType())) {\n count++;\n }\n numberByType.put(type, count);\n }\n }\n for (Month month: months) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n if (month.equals(appointment.getStart().toLocalDateTime().getMonth())) {\n count++;\n }\n numberByMonth.put(month, count);\n }\n }\n\n reportText.appendText(\"Report of the number of appointments by type:\\n\\n\");\n reportText.appendText(\"Count \\t\\tType\\n\");\n numberByType.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n reportText.appendText(\"\\n\\n\\nReport of the number of appointments by Month:\\n\\n\");\n reportText.appendText(\"Count \\t\\tMonth\\n\");\n numberByMonth.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n\n }", "int getListSnIdCount();", "Map<String, Integer> getSearchResults(String searchTerm) {\n\n Map<String, Integer> libCount = new ConcurrentHashMap<>();\n\n try {\n Document document = Jsoup.connect(google + URLEncoder.encode(searchTerm, charset))\n .userAgent(userAgent)\n .referrer(\"http://www.google.com\")\n .get();\n\n Elements links = document.select(\"a[href]\");\n Set<String> urls = new HashSet<>();\n for (Element link: links) {\n if (link.attr(\"href\") != null && link.attr(\"href\").contains(\"=\")) {\n String url = link.attr(\"href\").split(\"=\")[1];\n if (url.contains(\"http\")) {\n urls.add(getDomainName(url));\n }\n }\n }\n\n CountDownLatch latch = new CountDownLatch(urls.size());\n\n for (String url: urls) {\n AnalysePage analysePage = new AnalysePage(url);\n completionService.submit(analysePage);\n }\n\n int completed = 0;\n\n while(completed < urls.size()) {\n try {\n Future<Set<String>> resultFuture = completionService.take();\n Set<String> strings = resultFuture.get();\n for (String lib : strings) {\n Integer count = libCount.get(lib);\n if (count == null) {\n libCount.put(lib, 1);\n } else {\n libCount.put(lib, ++count);\n }\n }\n completed++;\n latch.countDown();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n } catch (MalformedURLException e) {\n System.out.println(\"The URL is Malformed\");\n } catch (UnsupportedEncodingException e) {\n System.out.println(\"Incorrect URL encoding\");\n } catch (IOException e) {\n System.out.println(\"Unable to read from google\");\n e.printStackTrace();\n }\n executor.shutdown();\n return libCount;\n }", "@Override\n\tpublic List<String> countDate() {\n\t\treturn controlA.countDate();\n\t}", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group, SearchEventType type, String from, String to) {\n String date = parseDateLimit(from, to);\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + \"and eventType = :type \"\n + date + \" \"\n + \"group by col_2_0_\", new String[]{\"owner\", \"type\"}, new Object[]{owner, type});\n return list;\n }", "public ArrayList<CustomerCountry> getCountryByCustomerCount(){\n ArrayList<CustomerCountry> customerCountry = new ArrayList<>();\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n // (https://stackoverflow.com/questions/39565394/how-to-rename-result-set-of-count-in-sql)\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT Country, COUNT(*) as numcustomers FROM Customer GROUP BY Country ORDER BY numcustomers DESC\");\n\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n customerCountry.add(new CustomerCountry(set.getString(\"Country\"), set.getString(\"numcustomers\")));\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return customerCountry;\n\n }", "public int searchRowsCount(SearchCriteria cri);", "int getServiceAccountsCount();", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_FACILITY_HOST);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getListCount();", "long countUniqueClientsBetween(String companyId, DateTime startDate, DateTime endDate);", "public long numPostingEntries();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_USERSTATISTICS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CANDIDATE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getNumberOfDetectedDuplicates();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LINKGROUP);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_ADDRESSCHANGEREQDETAILS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getTotalCreatedConnections();", "int getDataScansCount();", "public long countRecords();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "int getTotalCount();", "int getIndexEndpointsCount();", "@Override\n\tpublic String getAdIdSet(String date) {\n\t\tString sql=\"select creative_id from \" + hiveTableName +\" where business_id='\"\n\t\t\t\t+ businessId+\"' and ad_date='\"+date+\"' group by creative_id\";\n\t\tlog.info(\"FrequencyTask Running-->\"+sql);\n\t\tList<Map<String, Object>> result = hiveJdbcTemplate.queryForList(sql);\n\t\tIterator<Map<String,Object>> it = result.iterator();\n\t\tString ads=null;\n\t\twhile (it.hasNext()) {\n\t\t\tMap<String, Object> map = (Map<String, Object>)it.next();\n\t\t\tString ad_id = String.valueOf(map.get(\"creative_id\"));\n\t\t\tif(ads==null){\n\t\t\t\tads = ad_id;\n\t\t\t}else{\n\t\t\t\tif(Integer.valueOf(ad_id)!=0){\n\t\t\t\t\tads += (\",\" + ad_id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ads;\n\t}", "public int getNumberOfDates() {\n return dateList.size();\n }", "int getCachedCount();", "int getCityImageURLsCount();", "public String fetchCountMyData(User loginUser);", "public int findAllCount() {\n\t\treturn mapper.selectCount(null);\n\t}", "public String aggregations(String query, String since, String until, String fields, String limit, String count)\n \t throws Exception {\n \t\tString apiUrl = \"api/search.json?\";\n\n \t\tthis.query = query;\n \t\tthis.since = since;\n \t\tthis.until = until;\n \t\tthis.fields = fields;\n \t\tthis.limit = limit == \"\" ? \"6\" : limit;\n \t\tthis.count = count == \"\" ? \"0\" : count;\n\n \t\tif (query != \"\") {\n \t\t\tapiUrl = apiUrl + \"query=\" + this.query;\n if (since != \"\") {\n \tapiUrl = apiUrl + \" since:\" + this.since;\n }\n if (until != \"\") {\n \tapiUrl = apiUrl + \" until:\" + this.until;\n }\n apiUrl = apiUrl + \"&source=cache\";\n apiUrl = apiUrl + \"&count=\" + this.count;\n if (fields != \"\") {\n \tapiUrl = apiUrl + \"&fields=\" + this.fields;\n }\n apiUrl = apiUrl + \"&limit=\" + this.limit;\n\n String url = this.baseUrl + apiUrl;\n\n URL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) urlObj.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n String response = \"\";\n\t\t\tif (responseCode == 200) {\n response = buildReponse(con);\n\t\t\t} else {\n\t\t response = \"{'error': 'Something went wrong, looks like the server is down.'}\";\n\t\t\t}\n\n\t\t\treturn response;\n \t\t} else {\n\t\t\treturn \"{'error': 'No Query string has been sent to query for an account'}\";\n\t\t}\n \t}", "public long countAllLots() throws MiddlewareQueryException;", "public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}", "@Override\r\n\tpublic int getCountByAll() throws Exception {\n\t\treturn 0;\r\n\t}", "@Query(\"select count(r) from Reservation r group by r.user\")\n\tCollection<Double> dashboardRendezvousesRsvp();", "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic Long searchCountData(List<? extends SearchObject> searchCriteria) throws Exception {\n\t\treturn poDAO.searchCountData(searchCriteria);\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_DMHISTORYGOODS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private Integer getTotalRecords(String search) {\n\t\tif (search == null || search.isEmpty())\n\t\t\treturn customerRepo.findByIsActive(true).size();\n\n\t\telse\n\t\t\treturn customerRepo\n\t\t\t\t\t.findByCustomerNameContainsIgnoreCaseOrCustomerDescriptionContainsIgnoreCaseOrCustomerEmailIdContainsIgnoreCaseOrCustomerGroupEmailIdContainsIgnoreCaseOrCustomerMobileNumberContainsIgnoreCaseOrUtilityIdContainsIgnoreCaseAndIsActive(\n\t\t\t\t\t\t\tsearch, search, search, search, search, search, true)\n\t\t\t\t\t.size();\n\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_PHATVAY);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}" ]
[ "0.59976584", "0.5990726", "0.5773595", "0.5743895", "0.56419003", "0.5485763", "0.5485763", "0.5463687", "0.5438733", "0.5344848", "0.53411216", "0.53121215", "0.52847034", "0.5284569", "0.5277835", "0.52686155", "0.5203704", "0.5186207", "0.5182087", "0.51796216", "0.51796216", "0.51722443", "0.5169032", "0.5162696", "0.51440686", "0.5142707", "0.51418865", "0.513337", "0.5123169", "0.5123169", "0.5112562", "0.5112562", "0.5112562", "0.5112562", "0.5112562", "0.51070505", "0.5099321", "0.5091241", "0.5086042", "0.5083372", "0.5074569", "0.50634056", "0.50584525", "0.5041883", "0.50385123", "0.50385123", "0.50319874", "0.5019276", "0.50189567", "0.50063646", "0.49948937", "0.4992742", "0.49910668", "0.49887446", "0.49861363", "0.4981153", "0.49777406", "0.49772137", "0.49580577", "0.49559808", "0.4951409", "0.49484172", "0.49456522", "0.49406853", "0.4940491", "0.49307278", "0.4930594", "0.49296024", "0.49240413", "0.49173445", "0.49140227", "0.49116927", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.4908193", "0.49053648", "0.4899046", "0.48959798", "0.48914617", "0.48899835", "0.48786178", "0.48764735", "0.48708194", "0.48703253", "0.4862808", "0.48608205", "0.48585856", "0.4850766", "0.48493013", "0.4848192", "0.48453254" ]
0.49075106
84
Fetches the number of searches and unique IPs grouped by date.
@Override public List<Object[]> getStatistics(String owner, StatisticsGroup group, String from, String to) { String date = parseDateLimit(from, to); String groupHQL = this.groupToHQL(group); List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam("select count(*), " + "count(distinct ipAddress), " + groupHQL + " " + "from SearchEvent " + "where owner like :owner " + date + " " + "group by col_2_0_", "owner", owner); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countUniqueIPs(){\n ArrayList<String> uniqueIps = new ArrayList<String>();\n for(LogEntry le : records){\n String iprAddr = le.getIpAddress();\n if(!uniqueIps.contains(iprAddr)){\n uniqueIps.add(iprAddr);\n } \n } \n return uniqueIps.size();\n }", "public SearchResponse getNumberOfFactsPerMacAdresse(String lastInputDate, TransportClient client){\n return client.prepareSearch(\"cityflow\")\n .setTypes(\"facts\")\n .setQuery(QueryBuilders.rangeQuery(\"insertDate\").gt(lastInputDate))\n .setScroll(new TimeValue(6000000))\n .addAggregation(AggregationBuilders.terms(\"macAdresses\").field(\"macAdresse\").size(Integer.MAX_VALUE))\n .setSize(10000).execute().actionGet();\n }", "int findAllCount() ;", "Long getAllCount();", "public ArrayList<String> iPsWithMostVisitsOnDay(HashMap<String, ArrayList<String>> dates, String day){\n ArrayList<String> visitsOnDay = dates.get(day);\n \n //Make a NEW HashMap to hold the unique IP addresses and the number of times they occur\n HashMap<String, Integer> ipCounts = new HashMap<String, Integer>();\n \n //Now fill this HashMap using the same algorithm we've been using for the previous few assignments\n for(String ip : visitsOnDay){\n if(!ipCounts.containsKey(ip)){\n ipCounts.put(ip, 1);\n }\n else{\n ipCounts.put(ip, ipCounts.get(ip) + 1);\n }\n }\n \n //Now, the answer is as simple as calling iPsMostVisits (which returns an ArrayList<String>) on the HashMap you just made!\n return iPsMostVisits(ipCounts);\n }", "int getResultsCount();", "int getResultsCount();", "Set<VisitedResource> getVisitingStatistic(Date date);", "List<Integer> getCounts(SearchQuery... conditions);", "int getSeenInfoCount();", "Map<String, Long> hits();", "long countSearchByComputerName(Map<String, String> options);", "long getRequestsCount();", "int getNumberOfResults();", "public static int countDays(List<MonitoredData> data){\n System.out.println(\"3) How many times has appeared each activity for each day: \");\n long result = 0;\n ArrayList<String> days = new ArrayList<>();\n ArrayList<MonitoredData> dataTrunc = new ArrayList<>();\n for (int i=0; i<data.size(); i++){\n String day = \"\";\n day += data.get(i).getStartTime().charAt(8);\n day += data.get(i).getStartTime().charAt(9);\n days.add(day);\n }\n for (int i=0; i<data.size(); i++){\n dataTrunc.add(data.get(i));\n if (i<days.size()-1){\n if (!days.get(i+1).equals(days.get(i))){\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n dataTrunc.clear();\n }\n }else{\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n }\n }\n Stream<String> daysStream = days.stream();\n result = daysStream\n .distinct()\n .count();\n return (int)result;\n }", "@Override\r\n\tpublic int getDayCount(Date date) {\n\t\tString hql = \"select cc.count from cinema_condition cc where cc.date = ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, date);\r\n\t\tif(query.uniqueResult()==null){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint resutl = (Integer) query.uniqueResult();\r\n\t\treturn resutl;\r\n\t}", "@Override\r\n\tpublic int countAll() {\r\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\tFINDER_ARGS_EMPTY, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_SHARE);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\r\n\t\t\t\t\tcount);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\t\tFINDER_ARGS_EMPTY);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}", "List<RecordCount> getRecordCounts(String clientId) throws Exception;", "int getRequestsCount();", "int getRequestsCount();", "List<CabResponse> getCountByMedallionAndPickupDate(List<String> medallions, Date pickupDate);", "@Query (\"SELECT c.client, COUNT(c.client) from Reserva AS c group by c.client order by COUNT(c.client)DESC\")\r\n public List<Object[]> countTotalReservationsByClient();", "@LogExceptions\n public int getNumberOfEvents(String date) throws SQLException {\n Connection conn = DatabaseConnection.getConnection();\n int i = 0;\n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_DATE)) \n {\n stmt.setString(1, date);\n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n i++;\n }\n }\n }\n return i;\n }", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group) {\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + \"group by col_2_0_\", \"owner\", owner);\n return list;\n }", "private void fillIPDaily() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n String sqlSelect = \"SELECT COUNT(*), SUM(volume_s_to_c), date(datetime), i.t_ip_id, site_id, type, mime_type, auth, request_statuscode, COALESCE(a.t_http_agent_id, 0) FROM t_http_log_data l LEFT JOIN http.t_http_agent a ON (a.agent_name = l.user_agent AND ((a.version IS NULL AND l.agent_version IS NULL) OR a.version = l.agent_version)) INNER JOIN net.t_ip i ON client_ip = host(i.ip) WHERE NOT l.intranet GROUP BY date(datetime), t_ip_id, site_id, type, mime_type, site_name, auth, request_statuscode, a.t_http_agent_id\";\n String sqlInsert = \"INSERT INTO http.t_ip_daily (occurences, volume, calc_day, t_ip_id, t_domain_site_id, trafic_type, mime_type_id, t_authorization_id, request_statuscode, t_http_agent_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n String sqlUpdate = \"UPDATE http.t_ip_daily SET occurences = occurences + ?, volume = volume + ? WHERE calc_day = ? AND t_ip_id = ? AND t_domain_site_id = ? AND trafic_type = ? AND mime_type_id = ? AND t_authorization_id = ? AND request_statuscode = ? AND t_http_agent_id = ?\";\n PreparedStatement pstSelect = db.prepareStatement(sqlSelect);\n PreparedStatement pstInsert = db.prepareStatement(sqlInsert);\n PreparedStatement pstUpdate = db.prepareStatement(sqlUpdate);\n ResultSet rs = db.executeQuery(pstSelect);\n if (rs.next()) {\n do {\n Integer mimeId = mime.getMimeTypeId(rs.getString(7));\n pstUpdate.setInt(1, rs.getInt(1));\n pstUpdate.setLong(2, rs.getLong(2));\n pstUpdate.setDate(3, rs.getDate(3));\n pstUpdate.setInt(4, rs.getInt(4));\n pstUpdate.setInt(5, rs.getInt(5));\n pstUpdate.setInt(6, rs.getInt(6));\n pstUpdate.setObject(7, mimeId);\n pstUpdate.setInt(8, rs.getInt(8));\n pstUpdate.setInt(9, rs.getInt(9));\n pstUpdate.setInt(10, rs.getInt(10));\n if (db.executeUpdate(pstUpdate) == 0) {\n pstInsert.setInt(1, rs.getInt(1));\n pstInsert.setLong(2, rs.getLong(2));\n pstInsert.setDate(3, rs.getDate(3));\n pstInsert.setInt(4, rs.getInt(4));\n pstInsert.setInt(5, rs.getInt(5));\n pstInsert.setInt(6, rs.getInt(6));\n pstInsert.setObject(7, mimeId);\n pstInsert.setInt(8, rs.getInt(8));\n pstInsert.setInt(9, rs.getInt(9));\n pstInsert.setInt(10, rs.getInt(10));\n db.executeUpdate(pstInsert);\n }\n } while (rs.next());\n } else {\n _logger.debug(\"No IP daily to insert\");\n }\n } finally {\n db.exit();\n }\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_VCMSPORTION);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getTravelGroupListCount(Map conditions);", "int getServicesCount();", "int getServicesCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }", "public Map<String, Long> findIssues() {\n SearchResponse searchResponse = client.prepareSearch(INDEX_BASE)\n .addAggregation(terms(\"issues\").field(\"issue\"))\n .setSize(0)\n .get();\n\n Terms issues = searchResponse.getAggregations().get(\"issues\");\n Map<String, Long> foundIssues = new LinkedHashMap<>();\n issues.getBuckets().forEach(bucket -> {\n foundIssues.put(bucket.getKeyAsString(), bucket.getDocCount());\n });\n\n return foundIssues;\n }", "public long countAll();", "@Override\n\tpublic int datecount() throws Exception {\n\t\treturn dao.datecount();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_INTERVIEWSCHEDULE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getVulnerabilityReportsCount();", "public NSArray<NSDictionary <Object, Integer>> itemCounts(Result result) {\n //TODO\n return NSArray.EmptyArray;\n }", "int getResponseCount();", "Map<String, Long> getVisitIpLogs();", "long countAll();", "long countAll();", "public ArrayList<StatisticsVo> showCount(String sDate,String eDate) {\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\tResultSet rs=null;\r\n\t\tString sql=\"select rc.rcarname,count(*) cnt from(select * from rentlist where rstartdate between to_date(?, 'YYYY/MM/DD HH24:MI') and to_date(?, 'YYYY/MM/DD HH24:MI'))rl,rentcar rc where rl.rennum=rc.rennum group by rc.rcarname\";\r\n\t\ttry {\r\n\t\t\tconn=DbcpBean.getConn();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, sDate+\" 00:00\");\r\n\t\t\tpstmt.setString(2, eDate+\" 23:59\");\r\n\t\t\trs=pstmt.executeQuery();\r\n\t\t\tArrayList<StatisticsVo> list=new ArrayList<>();\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tint cnt=rs.getInt(\"cnt\");\r\n\t\t\t\t\r\n\t\t\t\tString rcarName=rs.getString(\"rcarName\");\r\n\t\t\t\r\n\t\t\t\tStatisticsVo vo=new StatisticsVo(null, rcarName, 0, null, cnt);\r\n\t\t\t\tlist.add(vo);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t}catch(SQLException se) {\r\n\t\t\tSystem.out.println(se.getMessage());\r\n\t\t\treturn null;\r\n\t\t}finally {\r\n\t\t\tDbcpBean.close(conn, pstmt, rs);\r\n\t\t}\r\n\t}", "private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}", "public int countResults() \n {\n return itsResults_size;\n }", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "int getHotelImageURLsCount();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LOCALRICHINFO);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private void appointmentReport() {\n Set<String> types = new HashSet<>();\n Set<Month> months = new HashSet<>();\n HashMap<String, Integer> numberByType = new HashMap<>();\n HashMap<Month, Integer> numberByMonth = new HashMap<>();\n\n for (Appointment appointment: Data.getAppointments()) {\n months.add(appointment.getStart().toLocalDateTime().getMonth());\n types.add(appointment.getType());\n }\n\n for (String type: types) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n\n if (type.equals(appointment.getType())) {\n count++;\n }\n numberByType.put(type, count);\n }\n }\n for (Month month: months) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n if (month.equals(appointment.getStart().toLocalDateTime().getMonth())) {\n count++;\n }\n numberByMonth.put(month, count);\n }\n }\n\n reportText.appendText(\"Report of the number of appointments by type:\\n\\n\");\n reportText.appendText(\"Count \\t\\tType\\n\");\n numberByType.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n reportText.appendText(\"\\n\\n\\nReport of the number of appointments by Month:\\n\\n\");\n reportText.appendText(\"Count \\t\\tMonth\\n\");\n numberByMonth.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n\n }", "int getListSnIdCount();", "Map<String, Integer> getSearchResults(String searchTerm) {\n\n Map<String, Integer> libCount = new ConcurrentHashMap<>();\n\n try {\n Document document = Jsoup.connect(google + URLEncoder.encode(searchTerm, charset))\n .userAgent(userAgent)\n .referrer(\"http://www.google.com\")\n .get();\n\n Elements links = document.select(\"a[href]\");\n Set<String> urls = new HashSet<>();\n for (Element link: links) {\n if (link.attr(\"href\") != null && link.attr(\"href\").contains(\"=\")) {\n String url = link.attr(\"href\").split(\"=\")[1];\n if (url.contains(\"http\")) {\n urls.add(getDomainName(url));\n }\n }\n }\n\n CountDownLatch latch = new CountDownLatch(urls.size());\n\n for (String url: urls) {\n AnalysePage analysePage = new AnalysePage(url);\n completionService.submit(analysePage);\n }\n\n int completed = 0;\n\n while(completed < urls.size()) {\n try {\n Future<Set<String>> resultFuture = completionService.take();\n Set<String> strings = resultFuture.get();\n for (String lib : strings) {\n Integer count = libCount.get(lib);\n if (count == null) {\n libCount.put(lib, 1);\n } else {\n libCount.put(lib, ++count);\n }\n }\n completed++;\n latch.countDown();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n } catch (MalformedURLException e) {\n System.out.println(\"The URL is Malformed\");\n } catch (UnsupportedEncodingException e) {\n System.out.println(\"Incorrect URL encoding\");\n } catch (IOException e) {\n System.out.println(\"Unable to read from google\");\n e.printStackTrace();\n }\n executor.shutdown();\n return libCount;\n }", "@Override\n\tpublic List<String> countDate() {\n\t\treturn controlA.countDate();\n\t}", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group, SearchEventType type, String from, String to) {\n String date = parseDateLimit(from, to);\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + \"and eventType = :type \"\n + date + \" \"\n + \"group by col_2_0_\", new String[]{\"owner\", \"type\"}, new Object[]{owner, type});\n return list;\n }", "public ArrayList<CustomerCountry> getCountryByCustomerCount(){\n ArrayList<CustomerCountry> customerCountry = new ArrayList<>();\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n // (https://stackoverflow.com/questions/39565394/how-to-rename-result-set-of-count-in-sql)\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT Country, COUNT(*) as numcustomers FROM Customer GROUP BY Country ORDER BY numcustomers DESC\");\n\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n customerCountry.add(new CustomerCountry(set.getString(\"Country\"), set.getString(\"numcustomers\")));\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return customerCountry;\n\n }", "public int searchRowsCount(SearchCriteria cri);", "int getServiceAccountsCount();", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_FACILITY_HOST);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getListCount();", "long countUniqueClientsBetween(String companyId, DateTime startDate, DateTime endDate);", "public long numPostingEntries();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_USERSTATISTICS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CANDIDATE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getNumberOfDetectedDuplicates();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LINKGROUP);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_ADDRESSCHANGEREQDETAILS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getTotalCreatedConnections();", "int getDataScansCount();", "public long countRecords();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "int getTotalCount();", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group, SearchEventType type) {\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + \"and eventType = :type \"\n + \"group by col_2_0_\", new String[]{\"owner\", \"type\"}, new Object[]{owner, type});\n return list;\n }", "int getIndexEndpointsCount();", "@Override\n\tpublic String getAdIdSet(String date) {\n\t\tString sql=\"select creative_id from \" + hiveTableName +\" where business_id='\"\n\t\t\t\t+ businessId+\"' and ad_date='\"+date+\"' group by creative_id\";\n\t\tlog.info(\"FrequencyTask Running-->\"+sql);\n\t\tList<Map<String, Object>> result = hiveJdbcTemplate.queryForList(sql);\n\t\tIterator<Map<String,Object>> it = result.iterator();\n\t\tString ads=null;\n\t\twhile (it.hasNext()) {\n\t\t\tMap<String, Object> map = (Map<String, Object>)it.next();\n\t\t\tString ad_id = String.valueOf(map.get(\"creative_id\"));\n\t\t\tif(ads==null){\n\t\t\t\tads = ad_id;\n\t\t\t}else{\n\t\t\t\tif(Integer.valueOf(ad_id)!=0){\n\t\t\t\t\tads += (\",\" + ad_id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ads;\n\t}", "public int getNumberOfDates() {\n return dateList.size();\n }", "int getCachedCount();", "int getCityImageURLsCount();", "public String fetchCountMyData(User loginUser);", "public int findAllCount() {\n\t\treturn mapper.selectCount(null);\n\t}", "public String aggregations(String query, String since, String until, String fields, String limit, String count)\n \t throws Exception {\n \t\tString apiUrl = \"api/search.json?\";\n\n \t\tthis.query = query;\n \t\tthis.since = since;\n \t\tthis.until = until;\n \t\tthis.fields = fields;\n \t\tthis.limit = limit == \"\" ? \"6\" : limit;\n \t\tthis.count = count == \"\" ? \"0\" : count;\n\n \t\tif (query != \"\") {\n \t\t\tapiUrl = apiUrl + \"query=\" + this.query;\n if (since != \"\") {\n \tapiUrl = apiUrl + \" since:\" + this.since;\n }\n if (until != \"\") {\n \tapiUrl = apiUrl + \" until:\" + this.until;\n }\n apiUrl = apiUrl + \"&source=cache\";\n apiUrl = apiUrl + \"&count=\" + this.count;\n if (fields != \"\") {\n \tapiUrl = apiUrl + \"&fields=\" + this.fields;\n }\n apiUrl = apiUrl + \"&limit=\" + this.limit;\n\n String url = this.baseUrl + apiUrl;\n\n URL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) urlObj.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n String response = \"\";\n\t\t\tif (responseCode == 200) {\n response = buildReponse(con);\n\t\t\t} else {\n\t\t response = \"{'error': 'Something went wrong, looks like the server is down.'}\";\n\t\t\t}\n\n\t\t\treturn response;\n \t\t} else {\n\t\t\treturn \"{'error': 'No Query string has been sent to query for an account'}\";\n\t\t}\n \t}", "public long countAllLots() throws MiddlewareQueryException;", "public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}", "@Override\r\n\tpublic int getCountByAll() throws Exception {\n\t\treturn 0;\r\n\t}", "@Query(\"select count(r) from Reservation r group by r.user\")\n\tCollection<Double> dashboardRendezvousesRsvp();", "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic Long searchCountData(List<? extends SearchObject> searchCriteria) throws Exception {\n\t\treturn poDAO.searchCountData(searchCriteria);\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_DMHISTORYGOODS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private Integer getTotalRecords(String search) {\n\t\tif (search == null || search.isEmpty())\n\t\t\treturn customerRepo.findByIsActive(true).size();\n\n\t\telse\n\t\t\treturn customerRepo\n\t\t\t\t\t.findByCustomerNameContainsIgnoreCaseOrCustomerDescriptionContainsIgnoreCaseOrCustomerEmailIdContainsIgnoreCaseOrCustomerGroupEmailIdContainsIgnoreCaseOrCustomerMobileNumberContainsIgnoreCaseOrUtilityIdContainsIgnoreCaseAndIsActive(\n\t\t\t\t\t\t\tsearch, search, search, search, search, search, true)\n\t\t\t\t\t.size();\n\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_PHATVAY);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}" ]
[ "0.59976584", "0.5990726", "0.5773595", "0.5743895", "0.56419003", "0.5485763", "0.5485763", "0.5463687", "0.5438733", "0.5344848", "0.53411216", "0.53121215", "0.52847034", "0.5284569", "0.5277835", "0.52686155", "0.5203704", "0.5186207", "0.51796216", "0.51796216", "0.51722443", "0.5169032", "0.5162696", "0.51440686", "0.5142707", "0.51418865", "0.513337", "0.5123169", "0.5123169", "0.5112562", "0.5112562", "0.5112562", "0.5112562", "0.5112562", "0.51070505", "0.5099321", "0.5091241", "0.5086042", "0.5083372", "0.5074569", "0.50634056", "0.50584525", "0.5041883", "0.50385123", "0.50385123", "0.50319874", "0.5019276", "0.50189567", "0.50063646", "0.49948937", "0.4992742", "0.49910668", "0.49887446", "0.49861363", "0.4981153", "0.49777406", "0.49772137", "0.49580577", "0.49559808", "0.4951409", "0.49484172", "0.49456522", "0.49406853", "0.4940491", "0.49307278", "0.4930594", "0.49296024", "0.49240413", "0.49173445", "0.49140227", "0.49116927", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.4908193", "0.49075106", "0.49053648", "0.4899046", "0.48959798", "0.48914617", "0.48899835", "0.48786178", "0.48764735", "0.48708194", "0.48703253", "0.4862808", "0.48608205", "0.48585856", "0.4850766", "0.48493013", "0.4848192", "0.48453254" ]
0.5182087
18
Fetches the number of searches and unique IPs grouped by date.
@Override public List<Object[]> getStatistics(String owner, StatisticsGroup group, SearchEventType type, String from, String to) { String date = parseDateLimit(from, to); String groupHQL = this.groupToHQL(group); List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam("select count(*), " + "count(distinct ipAddress), " + groupHQL + " " + "from SearchEvent " + "where owner like :owner " + "and eventType = :type " + date + " " + "group by col_2_0_", new String[]{"owner", "type"}, new Object[]{owner, type}); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countUniqueIPs(){\n ArrayList<String> uniqueIps = new ArrayList<String>();\n for(LogEntry le : records){\n String iprAddr = le.getIpAddress();\n if(!uniqueIps.contains(iprAddr)){\n uniqueIps.add(iprAddr);\n } \n } \n return uniqueIps.size();\n }", "public SearchResponse getNumberOfFactsPerMacAdresse(String lastInputDate, TransportClient client){\n return client.prepareSearch(\"cityflow\")\n .setTypes(\"facts\")\n .setQuery(QueryBuilders.rangeQuery(\"insertDate\").gt(lastInputDate))\n .setScroll(new TimeValue(6000000))\n .addAggregation(AggregationBuilders.terms(\"macAdresses\").field(\"macAdresse\").size(Integer.MAX_VALUE))\n .setSize(10000).execute().actionGet();\n }", "int findAllCount() ;", "Long getAllCount();", "public ArrayList<String> iPsWithMostVisitsOnDay(HashMap<String, ArrayList<String>> dates, String day){\n ArrayList<String> visitsOnDay = dates.get(day);\n \n //Make a NEW HashMap to hold the unique IP addresses and the number of times they occur\n HashMap<String, Integer> ipCounts = new HashMap<String, Integer>();\n \n //Now fill this HashMap using the same algorithm we've been using for the previous few assignments\n for(String ip : visitsOnDay){\n if(!ipCounts.containsKey(ip)){\n ipCounts.put(ip, 1);\n }\n else{\n ipCounts.put(ip, ipCounts.get(ip) + 1);\n }\n }\n \n //Now, the answer is as simple as calling iPsMostVisits (which returns an ArrayList<String>) on the HashMap you just made!\n return iPsMostVisits(ipCounts);\n }", "int getResultsCount();", "int getResultsCount();", "Set<VisitedResource> getVisitingStatistic(Date date);", "List<Integer> getCounts(SearchQuery... conditions);", "int getSeenInfoCount();", "Map<String, Long> hits();", "long countSearchByComputerName(Map<String, String> options);", "long getRequestsCount();", "int getNumberOfResults();", "public static int countDays(List<MonitoredData> data){\n System.out.println(\"3) How many times has appeared each activity for each day: \");\n long result = 0;\n ArrayList<String> days = new ArrayList<>();\n ArrayList<MonitoredData> dataTrunc = new ArrayList<>();\n for (int i=0; i<data.size(); i++){\n String day = \"\";\n day += data.get(i).getStartTime().charAt(8);\n day += data.get(i).getStartTime().charAt(9);\n days.add(day);\n }\n for (int i=0; i<data.size(); i++){\n dataTrunc.add(data.get(i));\n if (i<days.size()-1){\n if (!days.get(i+1).equals(days.get(i))){\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n dataTrunc.clear();\n }\n }else{\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n }\n }\n Stream<String> daysStream = days.stream();\n result = daysStream\n .distinct()\n .count();\n return (int)result;\n }", "@Override\r\n\tpublic int getDayCount(Date date) {\n\t\tString hql = \"select cc.count from cinema_condition cc where cc.date = ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, date);\r\n\t\tif(query.uniqueResult()==null){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint resutl = (Integer) query.uniqueResult();\r\n\t\treturn resutl;\r\n\t}", "@Override\r\n\tpublic int countAll() {\r\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\tFINDER_ARGS_EMPTY, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_SHARE);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\r\n\t\t\t\t\tcount);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\t\tFINDER_ARGS_EMPTY);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}", "List<RecordCount> getRecordCounts(String clientId) throws Exception;", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group, String from, String to) {\n String date = parseDateLimit(from, to);\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + date + \" \"\n + \"group by col_2_0_\", \"owner\", owner);\n return list;\n }", "int getRequestsCount();", "int getRequestsCount();", "List<CabResponse> getCountByMedallionAndPickupDate(List<String> medallions, Date pickupDate);", "@Query (\"SELECT c.client, COUNT(c.client) from Reserva AS c group by c.client order by COUNT(c.client)DESC\")\r\n public List<Object[]> countTotalReservationsByClient();", "@LogExceptions\n public int getNumberOfEvents(String date) throws SQLException {\n Connection conn = DatabaseConnection.getConnection();\n int i = 0;\n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_DATE)) \n {\n stmt.setString(1, date);\n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n i++;\n }\n }\n }\n return i;\n }", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group) {\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + \"group by col_2_0_\", \"owner\", owner);\n return list;\n }", "private void fillIPDaily() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n String sqlSelect = \"SELECT COUNT(*), SUM(volume_s_to_c), date(datetime), i.t_ip_id, site_id, type, mime_type, auth, request_statuscode, COALESCE(a.t_http_agent_id, 0) FROM t_http_log_data l LEFT JOIN http.t_http_agent a ON (a.agent_name = l.user_agent AND ((a.version IS NULL AND l.agent_version IS NULL) OR a.version = l.agent_version)) INNER JOIN net.t_ip i ON client_ip = host(i.ip) WHERE NOT l.intranet GROUP BY date(datetime), t_ip_id, site_id, type, mime_type, site_name, auth, request_statuscode, a.t_http_agent_id\";\n String sqlInsert = \"INSERT INTO http.t_ip_daily (occurences, volume, calc_day, t_ip_id, t_domain_site_id, trafic_type, mime_type_id, t_authorization_id, request_statuscode, t_http_agent_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n String sqlUpdate = \"UPDATE http.t_ip_daily SET occurences = occurences + ?, volume = volume + ? WHERE calc_day = ? AND t_ip_id = ? AND t_domain_site_id = ? AND trafic_type = ? AND mime_type_id = ? AND t_authorization_id = ? AND request_statuscode = ? AND t_http_agent_id = ?\";\n PreparedStatement pstSelect = db.prepareStatement(sqlSelect);\n PreparedStatement pstInsert = db.prepareStatement(sqlInsert);\n PreparedStatement pstUpdate = db.prepareStatement(sqlUpdate);\n ResultSet rs = db.executeQuery(pstSelect);\n if (rs.next()) {\n do {\n Integer mimeId = mime.getMimeTypeId(rs.getString(7));\n pstUpdate.setInt(1, rs.getInt(1));\n pstUpdate.setLong(2, rs.getLong(2));\n pstUpdate.setDate(3, rs.getDate(3));\n pstUpdate.setInt(4, rs.getInt(4));\n pstUpdate.setInt(5, rs.getInt(5));\n pstUpdate.setInt(6, rs.getInt(6));\n pstUpdate.setObject(7, mimeId);\n pstUpdate.setInt(8, rs.getInt(8));\n pstUpdate.setInt(9, rs.getInt(9));\n pstUpdate.setInt(10, rs.getInt(10));\n if (db.executeUpdate(pstUpdate) == 0) {\n pstInsert.setInt(1, rs.getInt(1));\n pstInsert.setLong(2, rs.getLong(2));\n pstInsert.setDate(3, rs.getDate(3));\n pstInsert.setInt(4, rs.getInt(4));\n pstInsert.setInt(5, rs.getInt(5));\n pstInsert.setInt(6, rs.getInt(6));\n pstInsert.setObject(7, mimeId);\n pstInsert.setInt(8, rs.getInt(8));\n pstInsert.setInt(9, rs.getInt(9));\n pstInsert.setInt(10, rs.getInt(10));\n db.executeUpdate(pstInsert);\n }\n } while (rs.next());\n } else {\n _logger.debug(\"No IP daily to insert\");\n }\n } finally {\n db.exit();\n }\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_VCMSPORTION);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getTravelGroupListCount(Map conditions);", "int getServicesCount();", "int getServicesCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }", "public Map<String, Long> findIssues() {\n SearchResponse searchResponse = client.prepareSearch(INDEX_BASE)\n .addAggregation(terms(\"issues\").field(\"issue\"))\n .setSize(0)\n .get();\n\n Terms issues = searchResponse.getAggregations().get(\"issues\");\n Map<String, Long> foundIssues = new LinkedHashMap<>();\n issues.getBuckets().forEach(bucket -> {\n foundIssues.put(bucket.getKeyAsString(), bucket.getDocCount());\n });\n\n return foundIssues;\n }", "public long countAll();", "@Override\n\tpublic int datecount() throws Exception {\n\t\treturn dao.datecount();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_INTERVIEWSCHEDULE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getVulnerabilityReportsCount();", "public NSArray<NSDictionary <Object, Integer>> itemCounts(Result result) {\n //TODO\n return NSArray.EmptyArray;\n }", "int getResponseCount();", "Map<String, Long> getVisitIpLogs();", "long countAll();", "long countAll();", "public ArrayList<StatisticsVo> showCount(String sDate,String eDate) {\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\tResultSet rs=null;\r\n\t\tString sql=\"select rc.rcarname,count(*) cnt from(select * from rentlist where rstartdate between to_date(?, 'YYYY/MM/DD HH24:MI') and to_date(?, 'YYYY/MM/DD HH24:MI'))rl,rentcar rc where rl.rennum=rc.rennum group by rc.rcarname\";\r\n\t\ttry {\r\n\t\t\tconn=DbcpBean.getConn();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, sDate+\" 00:00\");\r\n\t\t\tpstmt.setString(2, eDate+\" 23:59\");\r\n\t\t\trs=pstmt.executeQuery();\r\n\t\t\tArrayList<StatisticsVo> list=new ArrayList<>();\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tint cnt=rs.getInt(\"cnt\");\r\n\t\t\t\t\r\n\t\t\t\tString rcarName=rs.getString(\"rcarName\");\r\n\t\t\t\r\n\t\t\t\tStatisticsVo vo=new StatisticsVo(null, rcarName, 0, null, cnt);\r\n\t\t\t\tlist.add(vo);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t}catch(SQLException se) {\r\n\t\t\tSystem.out.println(se.getMessage());\r\n\t\t\treturn null;\r\n\t\t}finally {\r\n\t\t\tDbcpBean.close(conn, pstmt, rs);\r\n\t\t}\r\n\t}", "private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}", "public int countResults() \n {\n return itsResults_size;\n }", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "int getHotelImageURLsCount();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LOCALRICHINFO);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private void appointmentReport() {\n Set<String> types = new HashSet<>();\n Set<Month> months = new HashSet<>();\n HashMap<String, Integer> numberByType = new HashMap<>();\n HashMap<Month, Integer> numberByMonth = new HashMap<>();\n\n for (Appointment appointment: Data.getAppointments()) {\n months.add(appointment.getStart().toLocalDateTime().getMonth());\n types.add(appointment.getType());\n }\n\n for (String type: types) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n\n if (type.equals(appointment.getType())) {\n count++;\n }\n numberByType.put(type, count);\n }\n }\n for (Month month: months) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n if (month.equals(appointment.getStart().toLocalDateTime().getMonth())) {\n count++;\n }\n numberByMonth.put(month, count);\n }\n }\n\n reportText.appendText(\"Report of the number of appointments by type:\\n\\n\");\n reportText.appendText(\"Count \\t\\tType\\n\");\n numberByType.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n reportText.appendText(\"\\n\\n\\nReport of the number of appointments by Month:\\n\\n\");\n reportText.appendText(\"Count \\t\\tMonth\\n\");\n numberByMonth.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n\n }", "int getListSnIdCount();", "Map<String, Integer> getSearchResults(String searchTerm) {\n\n Map<String, Integer> libCount = new ConcurrentHashMap<>();\n\n try {\n Document document = Jsoup.connect(google + URLEncoder.encode(searchTerm, charset))\n .userAgent(userAgent)\n .referrer(\"http://www.google.com\")\n .get();\n\n Elements links = document.select(\"a[href]\");\n Set<String> urls = new HashSet<>();\n for (Element link: links) {\n if (link.attr(\"href\") != null && link.attr(\"href\").contains(\"=\")) {\n String url = link.attr(\"href\").split(\"=\")[1];\n if (url.contains(\"http\")) {\n urls.add(getDomainName(url));\n }\n }\n }\n\n CountDownLatch latch = new CountDownLatch(urls.size());\n\n for (String url: urls) {\n AnalysePage analysePage = new AnalysePage(url);\n completionService.submit(analysePage);\n }\n\n int completed = 0;\n\n while(completed < urls.size()) {\n try {\n Future<Set<String>> resultFuture = completionService.take();\n Set<String> strings = resultFuture.get();\n for (String lib : strings) {\n Integer count = libCount.get(lib);\n if (count == null) {\n libCount.put(lib, 1);\n } else {\n libCount.put(lib, ++count);\n }\n }\n completed++;\n latch.countDown();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n } catch (MalformedURLException e) {\n System.out.println(\"The URL is Malformed\");\n } catch (UnsupportedEncodingException e) {\n System.out.println(\"Incorrect URL encoding\");\n } catch (IOException e) {\n System.out.println(\"Unable to read from google\");\n e.printStackTrace();\n }\n executor.shutdown();\n return libCount;\n }", "@Override\n\tpublic List<String> countDate() {\n\t\treturn controlA.countDate();\n\t}", "public ArrayList<CustomerCountry> getCountryByCustomerCount(){\n ArrayList<CustomerCountry> customerCountry = new ArrayList<>();\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n // (https://stackoverflow.com/questions/39565394/how-to-rename-result-set-of-count-in-sql)\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT Country, COUNT(*) as numcustomers FROM Customer GROUP BY Country ORDER BY numcustomers DESC\");\n\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n customerCountry.add(new CustomerCountry(set.getString(\"Country\"), set.getString(\"numcustomers\")));\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return customerCountry;\n\n }", "public int searchRowsCount(SearchCriteria cri);", "int getServiceAccountsCount();", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_FACILITY_HOST);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getListCount();", "long countUniqueClientsBetween(String companyId, DateTime startDate, DateTime endDate);", "public long numPostingEntries();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_USERSTATISTICS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CANDIDATE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getNumberOfDetectedDuplicates();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LINKGROUP);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_ADDRESSCHANGEREQDETAILS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getTotalCreatedConnections();", "int getDataScansCount();", "public long countRecords();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "int getTotalCount();", "@Override\n public List<Object[]> getStatistics(String owner, StatisticsGroup group, SearchEventType type) {\n String groupHQL = this.groupToHQL(group);\n List<Object[]> list = (List<Object[]>) getHibernateTemplate().findByNamedParam(\"select count(*), \"\n + \"count(distinct ipAddress), \" + groupHQL + \" \"\n + \"from SearchEvent \"\n + \"where owner like :owner \"\n + \"and eventType = :type \"\n + \"group by col_2_0_\", new String[]{\"owner\", \"type\"}, new Object[]{owner, type});\n return list;\n }", "int getIndexEndpointsCount();", "@Override\n\tpublic String getAdIdSet(String date) {\n\t\tString sql=\"select creative_id from \" + hiveTableName +\" where business_id='\"\n\t\t\t\t+ businessId+\"' and ad_date='\"+date+\"' group by creative_id\";\n\t\tlog.info(\"FrequencyTask Running-->\"+sql);\n\t\tList<Map<String, Object>> result = hiveJdbcTemplate.queryForList(sql);\n\t\tIterator<Map<String,Object>> it = result.iterator();\n\t\tString ads=null;\n\t\twhile (it.hasNext()) {\n\t\t\tMap<String, Object> map = (Map<String, Object>)it.next();\n\t\t\tString ad_id = String.valueOf(map.get(\"creative_id\"));\n\t\t\tif(ads==null){\n\t\t\t\tads = ad_id;\n\t\t\t}else{\n\t\t\t\tif(Integer.valueOf(ad_id)!=0){\n\t\t\t\t\tads += (\",\" + ad_id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ads;\n\t}", "public int getNumberOfDates() {\n return dateList.size();\n }", "int getCachedCount();", "int getCityImageURLsCount();", "public String fetchCountMyData(User loginUser);", "public int findAllCount() {\n\t\treturn mapper.selectCount(null);\n\t}", "public String aggregations(String query, String since, String until, String fields, String limit, String count)\n \t throws Exception {\n \t\tString apiUrl = \"api/search.json?\";\n\n \t\tthis.query = query;\n \t\tthis.since = since;\n \t\tthis.until = until;\n \t\tthis.fields = fields;\n \t\tthis.limit = limit == \"\" ? \"6\" : limit;\n \t\tthis.count = count == \"\" ? \"0\" : count;\n\n \t\tif (query != \"\") {\n \t\t\tapiUrl = apiUrl + \"query=\" + this.query;\n if (since != \"\") {\n \tapiUrl = apiUrl + \" since:\" + this.since;\n }\n if (until != \"\") {\n \tapiUrl = apiUrl + \" until:\" + this.until;\n }\n apiUrl = apiUrl + \"&source=cache\";\n apiUrl = apiUrl + \"&count=\" + this.count;\n if (fields != \"\") {\n \tapiUrl = apiUrl + \"&fields=\" + this.fields;\n }\n apiUrl = apiUrl + \"&limit=\" + this.limit;\n\n String url = this.baseUrl + apiUrl;\n\n URL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) urlObj.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n String response = \"\";\n\t\t\tif (responseCode == 200) {\n response = buildReponse(con);\n\t\t\t} else {\n\t\t response = \"{'error': 'Something went wrong, looks like the server is down.'}\";\n\t\t\t}\n\n\t\t\treturn response;\n \t\t} else {\n\t\t\treturn \"{'error': 'No Query string has been sent to query for an account'}\";\n\t\t}\n \t}", "public long countAllLots() throws MiddlewareQueryException;", "public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}", "@Override\r\n\tpublic int getCountByAll() throws Exception {\n\t\treturn 0;\r\n\t}", "@Query(\"select count(r) from Reservation r group by r.user\")\n\tCollection<Double> dashboardRendezvousesRsvp();", "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic Long searchCountData(List<? extends SearchObject> searchCriteria) throws Exception {\n\t\treturn poDAO.searchCountData(searchCriteria);\n\t}", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_DMHISTORYGOODS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private Integer getTotalRecords(String search) {\n\t\tif (search == null || search.isEmpty())\n\t\t\treturn customerRepo.findByIsActive(true).size();\n\n\t\telse\n\t\t\treturn customerRepo\n\t\t\t\t\t.findByCustomerNameContainsIgnoreCaseOrCustomerDescriptionContainsIgnoreCaseOrCustomerEmailIdContainsIgnoreCaseOrCustomerGroupEmailIdContainsIgnoreCaseOrCustomerMobileNumberContainsIgnoreCaseOrUtilityIdContainsIgnoreCaseAndIsActive(\n\t\t\t\t\t\t\tsearch, search, search, search, search, search, true)\n\t\t\t\t\t.size();\n\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_PHATVAY);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}" ]
[ "0.59976584", "0.5990726", "0.5773595", "0.5743895", "0.56419003", "0.5485763", "0.5485763", "0.5463687", "0.5438733", "0.5344848", "0.53411216", "0.53121215", "0.52847034", "0.5284569", "0.5277835", "0.52686155", "0.5203704", "0.5186207", "0.5182087", "0.51796216", "0.51796216", "0.51722443", "0.5169032", "0.5162696", "0.51440686", "0.5142707", "0.51418865", "0.513337", "0.5123169", "0.5123169", "0.5112562", "0.5112562", "0.5112562", "0.5112562", "0.5112562", "0.51070505", "0.5099321", "0.5091241", "0.5086042", "0.5083372", "0.5074569", "0.50634056", "0.50584525", "0.5041883", "0.50385123", "0.50385123", "0.50319874", "0.5019276", "0.50189567", "0.50063646", "0.49948937", "0.4992742", "0.49910668", "0.49887446", "0.49861363", "0.4981153", "0.49772137", "0.49580577", "0.49559808", "0.4951409", "0.49484172", "0.49456522", "0.49406853", "0.4940491", "0.49307278", "0.4930594", "0.49296024", "0.49240413", "0.49173445", "0.49140227", "0.49116927", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.49095717", "0.4908193", "0.49075106", "0.49053648", "0.4899046", "0.48959798", "0.48914617", "0.48899835", "0.48786178", "0.48764735", "0.48708194", "0.48703253", "0.4862808", "0.48608205", "0.48585856", "0.4850766", "0.48493013", "0.4848192", "0.48453254" ]
0.49777406
56
list is in the form of 'a, bc, cf ...' without the signs
ArrayList<String> createList(String finalInput);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String encode(String List) {\n String tempstr = \"\";\n for (int j = 0; j < List.length(); j++) {\n for (int k = 0; k < basealpha.length; k++) {\n if (List.charAt(j) == basealpha[k]) {\n tempstr += temps[k];\n }\n }\n }\n return tempstr;\n }", "public static ArrayList<String> encode(ArrayList<String> List) {\n String tempstr;\n for (int i = 0; i < List.size(); i++) {\n tempstr = \"\";\n for (int j = 0; j < List.get(i).length(); j++) {\n for (int k = 0; k < basealpha.length; k++) {\n if (List.get(i).charAt(j) == basealpha[k]) {\n tempstr += temps[k];\n }\n }\n }\n List.set(i, tempstr);\n }\n return List;\n }", "void mo100443a(List<String> list);", "private String literal(Array list) {\n StringBuffer buffer = new StringBuffer();\n \n buffer.append(\"(\");\n for (int i = 0; i < list.size(); i++) {\n if (i > 0) {\n buffer.append(\",\");\n }\n buffer.append(literal(list.get(i)));\n }\n buffer.append(\")\");\n return buffer.toString();\n }", "private String convertListToCommaDelimitedString(List<String> list) {\n\n\t\tString result = \"\";\n\t\tif (list != null) {\n\t\t\tresult = StringUtils.arrayToCommaDelimitedString(list.toArray());\n\t\t}\n\t\treturn result;\n\n\t}", "void mo54419a(List<String> list);", "public static String decode(String List) {\n String tempstr = \"\";\n for (int j = 0; j < List.length(); j++) {\n for (int k = 0; k < temps.length; k++) {\n if (List.charAt(j) == temps[k]) {\n tempstr += basealpha[k];\n }\n }\n }\n return tempstr;\n }", "public static ArrayList<String> decode(ArrayList<String> List) {\n String tempstr;\n for (int i = 0; i < List.size(); i++) {\n tempstr = \"\";\n for (int j = 0; j < List.get(i).length(); j++) {\n for (int k = 0; k < temps.length; k++) {\n if (List.get(i).charAt(j) == temps[k]) {\n tempstr += basealpha[k];\n }\n }\n }\n List.set(i, tempstr);\n }\n return List;\n }", "@Test\n\tpublic void NotExamtestListToString() {\n\t\t\n\t\tassertEquals(\"[a,b,c]\",listToString(list));\n\t\tassertEquals(\"[a,b,c,aaa,a,a,d,a]\",listToString(list2));\n\t\tassertEquals(\"[]\",listToString(empty));\n\t\tassertEquals(\"[hello]\",listToString(onlyOne));\n\n\t}", "public String toStringPrologFormatListChar()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Character ch : this.listCharacter)\r\n\t\t{\r\n\t\t\toutput += ch.CharToStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\t\r\n\t\treturn output;\r\n\t}", "public static String unionCreditList(List<String> list) {\r\n if (list == null || list.isEmpty()) return \"\";\r\n float minCredits = Integer.MAX_VALUE;\r\n float maxCredits = Integer.MIN_VALUE;\r\n for (String item : list) {\r\n String[] split = item.split(\"[ ,/-]\");\r\n\r\n String first = split[0];\r\n float min = Float.parseFloat(first);\r\n minCredits = Math.min(min, minCredits);\r\n\r\n String last = split[split.length - 1];\r\n float max = Float.parseFloat(last);\r\n maxCredits = Math.max(max, maxCredits);\r\n }\r\n\r\n String credits = Float.toString(minCredits);\r\n\r\n if (minCredits != maxCredits) {\r\n credits = credits + \"-\" + Float.toString(maxCredits);\r\n }\r\n\r\n credits = credits.replace(\".0\", \"\");\r\n return credits;\r\n }", "public static String randomize(char[] list) {\n for (int j = 0; j < list.length; j++) {\n int index = (int) (Math.random() * list.length);\n char temp = list[j];\n list[j] = list[index];\n list[index] = temp;\n }\n String randomKey = \"\";\n for (int x = 0; x < list.length; x++) {\n randomKey += (list[x]);\n } \n return randomKey;\n }", "private void combine(char[] chars, int begin) {\n\t\tif(begin==chars.length) {\r\n\t\t\tString result = String.valueOf(chars);\r\n\t\t\tif(!list.contains(result)) {\r\n\t\t\t\tlist.add(result);\r\n\t\t\t}\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tfor(int i=begin;i<chars.length;i++) {\r\n\t\t\tswap(chars,i,begin);\r\n\t\t\tcombine(chars, begin+1);\r\n\t\t\tswap(chars,i,begin);\r\n\t\t}\t\r\n\t}", "public static String joinList(List<String> list) {\r\n //could use String.join or Stream but I found this approach to consistantly be 150-500ns faster\r\n StringBuilder sb = new StringBuilder(list.size());\r\n for (int z = 0; z < list.size() - 1; z++) {\r\n sb.append(list.get(z));\r\n sb.append(',').append(' ');\r\n }\r\n sb.append(list.get(list.size() - 1));\r\n return sb.toString();\r\n }", "public static String conocidosToString(List<String> conocidos){\r\n String s = \"\"; \r\n for(int i= 0; i<conocidos.size(); i++){\r\n String c = conocidos.get(i);\r\n s = s + c + \" \";\r\n }\r\n return s;\r\n \r\n}", "private ArrayList<String> simpleFormList(ArrayList<String> list){\n\t\tArrayList<String> simpleFormList = new ArrayList<String>();\n\t\tfor(String s : list){\n\t\t\tString pos = posMap.get(s);\n\t\t\tsimpleFormList.add(simpleForm(s,pos));\n\t\t}\n\t\treturn simpleFormList;\n\t}", "public static String toCommaSeparatedValues(final List<String> list) {\n if (list == null || list.isEmpty()) {\n return \"\";\n }\n final int listSize = list.size();\n final StringBuilder builder = new StringBuilder();\n for (int i=0; i<listSize; i++) {\n if (i>0) {\n builder.append(',');\n }\n builder.append(list.get(i));\n }\n return builder.toString();\n }", "public static String buildCommaSeperatedValues(ArrayList input) throws Exception{\r\n\t\tString retString = \"\";\r\n\t\tif(input != null){\r\n\t\tfor(int i=0; i<input.size(); i++){\r\n\t\t\tretString = retString + \",\" +input.get(i);\r\n\t\t}\r\n\t\tretString = retString.substring(1);\r\n\t\t}\r\n\t\treturn retString;\t\t\r\n\t}", "List<String> mo5877c(String str);", "public void testToString() {\r\n assertEquals(\"[]\",\r\n list.toString());\r\n list.add(\"A\");\r\n assertEquals(\"[A]\",\r\n list.toString());\r\n list.add(\"B\");\r\n assertEquals(\"[A, B]\",\r\n list.toString());\r\n }", "private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }", "public String listToString(List<String> list) {\n return TextUtils.join(\", \", list);\n }", "private String listToString(StringLinkedList list) {\n\t\t\n\t\tString first = list.removeLast();\n\t\tif(first == null) return \"[]\";\n\t\tString output = first + \"]\";\n\t\twhile(true) {\n\t\t\tString current = list.removeLast();\n\t\t\tif(current == null) {\n\t\t\t\treturn \"[\" + output;\n\t\t\t} else {\n\t\t\t\toutput = current + \",\" + output;\n\t\t\t}\n\t\t}\n\t}", "private void generateLists(String num, Stack<String> numberList)\n {\n\tfor(int i = 0, len = num.length(); i < len; i++)\n\t numberList.push(new Character(num.charAt(i)).toString());\n }", "static List<String> removeDuplicates(List<String> list) {\n // Store unique items in result.\n List<String> result = new ArrayList<String>();\n // Loop over argument list.\n for (String token : list) {\n if (result.indexOf(token) == -1) { \n result.add(token);\n }\n }\n return result;\n }", "public static String sumCreditList(List<String> list) {\r\n if (list == null || list.isEmpty()) return \"0\";\r\n float minCredits = 0;\r\n float maxCredits = 0;\r\n for (String item : list) {\r\n String[] split = item.split(\"[ ,/-]\");\r\n\r\n String first = split[0];\r\n float min = Float.parseFloat(first);\r\n minCredits += min;\r\n\r\n String last = split[split.length - 1];\r\n float max = Float.parseFloat(last);\r\n maxCredits += max;\r\n }\r\n\r\n String credits = Float.toString(minCredits);\r\n\r\n if (minCredits != maxCredits) {\r\n credits = credits + \"-\" + Float.toString(maxCredits);\r\n }\r\n\r\n credits = credits.replace(\".0\", \"\");\r\n return credits;\r\n }", "public String encode(List<String> strs) {\r\n StringBuilder sb = new StringBuilder();\r\n for(String s: strs) {\r\n sb.append(intToString(s));\r\n sb.append(s);\r\n }\r\n return sb.toString();\r\n }", "String getStringList();", "public String encode(List<String> strs) {\n StringBuilder sb = new StringBuilder();\n for(String str : strs){\n \tsb.append(str.length());\n \t sb.append(\"[\");\n sb.append(str);\n sb.append(\"]\");\n }\n return sb.toString();\n }", "static public String getListAsCSV(List<String> list) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tif (list != null) {\r\n\t\t\tfor (Iterator<String> i = list.iterator(); i.hasNext();) {\r\n\t\t\t\tString str = i.next();\r\n\r\n\t\t\t\t// If the string contains a slash make it appear as \\\\ in the\r\n\t\t\t\t// protocol\r\n\t\t\t\t// 1 slash in Java/regex is \\\\\\\\\r\n\t\t\t\tstr = str.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\r\n\t\t\t\tstr = str.replaceAll(\",\", \"\\\\\\\\,\");\r\n\t\t\t\tsb.append(str);\r\n\r\n\t\t\t\tif (i.hasNext()) {\r\n\t\t\t\t\tsb.append('\\\\');\r\n\t\t\t\t\tsb.append(',');\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}", "public static void main(String[] args) {\n List<Character> charachterList = Arrays.asList('T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'S', 'p', 'a', 'r', 't', 'a', '!');\n String strings = charachterList.stream()\n .map(c -> c.toString())\n .collect(Collectors.joining());\n\n System.out.println(strings);\n }", "private ArrayList<String> convertChar() {\r\n \tArrayList<String> patterns = new ArrayList<String>();\r\n \tfor (int i = 0; i < this.patterns.size(); i++) {\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < this.patterns.get(i).length; j++) {\r\n \t\t\ts += this.patterns.get(i)[j];\r\n \t\t}\r\n \t\tpatterns.add(s);\r\n \t}\r\n \treturn patterns;\r\n }", "ListString createListString();", "public static String list(List values) {\n return list(values, DFLT_QUOTE);\n }", "public static String convertArrayListIntoString (ArrayList inputList){\n\n // convert exercisesList to string\n String resultString = \"(\";\n for (int i = 0; i < inputList.size(); i ++) {\n if (i != inputList.size() - 1) {\n resultString = resultString + inputList.get(i) + \", \";\n } else {\n resultString = resultString + inputList.get(i) + \")\";\n }\n }\n\n return resultString;\n }", "public static List<String> noX(List<String> list) {\n\t\treturn list.stream().map(s -> s.replace(\"x\", \"\"))\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "public static List quoteList(List values) {\n List quoted = new ArrayList();\n for (int i = 0; i < values.size(); i += 2) {\n quoted.add(values.get(i));\n String value = values.get(i + 1).toString();\n quoted.add(quote(value));\n }\n\n return quoted;\n }", "public String listToString(ArrayList<Character> sequence) {\n \tchar[] cs = new char[sequence.size()];\n \tfor(int i = 0; i < cs.length; i++) {\n \t\tcs[i] = sequence.get(i);\n \t}\n \treturn new String(cs);\n }", "public ArrayList<Character> charToLower(ArrayList<Character> list){\n ArrayList<Character> lower = new ArrayList<>();\n for(Character x: list){\n x = Character.toLowerCase(x);\n lower.add(x);\n }\n return lower;\n }", "public void mo88640a(List<String> list) {\n List<String> stringList = RxPreferences.INSTANCE.getStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), new ArrayList());\n stringList.addAll(0, list);\n RxPreferences.INSTANCE.putStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), (List) StreamSupport.m150134a(stringList).mo131128a(new AbstractC32239o(new HashSet(stringList)) {\n /* class com.zhihu.android.p1480db.fragment.customview.C18240x255e53c2 */\n private final /* synthetic */ HashSet f$0;\n\n {\n this.f$0 = r1;\n }\n\n @Override // java8.util.p2234b.AbstractC32239o\n public final boolean test(Object obj) {\n return DbEditorSuggestTagCustomView.m93354a(this.f$0, (String) obj);\n }\n }).mo131126a(5).mo131125a(Collectors.m150203a($$Lambda$ofunvu1bqmYbfXGEtxXaV_csE4M.INSTANCE)));\n }", "private String convertToString(ArrayList<String> arr, char sep) {\n StringBuilder builder = new StringBuilder();\n // Append all Integers in StringBuilder to the StringBuilder.\n for (String str : arr) {\n builder.append(str);\n builder.append(sep);\n }\n // Remove last delimiter with setLength.\n builder.setLength(builder.length() - 1);\n return builder.toString();\n }", "public String encode(List<String> strs) {\n StringBuilder b = new StringBuilder();\n for (String s : strs) {\n b.append(s.length()).append(\"#\").append(s);\n }\n return b.toString();\n }", "public abstract void mo56920a(List<C4122e> list);", "public ArrayList<String> printList(ArrayList<String> list) {\n ArrayList<String> newList = new ArrayList<String>();\n for(String p: list) {\n newList.add(p);\n }\n return newList;\n }", "public abstract void mo56923b(List<C4122e> list);", "public static String blowup(String str) {\n\t\tif (str.length()==0) return \"\";\n\t\tString myList = new String();\n\t\tfor (int j=0; j < str.length(); j++){\n\t\t\tchar c = str.charAt(j);\n\t\t\tif ((c >= '0' && c <='9') && (j < str.length()-1)){\n\t\t\t\tfor (int i = (int)c-48; i > 0; i--){\n\t\t\t\t\tmyList += str.charAt(j+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (c < '0' || c > '9') myList += c;\n\t\t\t}\n\t\t}\n\t\treturn myList; // TODO ADD YOUR CODE HERE\n\t}", "private String[] toStringArray(ArrayList<String> list) {\n String[] tempStrings = new String[list.size()];\n tempStrings = list.toArray(tempStrings);\n\n return tempStrings;\n }", "private String securityListToString(List<String> securityList) {\n return securityList.stream().collect(Collectors.joining(SECURITY_SEPARATOR));\n }", "public String encode(List<String> strs) {\n StringBuilder b = new StringBuilder();\n for (String s : strs) {\n b.append(s.replaceAll(\"#\", \"##\")).append(\" # \");\n }\n return b.toString();\n }", "public static String concat(List<String> list, String seperator) {\n StringBuilder builder = new StringBuilder();\n\n for (String elem : list) {\n builder.append(elem);\n builder.append(seperator);\n }\n\n if (builder.length() > 0)\n builder.delete(builder.length() - seperator.length(), builder.length());\n\n return builder.toString();\n }", "public void processList(List<String> inList);", "public List<String> remake_array(List<String> lists){\n List<String> listItemtemp = new ArrayList<>();\n for (int i = 0; i < lists.size(); i++) {\n listItemtemp.add(i + 1 + \". \" + lists.get(i).substring(3).trim());\n }\n return listItemtemp;\n\n }", "public void printFormatedList()\r\n{\r\n System.out.println(\"[\");\r\n for(int i = 0; i < JustifiedList.size(); i++)\r\n {\r\n System.out.println(\"\\\"\" + JustifiedList.get(i) + \"\\\"\");\r\n }\r\n System.out.println(\"]\");\r\n}", "List<String> mo5876c();", "public String patternToString(List<PatternItem> list) {\n StringBuilder builder = new StringBuilder();\n\n for (PatternItem item : list) {\n switch (item.getType()) {\n case BASE:\n builder.append((char) item.getValue());\n break;\n case JUMP:\n builder.append('!').append(item.getValue());\n break;\n case SEARCH:\n builder.append('[').append('?').append(item.getSearch()).append(']');\n break;\n case OPEN:\n builder.append('(');\n break;\n case CLOSE:\n builder.append(')');\n break;\n }\n }\n\n return builder.toString();\n }", "private static String nationalParks(List<String> list, String separator) {\n\t\tStringBuilder sb = new StringBuilder(32);\n\t\tboolean first = true;\n\t\t\n\t\tfor(String el : list) {\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t\telse {\n\t\t\t\tsb.append(separator);\n\t\t\t}\n\t\t\tsb.append(el);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static String formStringFromList(List<Long> ids)\n {\n if (ids == null || ids.size() == 0)\n return null;\n\n StringBuilder idsBuffer = new StringBuilder();\n for (Long id : ids)\n {\n idsBuffer.append(id).append(\",\");\n }\n\n return idsBuffer.toString().substring(0, idsBuffer.length() - 1);\n }", "private static List<String> testStringGenerator(List<String> palString) {\n\t\tList<String> list = new ArrayList<>();\n\t\tfor (String pal : palString) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tsb.append(pal);\n\t\t\t\tfor (int j = 0; j < pal.length(); j++) {\n\t\t\t\t\tsb.append(j % 10);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(sb.toString());\n\t\t}\n\t\treturn list;\n\t}", "private void modify(List listString){\n\t}", "public static <T> String printListAsString(String prefixTerm, ArrayList<T> list) {\n\n StringBuffer retVal = new StringBuffer();\n\n IntStream.range(0, list.size())\n .forEach(idx -> retVal.append(printKeyValue(prefixTerm + idx, list.get(idx).toString())));\n\n return retVal.toString();\n }", "public static String getStringFromList(ArrayList<Float> list){\n\t\tString t = \"\";\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\tif(Float.isNaN((float)list.get(i))){\n\t\t\t\t//t += \"\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tt+=BigDecimal.valueOf((double)list.get(i))+\",\";\n\t\t\t}\n\t\t}\n\t\treturn t;\n\t}", "@Override\n public String toString() {\n return list.toString().replace(\"[\",\"\").replace(\"]\",\"\");\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint a [] = {1,0,0,1,1,0,0,1,0,1,0,0,0,1};\r\n\t\t\r\n\t\tboolean start = false;\r\n\t\t//boolean end = false;\r\n\t\tString s = \"\";\r\n\t\tString k = Arrays.toString(a);\r\n\t\tString[] strings = (k.replace(\"[\", \"\").replace(\"]\", \"\").split(\", \"));\r\n\t\tString s1 = (k.replace(\"[\", \"\").replace(\"]\", \"\"));\r\n\t\tString s2 = (s1.replace(\",\", \"\"));\r\n\t\tString s3 = s2.replaceAll(\"\\\\s\", \"\");\r\n\t\t//String stringss = strings.toString();\r\n\t\t//String[] stringss = strings.replaceAll(\"\\\\s\", \"\").split(\"\");\r\n\t\t\r\n\t\tint Startindex = 0;\r\n\t\tint Endindex = 0;\r\n\t\tArrayList<String> ai = new ArrayList<String>();\r\n\t\tfor (int i =0;i<=strings.length-1;i++) {\r\n\t\t\tint result = Integer.parseInt(strings[i]);\r\n\t\t\t\r\n\t\t\tif (result==1 && !start) {\r\n\t\t\t\t\r\n\t\t\t\tstart = true;\r\n\t\t\t\tStartindex = i;\r\n\t\t\t\t\r\n\t\t\t}else if (result==1 && start) {\r\n\t\t\t\tstart = false;\r\n\t\t\t\tEndindex = i;\r\n\t\t\t\ts = s3.substring(Startindex, Endindex+1);\r\n\t\t\t\tai.add(s);\r\n\t\t\t\ti =i-1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\nSystem.out.println(ai);\r\n\t}", "public static void addStars(ArrayList<String> list){\r\n //Loops through the list\r\n for(int i = 1; i < list.size(); i+=2){\r\n list.add(i, \"*\");\r\n }\r\n System.out.println(list);\r\n }", "private List<String> getList(String digits) {\n\t\tif(digits.length() == 0) \n\t\t\treturn new LinkedList<String>();\n\t\t\n\t\n\t\treturn Arrays.asList(getCrossProduct(digits));\n\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString listS=\"[1, 2, 3, 5, 4, 6, 9, 7, 8, 0]\";\n//\t\tString s4=listS.substring(1, listS.length()-1);\n//\t\tSystem.out.println(s4);\n//\t\tString s5=s4.replace(\", \", \"\");\n//\t\tSystem.out.println(s5);\n//\t\tSystem.out.println(s5.contains(\"1234\"));\n//\t\tSystem.out.println(s5.contains(\"1235\"));\n\t\t\n//\t\tString[] sss =listS.split(\"\\\\[|,\\\\s|\\\\]\");\n//\t\tfor(String tmp:sss) {\n//\t\t\tSystem.out.println(tmp);\n//\t\t}\n\t\t\n\t\tString rlistS=listS.replaceFirst(\"[4567]\", \"x\");\n\t\tSystem.out.println(rlistS);\n\t}", "void mo100444b(List<C40429b> list);", "public static List<String> stringList() {\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.add(\"abdxxx\");\n\t\tlist.add(\"xxxxx\");\n\t\tlist.add(\"hi\");\n\t\tlist.add(\"SmoothStack\");\n\t\tlist.add(\"Wyatt x Wyatt x\");\n\t\treturn list;\n\t}", "public static String concat(String[] list) {\n StringJoiner joiner = new StringJoiner(\" \");\n for (String s : list) {\n joiner.add(s);\n }\n return joiner.toString();\n }", "public static String toCsv(List<String> list) {\r\n\t\tString res = \"\";\r\n\t\tIterator<String> it = list.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tres += it.next();\r\n\t\t\tif (it.hasNext()) {\r\n\t\t\t\tres += \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "private static String[] listToArray(List<String> list){\n\t\tString[] arr = new String[list.size()];\n\t\tfor (int i = 0; i < list.size(); i++){\n\t\t\t\n\t\t\tarr[i] = list.get(i);\n\t\t}\n\t\t\n\t\treturn arr;\n\t}", "public static void makeBlanks(char[] list) {\n\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\tlist[i] = '*';\n\t\t}\n\t}", "public abstract void mo9247b(String str, long j, List<String> list);", "private static String listOfTokensToString(List<Token> tokenList) {\n\n StringBuilder stringBuilder = new StringBuilder();\n for (Token token : tokenList) {\n stringBuilder.append(String.format(\"%s\", token.getPattern()));\n }\n return stringBuilder.toString().trim();\n }", "@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "private static void skipSplitAdd(String s, List<String> list) {\n String tmp[] = s.split(\" \");\n\n for (int i = 1; i < tmp.length; i++) {\n list.add(tmp[i]);\n\n // System.out.println(tmp[i]);\n }\n }", "public static List<String> changeCase(List<String> list) {\n if (list != null) {\n List<String> result = new ArrayList<String>();\n for (String element : list) {\n result.add(changeCase(element));\n }\n return result;\n }\n return null;\n }", "public List getList1(List<String> list,String a) {\n\t\tlist.add(a);\r\n\t\treturn list;\r\n\t}", "public static String arrayListToString(ArrayList<Integer> arraylist) {\n\t\tString ss = null;\n\t\tbyte [] bb = new byte[arraylist.size()];\n\t\tfor (int i = 0; i < arraylist.size(); i++) {\n\t\t\tbb[i] = (byte) (arraylist.get(i) & 0xff);\n\t\t}\n\t\tss = byteArrayToHexString(bb);\n\t\treturn ss;\n\t}", "public static void eWordsFirst1(List<String> list) {\n\t\tlist.sort((s1, s2) -> (s2.charAt(0) == 'e' ? 1 : 0) - (s1.charAt(0) == 'e' ? 1 : 0));\n\t}", "public static List<String> strings(){\n\n List<String> list = Arrays.asList(\"A\", \"B\", \"C\", \"D\");\n\n return list;\n\n }", "public static void main(String[] args) {\n\t\tArrayList<String>list=new ArrayList<String>(Arrays.asList(\"c\",\"c++\",\"java\",\"python\",\"html\"));\r\n\t\tStringJoiner sj=new StringJoiner(\",\",\"{\",\"}\");\r\n\t\tlist.forEach(e->sj.add(e));\r\n\t\tSystem.out.println(sj);\r\n\t}", "public static String punctuateSequence(List<String> elements, String insertion)\r\n/* 53: */ {\r\n/* 54: 51 */ String result = \"\";\r\n/* 55: 52 */ int size = elements.size();\r\n/* 56: 53 */ if (size == 1) {\r\n/* 57: 54 */ result = result + (String)elements.get(0);\r\n/* 58: */ } else {\r\n/* 59: 57 */ for (int i = 0; i < size; i++)\r\n/* 60: */ {\r\n/* 61: 58 */ result = result + (String)elements.get(i);\r\n/* 62: 59 */ if (i != size - 1) {\r\n/* 63: 61 */ if (i == size - 2)\r\n/* 64: */ {\r\n/* 65: 62 */ if (size == 2) {\r\n/* 66: 63 */ result = result + \" \" + insertion + \" \";\r\n/* 67: */ } else {\r\n/* 68: 66 */ result = result + \", \" + insertion + \" \";\r\n/* 69: */ }\r\n/* 70: */ }\r\n/* 71: */ else {\r\n/* 72: 70 */ result = result + \", \";\r\n/* 73: */ }\r\n/* 74: */ }\r\n/* 75: */ }\r\n/* 76: */ }\r\n/* 77: 74 */ return result;\r\n/* 78: */ }", "public void mo9493a(List<String> list) {\n this.f1513b = list;\n }", "private String joinNameList(List<String> names) {\n String bldr;\n\n if ( names != null ) {\n bldr = uniquifyNames(names)\n .stream()\n .collect(Collectors.joining(\"','\"));\n }\n else {\n throw new IllegalArgumentException( \"Null name list not allowed.\" );\n }\n\n return bldr;\n }", "public void mo9497b(List<String> list) {\n this.f1514c = list;\n }", "public String nameString(ArrayList<String> nameList) {\n String nameStore = nameList.get(0) + \", \";\n for (int i = 1; i < nameList.size(); i++) {\n if (i == nameList.size() - 1) {\n nameStore += nameList.get(i);\n } else {\n nameStore += nameList.get(i) + \", \";\n }\n }\n return nameStore;\n }", "static List DuplicateElements(List<Character> characters){\r\n\t\tList newlist=new ArrayList<>();\r\n\t\tfor(char c:characters)\r\n\t\t{\r\n\t\t\tnewlist.add(Collections.nCopies(2,c ));\r\n\t\r\n\t\t}\r\n\tSystem.out.println(newlist);\r\n\treturn newlist;\r\n\t}", "public static void orderByFirstLetter(List<String> list) {\n\t\tlist.sort((s1, s2) -> s1.substring(0,1).toLowerCase().compareTo(\n\t\t\t\t\t\t\t s2.substring(0,1).toLowerCase()));\n\t}", "public final void zza(String str, List<zzbu.zza> list) {\n boolean z;\n boolean z2;\n String str2 = str;\n List<zzbu.zza> list2 = list;\n Preconditions.checkNotNull(list);\n for (int i = 0; i < list.size(); i++) {\n zzbu.zza.C4079zza zza = (zzbu.zza.C4079zza) list2.get(i).zzbl();\n if (zza.zzb() != 0) {\n for (int i2 = 0; i2 < zza.zzb(); i2++) {\n zzbu.zzb.zza zza2 = (zzbu.zzb.zza) zza.zzb(i2).zzbl();\n zzbu.zzb.zza zza3 = (zzbu.zzb.zza) ((zzib.zza) zza2.clone());\n String zzb2 = zzhb.zzb(zza2.zza());\n if (zzb2 != null) {\n zza3.zza(zzb2);\n z2 = true;\n } else {\n z2 = false;\n }\n for (int i3 = 0; i3 < zza2.zzb(); i3++) {\n zzbu.zzc zza4 = zza2.zza(i3);\n String zza5 = zzha.zza(zza4.zzh());\n if (zza5 != null) {\n zza3.zza(i3, (zzbu.zzc) ((zzib) ((zzbu.zzc.zza) zza4.zzbl()).zza(zza5).zzv()));\n z2 = true;\n }\n }\n if (z2) {\n zza = zza.zza(i2, zza3);\n list2.set(i, (zzbu.zza) ((zzib) zza.zzv()));\n }\n }\n }\n if (zza.zza() != 0) {\n for (int i4 = 0; i4 < zza.zza(); i4++) {\n zzbu.zze zza6 = zza.zza(i4);\n String zza7 = zzhd.zza(zza6.zzc());\n if (zza7 != null) {\n zza = zza.zza(i4, ((zzbu.zze.zza) zza6.zzbl()).zza(zza7));\n list2.set(i, (zzbu.zza) ((zzib) zza.zzv()));\n }\n }\n }\n }\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n Preconditions.checkNotNull(list);\n SQLiteDatabase c_ = mo40210c_();\n c_.beginTransaction();\n try {\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n SQLiteDatabase c_2 = mo40210c_();\n c_2.delete(\"property_filters\", \"app_id=?\", new String[]{str2});\n c_2.delete(\"event_filters\", \"app_id=?\", new String[]{str2});\n for (zzbu.zza next : list) {\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n Preconditions.checkNotNull(next);\n if (!next.zza()) {\n zzr().zzi().zza(\"Audience with no ID. appId\", zzez.zza(str));\n } else {\n int zzb3 = next.zzb();\n Iterator<zzbu.zzb> it = next.zze().iterator();\n while (true) {\n if (!it.hasNext()) {\n Iterator<zzbu.zze> it2 = next.zzc().iterator();\n while (true) {\n if (!it2.hasNext()) {\n Iterator<zzbu.zzb> it3 = next.zze().iterator();\n while (true) {\n if (!it3.hasNext()) {\n z = true;\n break;\n } else if (!zza(str2, zzb3, it3.next())) {\n z = false;\n break;\n }\n }\n if (z) {\n Iterator<zzbu.zze> it4 = next.zzc().iterator();\n while (true) {\n if (!it4.hasNext()) {\n break;\n } else if (!zza(str2, zzb3, it4.next())) {\n z = false;\n break;\n }\n }\n }\n if (!z) {\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n SQLiteDatabase c_3 = mo40210c_();\n c_3.delete(\"property_filters\", \"app_id=? and audience_id=?\", new String[]{str2, String.valueOf(zzb3)});\n c_3.delete(\"event_filters\", \"app_id=? and audience_id=?\", new String[]{str2, String.valueOf(zzb3)});\n }\n } else if (!it2.next().zza()) {\n zzr().zzi().zza(\"Property filter with no ID. Audience definition ignored. appId, audienceId\", zzez.zza(str), Integer.valueOf(zzb3));\n break;\n }\n }\n } else if (!it.next().zza()) {\n zzr().zzi().zza(\"Event filter with no ID. Audience definition ignored. appId, audienceId\", zzez.zza(str), Integer.valueOf(zzb3));\n break;\n }\n }\n }\n }\n ArrayList arrayList = new ArrayList();\n for (zzbu.zza next2 : list) {\n arrayList.add(next2.zza() ? Integer.valueOf(next2.zzb()) : null);\n }\n zzb(str2, (List<Integer>) arrayList);\n c_.setTransactionSuccessful();\n } finally {\n c_.endTransaction();\n }\n }", "public static void main(String[] args) {\n\t\tList<Integer> list = new ArrayList<>();\n\t\tlist.add(5);\n\t\tlist.add(6);\n\t\tlist.add(9);\n\t\tlist.add(7);\n\t\tlist.add(11);\n\t\t\n\t\tList<String> list1 = new ArrayList<>();\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t list1.add(i, list.get(i)+\"*\");\n\t\t}\n\t\tSystem.out.println(list1);\n\t\t\n\t\t\n\t\t\n\n\t}", "private ArrayList<Character> retornarListaCaracteres() {\n ArrayList<Character> validaciones = new ArrayList<Character>();\n validaciones.add('.');\n validaciones.add('/');\n validaciones.add('|');\n validaciones.add('=');\n validaciones.add('?');\n validaciones.add('¿');\n validaciones.add('´');\n validaciones.add('¨');\n validaciones.add('{');\n validaciones.add('}');\n validaciones.add(';');\n validaciones.add(':');\n validaciones.add('_');\n validaciones.add('^');\n validaciones.add('-');\n validaciones.add('!');\n validaciones.add('\"');\n validaciones.add('#');\n validaciones.add('$');\n validaciones.add('%');\n validaciones.add('&');\n validaciones.add('(');\n validaciones.add(')');\n validaciones.add('¡');\n validaciones.add(']');\n validaciones.add('*');\n validaciones.add('[');\n validaciones.add(',');\n validaciones.add('°');\n\n return validaciones;\n }", "public String templateToString(List<TemplItem> list) {\n StringBuilder builder = new StringBuilder();\n\n for (TemplItem item : list) {\n switch (item.getType()) {\n case BASE:\n builder.append((char) item.getValue());\n break;\n case PROT:\n builder.append('[').append(item.getValue()).append('_').append(item.getProtLevel()).append(']');\n break;\n case LEN:\n builder.append('|').append(item.getValue()).append('|');\n break;\n }\n }\n\n return builder.toString();\n }", "public static <T>\n String toString(DoubleLinked<T> list) {\n String result = \"[\";\n String nextString;\n for(Iterator<T> it = list.iterator(); it.hasNext();) {\n result += it.next().toString();\n String append = it.hasNext() ? \", \" : \"]\";\n result += append;\n }\n return result;\n }", "public static void compressList (List<String> ls){\n\t\tListIterator<String> itr = ls.listIterator();\n\t\twhile (itr.hasNext()){\n\t\t\tString currentStr = itr.next();\n\t\t\t\n\t\t\tString modCurrent=currentStr.replaceAll(\"\\\\s\", \"\");\n\t\t\titr.set(modCurrent);\n\t\t\tif ((modCurrent.length() == 0)||(modCurrent.startsWith(\"//\"))) {\n\t\t\t\titr.remove();\n\t\t\t} \n\t\t\t\n\t\t\telse if (modCurrent.contains(\"//\")) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint ind = modCurrent.indexOf(\"//\");\n\n\t\t\t String s2=modCurrent.substring(0, ind);\n\t\t\t\titr.set(s2);\n\t\t\t}\n\t\t}\n\t}", "private String addIDsNew(List<Person> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}", "@Given(\"^a list that is \\\"([^\\\"]*)\\\"$\")\n\tpublic void a_list_that_is(String list) throws Throwable {\n\t\tlistAsString = new String(list); \n\t \n\t}", "List<C1113b> mo5874b(String str);", "@Test\n public void testWriteList() {\n System.out.println(\"writeList\");\n /** Positive testing. */\n // List of long values\n List<Long> list = new LinkedList(Arrays.asList(0L, 1L, 2L, 3L));\n String expResult = \"li0ei1ei2ei3ee\";\n String result = Bencoder.writeList(list);\n assertEquals(expResult, result);\n // List of string values\n List<String> strs = new LinkedList<String>(Arrays.asList(\"spam\", \"moo\", \"test\"));\n expResult = \"l4:spam3:moo4:teste\";\n result = Bencoder.writeList(strs);\n assertEquals(expResult, result);\n // Empty list\n list = Collections.emptyList();\n expResult = \"le\";\n result = Bencoder.writeList(list);\n assertEquals(expResult, result);\n // Combine list\n List<Object> objs = new LinkedList();\n objs.add(42L);\n objs.add(\"spam\");\n expResult = \"li42e4:spame\";\n result = Bencoder.writeList(objs);\n assertEquals(expResult, result);\n }", "public static void list(String[] list, int maximum) {\n\t\tint i;\n\t\tfor ( i = 0 ; i <= maximum; ); { TextIO.putln( \"\" + i + \". \" + list[i]);}\n\t}", "public String encode(List<String> strs) {\n \n StringBuilder ans = new StringBuilder(\"\");\n for(String str:strs) {\n ans.append(str.length()+\"@\");\n ans.append(str);\n }\n return ans.toString();\n }" ]
[ "0.67180943", "0.66362494", "0.6398341", "0.6319852", "0.63035834", "0.6289468", "0.6286788", "0.62632626", "0.6218996", "0.6175836", "0.6022168", "0.60015243", "0.5998881", "0.5919845", "0.5916582", "0.58689505", "0.5827761", "0.5820795", "0.57784814", "0.5755746", "0.572573", "0.5714314", "0.5703099", "0.56998336", "0.5688593", "0.56822324", "0.56775653", "0.5651036", "0.5649742", "0.56382877", "0.5636193", "0.5635531", "0.56327486", "0.5630661", "0.56189", "0.56147856", "0.5603957", "0.5587097", "0.5577082", "0.55316585", "0.55149984", "0.5502662", "0.5489742", "0.5476243", "0.54709363", "0.54691315", "0.54611725", "0.545788", "0.54550755", "0.5452462", "0.5452117", "0.54351646", "0.543447", "0.54324114", "0.54305303", "0.5426821", "0.54171425", "0.5411791", "0.54063857", "0.54038554", "0.5398177", "0.5396954", "0.53900975", "0.53893006", "0.5388696", "0.5376216", "0.5374779", "0.5352574", "0.53462464", "0.5321461", "0.5320275", "0.5319873", "0.531397", "0.530149", "0.5293883", "0.5293481", "0.5288369", "0.5287842", "0.5278939", "0.5273982", "0.5271876", "0.5269236", "0.52592856", "0.5251186", "0.52442765", "0.52380276", "0.5229634", "0.5222442", "0.522199", "0.5220361", "0.5217429", "0.52060634", "0.5198373", "0.5197268", "0.51871693", "0.51871085", "0.51779884", "0.5172389", "0.51571065", "0.51482403", "0.5145254" ]
0.0
-1
get the first elements from the list. such as if a, bc, de... get a, b, d orderedList() will use first elements to organize the list
ArrayList<String> firstElements(ArrayList<String> myList);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <C> C FIRST(LIST<C> L) {\n if ( isNull( L ) ) {\n return null;\n }\n if ( L.iter != null ) {\n if ( L.iter.hasNext() ) {\n return L.iter.next();\n } else {\n L.iter = null;\n return null;\n }\n }\n return L.list.getFirst();\n }", "int getFirst(int list) {\n\t\treturn m_lists.getField(list, 0);\n\t}", "int getFirstList() {\n\t\treturn m_list_of_lists;\n\t}", "public Object firstElement();", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "public static <T> T getFirst(List<T> list) {\n\t\treturn list != null && !list.isEmpty() ? list.get(0) : null;\n\t}", "protected T getFirstValue(List<T> list) {\n\t\treturn list != null && !list.isEmpty() ? list.get(0) : null;\n\t}", "String getFirstElementOfArrayList( ArrayList arrayList ) {\n\n \tString firstElement = new String(\"\");\n \tfor ( Object e : arrayList ) {\n \t\tfirstElement = (String) e;\n \t\tbreak;\n \t}\n \treturn firstElement;\n }", "String first(String collection);", "public Object getFirst() throws ListException {\r\n\t\tif (size() >= 1) {\r\n\t\t\treturn get(1);\r\n\t\t} else {\r\n\t\t\tthrow new ListException(\"getFirst on an empty list\");\r\n\t\t}\r\n\t}", "public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}", "public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }", "public Item getFirst();", "public E first() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 ) {\n position = 0;\n E element = entries[position]; \n position++;\n return element;\n } else {\n throw new NoSuchElementException();\n }\n }", "public static <T> T getFirstElement(final Iterable<T> elements) {\n\t\treturn elements.iterator().next();\n\t}", "@NotNull\n\tList<ObjectType> getFirstOrderChain();", "public static <C> void SFIRST(LIST<C> L, C a) {\n if ( ! isNull( L ) ) {\n L.list.set(0,a);\n }\n }", "public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }", "public int getFirstElement() {\n\t\tif( head == null) {\n\t\t\tSystem.out.println(\"List is empty\");\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse {\n\t\t\treturn head.data;\n\t\t}\n\t}", "ArrayList<String> orderedList(ArrayList<String> unOrderedList);", "public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "public A getFirst() { return first; }", "public StringListIterator first()\n {\n\treturn new StringListIterator(head);\n }", "public T getFirst( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//first node\r\n\t\tArrayNode<T> first = beginMarker.next;\r\n\t\ttry{\r\n\t\t\t//first elem\r\n\t\t\treturn first.getFirst();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t\t\r\n\t}", "public Set<String> getFirst(String A);", "public Object getFirst()\n {\n if(first == null){\n throw new NoSuchElementException();}\n \n \n \n return first.data;\n }", "public E getFirst(){\n return head.getNext().getElement();\n }", "public E first() {\n if (isEmpty()) return null;\n return first.item;\n }", "public ArrayList<T> firstThreeElements() throws EmptyCollectionException;", "public Item getFirst() {\n Node removed = head.next;\n head.next = removed.next;\n removed.next = null;\n size--;\n return removed.item;\n }", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public Object getFirst()\n {\n if (first == null)\n {\n throw new NoSuchElementException();\n }\n else\n return first.getValue();\n }", "@Override\r\n\tpublic Object first(){\r\n\t\tcheck();\r\n\t\treturn head.value;\r\n\t}", "public E getFirst();", "public List<List<Seat>> getFirst() {\n\t\treturn first;\n\t}", "public E getFirst() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn mHead.next.data;\n\t}", "public Object getFirst() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.next.element;\r\n }", "private List<LRItem> getStartItems(final Symbol symbol, final List<LRItem> items) {\n final List<LRItem> newItems = new ArrayList<>();\n for (final LRItem item : items) {\n if (item.getProduction().leftSide().equals(symbol) && (item.getDotIndex() == 0)) {\n newItems.add(item);\n }\n }\n return newItems;\n }", "public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}", "protected Optional<T> getFirstValueOptional(List<T> list) {\n\t\treturn Optional.ofNullable(getFirstValue(list));\n\t}", "public T getFirst() {\n return this.getHelper(this.indexCorrespondingToTheFirstElement).data;\n }", "public static Object first(Object o) {\n log.finer(\"getting first of list expression: \" + o);\n validateType(o, SPair.class);\n return ((SPair)o).getCar();\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public T getFirst() {\n\t\t//if the head is not empty\n\t\tif (head!= null) {\n\t\t\t//return the data in the head node of the list\n\t\t\treturn head.getData();\n\t\t}\n\t\t//otherwise return null\n\t\telse { return null; }\n\t}", "public E getFirst() {\n return peek();\n }", "@Override\r\n\t\tpublic final E getFirst() {\n\t\t\treturn null;\r\n\t\t}", "public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }", "public String getFirst(){ return this.first; }", "@Override\n\tpublic Position<E> addFirst(E e) {\n\t\treturn addBetween(head, head.next, e);\n\t}", "@Override\n\tpublic Object peek() {\n\t\treturn list.getFirst();\n\t}", "public Optional<T> getFirstItem() {\n return getData().stream().findFirst();\n }", "@Test\r\n\tvoid testFirst() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(3);\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\tint output = test.first();\r\n\t\tassertEquals(10, output);\r\n\t}", "public T getFirst();", "public T getFirst();", "@Test public void posAsFirstPredicate() {\n // return first\n query(\"//ul/li[1]['']\", \"\");\n query(\"//ul/li[1]['x']\", LI1);\n query(\"//ul/li[1][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1);\n\n query(\"//ul/li[1][0]\", \"\");\n query(\"//ul/li[1][1]\", LI1);\n query(\"//ul/li[1][2]\", \"\");\n query(\"//ul/li[1][last()]\", LI1);\n\n // return second\n query(\"//ul/li[2]['']\", \"\");\n query(\"//ul/li[2]['x']\", LI2);\n query(\"//ul/li[2][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI2);\n\n query(\"//ul/li[2][0]\", \"\");\n query(\"//ul/li[2][1]\", LI2);\n query(\"//ul/li[2][2]\", \"\");\n query(\"//ul/li[2][last()]\", LI2);\n\n // return second\n query(\"//ul/li[3]['']\", \"\");\n query(\"//ul/li[3]['x']\", \"\");\n query(\"//ul/li[3][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", \"\");\n\n query(\"//ul/li[3][0]\", \"\");\n query(\"//ul/li[3][1]\", \"\");\n query(\"//ul/li[3][2]\", \"\");\n query(\"//ul/li[3][last()]\", \"\");\n\n // return last\n query(\"//ul/li[last()]['']\", \"\");\n query(\"//ul/li[last()]['x']\", LI2);\n query(\"//ul/li[last()][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI2);\n\n query(\"//ul/li[last()][0]\", \"\");\n query(\"//ul/li[last()][1]\", LI2);\n query(\"//ul/li[last()][2]\", \"\");\n query(\"//ul/li[last()][last()]\", LI2);\n\n // multiple positions\n query(\"//ul/li[position() = 1 to 2]['']\", \"\");\n query(\"//ul/li[position() = 1 to 2]['x']\", LI1 + '\\n' + LI2);\n query(\"//ul/li[position() = 1 to 2]\"\n + \"[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[position() = 1 to 2][0]\", \"\");\n query(\"//ul/li[position() = 1 to 2][1]\", LI1);\n query(\"//ul/li[position() = 1 to 2][2]\", LI2);\n query(\"//ul/li[position() = 1 to 2][3]\", \"\");\n query(\"//ul/li[position() = 1 to 2][last()]\", LI2);\n\n // variable position\n query(\"for $i in 1 to 2 return //ul/li[$i]['']\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[$i]['x']\", LI1 + '\\n' + LI2);\n query(\"for $i in 1 to 2 return //ul/li[$i]\"\n + \"[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"for $i in 1 to 2 return //ul/li[$i][0]\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[$i][1]\", LI1 + '\\n' + LI2);\n query(\"for $i in 1 to 2 return //ul/li[$i][2]\");\n query(\"for $i in 1 to 2 return //ul/li[$i][last()]\", LI1 + '\\n' + LI2);\n\n // variable predicates\n query(\"for $i in (1, 'a') return //ul/li[$i]['']\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[$i]['x']\", LI1 + '\\n' + LI1 + '\\n' + LI2);\n query(\"for $i in (1, 'a') return //ul/li[$i][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\",\n LI1 + '\\n' + LI1 + '\\n' + LI2);\n\n query(\"for $i in (1, 'a') return //ul/li[$i][0]\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[$i][1]\", LI1 + '\\n' + LI1);\n query(\"for $i in (1, 'a') return //ul/li[$i][2]\");\n query(\"for $i in (1, 'a') return //ul/li[$i][last()]\", LI1 + '\\n' + LI2);\n }", "public static <T> ConstList<T> prepend(List<T> list, T element) {\n TempList<T> ans = new TempList<T>(list.size() + 1);\n ans.add(element).addAll(list);\n return ans.makeConst();\n }", "public LinkedListItr first( )\n {\n return new LinkedListItr( header.next );\n }", "public T first() throws EmptyCollectionException;", "public T first() throws EmptyCollectionException;", "public A first() {\n return first;\n }", "public int getFirst();", "public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "public Object front() {\n ListNode p = this.l.start;\n while(p.next!=null)\n {\n p = p.next;\n }\n\t\treturn (Object) p.item;\n\t}", "public static void shortestFirst(List<String> list) {\n\t\tlist.sort((s1, s2) -> s1.length() - s2.length());\n\t}", "T getOrderedQueryParameterFirstValue();", "public char FirstAppearingOnce()\n {\n char rs='#';\n int size=list.size();\n for(int i=0;i<size;i++){\n char ch= (char) list.get(i);\n if(1 == (Integer) map.get(ch)){\n rs=ch;\n break;\n }\n }\n return rs;\n }", "public K getFirst() {\r\n\t\treturn first;\r\n\t}", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "@Override\n public E getFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[head];\n }", "public JspElement getFirst() {\r\n\treturn _first;\r\n}", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "public myList<T> my_preorder();", "public final ManagedElementList<VirtualMachine> getFirstSet() {\r\n return (ManagedElementList<VirtualMachine>) this.set1;\r\n }", "public VectorItem<O> firstVectorItem()\r\n {\r\n if (isEmpty()) return null; \r\n return first;\r\n }", "public Position getFirst() {\n return positions[0];\n }", "public RTContainer container_element(RTContainer a, boolean first){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0){\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompGoals().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompGoals().getLast(); \n\t\t}else{\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompPlans().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompPlans().getLast();\n\t\t}\n\t}", "public O before(O a)\r\n {\r\n int index = indexOf(a);\r\n if (index != -1 && index != 0) //is defined and not first\r\n return get(index-1);\r\n else return null;\r\n }", "T first();", "public String getFirst(){\n return this.first;\n }", "public static List<User> decidedFirstList(List<User> users) {\r\n List<User> decidedList = new ArrayList<>();\r\n List<User> undecidedList = new ArrayList<>();\r\n\r\n for (User user : users) {\r\n if (user.getRestaurantId() == null)\r\n undecidedList.add(user);\r\n else\r\n decidedList.add(user);\r\n }\r\n\r\n Collections.sort(decidedList, ((user, t1) -> user.getLastName().compareTo(t1.getLastName())));\r\n Collections.sort(undecidedList, ((user, t1) -> user.getLastName().compareTo(t1.getLastName())));\r\n decidedList.addAll(undecidedList);\r\n\r\n return decidedList;\r\n }", "Position<T> first();", "public T getFirst() {\n\treturn _front.getCargo();\n }", "public static List<Element> getElementsPreorder(Element elt) {\n List<Element> res = new ArrayList<>();\n res.add(elt);\n Node nod = elt.getFirstChild();\n while (nod != null) {\n if (nod.getNodeType() == Node.ELEMENT_NODE) {\n res.addAll(getElementsPreorder((Element) nod));\n }\n nod = nod.getNextSibling();\n }\n return res;\n }", "private List<T> getCompList(){\n\t\tList<T> l = new ArrayList<T>();\n\t\tfor(int i=0; i<list.size(); i++){\n\t\t\tif(indices[i]==1){\n\t\t\t\tl.add(list.get(i));\n\t\t\t}\n\t\t}\n\t\treturn l;\n\t}", "K first();", "@Override\r\n\tpublic T first() {\n\t\treturn head.content;\r\n\t}", "private List<T> preOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult.add(current.getData());\n\t\t\tresult = preOrderHelper(current.getLeft(), result);\n\t\t\tresult = preOrderHelper(current.getRight(), result);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "public static MutableLinearList start () {\r\n\t\t\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tMutableLinearList item2 = new MutableLinearList();\r\n\t\tMutableLinearList item3 = new MutableLinearList();\r\n\t\t\r\n\t\tlist.head = 42;\r\n\t\tlist.tail = item2;\r\n\t\t\r\n\t\titem2.head = 8;\r\n\t\titem2.tail = item3;\r\n\t\t\r\n\t\titem3.head = 15;\r\n\t\titem3.tail = null;\r\n\t\t\r\n\t\t\r\n/*\t\t// alternative Implementierung:\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tlist.head = 15;\r\n\t\tlist.addInFront(8);\r\n\t\tlist.addInFront(42);\r\n*/\t\t\r\n\t\t\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic E getFirst() {\n\t\treturn null;\r\n\t}", "public T first(int x)throws EmptyCollectionException, \n InvalidArgumentException;", "public List getList1(List<String> list,String a) {\n\t\tlist.add(a);\r\n\t\treturn list;\r\n\t}", "public void firstOfList(List<?> instrucicones, Object n) {\n \tString m=\"\";\n \tm=instrucicones.get(1).toString();\n \t//System.out.println(m);\n \tSystem.out.println(n);\n }", "@Override\n public Persona First() {\n return array.get(0);\n }", "public Element first() {\n if(isEmpty()) return null;\n else return header.getNextNode().getContent();\n }", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }", "public Object getFirstObject()\n {\n \tcurrentObject = firstObject;\n\n if (firstObject == null)\n \treturn null;\n else\n \treturn AL.get(0);\n }", "public Object removeFirst(){\n if (first == null)\n throw new NoSuchElementException();\n Object element = first.data;\n first = first.next;\n return element ;\n }" ]
[ "0.6695777", "0.66250277", "0.6526327", "0.65228903", "0.6495536", "0.6418426", "0.6312067", "0.6268618", "0.62007606", "0.61886185", "0.61755", "0.6107807", "0.6097177", "0.6095397", "0.6079731", "0.60516065", "0.59558916", "0.5953162", "0.5952281", "0.5950774", "0.59492797", "0.5932828", "0.5915315", "0.58712965", "0.5837825", "0.5835177", "0.5815352", "0.58128995", "0.5807792", "0.5751242", "0.5750593", "0.5724699", "0.5724699", "0.5701145", "0.569481", "0.5684734", "0.56667125", "0.5652893", "0.5646996", "0.5642243", "0.5632218", "0.5615095", "0.56085587", "0.55969834", "0.55921626", "0.5585533", "0.55820113", "0.5572707", "0.55570227", "0.5556387", "0.5537166", "0.55313474", "0.5530665", "0.55238485", "0.55172133", "0.55172133", "0.5499867", "0.54981124", "0.54968613", "0.54842013", "0.54842013", "0.54828644", "0.5476294", "0.5476104", "0.5465634", "0.5458297", "0.5445659", "0.54404974", "0.543438", "0.5434001", "0.542533", "0.54208", "0.5413812", "0.54132", "0.54100907", "0.53969914", "0.539586", "0.53767174", "0.53719825", "0.5363965", "0.5363433", "0.5356759", "0.5345956", "0.53435576", "0.5343004", "0.53408444", "0.53327006", "0.53282464", "0.53271157", "0.5326767", "0.5323553", "0.53165436", "0.53097486", "0.5307873", "0.53010225", "0.5300418", "0.52990144", "0.52899927", "0.5282984", "0.5282294" ]
0.7602385
0
2 lists : myList and theList. myList in form of a, bc, d, ef ... theList first elements of myList is in form of a, b, d , e ... get the second char of elements in myList and change positions in theList. such as 'bc' is for b => c that c comes before b that we rearrange accordingly
ArrayList<String> orderedList(ArrayList<String> unOrderedList);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void swap(List<CustomCharacter> list, int a, int b){\n CustomCharacter temp = getClone(list, a);\n list.set(a, list.get(b));\n list.set(b, temp);\n }", "public static ArrayList<String>\n swap(ArrayList<String> list,int pos1,int pos2)\n { Collections.swap(list,pos1,pos2);\n return list;\n }", "public static ArrayList<String> decode(ArrayList<String> List) {\n String tempstr;\n for (int i = 0; i < List.size(); i++) {\n tempstr = \"\";\n for (int j = 0; j < List.get(i).length(); j++) {\n for (int k = 0; k < temps.length; k++) {\n if (List.get(i).charAt(j) == temps[k]) {\n tempstr += basealpha[k];\n }\n }\n }\n List.set(i, tempstr);\n }\n return List;\n }", "private void modify(List listString){\n\t}", "private static List<String> sort(String a)\n {\n String temp;\n List<String> list = new ArrayList<String>();\n for(int t = 0; t < a.length(); t++)\n {\n list.add(\"\"+a.charAt(t));\n }\n for(int i = 1; i < list.size(); i++)\n {\n for(int j = i ; j > 0; j--)\n {\n if(list.get(j).charAt(0) < list.get(j-1).charAt(0))\n {\n temp = list.get(j);\n list.set(j,list.get(j-1));\n list.set(j-1,temp);\n }\n \n }\n }\n return list;\n }", "public static List<String> sortDNA(List<String> DNA) {\n\t\tfor(int i = 0; i < DNA.size(); i++) {\n\t\t\tint shortest = i;\n\t\t\tfor(int j = i + 1; j < DNA.size(); j++) {\n\t\t\t\tif(DNA.get(j).length() < DNA.get(i).length()) {\n\t\t\t\t\tshortest = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString switching = DNA.get(shortest);\n\t\t\tDNA.set(shortest, DNA.get(i));\n\t\t\tDNA.set(i, switching);\n\t\t}\n\t\treturn DNA;\n\t}", "public static String decode(String List) {\n String tempstr = \"\";\n for (int j = 0; j < List.length(); j++) {\n for (int k = 0; k < temps.length; k++) {\n if (List.charAt(j) == temps[k]) {\n tempstr += basealpha[k];\n }\n }\n }\n return tempstr;\n }", "private void updateElementListFromSegmet(int changeValue, List<Integer> elementList) {\n\n int changeIndex = 0;\n int change = 0;\n\n for (int i = 0; i < elementList.size(); i++) {\n if (changeValue == elementList.get(i)) {\n changeIndex = i;\n change++;\n }\n }\n\n if (change == 0) {\n for (int i = 0; i < elementList.size(); i++) {\n if (changeValue > elementList.get(i)) {\n continue;\n }\n int value = elementList.get(i) - 1;\n elementList.set(i, value);\n }\n return;\n }\n\n for (int i = elementList.size() - 1; i >= 0; i--) {\n if (elementList.get(i) == changeValue) {\n break;\n } else {\n int value = elementList.get(i) - 1;\n elementList.set(i, value);\n }\n\n }\n\n elementList.remove(changeIndex);\n\n }", "private static void sortByVerified( ArrayList<Volunteer> list)\n {\n // Find the string reference that should go in each cell of\n // the array, from cell 0 to the end\n for ( int j = 0; j < list.size();j++ )\n {\n // Find min: the index of the string reference that should go into cell j.\n // Look through the unsorted strings (those at j or higher) for the one that is first in lexicographic order\n int min = j;\n for ( int k=j+1; k < list.size(); k++ ) {\n if (list.get(k).compareTo(list.get(min)) > 0) {\n min = k;\n }\n\n }\n\n // Swap the reference at j with the reference at min\n Collections.swap(list, j, min);\n }\n }", "public static List<String> sortStringList(List<String> toSort) {\n int elements = toSort.size();\n for (int i = (elements - 1); i > 0; i--) {\n for (int j = 0; j < i; j++) {\n if (toSort.get(j).compareTo(toSort.get(j + 1)) > 0) {\n String inter = toSort.get(j);\n toSort.set(j, toSort.get(j + 1));\n toSort.set(j + 1,inter);\n }\n }\n }\n return toSort;\n }", "public List<String> match(List<String> someList)\n {\n char[] objectWord = this.aWord.toCharArray();\n Arrays.sort(objectWord);\n\n List<String> answer = new ArrayList<>();\n HashMap<String, Integer> mapForEachWord = new HashMap<>();\n\n for (int i = 0; i < someList.size(); i++)\n {\n String wordFromList = someList.get(i).toLowerCase();\n //mapForEachWord = processWord(wordFromList);\n\n char[] listWordArray = wordFromList.toCharArray();\n Arrays.sort(listWordArray);\n\n if (Arrays.equals(listWordArray, objectWord) && !this.aWord.equals(wordFromList))\n {\n answer.add(someList.get(i));\n }\n\n }\n\n return answer;\n }", "public List<String> reverseList(List<String> stringList) {\n\t\tList<String> reversedList = new ArrayList<>(); //anytime we define List<String> on left we dont need String on right within <>\n\t\tStack<String> reversed = new Stack<>(); //FILO \n\t\t\n\t\tfor (String element: stringList) {\n\t\t\treversed.push(element);\n\t\t}\n\t\twhile(!reversed.empty()) { //if whole stack is not empty (not specific elements) (each element being removed until empty)\n\t\t\treversedList.add(reversed.pop()); //adding popped element \n\t\t\t/* or lines 92 & 93 same as line 90;\n\t\t\t * String element = reversed.pop();\n\t\t\t * reversedList.add(element); */\n\t\t}//for each loop shouldn't be used with manipulated lists especially remove functions \n\t\t\n\t\treturn reversedList; \n\t}", "@Override\n public String part2(List<String> input) {\n ArrayList<Integer> hit = new ArrayList<>();\n int listLen = input.size();\n\n //how long is the string\n int strLen = input.get(0).length();\n\n //Char init\n\n // checking each column... ...\n // vertical y\n\n // first is down, second is right\n int[][] movement = {{1, 1}, {1, 3}, {1, 5}, {1, 7}, {2, 1}};\n\n //each item in movement\n for (int i = 0; i < movement.length; i++) {\n hit.add(0);\n // moving the sled\n for (int y = 0; y < listLen; y++) {\n int xCor = 0;\n int yCor = 0;\n if (y != 0) {\n yCor = movement[i][0] * y;\n xCor = movement[i][1] * y;\n }\n\n // in case of out of bounds x\n if (xCor >= strLen) {\n xCor = xCor % strLen;\n }\n char location;\n //in case of out of bounds y\n if (yCor < listLen) {\n location = input.get(yCor).charAt(xCor);\n if (location == '#') {\n hit.set(i,hit.get(i) + 1);\n }\n }\n\n\n }\n }\n\n //First tried int because.. well too big for int so long worked better\n long result = 1;\n for (int i = 0; i < hit.size(); i++) {\n result = result * hit.get(i);\n }\n\n return \"\" + result;\n }", "public static ArrayList<String> encode(ArrayList<String> List) {\n String tempstr;\n for (int i = 0; i < List.size(); i++) {\n tempstr = \"\";\n for (int j = 0; j < List.get(i).length(); j++) {\n for (int k = 0; k < basealpha.length; k++) {\n if (List.get(i).charAt(j) == basealpha[k]) {\n tempstr += temps[k];\n }\n }\n }\n List.set(i, tempstr);\n }\n return List;\n }", "public static MySimpleLinkedList orderList(MySimpleLinkedList list1,\n\t\t\tMySimpleLinkedList list2) {\n\t\t\n\t\tMySimpleLinkedList aux = new MySimpleLinkedList();\n\t\t\n\t\tIteratorMySimpleLinkedList it1 = list1.iterator();\n\t\tIteratorMySimpleLinkedList it2 = list2.iterator();\n\t\t\n\t\tint val1, val2;\n\t\t\n\t\twhile(it1.hasNext() && it2.hasNext()) {\n\t\t\t\n\t\t\tval1 = (int) it1.get();\n\t\t\tval2 = (int) it2.get();\n\t\t\t\n\t\t\tif(val1 == val2) {\n\t\t\t\taux.insertLast(val1);\n\t\t\t\tit1.next();\n\t\t\t\tit2.next();\n\t\t\t}else if(val1 < val2) {\n\t\t\t\tit1.next();\n\t\t\t}else {\n\t\t\t\tit2.next();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn aux;\n\t}", "public ArrayList<ArrayList<String>> fromSecondToFirst(ArrayList<String> words);", "public static <T> List<Pair<Integer, T>> listToIndexElementPairList(List<T> list) {\n List<Pair<Integer, T>> ret = new ArrayList<Pair<Integer, T>>();\n Iterator<T> listIter = list.iterator();\n for (int i=0; i<list.size(); i++) {\n ret.add(Pair.make(i, listIter.next()));\n }\n \n return ret;\n }", "private List<TilePojo> getFixedNumberChar(List<TilePojo> originalCharList, int charNumber) {\n\t\tLOGGER.info(\"getFixedNumberChar -> Start\");\n\t\tList<TilePojo> charList;\n\t\tif (originalCharList.size() > charNumber) {\n\t\t\tcharList = new LinkedList<>();\n\t\t\tfor (int i = 0; i < charNumber; i++) {\n\t\t\t\tcharList.add(originalCharList.get(i));\n\t\t\t}\n\t\t} else {\n\t\t\tcharList = originalCharList;\n\t\t}\n\t\t\n\t\tLOGGER.debug(\"from getFixedNumberChar of GalleryModel, charList size {}\", charList.size());\n\t\t\n\t\tLOGGER.info(\"getFixedNumberChar -> End\");\n\t\treturn charList;\n\t}", "public static List<String> partitionFurther(List<String> inputStrings)\n\t{\n\t\tString lastString = inputStrings.remove(inputStrings.size() - 1);\n\t\tString replacementStringA = \"\";\n\t\tString replacementStringB = \"\";\n\t\tSystem.out.println(\"current last string, \" + lastString);\n\t\tCharacter leadingChar = lastString.charAt(0);\n\t\t//Find out where its last repetition is\n\t\tInteger repeatingIndex = findLastOccurrenceOfCharacterInString(leadingChar, lastString);\n\t\tif(repeatingIndex.equals(0))\n\t\t{\n\t\t\t//If no character repetition exists,\n\t\t\t//just substring that 1 char split up into itself\n\t\t\treplacementStringA = String.valueOf(leadingChar);\n\t\t\treplacementStringB = lastString.substring(1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//We have to do MORE work here.\n\t\t\t//Find where the LAST place every character in replacementStringA exists.\n\t\t\t//The last one\n\t\t\tint tempStore = repeatingIndex;\n\t\t\treplacementStringA = lastString.substring(0,repeatingIndex+1);\n\t\t\treplacementStringB = lastString.substring(repeatingIndex+1);\n\t\t\tInteger lastPlaceOfReplacement = 0;\n\t\t\tfor(int i = 0; i < replacementStringA.length(); i++)\n\t\t\t{\n\t\t\t\tCharacter c = replacementStringA.charAt(i);\n\t\t\t\trepeatingIndex = findLastOccurrenceOfCharacterInString(c, replacementStringB);\n\n\t\t\t\tif(repeatingIndex > lastPlaceOfReplacement)\n\t\t\t\t{\n\t\t\t\t\tlastPlaceOfReplacement = repeatingIndex;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(lastPlaceOfReplacement > 0)\n\t\t\t{\n\t\t\t\treplacementStringA = lastString.substring(0,tempStore+lastPlaceOfReplacement+1);\n\t\t\t\treplacementStringB = lastString.substring(tempStore+lastPlaceOfReplacement+1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"replacement string A, \" + replacementStringA);\n\t\tSystem.out.println(\"replacement string A, \" + replacementStringB);\n\n\t\t//repeat till the last String is not modified.\n\t\tif(replacementStringB.equals(\"\"))\n\t\t{\n\t\t\treturn inputStrings;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tinputStrings.add(replacementStringA);\n\t\t\tinputStrings.add(replacementStringB);\n\t\t\treturn partitionFurther(inputStrings);\n\t\t}\n\t}", "public static String[] insertionSort(String[] list){\n for (int i=1; i<list.length; i++){\r\n //use a variable a to temporarily store the index of the current item\r\n int a = i;\r\n //loop through comparisons with items before it until it reaches an item that is smaller than it\r\n while(list[a].compareTo(list[a-1])<0){\r\n //when item before it is larger, use a temporary string variable to store the current item's value\r\n String temp = list[a];\r\n list[a]=list[a-1];//give list[a] the value of the list[a-1]\r\n list[a-1]=temp;//give list[a-1] the value that is stored in the temporary\r\n a-=1;\r\n if(a==0)\r\n break;\r\n }\r\n }\r\n return list;\r\n }", "public static void orderByFirstLetter(List<String> list) {\n\t\tlist.sort((s1, s2) -> s1.substring(0,1).toLowerCase().compareTo(\n\t\t\t\t\t\t\t s2.substring(0,1).toLowerCase()));\n\t}", "public ArrayList<ArrayList<String>> fromFirstToSecond(ArrayList<String> words);", "private List<E> split(List<E> list, E marker, Boolean swap) {\n int idx = list.indexOf(marker);\n if (swap) return list.subList(0, idx);\n else return list.subList(idx + 1, list.size());\n }", "private void combine(char[] chars, int begin) {\n\t\tif(begin==chars.length) {\r\n\t\t\tString result = String.valueOf(chars);\r\n\t\t\tif(!list.contains(result)) {\r\n\t\t\t\tlist.add(result);\r\n\t\t\t}\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tfor(int i=begin;i<chars.length;i++) {\r\n\t\t\tswap(chars,i,begin);\r\n\t\t\tcombine(chars, begin+1);\r\n\t\t\tswap(chars,i,begin);\r\n\t\t}\t\r\n\t}", "public final void zza(String str, List<zzbu.zza> list) {\n boolean z;\n boolean z2;\n String str2 = str;\n List<zzbu.zza> list2 = list;\n Preconditions.checkNotNull(list);\n for (int i = 0; i < list.size(); i++) {\n zzbu.zza.C4079zza zza = (zzbu.zza.C4079zza) list2.get(i).zzbl();\n if (zza.zzb() != 0) {\n for (int i2 = 0; i2 < zza.zzb(); i2++) {\n zzbu.zzb.zza zza2 = (zzbu.zzb.zza) zza.zzb(i2).zzbl();\n zzbu.zzb.zza zza3 = (zzbu.zzb.zza) ((zzib.zza) zza2.clone());\n String zzb2 = zzhb.zzb(zza2.zza());\n if (zzb2 != null) {\n zza3.zza(zzb2);\n z2 = true;\n } else {\n z2 = false;\n }\n for (int i3 = 0; i3 < zza2.zzb(); i3++) {\n zzbu.zzc zza4 = zza2.zza(i3);\n String zza5 = zzha.zza(zza4.zzh());\n if (zza5 != null) {\n zza3.zza(i3, (zzbu.zzc) ((zzib) ((zzbu.zzc.zza) zza4.zzbl()).zza(zza5).zzv()));\n z2 = true;\n }\n }\n if (z2) {\n zza = zza.zza(i2, zza3);\n list2.set(i, (zzbu.zza) ((zzib) zza.zzv()));\n }\n }\n }\n if (zza.zza() != 0) {\n for (int i4 = 0; i4 < zza.zza(); i4++) {\n zzbu.zze zza6 = zza.zza(i4);\n String zza7 = zzhd.zza(zza6.zzc());\n if (zza7 != null) {\n zza = zza.zza(i4, ((zzbu.zze.zza) zza6.zzbl()).zza(zza7));\n list2.set(i, (zzbu.zza) ((zzib) zza.zzv()));\n }\n }\n }\n }\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n Preconditions.checkNotNull(list);\n SQLiteDatabase c_ = mo40210c_();\n c_.beginTransaction();\n try {\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n SQLiteDatabase c_2 = mo40210c_();\n c_2.delete(\"property_filters\", \"app_id=?\", new String[]{str2});\n c_2.delete(\"event_filters\", \"app_id=?\", new String[]{str2});\n for (zzbu.zza next : list) {\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n Preconditions.checkNotNull(next);\n if (!next.zza()) {\n zzr().zzi().zza(\"Audience with no ID. appId\", zzez.zza(str));\n } else {\n int zzb3 = next.zzb();\n Iterator<zzbu.zzb> it = next.zze().iterator();\n while (true) {\n if (!it.hasNext()) {\n Iterator<zzbu.zze> it2 = next.zzc().iterator();\n while (true) {\n if (!it2.hasNext()) {\n Iterator<zzbu.zzb> it3 = next.zze().iterator();\n while (true) {\n if (!it3.hasNext()) {\n z = true;\n break;\n } else if (!zza(str2, zzb3, it3.next())) {\n z = false;\n break;\n }\n }\n if (z) {\n Iterator<zzbu.zze> it4 = next.zzc().iterator();\n while (true) {\n if (!it4.hasNext()) {\n break;\n } else if (!zza(str2, zzb3, it4.next())) {\n z = false;\n break;\n }\n }\n }\n if (!z) {\n zzak();\n zzd();\n Preconditions.checkNotEmpty(str);\n SQLiteDatabase c_3 = mo40210c_();\n c_3.delete(\"property_filters\", \"app_id=? and audience_id=?\", new String[]{str2, String.valueOf(zzb3)});\n c_3.delete(\"event_filters\", \"app_id=? and audience_id=?\", new String[]{str2, String.valueOf(zzb3)});\n }\n } else if (!it2.next().zza()) {\n zzr().zzi().zza(\"Property filter with no ID. Audience definition ignored. appId, audienceId\", zzez.zza(str), Integer.valueOf(zzb3));\n break;\n }\n }\n } else if (!it.next().zza()) {\n zzr().zzi().zza(\"Event filter with no ID. Audience definition ignored. appId, audienceId\", zzez.zza(str), Integer.valueOf(zzb3));\n break;\n }\n }\n }\n }\n ArrayList arrayList = new ArrayList();\n for (zzbu.zza next2 : list) {\n arrayList.add(next2.zza() ? Integer.valueOf(next2.zzb()) : null);\n }\n zzb(str2, (List<Integer>) arrayList);\n c_.setTransactionSuccessful();\n } finally {\n c_.endTransaction();\n }\n }", "private ArrayList<String> simpleFormList(ArrayList<String> list){\n\t\tArrayList<String> simpleFormList = new ArrayList<String>();\n\t\tfor(String s : list){\n\t\t\tString pos = posMap.get(s);\n\t\t\tsimpleFormList.add(simpleForm(s,pos));\n\t\t}\n\t\treturn simpleFormList;\n\t}", "private void mergeHelp(WordList list, Comparator<String> comp, int start, int mid, int end) {\r\n\t \r\n\t \r\n\t int pos = 0;\r\n\t int a = start;\r\n\t int len = end - start + 1;\r\n\t int b = mid + 1;\r\n\t String[] sorted = new String[len];\r\n\t \r\n\t while(a <= mid && b <= end) {\r\n\t\t if(comp.compare(list.get(a), list.get(b)) == -1) { \r\n\t\t\t sorted[pos] = list.get(b);\r\n\t\t\t b++;\r\n\t\t }\r\n\t\t else {\r\n\t\t\t sorted[pos] = list.get(a);\r\n\t\t\t a++;\r\n\t\t }\r\n\t\t pos++;\r\n\t }\r\n\t \r\n\t while(a <= mid) {\r\n\t\t sorted[pos] = list.get(a);\r\n\t\t a++;\r\n\t\t pos++;\r\n\t }\r\n\t while(b <= end) {\r\n\t\t sorted[pos] = list.get(b);\r\n\t\t b++;\r\n\t\t pos++;\r\n\t }\r\n\t for(int i = 0; i < len; i++) {\r\n\t\t list.set(i + start, sorted[i]);\r\n\t }\r\n }", "static List DuplicateElements(List<Character> characters){\r\n\t\tList newlist=new ArrayList<>();\r\n\t\tfor(char c:characters)\r\n\t\t{\r\n\t\t\tnewlist.add(Collections.nCopies(2,c ));\r\n\t\r\n\t\t}\r\n\tSystem.out.println(newlist);\r\n\treturn newlist;\r\n\t}", "private static void swap(List<Integer> list, int i, int j){\n int temp = list.get(i);\n list.set(i,list.get(j));\n list.set(j, temp);\n }", "public static void main(String[] args) {\r\n\r\n\t\tList<Character> list=new LinkedList<Character>() {{add('A');add('B');add('C');add('D');add('A');add('D');add('E');add('F');}};\r\n\t\tCollections.sort(list);\r\n\t\tIterator<Character>itr=list.iterator();\r\n\t\tCharacter tempchar=itr.next();\r\n\t\twhile(itr.hasNext()) {\r\n\t\t\tif(tempchar==itr.next()) {\r\n\t\t\t\titr.remove();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(itr.hasNext())\r\n\t\t\ttempchar=itr.next();\r\n\t\tSystem.out.println(list.toString());\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "private static String fixSorts(String strIn){\r\n\t // get a matcher object\r\n\t matches = ptrnNumbers.matcher(strIn);\r\n\t while (matches.find()){\r\n\t \tstrIn = strIn.substring(0,matches.start())+\" \"+strPrepend+strIn.substring(matches.start()+1);\r\n\t }\r\n\t //System.out.println(\">>>\"+strIn);\r\n\t\treturn strIn;\r\n\t}", "static List sort(String[] file){\n\t\tList main = new List();\n\t\t// appends the first item to the new list\n\t\tif(file.length > 0){\n\t\t\tmain.append(0);\t\n\t\t}\n\t\t// loops through input array\n\t\tfor(int i = 1; i<file.length; i++){\n\t\t\tString word = file[i];\n\t\t\tint cursor = i-1;\n\t\t\tmain.moveTo(cursor);\n\t\t\t// loops through each list and checks to see if the value is similar\n\t\t\twhile(cursor>-1 && word.compareTo(file[main.getElement()])<1){\n\t\t\t\tcursor--;\n\t\t\t\tmain.movePrev();\n\t\t\t}\n\t\t\t// if it makes it to the end of the list prepend it to the list, \n\t\t\t// but if it isn't insert it after the current element\n\t\t\tif(main.getIndex() == -1){\n\t\t\t\tmain.prepend(i);\n\t\t\t}else {\n\t\t\t\tmain.insertAfter(i);\n\t\t\t}\n\t\t}\n\t\t// returns the finished list\n\t\treturn main;\n\t}", "private static void listIteratorMovesInBothDirections(){\n\t ArrayList<String> list = new ArrayList<String>();\n\t \n\t list.add(\"ONE\");\n\t \n\t list.add(\"TWO\");\n\t \n\t list.add(\"THREE\");\n\t \n\t list.add(\"FOUR\");\n\t \n\t //RSN NOTE ListIterator\n\t ListIterator iterator = list.listIterator();\n\t \n\t System.out.println(\"Elements in forward direction\");\n\t \n\t while (iterator.hasNext())\n\t {\n\t System.out.println(iterator.next());\n\t }\n\t \n\t System.out.println(\"Elements in backward direction\");\n\t \n\t while (iterator.hasPrevious())\n\t {\n\t System.out.println(iterator.previous());\n\t }\n\t}", "public static void eWordsFirst1(List<String> list) {\n\t\tlist.sort((s1, s2) -> (s2.charAt(0) == 'e' ? 1 : 0) - (s1.charAt(0) == 'e' ? 1 : 0));\n\t}", "public static void sortStringsDictionary( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] newA = a.split(\"\");\n String[] newB = b.split(\"\");\n int min;\n boolean mismatch = false;\n String adif = \"\";\n String bdif = \"\";\n if (a.length() < b.length()) {\n min = a.length();\n } else {\n min = b.length();\n }\n\n for (int i = 0; i < min; i++) {\n if (!newA[i].equals(newB[i])) {\n mismatch = true;\n adif = newA[i];\n bdif = newB[i];\n break;\n\n }\n }\n if (mismatch == false) {\n if(a.length() < b.length()) {\n return true;\n }\n else{\n return false;\n }\n }\n else{\n if(adif.matches(\"[a-zA-Z]\") && !bdif.matches(\"[a-zA-Z]\")) {\n return true;\n }\n else if (bdif.matches(\"[a-zA-Z]\") && !adif.matches(\"[a-zA-Z]\")) {\n return false;\n }\n else if (adif.matches(\"[a-zA-Z]\") && bdif.matches(\"[a-zA-Z]\")){\n //Automates the creation of the custom alphabetical ordering\n ArrayList<String> alph = new ArrayList<String>();\n for (int i = 0; i < 26; i++){\n alph.add(Character.toString(97 + i));\n alph.add(Character.toString(65 + i));\n }\n if (alph.indexOf(adif) < alph.indexOf(bdif)){\n return true;\n }\n else {\n return false;\n }\n }\n else {\n if (adif.compareTo(bdif) > 1) {\n return false;\n }\n else{\n return true;\n }\n\n\n }\n\n }\n\n };\n sortStrings(lst, p);\n }", "public static void main(String[] args) {\n\t\tList<String> list = new ArrayList<>();\r\n\t\tlist.add(\"Futebol\");\r\n\t\tlist.add(\"Basquete\");\r\n\t\tlist.add(\"Tênis\");\r\n\t\tlist.add(\"Volei\");\r\n\t\tlist.add(\"Natação\");\r\n\t\tlist.add(\"Hockey\");\r\n\t\tlist.add(\"Boxe\");\r\n\t\tlist.add(\"Futebol\");\r\n\t\t\r\n\t\tSystem.out.println(list);\r\n\t\t\r\n\t\tfor (int i = 0; i <list.size(); i++) {\r\n\t\t\tString letra = list.get(i);\r\n\t\t\tlist.set(i, letra.toUpperCase());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(list);\r\n\t\tSystem.out.println(list.indexOf(\"BOXE\"));//posição que se encontra o elemento\r\n\t\tSystem.out.println(list.subList(2,4));//EXIBIR UMA SUBLISTA DA POSIÇÃO PASSADA\r\n\t\tlist.subList(2, 4).clear();//remover uma subLista da Lista Principal\r\n\t\tSystem.out.println(list);\r\n\t}", "public static void eWordsFirst2(String[] list) {\n\t\tArrays.sort(list, (s1, s2) -> LambdaHomework.eWordsFirst2Helper(s1, s2));\n\t}", "public static void backtrack(String str,List<Integer> currentList,List<List<Integer>> result){\n\t\tif(str.length()==0){\n\t\t\tresult.add(new ArrayList<>(currentList));\n\t\t\tSystem.out.println(currentList);\n\t\t\treturn;\n\t\t}\n\t\t// Iterate from 1 as we take current from 0 inside loop\n\t\t// i <= str.length() and not < as we are taking substring at every step,str.length decreases\n\t\t// At one point it becomes 1(for the last character of string), we must include that as well\n\t\tfor(int i=1;i<=str.length();i++){\n\t\t\tString curr = str.substring(0,i);\n\t\t\tint num = Integer.parseInt(curr);\n\t\t\tif(isPrime(num)){\n\t\t\t\tcurrentList.add(num);\n\t\t\t\tString s = str.substring(i);\n\t\t\t\tbacktrack(s,currentList,result);\n\t\t\t\tcurrentList.remove(currentList.size()-1);\n\t\t\t}\n\t\t}\n\t}", "public static List<String> changeCase(List<String> list) {\n if (list != null) {\n List<String> result = new ArrayList<String>();\n for (String element : list) {\n result.add(changeCase(element));\n }\n return result;\n }\n return null;\n }", "public void updateWordPoints() {\n for (String word: myList.keySet()) {\n int wordValue = 0;\n for (int i = 0; i < word.length(); i++) {\n // gets individual characters from word and\n // from that individual character get the value from scrabble list\n int charValue = scrabbleList.get(word.toUpperCase().charAt(i));\n // add character value gotten from character key from scrabble map to word value\n wordValue = wordValue + charValue;\n }\n\n // update the value of the word in myList map\n myList.put(word, wordValue);\n }\n }", "public static List<String> sortWords(List<String> words) {\n\t\tfor (int i = 0; i < words.size(); i++) {\n\t\t\tint lowerOrder = i;\n\t\t\tfor (int j = i + 1; j < words.size(); j++) {\n\t\t\t\tif (words.get(j).compareTo(words.get(lowerOrder)) < 0) {\n\t\t\t\t\tlowerOrder = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString switching = words.get(lowerOrder);\n\t\t\twords.set(lowerOrder, words.get(i));\n\t\t\twords.set(i, switching);\n\t\t}\n\t\treturn words;\n\t}", "public String tweakFront(String str) {\n\n if(str.substring(0, 1).equalsIgnoreCase(\"a\")){\n\n if(!str.substring(1, 2).equalsIgnoreCase(\"b\")){\n str = str.substring(0, 1) + str.substring(2,str.length());\n }\n \n }else{\n str = str.substring(1);\n \n if(str.substring(0, 1).equalsIgnoreCase(\"b\")){\n \n }else{\n str = str.substring(1);\n }\n }\n \n \n \n return str;\n \n}", "@Test\n\tpublic void testSwichposition() {\n\t\tresultlist = DoRotation.swichposition(initialList, 0, 0);\n\t\texpectedList = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5, 6));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Switching position from 0 to 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n//\t\tresultlist = DoRotation.swichposition(initialList, 0, 5);\n//\t\texpectedList = new ArrayList<>(Arrays.asList(6, 2, 3, 4, 5, 1));\n//\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n//\t\tassertArrayEquals(\"Switching position from 0 to 5\", resultlist.toArray(), expectedList.toArray());\n\t\t\n//\t\tresultlist = DoRotation.swichposition(initialList, 5, 0);\n//\t\texpectedList = new ArrayList<>(Arrays.asList(6, 2, 3, 4, 5, 1));\n//\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n//\t\tassertArrayEquals(\"Switching position from 5 to 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n\t\tresultlist = DoRotation.swichposition(initialList, 2, 3);\n\t\texpectedList = new ArrayList<>(Arrays.asList(1, 2, 4, 3, 5, 6));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Switching position from 2 to 3\", resultlist.toArray(), expectedList.toArray());\n\t}", "public static void compressList (List<String> ls){\n\t\tListIterator<String> itr = ls.listIterator();\n\t\twhile (itr.hasNext()){\n\t\t\tString currentStr = itr.next();\n\t\t\t\n\t\t\tString modCurrent=currentStr.replaceAll(\"\\\\s\", \"\");\n\t\t\titr.set(modCurrent);\n\t\t\tif ((modCurrent.length() == 0)||(modCurrent.startsWith(\"//\"))) {\n\t\t\t\titr.remove();\n\t\t\t} \n\t\t\t\n\t\t\telse if (modCurrent.contains(\"//\")) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint ind = modCurrent.indexOf(\"//\");\n\n\t\t\t String s2=modCurrent.substring(0, ind);\n\t\t\t\titr.set(s2);\n\t\t\t}\n\t\t}\n\t}", "public void testSortedList() {\r\n List<InfoNode> sortedList = MapUtils.sortByDistance(exampleList, node3.getTitle());\r\n assertTrue(sortedList.size() == 2);\r\n assertTrue(sortedList.get(0) == node2);\r\n assertTrue(sortedList.get(1) == node1);\r\n assertTrue(sortedList.contains(node1));\r\n assertTrue(sortedList.contains(node2));\r\n assertFalse(sortedList.contains(node3));\r\n\r\n sortedList = MapUtils.sortByDistance(exampleList, node1.getTitle());\r\n assertTrue(sortedList.size() == 2);\r\n assertTrue(sortedList.get(0) == node2);\r\n assertTrue(sortedList.get(1) == node3);\r\n assertFalse(sortedList.contains(node1));\r\n assertTrue(sortedList.contains(node2));\r\n assertTrue(sortedList.contains(node3));\r\n\r\n sortedList = MapUtils.sortByDistance(exampleList, \" \");\r\n assertTrue(sortedList.equals(exampleList));\r\n }", "public static<E extends Comparable<E>> void sort(PositionalList<E> list) {\n Position<E> marker = list.first();\n while (marker!=list.last()){\n Position<E> pivot = list.after(marker);\n E value = pivot.getElement();\n if (value.compareTo(marker.getElement()) > 0) {\n marker = pivot;\n } else {\n Position<E> walk = marker;\n while (walk!=list.first() && list.before(walk).getElement().compareTo(value)<0){\n walk = list.before(walk);\n }\n list.remove(pivot);\n list.addAfter(walk,value);\n }\n }\n }", "public static void main(String[] args) {\n\t\tList<String> list = new LinkedList<>(); //ArrayList\r\n\t\tList<String> test = new ArrayList<>();\r\n\t\tList<String> test2 = Arrays.asList(\"Toy\",\"Car\",\"Robot\");\r\n\t\ttest2 = new ArrayList<>(list);\r\n\t\t// 한번에 초기화... immutable 인스턴스임 고정이라... ㄷㄷ->\r\n\t\t// 다시만듬.\r\n\t\tlist.add(\"Toy\");\r\n\t\tlist.add(\"Hello\");\r\n\t\tlist.add(\"Box\");\r\n\t\tlist.add(\"Robot\");\r\n\t\tfor(String s : list)\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\tString str;\r\n\t\tIterator<String> itr = list.iterator(); // 반복자\r\n\t\twhile(itr.hasNext()) \r\n\t\t{\t\r\n\t\t\tstr= itr.next();\r\n\t\t\tif(str.equals(\"Box\"))\r\n\t\t\t\titr.remove();\r\n\t\t//System.out.println(itr);\r\n\t\t\t// 컬렉션 프레임웤은 반복자를 통해 이렇게 참조가 가능하구나~ 더미노드가 존재한다 // \r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tfor(String s : list) // for each , iterator 기반.\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t\t// 양방향 반복자 //\r\n\t\tList<String> dList = Arrays.asList(\"Toy\",\"Box\",\"Robot\",\"Box\");\r\n\t\tdList = new ArrayList<>(dList);\r\n\t\t\r\n\t\tListIterator<String> dIter = dList.listIterator();\r\n\t\twhile(dIter.hasNext()) {\r\n\t\t\tstr = dIter.next();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Toy\"))\r\n\t\t\t\tdIter.add(\"Toy2\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\twhile(dIter.hasPrevious()) {\r\n\t\t\tstr = dIter.previous();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Robot\"))\r\n\t\t\t\tdIter.add(\"Robot2\");\r\n\t\t}\r\n\t}", "public ListUtilities cocktailSort(){\n\t\tboolean swaps = true;\n\t\tListUtilities temp = new ListUtilities();\n\t\t\n\t\twhile(swaps == true){\n\t\t\t//no swaps to begin with\n\t\t\tswaps = false;\n\n\t\t\t//if not end of list\n\t\t\tif (this.nextNum != null){\n\t\t\t\t\n\t\t\t\t//make temp point to next\n\t\t\t\ttemp = this.nextNum;\n\n\t\t\t\t//if b is greater than c\n\t\t\t\tif(this.num > this.nextNum.num){\n\t\t\t\t\t//it swapped\n\t\t\t\t\tswaps = true;\n\t\t\t\t\t\n\t\t\t\t\tswapF(temp);\n\t\t\t\t}\n\t\t\t//keep going until you hit end of list\n\t\t\ttemp.cocktailSort();\n\t\t\t}\n\t\t\t//if not beginning of list\n\t\t\tif (this.prevNum != null){\n\t\t\t\t//if c is smaller than b\n\t\t\t\tif(this.num < this.prevNum.num){\n\t\t\t\t\t//it swapped\n\t\t\t\t\tswaps = true;\n\t\t\t\t\tswapB(temp);\n\t\t\t\t}\n\t\t\t\t//keep going until hit beginning of list\n\t\t\t\ttemp.cocktailSort();\n\t\t\t}\n\t\t}\n\t//return beginning of list\n\treturn this.returnToStart();\n\t}", "public static void main(String[] args) {\n\t\tList<String> arrayList = new ArrayList<String>();\n\t\tarrayList.add(\"zhangsan\");\n\t\tarrayList.add(\"lisi\");\n\t\tarrayList.add(\"wangwu\");\n\t\tarrayList.add(\"zhaoliu\");\n\t\tarrayList.add(\"tianqi\");\n\t\t//for (int i = 0; i < 5; i++) {\n\t\t\t//String str = scanner.next();\n\t\t\t//arrayList.add(str);\n\t\t//}\n\t\tfor (Iterator iterator = arrayList.iterator(); iterator.hasNext();) {\n\t\t\tString string = (String) iterator.next();\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\tSystem.out.println(\"================================\");\n\t\tSystem.out.println(arrayList.indexOf(\"zhangsan\"));\n\t\tSystem.out.println(arrayList.remove(\"lisi\"));\n\t\tarrayList.add(3,\"akak\");\n\t\tfor (Iterator iterator = arrayList.iterator(); iterator.hasNext();) {\n\t\t\tString string = (String) iterator.next();\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\tSystem.out.println(\"============================\");\n\t\tSystem.out.println(arrayList.contains(\"wanger\"));\n\t\t//有一个新集合 其中数据写死 wangwu zhaoliu erhuo,添加到第一个集合中 \n\t\tArrayList<String> arrayList2 = new ArrayList<String>();\n\t\tarrayList2.add(\"wangwu\");\n\t\tarrayList2.add(\"zhaoliu\");\n\t\tarrayList2.add(\"erhuo\");\n\t\tarrayList.addAll(arrayList2);\n\t\tfor (Iterator iterator = arrayList.iterator(); iterator.hasNext();) {\n\t\t\tString string = (String) iterator.next();\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\tSystem.out.println(\"==================================\");\n\t\t//对集合进行排序,提示 使用Collections.sort方法(排序规则就是字典顺序) */\n\t\tCollections.sort(arrayList);\n\t\tfor (Iterator iterator = arrayList.iterator(); iterator.hasNext();) {\n\t\t\tString string = (String) iterator.next();\n\t\t\tSystem.out.println(string);\n\t\t}\n\t}", "private String swapOne(int a,int b,char[] word){\n char tmp=word[a];\n word[a]=word[b];\n word[b]=tmp;\n return new String(word);\n}", "private void insertAliasAtPositions(Alias[] testInnerAliasList, ArrayList<String> innerList) {\n for (Alias alias : testInnerAliasList) {\n innerList.set(AliasCommand.getCommands().indexOf(alias.getCommand()), alias.getAlias());\n }\n }", "private static void sortList(ArrayList<ArrayList<Integer>> list){\n for (int i = 0; i < list.size(); i++) {\n for (int j = list.size() - 1; j > i; j--) {\n if ( (getCustomerArrivalTime(list.get(i)) == getCustomerArrivalTime(list.get(j)) && getCustomerIndex(list.get(i)) > getCustomerIndex(list.get(j)))\n || getCustomerArrivalTime(list.get(i)) > getCustomerArrivalTime(list.get(j))) {\n\n ArrayList<Integer> tmp = list.get(i);\n list.set(i,list.get(j)) ;\n list.set(j,tmp);\n }\n }\n }\n }", "private void sortAlphabet()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }", "public static String encode(String List) {\n String tempstr = \"\";\n for (int j = 0; j < List.length(); j++) {\n for (int k = 0; k < basealpha.length; k++) {\n if (List.charAt(j) == basealpha[k]) {\n tempstr += temps[k];\n }\n }\n }\n return tempstr;\n }", "static CustomCharacter getClone(List<CustomCharacter> list, int i){\n CustomCharacter temp = list.get(i);\n return new CustomCharacter(temp.key, temp.originalPosition, temp.randomizedPosition);\n }", "private static <T> void swap(List<T> list, int x, int y){\n T temp = list.get(x);\n list.set(x, list.get(y));\n list.set(y, temp);\n }", "public ArrayList<ArrayList<String>> inputTestListAndSort (ArrayList<ArrayList<String>> testList){\n ArrayList<ArrayList<String>> testList1=new ArrayList<>(testList);\n Collections.sort(testList1, new SubClass_CompareItemsInTheRowsOfTheTimetable_in_TeachingOverlapAndHours());\n return testList1;\n }", "public void arrange(Order order){\n for(int i=0; i<26; ++i){\n // arrange list of list; list by list\n ArrayList<Integer> list = check_list.get(i);\n for(int j=0; j<list.size(); ++j ){\n if(order == Order.ASCENDING){\n // ascending order\n for(int k=i; k<list.size()-1; ++k){\n int num1= list.get(k);\n int num2= list.get(k+1);\n // ascending order\n if(num2<num1){\n // swap\n list.set(k, num2);\n list.set(k+1, num1);\n }\n }\n }else if(order == Order.DESCENDING){\n // descending order\n for(int k=i; k<list.size()-1; ++k){\n int num1= list.get(k);\n int num2= list.get(k+1);\n // descending order\n if(num2>num1){\n // swap\n list.set(j, num2);\n list.set(k, num1);\n }\n }\n }\n }\n // put arranged list, back in its place\n check_list.set(i, list);\n }\n }", "public void sortFinalsList() {\n \n Course course = null;\n int j = 0;\n for (int i = 1; i < finalsList.size(); i++) {\n\n j = i;\n // checks to see if the start time of the element j is less than the\n // previous element, and if j > 0\n while (j > 0) {\n\n // if the current element, is less than the previous, then....\n if (finalsList.get(j).getDate()\n .compareTo(finalsList.get(j - 1).getDate()) < 0) {\n\n // if so, swap the two\n course = finalsList.get(j);\n finalsList.set(j, finalsList.get(j - 1));\n finalsList.set(j - 1, course);\n }\n else if (finalsList.get(j).getDate()\n .compareTo(finalsList.get(j - 1).getDate()) == 0) {\n \n if (compareTimes(finalsList.get(j).getBeginTime(), finalsList.get(j - 1).getBeginTime()) < 0) {\n \n // if so, swap the two\n course = finalsList.get(j);\n finalsList.set(j, finalsList.get(j - 1));\n finalsList.set(j - 1, course);\n }\n }\n\n // decrement j\n j--;\n }\n }\n }", "private void sortItems(List<Transaction> theList) {\n\t\tloadList(theList);\r\n\t\tCollections.sort(theList, new Comparator<Transaction>() {\r\n\t\t\tpublic int compare(Transaction lhs, Transaction rhs) {\r\n\t\t\t\t// String lhsName = lhs.getName();\r\n\t\t\t\t// String rhsName = rhs.getName();\r\n\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "private static ArrayList<String> modify(ArrayList<String> answer, Graph g) {\n\t\tfor (int i=0; i<=answer.size()-2; i++) {\n\t\t\tfor (int j=i+1; j<=answer.size()-1;j++) {\n\t\t\t\tString first=answer.get(i);\n\t\t\t\tString second=answer.get(j);\n\t\t\t\t\n\t\t\t\tPerson personFirst=g.members[g.map.get(first)];\n\t\t\t\tPerson personSecond=g.members[g.map.get(second)];\n\t\t\t\t\n\t\t\t\t//if the personFirst's friend's name is the same as second\n\t\t\t\tif ((g.members[personFirst.first.fnum].name.equals(second)&& personFirst.first.next==null)&&\n\t\t\t\t\t\t(g.members[personSecond.first.fnum].name.equals(first)&& personSecond.first.next==null)) {\n\t\t\t\t\tif (answer.size()==2) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tanswer.remove(i);\n\t\t\t\t\tanswer.remove(j+1);\n\t\t\t\t\ti=-1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\treturn answer;\n\t}", "public static <T> void sorter(Liste<T> liste, Comparator<? super T> c) {\n if (liste.tom()){\n return;\n }\n\n int antallListe = liste.antall();\n\n if (antallListe == 1){\n return;\n }\n\n\n /*public T compareTo(char a, char b){\n\n\n\n }*/// Metode for å Sammenligne både int og String, får det ikke til\n\n\n\n char a;\n char b;\n\n\n for (int i = 0; i <antallListe; i++){\n for (int j = i +1; j <antallListe; j++ ) {\n\n\n /*if (liste.hent(i) compareTo liste.hent(j) ) {\n\n liste.leggInn(i,(liste.hent(j)));\n liste.leggInn(j,(liste.hent(i)));\n liste.fjern(i+1);\n liste.fjern(j+1);\n }*/////\n }\n }\n }", "public static void main(String... args) {\n\n Person p1 = new Person(\"Mike\", 25);\n Person p2 = new Person(\"John\", 33);\n Person p3 = new Person(\"Slavek\", 48);\n Person p4 = new Person(\"Pawel\", 15);\n Person p5 = new Person(\"MJerry\", 66);\n Person p6 = new Person(\"White\", 35);\n\n List<Person>list = new ArrayList<>(Arrays.asList(p1,p2,p3,p4,p5,p6));\n\n list.forEach(System.out::println);\n list.removeIf(ps->ps.getAge()<25);\n System.out.println(\"after removal\");\n list.forEach(System.out::println);\n System.out.println(\"Trasformation\");\n list.replaceAll(p->new Person(p.getName().toUpperCase(),p.getAge()-5));\n System.out.println(\"After replacement\");\n list.forEach(System.out::println);\n list.sort((s1,s2)->s1.getAge()-s2.getAge());\n System.out.println(\"after sorting\");\n list.forEach(System.out::println);\n list.sort((s1,s2)->s1.getAge()-s2.getAge());\n list.sort(Comparator.comparing(Person::getAge));\n list.sort(Comparator.comparing(Person::getName).reversed());\n\n List<String >sd = Arrays.asList(\"okkok\");\n sd.stream().map(value-> {\n char ss = value.toUpperCase().charAt(0);\n return ss;\n }\n );\n sd.forEach(System.out::println);\n\n\n\n\n }", "public static List<String> theGame(List<String> words)\n {\n List<String> list = new ArrayList<>();\n \n if (words.isEmpty() || words.size() == 1) return words;\n \n if (words.get(0).length() != 0 ) list.add(words.get(0));\n \n for (int i = 1; i < words.size(); i++) {\n String prev = words.get(i - 1);\n String current = words.get(i);\n if ((prev.length() == 0 && current.length() != 0) || (current.length() == 0 && prev.length() != 0)) {\n return list;\n }\n if (prev.length() == 0 && current.length() == 0) {\n continue;\n }\n if (prev.charAt(prev.length() - 1) == current.charAt(0)) {\n list.add(current);\n } else {\n break;\n }\n \n }\n return list;\n }", "static <T extends Comparable<T>> List<T> sort(List<T> list) {\n\t\tif (list == null || list.size() < 2) {\n\t\t\treturn list;\n\t\t}\n\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\t// the current is begin from index of 1\n\t\t\tT current = list.get(i);\n\t\t\tint j = i - 1;\n\t\t\tint origin = j;\n\t\t\twhile (j >= 0 && list.get(j).compareTo(current) > 0) {\n\t\t\t\t// insert into the head of the sorted list\n\t\t\t\t// or as the first element into an empty sorted list\n\t\t\t\t// last element of the sorted list\n\t\t\t\t// middle of the list\n\t\t\t\t// insert into middle of the sorted list or as the last element\n\t\t\t\tlist.set(j + 1, list.get(j));\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tlist.set(j + 1, current);\n\t\t\tprintInsertionSortAnimation(list, current, j, origin);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\treturn list;\n\t}", "public static void sortStringsNumAs( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] A = a.split(\"\");\n String[] B = b.split(\"\");\n int acount = 0;\n int bcount = 0;\n for (String i : A){\n if (i == \"a\" || i == \"A\"){\n acount += 1;\n }\n }\n for (String i : B){\n if (i == \"a\" || i == \"A\"){\n bcount += 1;\n }\n }\n\n if (acount > bcount) return true;\n else return false;\n };\n sortStrings(lst, p);\n \n }", "private void updateElementListFromSegment(ArrayList<Integer> indices, List<Integer> elementList) {\n\n for (int j = indices.size() - 1; j >= 0; j--) {\n\n updateElementListFromSegmet(indices.get(j), elementList);\n\n }\n }", "public static void randomize(List<String> list) {\n\t\tfor (int i = list.size() - 1; i > 0; i--) {\n\t\t\tint rand = (int)( Math.random() * i );\n\t\t\tString temp = list.get(i);\n\t\t\tlist.set(i, list.get(rand));\n\t\t\tlist.set(rand, temp);\n\t\t}\n\t}", "public void fillSorted()\n {\n for (int i=0; i<list.length; i++)\n list[i] = i + 2;\n }", "public List<DoctorProfile> swapData(List<DoctorProfile> list) {\n if (list == mList) {\n return null; // bc nothing has changed\n }\n List<DoctorProfile> temp = mList;\n this.mList = list; // new cursor value assigned\n\n mFilteredList = mList;\n\n //check if this is a valid cursor, then update the cursor\n if (list != null) {\n this.notifyDataSetChanged();\n }\n return temp;\n }", "private void buildUnsortedList(String list)\n\t{\n\t\ttokenBuffer = new StringTokenizer(line);\n\t\tlistSize = Integer.parseInt(tokenBuffer.nextToken());\n\t\tunsortedList = new int[listSize];\n\t\tsortedList = new int[listSize];\n\n\t\t// Grab each integer from the line and throw it in our lists\n\t\tfor(int i = 0; i < listSize; i++) \n\t\t{\n\t\t\tunsortedList[i] = Integer.parseInt(tokenBuffer.nextToken());\n\t\t\tsortedList[i] = unsortedList[i];\n\t\t}\n\t}", "public List<String> remake_array(List<String> lists){\n List<String> listItemtemp = new ArrayList<>();\n for (int i = 0; i < lists.size(); i++) {\n listItemtemp.add(i + 1 + \". \" + lists.get(i).substring(3).trim());\n }\n return listItemtemp;\n\n }", "public static void main(String[] args) {\n List<String > teamMates = new ArrayList<>();\n teamMates.add(\"Ayse\");\n teamMates.add(\"Mustafa\");\n teamMates.add(\"Zeynep\");\n teamMates.add(\"Yusuf\");\n teamMates.add(\"Ibrahim\");\n teamMates.add(\"Emin\");\n\n System.out.println(\"teamMates = \" + teamMates);\n\n //first item and last item\n System.out.println(\"teamMates.get(0) = \" + teamMates.get(0));\n\n int lastItemIndex = teamMates.size()-1;\n\n System.out.println(\"last item = \" + teamMates.get(lastItemIndex));\n\n //print one by one\n\n for (int i = 0; i < teamMates.size() ; i++) {\n\n System.out.println(\"item = \" + teamMates.get(i));\n\n }\n\n System.out.println(\"\\n All Items in reverse order\");\n for (int x = lastItemIndex ; x >= 0 ; x--){\n System.out.println(\"item \" + (x+1) + \" = \" + teamMates.get(x ));\n }\n //pritn 2 items at a time\n //for example ; 1-2, 2-3, 3-4\n System.out.println(\"\\n print 2 items at a time\");\n for (int x = 0; x <= teamMates.size()-2; x++) {\n System.out.println(\"\\t\"+ teamMates.get(x) +\"----\" + teamMates.get(x+1));\n }\n //pritn 2 items at a time\n //for example ; 1-2, 3-4, 5-6\n System.out.println(\"\\n print 2 items at a time without repeating\");\n\n for (int x = 0; x <= teamMates.size()-2 ; x+=2) {\n System.out.println(\"\\t\"+ teamMates.get(x) +\"----\" + teamMates.get(x+1));\n\n }\n\n //concat everyone in one string separated by -\n \n String result= \"\";\n for (int i = 0; i <teamMates.size() ; i++) {\n result =result + teamMates.get(i) ;\n if(i !=teamMates.size()-1){\n result+=\"-\";\n }\n }\n System.out.println(\"result = \" + result);\n \n //TODO\n String lstToString = teamMates.toString();\n System.out.println(\"lstToString.replace(\\\",\\\" ,\\\" -\\\") = \" + lstToString.replace(\",\", \" -\")\n .replace(\"[\",\"\")\n .replace(\"]\",\"\"));\n\n\n\n\n\n\n }", "private static Map<String, List<Pair<String, Integer>>> regroup(List<List<Pair<String, Integer>>> pairsList) {\n // Exercise 31.3 groups\n char g1 = 'a';\n char g2 = 'f';\n char g3 = 'k';\n char g4 = 'p';\n char g5 = 'u';\n Map<String, List<Pair<String, Integer>>> result = new HashMap<>();\n for (List<Pair<String, Integer>> pairs : pairsList) {\n for (Pair<String, Integer> p : pairs) {\n char group;\n char firstLetter = p.first().charAt(0);\n if (firstLetter >= g1 && firstLetter < g2) {\n group = g1;\n } else if (firstLetter >= g2 && firstLetter < g3) {\n group = g2;\n } else if (firstLetter >= g3 && firstLetter < g4) {\n group = g3;\n } else if (firstLetter >= g4 && firstLetter < g5) {\n group = g4;\n } else {\n // Everything else (including numeric \"words\", e.g., \"2008\") goes in group 5.\n group = g5;\n }\n result.computeIfAbsent(String.valueOf(group), k -> new ArrayList<>()).add(p);\n }\n }\n return result;\n }", "private List<Coordinate> trim(List<Coordinate> list) {\n\n List<Coordinate> temp = new ArrayList<>();\n if (list.size() == 0) {\n return temp;\n }\n temp.add(list.get(0));\n for (int i = 1; i < list.size(); i++) {\n if (list.get(i - 1).equals(list.get(i))) {\n continue;\n }\n temp.add(list.get(i));\n }\n return temp;\n }", "public static List<String> replace(List<String> in, String old, String rpl) {\n return in.stream()\n .map(s -> s.equals(old) ? rpl : old) // Replace element if it matches the old string\n .collect(Collectors.toList()); // Collect result\n }", "public ArrayList<Character> charToLower(ArrayList<Character> list){\n ArrayList<Character> lower = new ArrayList<>();\n for(Character x: list){\n x = Character.toLowerCase(x);\n lower.add(x);\n }\n return lower;\n }", "private void sortChanges(List changeList) {\r\n\t\tSortedSet changeSet = new TreeSet(ChangeComparator.INSTANCE);\r\n\t\tchangeSet.addAll(changeList);\r\n\t\tchangeList.clear();\r\n\t\tfor (Iterator iter = changeSet.iterator(); iter.hasNext();) {\r\n\t\t\tchangeList.add(iter.next());\r\n\t\t}\r\n\t}", "private static void m2800a(List list, List list2) {\n for (int i = 0; i < list.size(); i++) {\n Uri uri = ((bcd) list.get(i)).f3233a;\n if (uri != null && !list2.contains(uri)) {\n list2.add(uri);\n }\n }\n }", "public static void bubbleSort(String [] list1)\r\n\t{\r\n\t\t\r\n\t String temp;\r\n\t int swap=1000;\r\n\t while(swap>0) \r\n\t {\r\n\t \tswap=0;\r\n\t \tfor(int outside=0; outside<list1.length-1; outside++)\r\n\t \t{\r\n\t \t\tif(list1[outside+1].compareTo(list1[outside])<0)\r\n\t \t\t{\r\n\t \t\t\tswap++;\r\n\t \t\t\ttemp=list1[outside];\r\n\t \t\t\tlist1[outside]=list1[outside+1];\r\n\t \t\t\tlist1[outside+1]=temp;\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t \r\n\t}", "private static List<Integer> reorganize(List<Integer> result){\n List<Integer> outcome=new ArrayList<>();\n result.sort(Comparator.comparingInt(o -> o));\n if(!result.isEmpty()){\n outcome.add(result.get(0));\n for(int i=1;i<result.size();i++){\n if(!result.get(i).equals(result.get(i-1)))\n outcome.add(result.get(i));\n }\n }\n return outcome;\n }", "public List <Person> sortLastName(List <Person> listOfPerson)\n\t{\n\t\tfor(int i = 0; i < listOfPerson.size(); i++)\n\t\t{\n\t\t\tfor(int j = i+1; j < listOfPerson.size(); j++)\n\t\t\t{\n\t\t\t\tif(listOfPerson.get(i).getLname().compareTo(listOfPerson.get(j).getLname())>0)\n\t\t\t\t{\n\t\t\t\t\tPerson temp;\n\t\t\t\t\ttemp = listOfPerson.get(i);\n\t\t\t\t\tlistOfPerson.set(i, listOfPerson.get(j));\n\t\t\t\t\tlistOfPerson.set(j, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn listOfPerson;\n\t}", "private List<Coordinate> getOneSort(int[] ints, List<Coordinate> list) {\n List<Coordinate> temp = new ArrayList<>();\n for (int i : ints) {\n temp.add(list.get(i));\n }\n return temp;\n }", "private void insertionSort(ArrayList<ArrayList<Piece>> combinations2) {\n for (int index = 1; index < combinations2.size(); index++) {\n ArrayList<Piece> compareWord = combinations2.get(index);\n\n int lowerIndex = index-1;\n\n while (lowerIndex >=0 && compareWord.size()<combinations2.get(lowerIndex).size()){\n combinations2.set(lowerIndex+1, combinations2.get(lowerIndex));\n lowerIndex--;\n }\n\n combinations2.set(lowerIndex+1,compareWord);\n }\n }", "private static <T,P> void vecswap(List<T> x, List<P> a2,int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x,a2, a, b);\n\t}", "private static void copyRemainder(ArrayList<Integer> inputList, int inputIndex, ArrayList<Integer> outList, int outIndex) {\n while (inputIndex < inputList.size()) {\n outList.set(outIndex, inputList.get(inputIndex));\n\n inputIndex++;\n outIndex++;\n }\n }", "private void makeRoom(int givenPosition) {\n int newIndex = givenPosition;\n int lastIndex = numberOfElements;\n\n// Move each entry to next higher index, starting at end of\n// list and continuing until the entry at newIndex is moved\n for (int index = lastIndex; index >= newIndex; index--)\n listArray[index + 1] = listArray[index];\n }", "private static void vecswap(char x[], char[] a2, int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x, a2, a, b);\n\t}", "public void reorderList(ListNode head) {\n if (head == null) {\n return;\n } else if (head.next == null) {\n return;\n }\n \n ListNode pre = findMidPre(head);\n \n // cut the two list.\n ListNode right = pre.next;\n pre.next = null;\n \n // reverse the right link.\n right = reverse(right);\n \n merge(head, right);\n }", "private void changeOrderPhase() {\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n Player tmp = playerList[0];\n playerList[0] = playerList[1];\n playerList[1] = playerList[2];\n playerList[2] = playerList[3];\n playerList[3] = tmp;\n System.out.println();\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n System.out.println();\n }", "public void reorderList(ListNode head) {\n\n if(head == null||head.next == null) return;\n int len = 0;\n\n for (ListNode cur = head; cur!= null; cur = cur.next) len++;\n\n int middle = (len%2 == 1) ? len/2 + 1: len/2 ;\n\n ListNode midNode = head;\n for (int i = 0; i < middle - 1; i++)\n midNode = midNode.next;\n\n ListNode head1 = head;\n ListNode head2 = midNode.next;\n midNode.next = null;\n head2 = revertListAndReturnHead(head2);\n\n //MERGE\n ListNode cur1 = head1;\n ListNode cur2 = head2;\n while (cur1 != null && cur2 != null) {\n ListNode nextCur1 = cur1.next;\n ListNode nextCur2 = cur2.next;\n cur1.next = cur2;\n cur2.next = nextCur1;\n cur1 = nextCur1;\n cur2 = nextCur2;\n }\n\n }", "void decreaseSortLetter();", "public void putListInPointOrder() {\n for (int i = 0; i < players.size(); i++) {\n Player s = players.get(i);\n if (i < players.size() - 1) {\n for (int j = i; j < players.size(); j++) {\n while (s.getPoint() < players.get(j).getPoint()) {\n Collections.swap(players, i, j);\n }\n\n }\n }\n }\n }", "public static void main(String[] args) {\n ArrayList<String> cars = new ArrayList<>();\n cars.add(\"Volvo\");\n cars.add(\"BMW\");\n cars.add(\"Ford\");\n cars.add(\"Mazda\");\n cars.add(\"Chevrolet\");\n cars.add(\"Kia\");\n\n ArrayList<String> cars2 = new ArrayList<>();\n cars2.add(\"Lamborghini\");\n cars2.add(\"Bugatti\");\n\n //1. Adding methods to the list\n //1.1 Add specified element to the end of the list\n cars.add(\"Nissan\");\n //1.2 Add specified element at the specified position\n //could be any position should be inside the length of the list, avoid out of bounds positions\n cars.add(1,\"Smart\");\n //1.3 Add all the elements a list to the another list\n cars.addAll(cars2);\n\n //2. Getting the size of the list\n int size = cars.size();\n System.out.println(\"Size of the list: \" + size);\n\n //3. Removing elements from the list\n //3.1 Remove the specified object from the list, by object or index\n cars.remove(\"Chevrolet\");\n cars.remove(7);\n //3.2 Remove all the elements from the list\n ArrayList<String> cars3 = new ArrayList<String>(cars);\n cars3.clear();\n //3.3 Remove elements from an specific range\n ArrayList<String> cars4 = new ArrayList<String>(cars);\n cars4.subList(4,6).clear();\n\n //4. Searching elements in the List\n //4.1 Search the specified element, return false if the specified element is not found\n cars.contains(\"Fiat\");\n //4.2 Returns the index of the first occurrence of the specified element\n cars.indexOf(\"BMW\");\n\n //5. Replaces the element at the specified position with the new element\n cars.set(3,\"Nissan\");\n }", "private static <T,S> void swap(List<T> x, List<S> a2, int a, int b) {\n\t\tT t = x.get(a);\n\t\tx.set(a, x.get(b));\n\t\tx.set(b,t);\n\t\tS t2 = a2.get(a);\n\t\ta2.set(a,a2.get(b));\n\t\ta2.set(b,t2);\n\t}", "public void testUpdateUserDefinedSortWithOnlyTwoElementsInList()\n\t{\n\t\t// arrange\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tlong listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\n\t\tlong[] categoryIds = new long[5];\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tcategoryIds[0] = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\tcategoryUri = helper.insertNewCategory(listId, \"dudus\", 2);\n\t\tcategoryIds[1] = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\n\t\t// Act & Assert\n\t\t// This test updates the sort order of category from 2 to 1 (0-based)\n\t\tservice.updateUserDefinedSort(listId, categoryIds[1], 1, 0);\n\n\t\tlong[] expectedCategoryIds = new long[2];\n\t\texpectedCategoryIds[0] = categoryIds[1];\n\t\texpectedCategoryIds[1] = categoryIds[0];\n\n\t\t// now get all categories for activity\n\t\tCursor categoriesToBeUpdatedCursor = dataProvider.query(CategoryColumns.CONTENT_URI,\n\t\t\t\tCATEGORY_PROJECTION, CategoryColumns.ACTIVITY_ID + \" = \" + listId, null,\n\t\t\t\tCategoryColumns.SORT_POSITION);\n\n\t\tcategoriesToBeUpdatedCursor.moveToFirst();\n\t\twhile (!categoriesToBeUpdatedCursor.isAfterLast())\n\t\t{\n\t\t\tlong catId = categoriesToBeUpdatedCursor.getLong(categoriesToBeUpdatedCursor\n\t\t\t\t\t.getColumnIndex(CategoryColumns._ID));\n\n\t\t\tint position = categoriesToBeUpdatedCursor.getInt(categoriesToBeUpdatedCursor\n\t\t\t\t\t.getColumnIndex(CategoryColumns.SORT_POSITION));\n\n\t\t\tassertEquals(expectedCategoryIds[position - 1], catId);\n\t\t\tcategoriesToBeUpdatedCursor.moveToNext();\n\t\t}\n\t}", "public static List<String> sortOrders(List<String> orderList) {\n // Write your code here\n List<String> primeOrders = new ArrayList<>();\n LinkedHashSet<String> nonPrimeOrders = new LinkedHashSet<>();\n for (String order : orderList) {\n String orderType = order.split(\" \")[1];\n try {\n int orderNum = Integer.parseInt(orderType);\n nonPrimeOrders.add(order);\n } catch (Exception e) {\n primeOrders.add(order);\n }\n }\n Collections.sort(primeOrders, new Comparator<String>() {\n \n @Override\n public int compare(String s1, String s2) {\n String[] s1Elements = s1.split(\" \");\n String[] s2Elements = s2.split(\" \");\n int i = 1;\n while (i < s1Elements.length && i < s2Elements.length) {\n if (!s1Elements[i].equals(s2Elements[i])) {\n return s1Elements[i].compareTo(s2Elements[i]);\n }\n i++;\n }\n if (i < s1Elements.length) {\n return 1;\n }\n if (i < s2Elements.length) {\n return -1;\n }\n return s1Elements[0].compareTo(s2Elements[0]);\n }\n \n });\n for (String nonPrimeOrder : nonPrimeOrders) {\n primeOrders.add(nonPrimeOrder);\n }\n return primeOrders;\n }", "public static void updatePaddingRow(List<String> list) {\n for (int i = 0; i < list.size(); i++) {\n updatePaddingItem(list.get(i), i + 1);\n }\n }", "private void linkSquares(List<String> list){\n int row, col;\n char c;\n row = 0;\n while(row < list.size()){\n col = 0;\n while(col < list.get(row).length()){\n c = list.get(row).charAt(col);\n if(c=='-'){\n squares.get(row/2).get(col/2).seteSquare(squares.get(row/2).get(col/2+1));\n squares.get(row/2).get(col/2+1).setwSquare(squares.get(row/2).get(col/2));\n }\n else if(c=='|'){\n squares.get(row/2).get(col/2).setsSquare(squares.get(row/2+1).get(col/2));\n squares.get(row/2+1).get(col/2).setnSquare(squares.get(row/2).get(col/2));\n }\n col++;\n }\n row++;\n }\n }", "public Hashtable<String, Integer> CleanSymptomsList(List<String> list){\n Hashtable<String, Integer> listClean = new Hashtable<>();\n\n for(String symptoms : list) {\n if (listClean.isEmpty()) {\n listClean.put(symptoms, 1);\n } else if (listClean.containsKey(symptoms)) {\n int old = listClean.get(symptoms);\n listClean.put(symptoms,old+ 1);\n } else {\n listClean.put(symptoms, 1);\n }\n }\n return listClean;\n }" ]
[ "0.6585525", "0.5955272", "0.58958894", "0.58132106", "0.57896364", "0.55239576", "0.551422", "0.5491185", "0.5458247", "0.5398063", "0.5359817", "0.53564566", "0.5356425", "0.5349882", "0.5336552", "0.5300663", "0.5263866", "0.52572674", "0.5244816", "0.5237473", "0.52355844", "0.52239066", "0.520363", "0.5186676", "0.51692015", "0.5166323", "0.516212", "0.5159672", "0.5151473", "0.51504356", "0.5147396", "0.5140549", "0.51376605", "0.5137393", "0.51291716", "0.5124321", "0.5123455", "0.5113916", "0.5095771", "0.5092857", "0.5080657", "0.5054841", "0.50391775", "0.50331515", "0.5022837", "0.50220156", "0.49979126", "0.49966177", "0.49884143", "0.49769288", "0.49709958", "0.49692166", "0.49659136", "0.4963453", "0.49611008", "0.496014", "0.4957962", "0.49560827", "0.49508482", "0.4948181", "0.4947213", "0.4930085", "0.492741", "0.49217674", "0.49195263", "0.49180558", "0.49103096", "0.49071684", "0.4896568", "0.4881826", "0.48737502", "0.48687583", "0.48647237", "0.48639518", "0.48550653", "0.4851472", "0.4840945", "0.484039", "0.48372874", "0.48362646", "0.4836011", "0.48200446", "0.48193917", "0.48149243", "0.48144642", "0.48144534", "0.4804736", "0.48036483", "0.48004058", "0.4800395", "0.47981688", "0.47977936", "0.47964492", "0.4796039", "0.47939402", "0.47933626", "0.47880208", "0.47865328", "0.4785819", "0.47853354" ]
0.5249907
18
Check if dependent on themselves
boolean isDependOnThemselves(List<String> l);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean hasDependents() {\r\n synchronized (f_seaLock) {\r\n return !f_dependents.isEmpty();\r\n }\r\n }", "private boolean isDependentOn(BuildTask dependency, BuildTask dependant) {\n return dependant.getDependencies().contains(dependency);\n }", "public boolean isIndependent() {\n\t\treturn independentProperty().getValue();\n\t}", "private boolean checkDependenciesSatisfied() {\n\t\tLOGGER.trace(\"CheckDependenciesSatisfied: Start Checking\");\n\t\tfinal Collection<ModuleDependency> moduleDependencies = selfModule.getDependencies();\n\t\tif (moduleDependencies == null) {\n\t\t\treturn true;\n\t\t}\n\t\tfor (final ModuleDependency moduleDependency : moduleDependencies) {\n\t\t\tif (!peerDiscoveryService.getPeerRegistry().containsPeerWithType(moduleDependency.getModuleTypeId(), true)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void testZeroDependencies() {\n dependencyManager.depend(\"foo\", ImmutableSet.of());\n assertTrue(dependencyManager.isdepend(\"foo\", ImmutableSet.of()));\n }", "public boolean dependentOn(PDGNode node1, PDGNode node2);", "public boolean isExplicitForeignCheckRequired();", "public boolean satisfyingReferences() {\n\t\tfor (DependencyElement refEl : references) {\n\t\t\tif (!refEl.after(this)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean hasDependencies(int pk) {\n return (employeeDao.select(pk).getSubordinate() != null);\n }", "private boolean evaluateForFeatureDependency(BaseFeature feature) {\n\t\tif (!feature.getClass().getSuperclass().equals(BaseFeature.class)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfor (BaseFeature featureBase : features) {\n\t\t\tif (CollectionUtils.isNotEmpty(featureBase.getRequiredFeatures())) {\n\t\t\t\tfor (BaseFeature requiredFeature : featureBase.getRequiredFeatures()) {\n\t\t\t\t\tif (feature == requiredFeature) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean dependsOn(IJob job);", "protected boolean isReferenced() {\r\n return mReferenced || mUsers.size() > 0;\r\n }", "protected boolean haveDependingFields(EventType event1, EventType event2) {\r\n\t\treturn !getCommonFields(event1, event2).isEmpty();\r\n\t}", "public boolean dependsOn(ReferenceTable t2) {\r\n\t\tString[] t2Dependants = t2.dependants;\r\n\t\tif (t2Dependants != null) {\r\n\t\t\tfor(String dependant : t2Dependants) {\r\n\t\t\t\tif (dependant.equals(tableName)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\treturn false;\r\n\t}", "private static boolean checkAndAddDependency(int trans_id, int independent_trans_id) {\n List<Integer> txnsInCycle = new ArrayList<Integer>();\n txnsInCycle.add(trans_id);\n if (DeadlockHandler.isThereACycleInGraph(trans_id, independent_trans_id, txnsInCycle)) {\n // System.out.println(\"List contents are\" + txnsInCycle.toString());\n long youngestTxnTime = transactions.get(txnsInCycle.get(0)).getStartTime();\n Integer youngestTxnId = txnsInCycle.get(0);\n for (Integer t : txnsInCycle) {\n if (youngestTxnTime < transactions.get(t).getStartTime()) {\n youngestTxnTime = transactions.get(t).getStartTime();\n youngestTxnId = t;\n }\n }\n\n\n\n System.out.println(\"Cycle in graph. DEADLOCK\");\n System.out.println(\"Aborted : T\" + youngestTxnId);\n releaseResources(youngestTxnId);\n clearWaitingOperations();\n if (youngestTxnId != trans_id && youngestTxnId != independent_trans_id) {\n DeadlockHandler.addDependencyEdge(independent_trans_id, trans_id);\n return true;\n }\n\n\n\n return false;\n\n }\n\n else {\n\n // if edge exists we don't need to do anything\n if (!DeadlockHandler.ifThereIsAnEdgeFromT1toT2(trans_id, independent_trans_id)) {\n\n // System.out.println(\"checkAndAddDependency::Edge is not present\");\n // System.out.println(\"checkAndAddDependency::Add dependency edge\");\n // no deadlock hence we can add the edge\n DeadlockHandler.addDependencyEdge(independent_trans_id, trans_id);\n }\n }\n\n return true;\n }", "boolean isWeakRelationship();", "@Override\n\tpublic void checkDependencies() throws Exception\n\t{\n\t\t\n\t}", "public boolean isDeferred();", "boolean isTransitive();", "boolean hasResolve();", "void checkPrerequisite() throws ActionNotPossibleException;", "boolean isConsomme();", "public void isDeceased(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "private boolean isDependedOn(ModelPath candidate) {\n Transformer<Iterable<ModelPath>, BoundModelMutator<?>> extractInputPaths = new Transformer<Iterable<ModelPath>, BoundModelMutator<?>>() {\n public Iterable<ModelPath> transform(BoundModelMutator<?> original) {\n return Iterables.transform(original.getInputs(), new Function<ModelBinding<?>, ModelPath>() {\n @Nullable\n public ModelPath apply(ModelBinding<?> input) {\n return input.getPath();\n }\n });\n }\n };\n\n Transformer<List<ModelPath>, List<ModelPath>> passThrough = Transformers.noOpTransformer();\n\n return hasModelPath(candidate, mutators.values(), extractInputPaths)\n || hasModelPath(candidate, usedMutators.values(), passThrough)\n || hasModelPath(candidate, finalizers.values(), extractInputPaths)\n || hasModelPath(candidate, usedFinalizers.values(), passThrough);\n }", "boolean isSetFurtherRelations();", "public boolean hasIntermediary() { return true; }", "boolean hasReference();", "boolean isBundleDependencies();", "boolean hasDependencyRelation(int parentID, int childID){\n if (parentID < 0 || parentID >= size_)\n throw new IllegalArgumentException(\"the parent ID is out of range.\");\n if (childID < 0 || childID >= size_)\n throw new IllegalArgumentException(\"the child ID is out of range.\");\n\n return nodes_[childID].parent_ == parentID;\n }", "public boolean dependenciesRunning() {\n\t\ttry {\n\t\t\treturn dependenciesInState(ResourceState.RUNNING);\n\t\t} catch (DependencyException de) {\n\t\t\tlog.warn(\"Unable to check is dependencies are running for \" + this, de);\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean layoutDependsOn(CoordinatorLayout parent, V child, View dependency) {\n return dependency.getId() == mDependViewId;\n }", "@Override\n boolean canFinish() {\n return false; //!getTask().hasUnfinishedDependencies();\n }", "boolean isOrderCertain();", "public static boolean isProcessed(Sentence sentence) {\n\tif (sentence.getTree() == null || sentence.getDependencyList().size() == 0)\n\t return false;\n\tfor (SynDependency d : sentence.getDependencyList()) {\n\t if (d.getType().equals(\"dep\") == false)\n\t\treturn true;\n\t}\n\treturn false;\n }", "private static boolean checkFlowDependencies(RegisgerName_Value<String, Integer> src, String stage)\n\t{\n\t\tboolean isDependent = true;\n\n\t\ttry\n\t\t{\n\t\t\tisDependent = stages.containsKey(stage) && stages.get(stage).getOperation() != null\n\t\t\t// If instruction is not STORE\n\t\t\t\t\t&& !stages.get(stage).getOperation().equals(TypesOfOperations.STORE)\n\t\t\t\t\t// If destination of instruction is not NULL\n\t\t\t\t\t&& stages.get(stage).getDestination() != null\n\t\t\t\t\t// If there is same Register in both instruction\n\t\t\t\t\t&& stages.get(stage).getDestination().getKey().equals(src.getKey());\n\t\t\t// TODO what if the branch is dependent\n\n\t\t\treturn !(isDependent);\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"Error while checking the flow dependancies\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\treturn true;\n\t}", "public void resolveInternalDependencies()\n {\n List<Dependency> dependencies = getUnresolvedDependencies();\n\n for (Dependency dependency : dependencies)\n {\n List<Target> allTargets = getTargets();\n\n for (Target target : allTargets)\n {\n String dependencyName = dependency.getName();\n String targetName = target.getName();\n\n System.out.println(\"Antfile.resolveInternalDependencies dependencyName, targetName = \" + dependencyName + \" \" + targetName);\n\n if (dependencyName == null)\n {\n System.out.println(\"Antfile.resolveInternalDependencies dependency = \" + dependency);\n }\n else if (dependencyName.equals(targetName))\n {\n dependency.setResolved(true);\n\n break;\n }\n }\n }\n }", "boolean hasIsPerformOf();", "public boolean hasDependentCriterion(int index)\n { \n return _searchFieldDef.hasDependentField(index); \n }", "boolean testDependence(DependenceVector dv);", "private boolean stageDependsOn(Stage stage, Stage target) {\n if (stage.equals(target)) {\n return true;\n }\n\n Set<RDD<?>> visitedRdds = Sets.newHashSet();\n Stack<RDD<?>> waitingForVisit = new Stack<>();\n\n waitingForVisit.push(stage.rdd);\n while (waitingForVisit.size() > 0) {\n RDD<?> rdd = waitingForVisit.pop();\n if (!visitedRdds.contains(rdd)) {\n visitedRdds.add(rdd);\n for (Dependency<?> dep : rdd.dependencies()) {\n if (dep instanceof ShuffleDependency) {\n ShuffleDependency<?, ?, ?> shuffleDep = (ShuffleDependency<?, ?, ?>) dep;\n ShuffleMapStage mapStage = getOrCreateShuffleMapStage(shuffleDep, stage.firstJobId);\n if (!mapStage.isAvailable()) {\n waitingForVisit.push(mapStage.rdd);\n }\n } else if (dep instanceof NarrowDependency) {\n NarrowDependency<?> narrowDep = (NarrowDependency<?>) dep;\n waitingForVisit.push(narrowDep.rdd());\n }\n }\n }\n }\n\n return visitedRdds.contains(target.rdd);\n }", "public void register(@Nonnull Dependent dependent) {\n\n\t\t// If the dependent does not have any requirements, there is nothing left to do here.\n\t\tCollection<Requirement> requirements = dependent.getRequirements();\n\n\t\t// Add all of the requirements.\n\t\tfor (Requirement requirement : requirements) {\n\n\t\t\t// If the required cube is required by other dependents already, retrieve its RequiredCube instance,\n\t\t\t// otherwise create a new one.\n\t\t\tRequiredCube requiredCube = this.requiredMap.get(requirement.getCoords());\n\t\t\tif (requiredCube == null) {\n\n\t\t\t\t// If the required cube is loaded already, add it to the RequiredCube instance immediately.\n\t\t\t\tCube cube = this.cubeProvider.getCube(requirement.getCoords());\n\t\t\t\tif (cube != null) {\n\t\t\t\t\trequiredCube = new RequiredCube(cube);\n\t\t\t\t}\n\t\t\t\t// Otherwise create an empty instance.\n\t\t\t\telse {\n\t\t\t\t\trequiredCube = new RequiredCube();\n\t\t\t\t}\n\n\t\t\t\tthis.requiredMap.put(requirement.getCoords(), requiredCube);\n\t\t\t}\n\t\t\t// Make sure the required cube's target stage is correct.\n\t\t\telse {\n\t\t\t\trequiredCube.setTargetStage(requirement.getTargetStage());\n\t\t\t}\n\n\t\t\t// Add the dependent to the required cubes list of dependents.\n\t\t\trequiredCube.addDependent(dependent);\n\n\t\t\t// If the required cube is loaded, ...\n\t\t\tif (requiredCube.isAvailable()) {\n\n\t\t\t\t// and it has reached the required target stage, notify the dependent.\n\t\t\t\tif (!requiredCube.getCube().isBeforeStage(requirement.getTargetStage())) {\n\t\t\t\t\tdependent.update(this, requiredCube.getCube());\n\t\t\t\t}\n\t\t\t\t// If the required cube's current stage precedes the required target stage, load it up to the required\n\t\t\t\t// target stage.\n\t\t\t\telse if (requiredCube.getCube().getCurrentStage().precedes(requirement.getTargetStage())) {\n\t\t\t\t\tthis.cubeProvider.loadCube(requirement.getCoords(), LoadType.LOAD_OR_GENERATE, requirement.getTargetStage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Otherwise load it.\n\t\t\telse {\n\t\t\t\tthis.cubeProvider.loadCube(requirement.getCoords(), LoadType.LOAD_OR_GENERATE, requirement.getTargetStage());\n\t\t\t}\n\t\t}\n\t}", "public boolean isContradicting(Item item){\r\n if(item.getType() == BASEBALL_BAT.getType()) {\r\n if (unitMap.containsKey(FOOTBALL.getType())) return true;\r\n else return false;\r\n }\r\n if (item.getType() ==FOOTBALL.getType()){\r\n if (unitMap.containsKey(BASEBALL_BAT.getType())) return true;\r\n else return false;\r\n }\r\n return false;\r\n }", "boolean isResolveByProxy();", "public final boolean isReferencedAtMostOnce() {\n return this.getReferences(false, true).size() == 0 && this.getReferences(true, false).size() <= 1;\r\n }", "@Override\r\n\tprotected boolean prerequisites() {\n\t\treturn _player1.getClient().getPlayer().getWrappedObject().getPosition()\r\n\t\t\t\t.equals(_player2.getClient().getPlayer().getWrappedObject().getPosition());\r\n\t}", "private void validateDependencies() throws ReportingSystemException {\r\n\r\n\t\tif (calculationService == null || manipulationService == null || incomingRankingService == null\r\n\t\t\t\t|| outgoingRankingService == null || dataReader == null || dataWriter == null)\r\n\t\t\tthrow new ReportingSystemException(\r\n\t\t\t\t\tReportingSystemResourceUtil.getValue(ReportingSystemConstants.EXCEPTION_DEPENDENCY_INJECTION));\r\n\r\n\t}", "public final boolean hasDeponents() {\r\n synchronized (f_seaLock) {\r\n return !f_deponents.isEmpty();\r\n }\r\n }", "private boolean check_only_call_relatives(Element element){\n\t\tArrayList<Element> relatives = new ArrayList<Element>();\n\t\tfor(Element elem_called : element.getRefFromThis()){\n\t\t\t//if they are brothers\n\t\t\tif(element.getParentName() != null && elem_called.getParentName() != null && element.getParentName().equals(elem_called.getParentName())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\n\t\t\t//if they are son - father\n\t\t\tif(element.getParentName() != null && element.getParentName().equals(elem_called.getIdentifier())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\t\t\t\n\t\t}\n\t\tif (relatives.size() == element.getRefFromThis().size()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isInterSWCDependency(ICompilationUnit from, ICompilationUnit to)\n {\n if (from.getAbsoluteFilename() != null &&\n !from.getAbsoluteFilename().equals(to.getAbsoluteFilename()))\n {\n // If the compilation units are from different SWCs, check the \n // shadowed definitions to make sure the dependency doesn't also\n // live in the same SWC. If the same definition, with the same\n // timestamp is found in the same SWC as a shadowed definition\n // then don't consider this an inter-SWC dependency.\n\n // Get if the \"to\" compilation unit has any equivalent shadowed \n // definitions that are in the same SWC as the \"from\" unit.\n if (hasShadowedCompulationUnit(to, from.getAbsoluteFilename()))\n return false;\n \n // Test if the \"from\" unit has an equivalent in the \"to\" unit's SWC.\n if (hasShadowedCompulationUnit(from, to.getAbsoluteFilename()))\n return false;\n\n return true;\n }\n \n return false;\n }", "boolean hasPrerequisiteId();", "void onDependencyRelation( DependencyRelation relation );", "public boolean isSetDependency_path() {\n return this.dependency_path != null;\n }", "public abstract boolean isSatisfied();", "public synchronized boolean hasDependents(BundleRevision revision)\n {\n if (Util.isFragment(revision)\n && (revision.getWiring() != null))\n {\n for (BundleWire bw : revision.getWiring().getRequiredWires(null))\n {\n if (HostNamespace.HOST_NAMESPACE.equals(bw.getCapability().getNamespace()))\n {\n return true;\n }\n }\n }\n else if (m_dependentsMap.containsKey(revision))\n {\n return true;\n }\n return false;\n }", "@Override\n public boolean selectDependency(Dependency d) {\n return false;\n }", "public boolean isDeferred() {\n \treturn false;\n }", "public boolean dependenciesInState(ResourceState ... expectedDepStates) throws DependencyException {\n\t\tfor (DependencyElement depEl : dependencies) {\n\t\t\tif (depEl.resource == null) {\n\t\t\t\tthrow new DependencyException(\"Could not locate ResourceMetadata for \" + depEl);\n\t\t\t}\n\t\t\t\n\t\t\tboolean found = false;\n\t\t\tfor (int i = 0; i < expectedDepStates.length; i++) {\n\t\t\t\tif (depEl.resource.getState().isEquivalent(expectedDepStates[i])) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) {\n\t\t\t\tlog.info(depEl + \" is in state [\" + depEl.resource.getState() + \"], expected [\" + Arrays.asList(expectedDepStates) + \"]\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean needsProblem();", "boolean hasHas_consequence();", "ConditionalDependency createConditionalDependency();", "public boolean requiresChecking(ReferencedURL rurl)\n\t{\n\t\t// DO NOT CHANGE THIS METHOD without also changing the other methods in\n\t\t// this policy class, and also the documented policy in the class\n\t\t// comments.\n\n\t\tfinal long lastCheck = rurl.getLastChecked().getTime();\n\n\t\tif( lastCheck < oneMonthAgo() )\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tif( !rurl.isSuccess() && rurl.getTries() < triesUntilDisabled )\n\t\t{\n\t\t\tif( lastCheck < oneDayAgo() )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean hasUnfinishedDependencies(TransportOrder order) {\n requireNonNull(order, \"order\");\n\n // Assume that FINISHED orders do not have unfinished dependencies.\n if (order.hasState(TransportOrder.State.FINISHED)) {\n return false;\n }\n // Check if any transport order referenced as a an explicit dependency\n // (really still exists and) is not finished.\n if (order.getDependencies().stream()\n .map(depRef -> kernel.getTCSObject(TransportOrder.class, depRef))\n .anyMatch(dep -> dep != null && !dep.hasState(TransportOrder.State.FINISHED))) {\n return true;\n }\n\n // Check if the transport order is part of an order sequence and if yes,\n // if it's the next unfinished order in the sequence.\n if (order.getWrappingSequence() != null) {\n OrderSequence seq = kernel.getTCSObject(OrderSequence.class, order.getWrappingSequence());\n if (!order.getReference().equals(seq.getNextUnfinishedOrder())) {\n return true;\n }\n }\n // All referenced transport orders either don't exist (any more) or have\n // been finished already.\n return false;\n }", "public boolean hasFather() {\n\t\treturn !fathers.isEmpty();\n\t}", "void addDependsOnMe(DependencyItem dependency);", "void visitElement_depends_on(org.w3c.dom.Element element) { // <depends-on>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.dependsOn.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "public final void addDependent(Drop dependent) {\r\n synchronized (f_seaLock) {\r\n if (!f_valid || dependent == null || !dependent.isValid()) {\r\n return;\r\n }\r\n if (dependent == this) {\r\n return;\r\n }\r\n if (f_dependents.add(dependent)) {\r\n dependent.addDeponent(this);\r\n }\r\n }\r\n }", "boolean hasUses();", "@Test\n public void testVerifyLoopInvokesDependenciesProperlyWhenNoCycles() throws Exception {\n // ----------------------------------------------------\n // Add more mocking detail to our dependencies first.\n // ----------------------------------------------------\n\n DepChaser sut = createSut();\n\n // First mock our dependencyMap to know about variables a thru f\n when(_dependencyMap.keySet()).thenReturn(new HashSet<>(Arrays.asList(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\")));\n\n // ----------------------------------------------------------------------------------\n // we're going to make it so it takes 2 iterations in DepChaser to handle a thru f\n // ----------------------------------------------------------------------------------\n\n // The 1st time, our mocked checker is going to checkout no cycles in a, b, c variables\n ChildrenDependencyChecker checker1 = mockChildrenDependencyChecker(Arrays.asList(\"a\", \"b\", \"c\"));\n // The 2nd time, our mocked checker is going to checkout no cycles in d, e, f variables\n ChildrenDependencyChecker checker2 = mockChildrenDependencyChecker(Arrays.asList(\"d\", \"e\", \"f\"));\n\n when(_dependencyCheckerFactory.create(\"a\", _dependencyMap, new HashSet<>())).thenReturn(checker1);\n when(_dependencyCheckerFactory.create(\"d\", _dependencyMap, new HashSet<>(Arrays.asList(\"a\", \"b\", \"c\")))).thenReturn(checker2);\n\n Assert.assertTrue(sut.validateNoDependencyCycles());\n verify(checker1, times(1)).run();\n verify(checker2, times(1)).run();\n\n // Verify all variables were verified\n Assert.assertEquals(_dependencyMap.keySet(), sut.getVerifiedVariables());\n }", "private boolean isExistDependentDocumentTrans(String tracingID, Long processInstanceUID, DocTransDAO docTransDAO)\n {\n DocumentTransaction docTrans = docTransDAO.getDocTransByTracingID(tracingID, processInstanceUID);\n _logger.logMessage(\"isExistDependentDocumentTran\", null, \"Dependent doc trans is \"+docTrans);\n return docTrans != null;\n }", "boolean hasRelation();", "private static boolean isReadyForUse(IReasoner reasoner) {\r\n boolean result = false;\r\n if (null != reasoner) {\r\n ReasonerDescriptor desc = reasoner.getDescriptor();\r\n if (null != desc) {\r\n result = desc.isReadyForUse();\r\n }\r\n }\r\n return result;\r\n }", "boolean hasRef();", "private Set<String> crossCheckDependenciesAndResolve(Map<String, List<Dependency>> dependencies) throws MojoFailureException {\n Map<String, Map<String, Dependency>> lookupTable = new HashMap<>();\n for (String bom : dependencies.keySet()) {\n Map<String, Dependency> bomLookup = new HashMap<>();\n lookupTable.put(bom, bomLookup);\n\n for (Dependency dependency : dependencies.get(bom)) {\n String key = dependencyKey(dependency);\n bomLookup.put(key, dependency);\n }\n }\n\n Map<String, Set<VersionInfo>> inconsistencies = new TreeMap<>();\n Set<String> trueInconsistencies = new TreeSet<>();\n\n // Cross-check all dependencies\n for (String bom1 : dependencies.keySet()) {\n for (Dependency dependency1 : dependencies.get(bom1)) {\n String key = dependencyKey(dependency1);\n String version1 = dependency1.getArtifact().getVersion();\n\n for (String bom2 : dependencies.keySet()) {\n // Some boms have conflicts with themselves\n\n Dependency dependency2 = lookupTable.get(bom2).get(key);\n String version2 = dependency2 != null ? dependency2.getArtifact().getVersion() : null;\n if (version2 != null) {\n Set<VersionInfo> inconsistency = inconsistencies.get(key);\n if (inconsistency == null) {\n inconsistency = new TreeSet<>();\n inconsistencies.put(key, inconsistency);\n }\n\n inconsistency.add(new VersionInfo(dependency1, bom1));\n inconsistency.add(new VersionInfo(dependency2, bom2));\n\n if (!version2.equals(version1)) {\n trueInconsistencies.add(key);\n }\n }\n }\n }\n }\n\n // Try to solve with preferences\n Set<String> resolvedInconsistencies = new TreeSet<>();\n DependencyMatcher preferencesMatcher = new DependencyMatcher(this.preferences);\n for (String key : trueInconsistencies) {\n int preferred = 0;\n for (VersionInfo nfo : inconsistencies.get(key)) {\n if (preferencesMatcher.matches(nfo.getDependency())) {\n preferred++;\n }\n }\n\n if (preferred == 1) {\n resolvedInconsistencies.add(key);\n }\n }\n\n trueInconsistencies.removeAll(resolvedInconsistencies);\n\n if (trueInconsistencies.size() > 0) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found \" + trueInconsistencies.size() + \" inconsistencies in the generated BOM.\\n\");\n\n for (String key : trueInconsistencies) {\n message.append(key);\n message.append(\" has different versions:\\n\");\n for (VersionInfo nfo : inconsistencies.get(key)) {\n message.append(\" - \");\n message.append(nfo);\n message.append(\"\\n\");\n }\n }\n\n throw new MojoFailureException(message.toString());\n }\n\n return resolvedInconsistencies;\n }", "private boolean hasRequirements() {\n \t\tif (checkHasRequirements) {\n \t\t\thasRequirements = pullRequired(requiredInput, false);\n \t\t\tcheckHasRequirements = false;\n \t\t}\n \t\treturn hasRequirements;\n \t}", "boolean hasParent();", "boolean hasParent();", "public default boolean needsReagents()\r\n\t{\r\n\t\tfor(ItemStack stack : getReagents()) if(!stack.isEmpty()) return true;\r\n\t\treturn true;\r\n\t}", "public final boolean tryOwn() {\n return own(this) == this;\n }", "private boolean isReferenced(String item) {\n\t\tif (varReferences.contains(item)) return true;\n\t\telse return false;\n\t}", "@Override\r\n\tpublic boolean hasPredecessor() {\n\t\treturn false;\r\n\t}", "@Test\n public void testIndependentPreTest() {\n // GIVEN\n Owner owner = new Owner(\"Bela\", \"Bp, Parlament\", dog, cat);\n\n // WHEN - THEN\n assertFalse(owner.hasDog());\n }", "public abstract boolean istAusgeliefert();", "public boolean isPureFK() { // derived property\n return !_additionalFK && !_referrerAsOne;\n }", "public boolean matchResult() {\n return !pathMatchDependencies.isEmpty();\n }", "public boolean hasAtLeastOneReference(Project project);", "final void checkForComodification() {\n\t}", "Set<DependencyItem> getIDependOn(Class<?> type);", "public boolean isInCheck() {\n\t\treturn false;\n\t}", "boolean isResolvable(String name);", "public boolean isSetRequires()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(REQUIRES$28) != null;\r\n }\r\n }", "public void doRequiredCheck() {\n\t\tthis.checkValue(listener);\n\t}", "public boolean isRequire() {\n return require;\n }", "boolean isIntroduced();", "boolean isCyclic() {\n\n // if we are processing the course currently that is a cyclic graph and we can't\n // do all the courses\n if (processed) {\n return false;\n }\n\n // if we already visited the course and no cycle was found then we can return\n if (visited) {\n return true;\n }\n //else we set the course and visited\n visited = true;\n\n //we then loop through all the prerequisites performing the same check\n for (Course preCourse : pre) {\n if (preCourse.isCyclic()) {\n return true;\n }\n }\n\n //if we arrive here then we have gone through all the combinations and there is no cyclic graph\n visited = false;\n processed = true;\n return false;\n }", "@Override\r\n\tpublic void satisfy() {\n\t\t\r\n\t}", "@Override\n public boolean isCallbackOrderingPrereq(OFType type, String name) {\n return false;\n }", "@Override\n public boolean isCallbackOrderingPrereq(OFType type, String name) {\n return false;\n }", "public boolean containsIncomingRelations();", "public DependencySatisfaction satisfied() {\n\t\treturn satisfied(new HashSet<String>(), new HashSet<String>());\n\t}", "boolean hasHadithReferenceNo();" ]
[ "0.6824807", "0.67103326", "0.6567271", "0.6484047", "0.63030964", "0.6268961", "0.6166119", "0.61609095", "0.6151998", "0.6151524", "0.60313946", "0.60216403", "0.5961653", "0.5957138", "0.59254766", "0.59106046", "0.58899647", "0.5887326", "0.58754414", "0.58754015", "0.5863395", "0.58239794", "0.5818391", "0.5773988", "0.57607734", "0.57388586", "0.57195085", "0.57178795", "0.5706383", "0.5676599", "0.5644456", "0.56201184", "0.55729324", "0.55599886", "0.5557874", "0.55456513", "0.5527721", "0.551519", "0.55123746", "0.54826313", "0.5477974", "0.5463368", "0.545818", "0.5453902", "0.5452814", "0.54409015", "0.5424034", "0.53995574", "0.53968364", "0.53962666", "0.53874296", "0.53841746", "0.5376931", "0.5362601", "0.53625643", "0.5354982", "0.5347722", "0.534556", "0.533717", "0.5329759", "0.5315486", "0.5309034", "0.5300159", "0.52943754", "0.5289413", "0.52868253", "0.5280371", "0.52728283", "0.52475023", "0.5247468", "0.5247447", "0.5246106", "0.5233593", "0.52100223", "0.52097934", "0.52097934", "0.5200891", "0.5194615", "0.51944524", "0.5183587", "0.51808447", "0.51762575", "0.51698625", "0.51674044", "0.5158403", "0.5158047", "0.5157101", "0.51547575", "0.5150298", "0.5145381", "0.51445955", "0.5141698", "0.5140403", "0.51403016", "0.5137589", "0.5132104", "0.5132104", "0.51306677", "0.5129691", "0.5129235" ]
0.626372
6
Check for circular dependencies
void checkCircular(List<String> myList);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkCircular(AlfClass alfClass) throws CircularParentException {\r\n\t\tList<AlfClass> parents = getParents();\r\n\t\tfor (AlfClass ac : parents) {\r\n\t\t\tif (ac.equals(alfClass))\r\n\t\t\t\tthrow new CircularParentException();\r\n\t\t\tac.checkCircular(alfClass);\r\n\t\t}\r\n\t}", "private void checkNoCycles(List<JpsModule> component) {\n if (component.size() > 1) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found circular module dependency: \")\n .append(component.size())\n .append(\" modules\");\n for (JpsModule module : component) {\n message.append(\" \").append(module.getName());\n }\n logger.error(message.toString());\n }\n }", "@Override\n\tpublic void checkDependencies() throws Exception\n\t{\n\t\t\n\t}", "private boolean isCircularReference(ConstantReference node) {\n ArrayList<String> trail = new ArrayList<>();\n trail.add(node.name);\n\n String previousName = node.name;\n boolean running = true;\n boolean isCircular = false;\n while ((symboltable.get(previousName) instanceof ConstantReference) && running) {\n ConstantReference newReference = (ConstantReference) symboltable.get(previousName);\n if (!trail.contains(newReference.name)) {\n trail.add(newReference.name);\n previousName = newReference.name;\n } else {\n node.setError(\"Circular reference detected.\");\n running = false;\n isCircular = true;\n }\n }\n\n return isCircular;\n }", "public boolean isCircular() {\n\t\treturn false;\n\n\t}", "private boolean checkDependenciesSatisfied() {\n\t\tLOGGER.trace(\"CheckDependenciesSatisfied: Start Checking\");\n\t\tfinal Collection<ModuleDependency> moduleDependencies = selfModule.getDependencies();\n\t\tif (moduleDependencies == null) {\n\t\t\treturn true;\n\t\t}\n\t\tfor (final ModuleDependency moduleDependency : moduleDependencies) {\n\t\t\tif (!peerDiscoveryService.getPeerRegistry().containsPeerWithType(moduleDependency.getModuleTypeId(), true)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public final boolean hasDependents() {\r\n synchronized (f_seaLock) {\r\n return !f_dependents.isEmpty();\r\n }\r\n }", "private void validateDependencies() throws ReportingSystemException {\r\n\r\n\t\tif (calculationService == null || manipulationService == null || incomingRankingService == null\r\n\t\t\t\t|| outgoingRankingService == null || dataReader == null || dataWriter == null)\r\n\t\t\tthrow new ReportingSystemException(\r\n\t\t\t\t\tReportingSystemResourceUtil.getValue(ReportingSystemConstants.EXCEPTION_DEPENDENCY_INJECTION));\r\n\r\n\t}", "public SemanticError checkCyclicInheritance() {\n\t\tMap<String, VSOPClass> map = new HashMap<>();\n\n\t\tfor (VSOPClass c = superClass; c != null; c = c.superClass) {\n\t\t\tif (c == this) {\n\t\t\t\treturn new SemanticError(ln, col, String.format(\"Cyclic inheritance of class %s\", id));\n\t\t\t}\n\n\t\t\tif (map.containsKey(c.id))\n\t\t\t\treturn null;\n\n\t\t\tmap.put(c.id, c);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n public abstract boolean needsResolving();", "boolean isCircular();", "private void enforceTransitiveClassUsage() {\n HashSet<String> tmp = new HashSet<String>(usedAppClasses);\n for(String className : tmp) {\n enforceTransitiveClassUsage(className);\n }\n }", "private boolean isInterSWCDependency(ICompilationUnit from, ICompilationUnit to)\n {\n if (from.getAbsoluteFilename() != null &&\n !from.getAbsoluteFilename().equals(to.getAbsoluteFilename()))\n {\n // If the compilation units are from different SWCs, check the \n // shadowed definitions to make sure the dependency doesn't also\n // live in the same SWC. If the same definition, with the same\n // timestamp is found in the same SWC as a shadowed definition\n // then don't consider this an inter-SWC dependency.\n\n // Get if the \"to\" compilation unit has any equivalent shadowed \n // definitions that are in the same SWC as the \"from\" unit.\n if (hasShadowedCompulationUnit(to, from.getAbsoluteFilename()))\n return false;\n \n // Test if the \"from\" unit has an equivalent in the \"to\" unit's SWC.\n if (hasShadowedCompulationUnit(from, to.getAbsoluteFilename()))\n return false;\n\n return true;\n }\n \n return false;\n }", "protected static boolean checkTypeReferences() {\n Map<Class<?>, LinkedList<Class<?>>> missingTypes = new HashMap<>();\n for (Map.Entry<String, ClassProperties> entry : classToClassProperties.entrySet()) {\n String className = entry.getKey();\n Class<?> c = lookupClass(className);\n Short n = entry.getValue().typeNum;\n if (marshalledTypeNum(n)) {\n Class<?> superclass = getValidSuperclass(c);\n if (superclass != null)\n checkClassPresent(c, superclass, missingTypes);\n LinkedList<Field> fields = getValidClassFields(c);\n for (Field f : fields) {\n Class<?> fieldType = getFieldType(f);\n checkClassPresent(c, fieldType, missingTypes);\n }\n }\n }\n if (missingTypes.size() > 0) {\n for (Map.Entry<Class<?>, LinkedList<Class<?>>> entry : missingTypes.entrySet()) {\n Class<?> c = entry.getKey();\n LinkedList<Class<?>> refs = entry.getValue();\n String s = \"\";\n for (Class<?> ref : refs) {\n if (s != \"\")\n s += \", \";\n s += \"'\" + getSimpleClassName(ref) + \"'\";\n }\n Log.error(\"Missing type '\" + getSimpleClassName(c) + \"' is referred to by type(s) \" + s);\n }\n Log.error(\"Aborting code generation due to missing types\");\n return false;\n }\n else\n return true;\n }", "private boolean checkResolve(BundleImpl b) {\n ArrayList okImports = new ArrayList();\n if (framework.perm.missingMandatoryPackagePermissions(b.bpkgs, okImports) == null &&\n checkBundleSingleton(b) == null) {\n HashSet oldTempResolved = (HashSet)tempResolved.clone();\n HashMap oldTempProvider = (HashMap)tempProvider.clone();\n HashMap oldTempRequired = (HashMap)tempRequired.clone();\n HashSet oldTempBlackList = (HashSet)tempBlackList.clone();\n tempResolved.add(b);\n if (checkRequireBundle(b) == null) {\n List r = resolvePackages(okImports.iterator());\n if (r.size() == 0) {\n return true;\n }\n }\n tempResolved = oldTempResolved;\n tempProvider = oldTempProvider;\n tempRequired = oldTempRequired;\n tempBlackList = oldTempBlackList;\n }\n return false;\n }", "boolean isResolveByProxy();", "public void resolveInternalDependencies()\n {\n List<Dependency> dependencies = getUnresolvedDependencies();\n\n for (Dependency dependency : dependencies)\n {\n List<Target> allTargets = getTargets();\n\n for (Target target : allTargets)\n {\n String dependencyName = dependency.getName();\n String targetName = target.getName();\n\n System.out.println(\"Antfile.resolveInternalDependencies dependencyName, targetName = \" + dependencyName + \" \" + targetName);\n\n if (dependencyName == null)\n {\n System.out.println(\"Antfile.resolveInternalDependencies dependency = \" + dependency);\n }\n else if (dependencyName.equals(targetName))\n {\n dependency.setResolved(true);\n\n break;\n }\n }\n }\n }", "boolean isBundleDependencies();", "@Override\n\tpublic void verifyReferencedTypes() {\n\t\tbeanType = resolve(getBuilder().getBean());\n\t\tbean = getContext().getModelSet().getBean(beanType, false);\n\t}", "@Test\n public void testZeroDependencies() {\n dependencyManager.depend(\"foo\", ImmutableSet.of());\n assertTrue(dependencyManager.isdepend(\"foo\", ImmutableSet.of()));\n }", "@Test\r\n\tpublic void testThatCircularReferencesAdmitIt () {\r\n\t\tSheet sheet = new Sheet();\r\n\t\tsheet.put(\"A1\", \"=A1\");\r\n\t\tassertEquals(\"Detect circularity\", \"#Circular\", sheet.get(\"A1\"));\r\n\t}", "@Override\n boolean areNestedRefsProhibited() {\n return true;\n }", "private static boolean checkAndAddDependency(int trans_id, int independent_trans_id) {\n List<Integer> txnsInCycle = new ArrayList<Integer>();\n txnsInCycle.add(trans_id);\n if (DeadlockHandler.isThereACycleInGraph(trans_id, independent_trans_id, txnsInCycle)) {\n // System.out.println(\"List contents are\" + txnsInCycle.toString());\n long youngestTxnTime = transactions.get(txnsInCycle.get(0)).getStartTime();\n Integer youngestTxnId = txnsInCycle.get(0);\n for (Integer t : txnsInCycle) {\n if (youngestTxnTime < transactions.get(t).getStartTime()) {\n youngestTxnTime = transactions.get(t).getStartTime();\n youngestTxnId = t;\n }\n }\n\n\n\n System.out.println(\"Cycle in graph. DEADLOCK\");\n System.out.println(\"Aborted : T\" + youngestTxnId);\n releaseResources(youngestTxnId);\n clearWaitingOperations();\n if (youngestTxnId != trans_id && youngestTxnId != independent_trans_id) {\n DeadlockHandler.addDependencyEdge(independent_trans_id, trans_id);\n return true;\n }\n\n\n\n return false;\n\n }\n\n else {\n\n // if edge exists we don't need to do anything\n if (!DeadlockHandler.ifThereIsAnEdgeFromT1toT2(trans_id, independent_trans_id)) {\n\n // System.out.println(\"checkAndAddDependency::Edge is not present\");\n // System.out.println(\"checkAndAddDependency::Add dependency edge\");\n // no deadlock hence we can add the edge\n DeadlockHandler.addDependencyEdge(independent_trans_id, trans_id);\n }\n }\n\n return true;\n }", "public void testVerifyExpectedParentStructure()\n throws CycleDetectedException, DuplicateProjectException\n {\n ProjectDependencyGraph graph = threeProjectsDependingOnASingle();\n final List<MavenProject> sortedProjects = graph.getSortedProjects();\n assertEquals( aProject, sortedProjects.get( 0 ) );\n assertEquals( depender1, sortedProjects.get( 1 ) );\n assertEquals( depender2, sortedProjects.get( 2 ) );\n assertEquals( depender3, sortedProjects.get( 3 ) );\n }", "boolean hasDependencyRelation(int parentID, int childID){\n if (parentID < 0 || parentID >= size_)\n throw new IllegalArgumentException(\"the parent ID is out of range.\");\n if (childID < 0 || childID >= size_)\n throw new IllegalArgumentException(\"the child ID is out of range.\");\n\n return nodes_[childID].parent_ == parentID;\n }", "boolean isValid() {\n\t\tif (this.nodeImpl != null) {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.nodeImpl.getImplementationArtifacts()) {\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.relationImpl.getImplementationArtifacts()) {\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t}", "private void checkForest(Set<Sensor> sensors) {\n if (!sensors.add(this))\n throw new IllegalArgumentException(\"Circular dependency in sensors: \" + name() + \" is its own parent.\");\n for (Sensor parent : parents)\n parent.checkForest(sensors);\n }", "public boolean isExplicitForeignCheckRequired();", "private void checkAndAddReferenceFrame(ReferenceFrame referenceFrame)\n {\n checkAndAddReferenceFrame(referenceFrame, referenceFrame.getNameBasedHashCode());\n }", "boolean hasResolve();", "@Test\n public void testCircularPrototypeLink() {\n testError(\n lines(\n \"/** @constructor @extends {Foo} */ function Foo() {}\",\n \"/** @const */ Foo.prop = 1;\",\n \"Foo.prop = 2;\"),\n CONST_PROPERTY_REASSIGNED_VALUE);\n }", "private void checkForAssociationConstraint()\n {\n try\n {\n String methodName = String.format(\"%sOptions\", name());\n _associationConstraint = _parent.getJavaClass().getMethod(methodName);\n }\n catch (NoSuchMethodException e)\n {\n // ignore\n }\n }", "private void ensureImplementationIsNotSet() {\n if (factory != null) {\n binder.addError(source, ErrorMessages.IMPLEMENTATION_ALREADY_SET);\n }\n }", "public void addStrongParent(AlfClass parent) throws CircularParentException {\r\n\t\tif (parent.equals(this))\r\n\t\t\tthrow new CircularParentException();\r\n\t\tList<AlfClass> parents = parent.getParents();\r\n\t\tfor (AlfClass ac : parents) {\r\n\t\t\tif (ac.equals(this)) \r\n\t\t\t\tthrow new CircularParentException();\r\n\t\t\tac.checkCircular(this);\r\n\t\t}\r\n\t}", "private Set<String> crossCheckDependenciesAndResolve(Map<String, List<Dependency>> dependencies) throws MojoFailureException {\n Map<String, Map<String, Dependency>> lookupTable = new HashMap<>();\n for (String bom : dependencies.keySet()) {\n Map<String, Dependency> bomLookup = new HashMap<>();\n lookupTable.put(bom, bomLookup);\n\n for (Dependency dependency : dependencies.get(bom)) {\n String key = dependencyKey(dependency);\n bomLookup.put(key, dependency);\n }\n }\n\n Map<String, Set<VersionInfo>> inconsistencies = new TreeMap<>();\n Set<String> trueInconsistencies = new TreeSet<>();\n\n // Cross-check all dependencies\n for (String bom1 : dependencies.keySet()) {\n for (Dependency dependency1 : dependencies.get(bom1)) {\n String key = dependencyKey(dependency1);\n String version1 = dependency1.getArtifact().getVersion();\n\n for (String bom2 : dependencies.keySet()) {\n // Some boms have conflicts with themselves\n\n Dependency dependency2 = lookupTable.get(bom2).get(key);\n String version2 = dependency2 != null ? dependency2.getArtifact().getVersion() : null;\n if (version2 != null) {\n Set<VersionInfo> inconsistency = inconsistencies.get(key);\n if (inconsistency == null) {\n inconsistency = new TreeSet<>();\n inconsistencies.put(key, inconsistency);\n }\n\n inconsistency.add(new VersionInfo(dependency1, bom1));\n inconsistency.add(new VersionInfo(dependency2, bom2));\n\n if (!version2.equals(version1)) {\n trueInconsistencies.add(key);\n }\n }\n }\n }\n }\n\n // Try to solve with preferences\n Set<String> resolvedInconsistencies = new TreeSet<>();\n DependencyMatcher preferencesMatcher = new DependencyMatcher(this.preferences);\n for (String key : trueInconsistencies) {\n int preferred = 0;\n for (VersionInfo nfo : inconsistencies.get(key)) {\n if (preferencesMatcher.matches(nfo.getDependency())) {\n preferred++;\n }\n }\n\n if (preferred == 1) {\n resolvedInconsistencies.add(key);\n }\n }\n\n trueInconsistencies.removeAll(resolvedInconsistencies);\n\n if (trueInconsistencies.size() > 0) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found \" + trueInconsistencies.size() + \" inconsistencies in the generated BOM.\\n\");\n\n for (String key : trueInconsistencies) {\n message.append(key);\n message.append(\" has different versions:\\n\");\n for (VersionInfo nfo : inconsistencies.get(key)) {\n message.append(\" - \");\n message.append(nfo);\n message.append(\"\\n\");\n }\n }\n\n throw new MojoFailureException(message.toString());\n }\n\n return resolvedInconsistencies;\n }", "public void testIsNewDependency() {\n assertTrue(\"Un-implemented method.\", true);\n }", "private static void checkReferenceTypes(Component component)\n\t{\n\t\tList<ExternalReference> refs = component.getExternalReferences();\n\t\tif (refs != null)\n\t\t{\n\t\t\tfor (ExternalReference ref : refs)\n\t\t\t{\n\t\t\t\tif (ref.getType() == null)\n\t\t\t\t\tref.setType(ExternalReference.Type.OTHER);\n\t\t\t}\n\t\t}\n\t}", "private static <T extends BaseVertex, E extends BaseEdge> void sanityCheckReferenceGraph(final BaseGraph<T,E> graph, final Haplotype refHaplotype) {\n if( graph.getReferenceSourceVertex() == null ) {\n throw new IllegalStateException(\"All reference graphs must have a reference source vertex.\");\n }\n if( graph.getReferenceSinkVertex() == null ) {\n throw new IllegalStateException(\"All reference graphs must have a reference sink vertex.\");\n }\n if( !Arrays.equals(graph.getReferenceBytes(graph.getReferenceSourceVertex(), graph.getReferenceSinkVertex(), true, true), refHaplotype.getBases()) ) {\n throw new IllegalStateException(\"Mismatch between the reference haplotype and the reference assembly graph path. for graph \" + graph +\n \" graph = \" + new String(graph.getReferenceBytes(graph.getReferenceSourceVertex(), graph.getReferenceSinkVertex(), true, true)) +\n \" haplotype = \" + new String(refHaplotype.getBases())\n );\n }\n }", "private static boolean checkFlowDependencies(RegisgerName_Value<String, Integer> src, String stage)\n\t{\n\t\tboolean isDependent = true;\n\n\t\ttry\n\t\t{\n\t\t\tisDependent = stages.containsKey(stage) && stages.get(stage).getOperation() != null\n\t\t\t// If instruction is not STORE\n\t\t\t\t\t&& !stages.get(stage).getOperation().equals(TypesOfOperations.STORE)\n\t\t\t\t\t// If destination of instruction is not NULL\n\t\t\t\t\t&& stages.get(stage).getDestination() != null\n\t\t\t\t\t// If there is same Register in both instruction\n\t\t\t\t\t&& stages.get(stage).getDestination().getKey().equals(src.getKey());\n\t\t\t// TODO what if the branch is dependent\n\n\t\t\treturn !(isDependent);\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"Error while checking the flow dependancies\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\treturn true;\n\t}", "@Test\r\n\tpublic void testThatCircularReferenceDoesntCrash() {\r\n\t\tSheet sheet = new Sheet();\r\n\t\tsheet.put(\"A1\", \"=A1\");\r\n\t\tassertTrue(true);\r\n\t}", "public boolean satisfyingReferences() {\n\t\tfor (DependencyElement refEl : references) {\n\t\t\tif (!refEl.after(this)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public final boolean isAcyclic() {\n return this.topologicalSort().size() == this.sizeNodes();\n }", "private void solveDependencies() {\n requiredProjects.clear();\n requiredProjects.addAll(getFlattenedRequiredProjects(selectedProjects));\n }", "boolean hasReference();", "boolean hasEnclosingInstanceImpl(ClassType encl);", "private boolean check_only_call_relatives(Element element){\n\t\tArrayList<Element> relatives = new ArrayList<Element>();\n\t\tfor(Element elem_called : element.getRefFromThis()){\n\t\t\t//if they are brothers\n\t\t\tif(element.getParentName() != null && elem_called.getParentName() != null && element.getParentName().equals(elem_called.getParentName())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\n\t\t\t//if they are son - father\n\t\t\tif(element.getParentName() != null && element.getParentName().equals(elem_called.getIdentifier())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\t\t\t\n\t\t}\n\t\tif (relatives.size() == element.getRefFromThis().size()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean checkPreviousRefs(String ref) {\n\t\t// Prevent stack overflow, when an unlock happens from inside here:\n\t\tList<String> checked = (List<String>) threadLocalManager.get(TwoFactorAuthenticationImpl.class.getName());\n\t\tif (checked == null) {\n\t\t\tchecked = new ArrayList<String>();\n\t\t\tthreadLocalManager.set(TwoFactorAuthenticationImpl.class.getName(), checked);\n\t\t}\n\t\tif (checked.contains(ref)) {\n\t\t\treturn false; // This allows the required entity to load.\n\t\t}\n\t\ttry {\n\t\t\tchecked.add(ref);\n\t\t\treturn findSiteId(ref);\n\t\t} finally {\n\t\t\tif(!checked.isEmpty()) {\n\t\t\t\tchecked.remove(checked.size()-1);\n\t\t\t}\n\t\t}\n\t}", "boolean hasEnclosingInstance(ClassType encl);", "public boolean hasIntermediary() { return true; }", "boolean isResolvable(Class<?> type);", "@Test\n public void testVerifyLoopTerminatesWhenCycleFound() throws Exception {\n // Add more mocking detail to our dependencies first.\n // ----------------------------------------------------\n\n DepChaser sut = createSut();\n\n // First mock our dependencyMap to know about variables a thru f\n when(_dependencyMap.keySet()).thenReturn(new HashSet<>(Arrays.asList(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\")));\n\n // ----------------------------------------------------------------------------------\n // we're going to make it so it takes 2 iterations in DepChaser to handle a thru f\n // ----------------------------------------------------------------------------------\n\n // The 1st time, our mocked checker is going to checkout no cycles in a, b, c variables\n ChildrenDependencyChecker checker1 = mock(ChildrenDependencyChecker.class);\n Exception exception = new Exception(\"fake exception\");\n when(checker1.run()).thenThrow(exception);\n\n when(_dependencyCheckerFactory.create(\"a\", _dependencyMap, new HashSet<>())).thenReturn(checker1);\n\n Assert.assertFalse(sut.validateNoDependencyCycles());\n verify(checker1, times(1)).run();\n\n // Verify no variables were verified\n Assert.assertEquals(new HashSet<>(), sut.getVerifiedVariables());\n // Verify the _dependencyCheckerFactory was only called once.\n verify(_dependencyCheckerFactory, times(1)).create(\"a\", _dependencyMap, new HashSet<>());\n verifyNoMoreInteractions(_dependencyCheckerFactory);\n }", "private void checkRelationship(Relationship relationship, ImportConflicts importConflicts) {\n RelationshipType relationshipType = null;\n\n if (StringUtils.isEmpty(relationship.getRelationshipType())) {\n importConflicts.addConflict(\n relationship.getRelationship(), \"Missing property 'relationshipType'\");\n } else {\n relationshipType = relationshipTypeCache.get(relationship.getRelationshipType());\n }\n\n if (relationship.getFrom() == null\n || getUidOfRelationshipItem(relationship.getFrom()).isEmpty()) {\n importConflicts.addConflict(relationship.getRelationship(), \"Missing property 'from'\");\n }\n\n if (relationship.getTo() == null || getUidOfRelationshipItem(relationship.getTo()).isEmpty()) {\n importConflicts.addConflict(relationship.getRelationship(), \"Missing property 'to'\");\n }\n\n if (relationship.getFrom().equals(relationship.getTo())) {\n importConflicts.addConflict(\n relationship.getRelationship(), \"Self-referencing relationships are not allowed.\");\n }\n\n if (importConflicts.hasConflicts()) {\n return;\n }\n\n if (relationshipType == null) {\n importConflicts.addConflict(\n relationship.getRelationship(),\n \"relationshipType '\" + relationship.getRelationshipType() + \"' not found.\");\n return;\n }\n\n addRelationshipConstraintConflicts(\n relationshipType.getFromConstraint(),\n relationship.getFrom(),\n relationship.getRelationship(),\n importConflicts);\n addRelationshipConstraintConflicts(\n relationshipType.getToConstraint(),\n relationship.getTo(),\n relationship.getRelationship(),\n importConflicts);\n }", "protected boolean isReferenced() {\r\n return mReferenced || mUsers.size() > 0;\r\n }", "@Test\n public void testVerifyLoopInvokesDependenciesProperlyWhenNoCycles() throws Exception {\n // ----------------------------------------------------\n // Add more mocking detail to our dependencies first.\n // ----------------------------------------------------\n\n DepChaser sut = createSut();\n\n // First mock our dependencyMap to know about variables a thru f\n when(_dependencyMap.keySet()).thenReturn(new HashSet<>(Arrays.asList(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\")));\n\n // ----------------------------------------------------------------------------------\n // we're going to make it so it takes 2 iterations in DepChaser to handle a thru f\n // ----------------------------------------------------------------------------------\n\n // The 1st time, our mocked checker is going to checkout no cycles in a, b, c variables\n ChildrenDependencyChecker checker1 = mockChildrenDependencyChecker(Arrays.asList(\"a\", \"b\", \"c\"));\n // The 2nd time, our mocked checker is going to checkout no cycles in d, e, f variables\n ChildrenDependencyChecker checker2 = mockChildrenDependencyChecker(Arrays.asList(\"d\", \"e\", \"f\"));\n\n when(_dependencyCheckerFactory.create(\"a\", _dependencyMap, new HashSet<>())).thenReturn(checker1);\n when(_dependencyCheckerFactory.create(\"d\", _dependencyMap, new HashSet<>(Arrays.asList(\"a\", \"b\", \"c\")))).thenReturn(checker2);\n\n Assert.assertTrue(sut.validateNoDependencyCycles());\n verify(checker1, times(1)).run();\n verify(checker2, times(1)).run();\n\n // Verify all variables were verified\n Assert.assertEquals(_dependencyMap.keySet(), sut.getVerifiedVariables());\n }", "private void findCycles(ClassDecl decl, String className, int numClasses){\n\t //base case: our decl is null, return and break out of this method\n if (decl == null) {\n return;\n }\n //base case: if numClasses is 0 and we see the name, its a cycle, throw error\n else if(numClasses == 0 || decl.name.equals(className)) {\n errorMsg.error(decl.pos, \"Circular reference found: \" + decl.name);\n }\n else { //recursive case, call findCycles on the remaining links\n findCycles(decl.superLink, className, numClasses - 1);\n }\n }", "protected void checkLinkage(String[] paths) {\n\t\tcheckImport(paths);\n\t\tcheckInclude(paths);\n\t}", "boolean isCyclic() {\n\n // if we are processing the course currently that is a cyclic graph and we can't\n // do all the courses\n if (processed) {\n return false;\n }\n\n // if we already visited the course and no cycle was found then we can return\n if (visited) {\n return true;\n }\n //else we set the course and visited\n visited = true;\n\n //we then loop through all the prerequisites performing the same check\n for (Course preCourse : pre) {\n if (preCourse.isCyclic()) {\n return true;\n }\n }\n\n //if we arrive here then we have gone through all the combinations and there is no cyclic graph\n visited = false;\n processed = true;\n return false;\n }", "interface ExternalModuleChecker {\n\t/**\n\t * To check is external-module registered well\n\t *\n\t * @param module module to check\n\t * @return true if registered well\n\t */\n\tboolean isValidModule(ExternalModule module);\n}", "private void register( Class<?> clazz ) throws IllegalStateException\r\n {\r\n\t if ( cachedDependencies.containsKey( clazz ) )\r\n\t\t return;\r\n\t Set<Class<?>> inProgress = cycleDetect.get();\r\n\t if ( inProgress == null )\r\n\t {\r\n\t\t inProgress = new HashSet<Class<?>>();\r\n\t\t cycleDetect.set( inProgress );\r\n\t }\r\n\t if ( inProgress.contains( clazz ) )\r\n\t {\r\n\t\t throw new IllegalStateException( \"Cyclic dependency detected on attempt to inject an instance of \" + clazz );\r\n\t }\r\n\t else\r\n\t\t inProgress.add( clazz );\r\n }", "public boolean detectCycles()\n {\n try {\n execute(null, null);\n } catch (CycleDetectedException ex) {\n return true;\n }\n\n return false;\n }", "boolean hasRecursive();", "private boolean isDependentOn(BuildTask dependency, BuildTask dependant) {\n return dependant.getDependencies().contains(dependency);\n }", "@Test\n public void shouldThrowCyclicDependencyExceptionIfACycleIsDetected_DownstreamOfCurrentWasUpstreamOfCurrentAtSomePoint() {\n String grandParent = \"grandParent\";\n String parent = \"parent\";\n String child = \"child\";\n String currentPipeline = \"current\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n graph.addDownstreamNode(new PipelineDependencyNode(child, child), currentPipeline);\n graph.addDownstreamNode(new PipelineDependencyNode(grandParent, grandParent), child);\n graph.addUpstreamNode(new PipelineDependencyNode(parent, parent), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(grandParent, grandParent), null, parent);\n graph.addUpstreamMaterialNode(new SCMDependencyNode(\"g\",\"g\",\"git\") , null, grandParent, new MaterialRevision(null));\n graph.addUpstreamMaterialNode(new SCMDependencyNode(\"g\",\"g\",\"git\") , null, parent, new MaterialRevision(null));\n\n assertThat(graph.hasCycle(), is(true));\n }", "@Test\n public void shouldThrowCyclicDependencyExceptionIfACycleIsDetected_CycleDetectedInUpstreamNodes() {\n\n String a = \"A\";\n String b = \"B\";\n String c = \"C\";\n ValueStreamMap graph = new ValueStreamMap(b, null);\n graph.addUpstreamNode(new PipelineDependencyNode(a, a), null, b);\n graph.addUpstreamMaterialNode(new SCMDependencyNode(\"g\",\"g\",\"git\"), null, a, new MaterialRevision(null));\n graph.addDownstreamNode(new PipelineDependencyNode(a, a), b);\n graph.addDownstreamNode(new PipelineDependencyNode(c, c), a);\n\n assertThat(graph.hasCycle(), is(true));\n }", "@Test\n public void shouldNotReportValidReferences() {\n\n Compilation compilation = compile();\n assertThat(compilation).failed();\n\n List<Diagnostic<? extends JavaFileObject>> collect = compilation.errors().stream()\n .filter(e -> e.getMessage(null).indexOf(\"must not access org.moditect.deptective.plugintest.basic.bar\") == -1)\n .collect(Collectors.toList());\n\n assertThat(\n \"Test-Class 'Foo' should not have any invalid dependencies beside those to 'org.moditect.deptective.plugintest.basic.bar*'\",\n collect, Is.is(Lists.emptyList()));\n }", "public boolean canBeReferencedByIDREF() {\n/* 171 */ return false;\n/* */ }", "public boolean hasAtLeastOneReference(Project project);", "public synchronized void check() {\n if (stack == null) {\n stack = Thread.currentThread().getStackTrace();\n } else {\n IllegalStateException ex =\n new IllegalStateException(\"This is the stack of the previous call\");\n ex.setStackTrace(stack);\n throw ex;\n }\n }", "public static void verify() throws IllegalStateException{\n\t\tif (Blocks.dragon_egg.getClass() != BlockDragonEggCustom.class){\n\t\t\tthrow new IllegalStateException(\"Mod conflict detected - Dragon Egg class mismatch: \"+Blocks.dragon_egg.getClass().getName());\n\t\t}\n\n\t\tif (Blocks.end_portal.getClass() != BlockEndPortalCustom.class){\n\t\t\tthrow new IllegalStateException(\"Mod conflict detected - End Portal class mismatch: \"+Blocks.end_portal.getClass().getName());\n\t\t}\n\n\t\tif (Blocks.end_portal_frame.getClass() != BlockEndPortalFrameCustom.class){\n\t\t\tthrow new IllegalStateException(\"Mod conflict detected - End Portal Frame class mismatch: \"+Blocks.end_portal_frame.getClass().getName());\n\t\t}\n\t\t\n\t\tif (BiomeGenBase.sky.getClass() != BiomeGenHardcoreEnd.class){\n\t\t\tthrow new IllegalStateException(\"Mod conflict detected - End biome class mismatch: \"+BiomeGenBase.sky.getClass().getName());\n\t\t}\n\t\t\n\t\tif (getWorldProviderType(1) != WorldProviderHardcoreEnd.class){\n\t\t\tthrow new IllegalStateException(\"Mod conflict detected - End world provider class mismatch: \"+getWorldProviderType(1).getName());\n\t\t}\n\t\t\n\t\tif (EntityList.stringToClassMapping.get(\"Enderman\") != EntityMobEnderman.class){\n\t\t\tthrow new IllegalStateException(\"Mod conflict detected - Enderman class mismatch: \"+((Class)EntityList.stringToClassMapping.get(\"Enderman\")).getName());\n\t\t}\n\t\t\n\t\tif (EntityList.stringToClassMapping.get(\"Silverfish\") != EntityMobSilverfish.class){\n\t\t\tthrow new IllegalStateException(\"Mod conflict detected - Silverfish class mismatch: \"+((Class)EntityList.stringToClassMapping.get(\"Silverfish\")).getName());\n\t\t}\n\t\t\n\t\tif (EntityList.stringToClassMapping.get(\"EnderCrystal\") != EntityBlockEnderCrystal.class){\n\t\t\tthrow new IllegalStateException(\"Mod conflict detected - Ender Crystal class mismatch: \"+((Class)EntityList.stringToClassMapping.get(\"EnderCrystal\")).getName());\n\t\t}\n\t}", "public void connectDependencies();", "boolean isWeakRelationship();", "private boolean isDependedOn(ModelPath candidate) {\n Transformer<Iterable<ModelPath>, BoundModelMutator<?>> extractInputPaths = new Transformer<Iterable<ModelPath>, BoundModelMutator<?>>() {\n public Iterable<ModelPath> transform(BoundModelMutator<?> original) {\n return Iterables.transform(original.getInputs(), new Function<ModelBinding<?>, ModelPath>() {\n @Nullable\n public ModelPath apply(ModelBinding<?> input) {\n return input.getPath();\n }\n });\n }\n };\n\n Transformer<List<ModelPath>, List<ModelPath>> passThrough = Transformers.noOpTransformer();\n\n return hasModelPath(candidate, mutators.values(), extractInputPaths)\n || hasModelPath(candidate, usedMutators.values(), passThrough)\n || hasModelPath(candidate, finalizers.values(), extractInputPaths)\n || hasModelPath(candidate, usedFinalizers.values(), passThrough);\n }", "private static <T extends BaseVertex, E extends BaseEdge> void sanityCheckGraph(final BaseGraph<T,E> graph, final Haplotype refHaplotype) {\n sanityCheckReferenceGraph(graph, refHaplotype);\n }", "private static boolean isAccessible(Class<?>[] barriers, Class<?> from, Class<?> to) {\n if ((to == null) || !from.isAssignableFrom(to)) {\n // no way to reach each other by walking up\n return false;\n }\n\n for (int i = 0; i < barriers.length; i++) {\n if (to == barriers[i]) {\n return false;\n }\n }\n\n if (from == to) {\n return true;\n }\n\n //\n // depth first search\n //\n if (isAccessible(barriers, from, to.getSuperclass())) {\n return true;\n }\n\n Class[] interfaces = to.getInterfaces();\n\n for (int i = 0; i < interfaces.length; i++) {\n if (isAccessible(barriers, from, interfaces[i])) {\n return true;\n }\n }\n\n return false;\n }", "private void checkDeclaredExceptionsMatch() {\n\t\tfor (Map.Entry<Method, AssistedConstructor<?>> entry : factoryMethodToConstructor.entrySet()) {\n\t\t\tfor (Class<?> constructorException : entry.getValue().getDeclaredExceptions()) {\n\t\t\t\tif (!isConstructorExceptionCompatibleWithFactoryExeception(constructorException, entry.getKey()\n\t\t\t\t\t\t.getExceptionTypes())) {\n\t\t\t\t\tthrow newConfigurationException(\"Constructor %s declares an exception, but no compatible \"\n\t\t\t\t\t\t\t+ \"exception is thrown by the factory method %s\", entry.getValue(), entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "boolean hasRef();", "public void testAllPackagesCycle() {\n Collection packages = jdepend.analyze();\n\n for (Object aPackage : packages) {\n JavaPackage p = (JavaPackage) aPackage;\n\n if (p.containsCycle()) {\n System.out.println(\"\\n***Package: \" + p.getName() + \".\");\n System.out.println();\n System.out.println(\n \"This package participates in a package cycle. In the following \" +\n \"\\nlist, for each i, some class in package i depends on some \" +\n \"\\nclass in package i + 1. Please find the cycle and remove it.\");\n\n List l = new LinkedList();\n p.collectCycle(l);\n System.out.println();\n\n for (int j = 0; j < l.size(); j++) {\n JavaPackage pack = (JavaPackage) l.get(j);\n System.out.println((j + 1) + \".\\t\" + pack.getName());\n }\n\n System.out.println();\n }\n }\n\n if (jdepend.containsCycles()) {\n fail(\"Package cycle(s) found!\");\n }\n }", "void check()\n {\n final ScopeSymbolValidator validator = new ScopeSymbolValidator();\n for (ServiceMethod method : methods)\n validator.validate(method.getName(), method);\n }", "public boolean dependsOn(ReferenceTable t2) {\r\n\t\tString[] t2Dependants = t2.dependants;\r\n\t\tif (t2Dependants != null) {\r\n\t\t\tfor(String dependant : t2Dependants) {\r\n\t\t\t\tif (dependant.equals(tableName)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\treturn false;\r\n\t}", "public final boolean isReferencedAtMostOnce() {\n return this.getReferences(false, true).size() == 0 && this.getReferences(true, false).size() <= 1;\r\n }", "@Override\n public boolean isReferenceTo(PsiElement element) {\n if (isLocalScope(element)) {\n return false;\n }\n\n if (resolve() == element) {\n return true;\n }\n final String referencedName = myElement.getReferencedName();\n if (element instanceof PyFunction && Comparing.equal(referencedName, ((PyFunction)element).getName()) &&\n ((PyFunction)element).getContainingClass() != null && !PyNames.INIT.equals(referencedName)) {\n final PyExpression qualifier = myElement.getQualifier();\n if (qualifier != null) {\n final TypeEvalContext context = TypeEvalContext.fast();\n PyType qualifierType = qualifier.getType(context);\n if (qualifierType == null || qualifierType instanceof PyTypeReference) {\n return true;\n }\n }\n }\n return false;\n }", "boolean isResolvable(String name);", "public interface Dependable {\n\n /**\n * This method is called by the Dependency Manager when the\n * Dependable object should be updated.\n * This method is called when the actual definition or dependencies of \n * an object change. Expressions need to be rebuilt.\n *\n * @param updatingObjects a set of all the objects that have been\n *\t\t\t or will be updated\n */\n public void dependencyUpdateDef(Set updatingObjects);\n\n /**\n * This method is called by the Dependency Manager when the\n * Dependable object should be updated.\n * This method is called when only a value changes, and the type\n * of the value does not change. An example of this kind of update\n * is when the value of a variable changes, but the definition of\n * it does not. Expressions do not have to be rebuilt.\n *\n * @param updatingObjects a set of all the objects that have been\n *\t\t\t or will be updated\n */\n public void dependencyUpdateVal(Set updatingObjects);\n\n /**\n * @return the depdenency graph node for this class\n */\n public DependencyNode dependencyNode();\n\n}", "protected boolean haveDependingFields(EventType event1, EventType event2) {\r\n\t\treturn !getCommonFields(event1, event2).isEmpty();\r\n\t}", "boolean isCircular(String s);", "private void initializeQueue() {\n this.queue.clear();\n for (Map.Entry<String, NodeT> entry : nodeTable.entrySet()) {\n if (!entry.getValue().hasDependencies()) {\n this.queue.add(entry.getKey());\n }\n }\n if (queue.isEmpty()) {\n throw logger.logExceptionAsError(new IllegalStateException(\"Detected circular dependency\"));\n }\n }", "private boolean evaluateForFeatureDependency(BaseFeature feature) {\n\t\tif (!feature.getClass().getSuperclass().equals(BaseFeature.class)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfor (BaseFeature featureBase : features) {\n\t\t\tif (CollectionUtils.isNotEmpty(featureBase.getRequiredFeatures())) {\n\t\t\t\tfor (BaseFeature requiredFeature : featureBase.getRequiredFeatures()) {\n\t\t\t\t\tif (feature == requiredFeature) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n\tpublic void typeCheck()\n\t{\n\t\t// Check for module name duplication\n\n\t\tboolean nothing = true;\n\t\tboolean hasFlat = false;\n\n\t\tfor (AModuleModules m1 : modules)\n\t\t{\n\t\t\tfor (AModuleModules m2 : modules)\n\t\t\t{\n\t\t\t\tif (m1 != m2 && m1.getName().equals(m2.getName()))\n\t\t\t\t{\n\t\t\t\t\tTypeChecker.report(3429, \"Module \" + m1.getName()\n\t\t\t\t\t\t\t+ \" duplicates \" + m2.getName(), m1.getName().getLocation());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (m1.getIsFlat())\n\t\t\t{\n\t\t\t\thasFlat = true;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (hasFlat && Settings.release == Release.CLASSIC)\n\t\t\t\t{\n\t\t\t\t\tTypeChecker.report(3308, \"Cannot mix modules and flat specifications\", m1.getName().getLocation());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!m1.getTypeChecked())\n\t\t\t{\n\t\t\t\tnothing = false;\n\t\t\t}\n\t\t}\n\n\t\tif (nothing)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n \t\t// Mark top level definitions of flat specifications as used\n \t\tnew PDefinitionAssistantTC(new TypeCheckerAssistantFactory());\n \t\t\n \t\tfor (AModuleModules module: modules)\n \t\t{\n \t\t\tif (module instanceof CombinedDefaultModule)\n \t\t\t{\n\t \t\t\tfor (PDefinition definition: module.getDefs())\n\t \t\t\t{\n \t\t\t\t\tassistantFactory.createPDefinitionAssistant().markUsed(definition);\n\t \t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n\t\t// Generate implicit definitions for pre_, post_, inv_ functions etc.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tEnvironment env = new ModuleEnvironment(assistantFactory, m);\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().implicitDefinitions(m.getDefs(), env);\n\t\t\t}\n\t\t}\n\n\t\t// Exports have to be identified before imports can be processed.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processExports(m); // Populate exportDefs\n\t\t\t}\n\t\t}\n\n\t\t// Process the imports early because renamed imports create definitions\n\t\t// which can affect type resolution.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processImports(m, modules); // Populate importDefs\n\t\t\t}\n\t\t}\n\n\t\t// Create a list of all definitions from all modules, including\n\t\t// imports of renamed definitions.\n\n\t\tList<PDefinition> alldefs = new Vector<PDefinition>();\n\t\tList<PDefinition> checkDefs = new Vector<PDefinition>();\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tfor (PDefinition d : m.getImportdefs())\n\t\t\t{\n\t\t\t\talldefs.add(d);\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tcheckDefs.add(d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tfor (PDefinition d : m.getDefs())\n\t\t\t{\n\t\t\t\talldefs.add(d);\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tcheckDefs.add(d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Attempt type resolution of unchecked definitions from all modules.\n\t\tEnvironment env = new FlatCheckedEnvironment(assistantFactory, alldefs, NameScope.NAMESANDSTATE);\n\t\tTypeCheckVisitor tc = new TypeCheckVisitor();\n\t\tfor (PDefinition d : checkDefs)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tassistantFactory.createPDefinitionAssistant().typeResolve(d, tc, new TypeCheckInfo(new TypeCheckerAssistantFactory(), env));\n\t\t\t} catch (TypeCheckException te)\n\t\t\t{\n\t\t\t\treport(3430, te.getMessage(), te.location);\n\t\t\t} catch (AnalysisException te)\n\t\t\t{\n\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t}\n\t\t}\n\n\t\t// Proceed to type check all definitions, considering types, values\n\t\t// and remaining definitions, in that order.\n\n\t\tfor (Pass pass : Pass.values())\n\t\t{\n\t\t\tfor (AModuleModules m : modules)\n\t\t\t{\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tEnvironment e = new ModuleEnvironment(assistantFactory, m);\n\n\t\t\t\t\tfor (PDefinition d : m.getDefs())\n\t\t\t\t\t{\n\t\t\t\t\t\t// System.out.println(\"Number of Defs: \" + m.getDefs().size());\n\t\t\t\t\t\t// System.out.println(\"Def to typecheck: \" + d.getName());\n\t\t\t\t\t\tif (d.getPass() == pass)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\td.apply(tc, new TypeCheckInfo(assistantFactory, e, NameScope.NAMES));\n\t\t\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t\t} catch (TypeCheckException te)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treport(3431, te.getMessage(), te.location);\n\t\t\t\t\t\t\t} catch (AnalysisException te)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// System.out.println(\"Number of Defs: \" + m.getDefs().size());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Report any discrepancies between the final checked types of\n\t\t// definitions and their explicit imported types.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\t// TODO\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processImports(m, modules); // Re-populate importDefs\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t// TODO\n\t\t\t\t\tassistantFactory.createAModuleModulesAssistant().typeCheckImports(m);\n\t\t\t\t\t// m.typeCheckImports(); // Imports compared to exports\n\t\t\t\t} catch (TypeCheckException te)\n\t\t\t\t{\n\t\t\t\t\treport(3432, te.getMessage(), te.location);\n\t\t\t\t} catch (AnalysisException te)\n\t\t\t\t{\n\t\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Any names that have not been referenced or exported produce \"unused\"\n\t\t// warnings.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().unusedCheck(m.getImportdefs());\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().unusedCheck(m.getDefs());\n\t\t\t}\n\t\t}\n\t}", "boolean isRecursive();", "public void checkRep() {\n\t\tif (parent == null || child == null || l == null) {\n\t\t\tthrow new RuntimeException(\"Edge values can never be null.\");\n\t\t}\n\t}", "@Test\n public void shouldNotAddDuplicateDependents() {\n String currentPipeline = \"p5\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n Node p4 = graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n\n assertThat(p4.getChildren().size(), is(1));\n VSMTestHelper.assertThatNodeHasChildren(graph, \"p4\", 0, \"p5\");\n }", "private boolean isInstanceOfNoAnnotationURLClassLoader(ClassLoader loader)\r\n {\r\n Class parent = loader.getClass();\r\n while (parent != null)\r\n {\r\n if (\"NoAnnotationURLClassLoader\".equals(parent.getSimpleName()))\r\n {\r\n return true;\r\n }\r\n parent = parent.getSuperclass();\r\n }\r\n return false;\r\n }", "public void shouldNotGc() {\n reachabilityReferenceChain = new Reference(\n new SoftReference(\n new Reference(\n new WeakReference(\n new SoftReference(\n new PhantomReference(new Object(), referenceQueue))))));\n }", "private Boolean checkCycle() {\n Node slow = this;\n Node fast = this;\n while (fast.nextNode != null && fast.nextNode.nextNode != null) {\n fast = fast.nextNode.nextNode;\n slow = slow.nextNode;\n if (fast == slow) {\n System.out.println(\"contains cycle\");\n return true;\n }\n }\n System.out.println(\"non-cycle\");\n return false;\n }", "private void validateWebXmlReferences(GraphContext context)\n {\n WebXmlService webXmlService = new WebXmlService(context);\n Iterator<WebXmlModel> models = webXmlService.findAll().iterator();\n\n // There should be at least one file\n Assert.assertTrue(models.hasNext());\n WebXmlModel model = models.next();\n\n // and only one file\n Assert.assertFalse(models.hasNext());\n\n Assert.assertEquals(\"Sample Display Name\", model.getDisplayName());\n\n int numberFound = 0;\n for (EnvironmentReferenceModel envRefModel : model.getEnvironmentReferences())\n {\n Assert.assertEquals(\"jdbc/myJdbc\", envRefModel.getName());\n Assert.assertEquals(\"javax.sql.DataSource\", envRefModel.getReferenceType());\n numberFound++;\n }\n\n // there is only one env-ref\n Assert.assertEquals(1, numberFound);\n }", "private void resolveDependency(Set<Node> availableBeans, Node node,\n\t\t\tDependency dependency) {\n\t\tfinal ClassItem classItem = dependency.getTarget();\n\t\tType type;\n\t\tif(classItem.isMethod()) {\n\t\t\tMethod method = (Method) classItem;\n\t\t\tParameter parameter = method.getParameters().get(0);\n\t\t\ttype = parameter.getType();\n\t\t} else { // attribute\n\t\t\tAttribute attribute = (Attribute) classItem;\n\t\t\ttype = attribute.getType();\n\t\t}\n\t\tboolean collection = false;\n if(type.isArray()) {\n\t\t\ttype = type.asArrayType().getInnerType();\n\t\t\tcollection = true;\n\t\t} else if(type.isClassType() && ClassModelUtil.isCollection(type.asClassType())) {\n\t\t\t List<Type> typeParameters = type.asClassType().getTypeParameters();\n\t\t\t type = typeParameters.size() == 1 ? typeParameters.get(0) : null;\n\t\t\t collection = true;\n\t\t}\n if(type != null && type.isBasic()) { // Won't inject basic types\n\t\t\ttype = null;\n\t\t}\n\t\tif(type != null) {\n\t\t\tfinal ClassType targetType = type.asClassType();\n Set<Node> candidates = getCandidates(availableBeans, targetType);\n if((candidates.size() == 1 && !collection) || (candidates.size() > 0 && collection && !candidates.contains(node))) {\n\t\t\t\t// Resolved dependency!\n\t\t\t\tdependency.setNature(collection ? IoCModelUtil.getCollectionDependencyNature(node, candidates) :\n\t\t\t\t\tIoCModelUtil.getDependencyNature(node, candidates.iterator().next()));\n\t\t\t\tfor (Node candidate : candidates) {\n\t\t\t\t\tcreateInjection(node, candidate, dependency);\n\t\t\t\t}\n\t\t\t} else if(classItem.isAttribute()) {\n\t\t\t\t// Add unresolved injection nature to associations\n\t\t\t\tcreateUnresolvedInjections(node, dependency, candidates);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public Object caseRDependency(RDependency object) {\n\t\treturn null;\n\t}", "Set<ResolvedType> dependencies(ModelContext context);", "private boolean backTrackUses(ImportPkg ip) {\n if (Debug.packages) {\n Debug.println(\"backTrackUses: check - \" + ip.pkgString());\n }\n if (tempBackTracked.contains(ip.bpkgs)) {\n return false;\n }\n tempBackTracked.add(ip.bpkgs);\n Iterator i = getPackagesProvidedBy(ip.bpkgs).iterator();\n if (i.hasNext()) {\n do {\n\tExportPkg ep = (ExportPkg)i.next();\n\tboolean foundUses = false;\n\tfor (Iterator ii = ep.pkg.importers.iterator(); ii.hasNext(); ) {\n\t ImportPkg iip = (ImportPkg)ii.next();\n\t if (iip.provider == ep) {\n\t if (backTrackUses(iip)) {\n\t foundUses = true;\n\t }\n\t }\n\t}\n\tif (!foundUses) {\n\t checkUses(ep);\n\t}\n } while (i.hasNext());\n return true;\n } else {\n return false;\n }\n }" ]
[ "0.72775054", "0.66153425", "0.6373281", "0.6233785", "0.6141149", "0.61370987", "0.6101231", "0.5949259", "0.5745474", "0.5625306", "0.56070596", "0.55898136", "0.55618584", "0.5552403", "0.55376446", "0.55187464", "0.5479752", "0.5448875", "0.5418887", "0.54090506", "0.5385928", "0.53258884", "0.52834344", "0.5264532", "0.52609634", "0.5260546", "0.5244734", "0.5214398", "0.5212949", "0.520896", "0.5204044", "0.5199931", "0.5112852", "0.5109633", "0.5106954", "0.510321", "0.5091358", "0.5084077", "0.50816566", "0.50801355", "0.50766593", "0.5076101", "0.50699544", "0.5063012", "0.5062961", "0.50438184", "0.5034277", "0.50333685", "0.50329316", "0.50295633", "0.5019729", "0.5019186", "0.50141764", "0.50095826", "0.50062793", "0.5004741", "0.5000882", "0.49778444", "0.49604043", "0.49456945", "0.49449375", "0.49442026", "0.49409467", "0.493823", "0.49379116", "0.49321997", "0.49300772", "0.49245837", "0.49181318", "0.49153998", "0.48882565", "0.48872742", "0.4876078", "0.4870585", "0.48673958", "0.4852723", "0.4850839", "0.48344085", "0.48236886", "0.48217663", "0.48182902", "0.4814093", "0.480881", "0.48007938", "0.4797793", "0.47935003", "0.4793384", "0.4792722", "0.4787762", "0.47835076", "0.47771978", "0.47755834", "0.47748148", "0.47680014", "0.47666866", "0.47666672", "0.47642937", "0.4763891", "0.4760367", "0.47589713" ]
0.51937944
32
check last char of an element with first char of the other
boolean checkChar(String s1, String s2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean matches(String first, String last) {\n\t\treturn false;\r\n\t}", "public boolean frontAgain(String str) {\r\n if (str.length() > 1 && str.substring(0, 2).equals(str.substring(str.length() - 2))) {\r\n return true;\r\n }\r\n return false;\r\n }", "@Test\n public void whenEndsWithPrefixThenTrue() {\n char[] word = {'H', 'e', 'l', 'l', 'o'};\n char[] post = {'l', 'o'};\n boolean result = ArrayChar.endsWith(word, post);\n assertThat(result, is(true));\n }", "public static boolean differByOne(String word, String ladderLast) {\n if (word.length() != ladderLast.length()) {\n return false;\n }\n int count = 0;\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) != ladderLast.charAt(i)) {\n count++;\n }\n }\n return (count == 1);\n }", "private boolean alphabCheck(String first, String second) {\n\t\tif (first.length() == 1 || second.length() == 1) {\n\t\t\tif (first.compareTo(second) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) == 0) {\n\t\t\t\t\treturn alphabCheck(first.substring(1, first.length()),second.substring(1,second.length()));\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean translateWith2ExchangedChars(String input1, String input2) {\n if (StringUtils.isBlank(input1) || StringUtils.isBlank(input2) || input1.length() != input2.length()) {\n return false;\n }\n if (input1.equals(input2)) {\n for (int i = 0; i < input1.length(); i++) {\n char current = input1.charAt(i);\n if (input1.lastIndexOf(current) != i) {\n return true;\n }\n }\n return false;\n } else {\n int first = -1, second = -1;\n for (int i = 0; i < input1.length(); i++) {\n if (input1.charAt(i) != input2.charAt(i)) {\n if (first == -1) {\n first = i;\n } else if (second == -1) {\n second = i;\n } else {\n return false;\n }\n }\n }\n return input1.charAt(first) == input2.charAt(second)\n && input1.charAt(second) == input2.charAt(first);\n }\n }", "public static boolean endOther(String a, String b) {\n String larger, smaller;\n if (a.length() > b.length()){\n larger = a;\n smaller = b;\n }\n else{\n larger = b;\n smaller = a;\n }\n larger = larger.toLowerCase();\n smaller = smaller.toLowerCase();\n int i = larger.length() - smaller.length();\n return ((larger.substring(i, larger.length())).equals(smaller));\n }", "private boolean recursiveHelper2(Deque<Character> item, CharacterComparator cc) {\n if (item.size() <= 1) {\n return true;\n }\n Character i = item.removeFirst();\n Character j = item.removeLast();\n if (cc.equalChars(i, j)) {\n return recursiveHelper2(item, cc);\n } else {\n return false;\n }\n }", "public int isSameCharaters(String input) {\n\t\tif(input.length() > 1 && input.charAt(0) == input.charAt(input.length() - 1)) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "private boolean oneCharOff( String word1, String word2 )\n {\n if( word1.length( ) != word2.length( ) )\n return false;\n int diffs = 0;\n for( int i = 0; i < word1.length( ); i++ )\n if( word1.charAt( i ) != word2.charAt( i ) )\n if( ++diffs > 1 )\n return false;\n return diffs == 1;\n }", "@Test\n\tpublic void testareFirstAndLastTwoCharactersTheSame_BasicNegative() \n\t{\n\t\tassertFalse(helper.areFirstAndLastTwoCharactersTheSame(\"ABCD\"));\n\t}", "private static boolean checkFirstLastTag(String line) {\n return line.charAt(1) != line.charAt(line.length() - 2);\n }", "@Test\n public void testAreFirstAndLastCharactersTheSame() {\n \n assertTrue(stringHelper.areFirstAndLastCharactersTheSame(\"AA\"));\n \n }", "private boolean secondCharIs(char expected) {\n if (reachedEnd()) {\n return false;\n }\n\n if (source.charAt(current) != expected) {\n return false;\n }\n\n current++;\n return true;\n }", "private static boolean afterStar(String v1, String v2) {\n\t\t\n\t\tif(v1.length() < (v2.length() - 1) ) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tchar[] value1 = v1.toCharArray();\n\t\tchar[] value2 = v2.toCharArray();\n\t\tint i = v1.length() - 1;\n\t\tint j = v2.length() - 1;\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\tif( (value1[i] != value2[j]) && value2[j] != '*') {\n\t\t\t\treturn false;\n\t\t\t}else if(value2[j] == '*') {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\ti--;\n\t\t\tj--;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private boolean equalsChars(char[] first, char[] second) {\n for (int i = 0; i < second.length; i++)\n if (first[i] != second[i])\n return false;\n return true;\n }", "private static boolean isUnique(String str) {\n\t\tfor(char c: str.toCharArray()) {\n\t\t\tif(str.indexOf(c) == str.lastIndexOf(c))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "static boolean isPalindrome(char []str) \n{ \n\tint len = str.length; \n\n\t// single character is always palindrome \n\tif (len == 1) \n\t\treturn true; \n\n\t// pointing to first character \n\tchar ptr1 = str[0]; \n\n\t// pointing to last character \n\tchar ptr2 = str[len-1]; \n\n\twhile (ptr2 > ptr1) \n\t{ \n\t\tif (ptr1 != ptr2) \n\t\t\treturn false; \n\t\tptr1++; \n\t\tptr2--; \n\t} \n\n\treturn true; \n}", "public boolean happyList(ArrayList<String> original) {\n for(int i = 1; i < original.size(); i++){\n ArrayList<Character> lastChars = characterArrayListMaker(original.get(i-1));\n ArrayList<Character> currentChars = characterArrayListMaker(original.get(i));\n boolean compareFlag = false;\n for(Character last : lastChars){\n for(Character current : currentChars){\n if (last.equals(current)){\n compareFlag = true;\n }\n }\n }\n if(!compareFlag){\n return false;\n }\n }\n return true;\n }", "private static boolean ifPalindrome(char[] input, int start, int end){\r\n\t\t//the idea is to scan from 1st to the mid point to see the reverse side char same as the picked one and return\r\n\t\tfor(int i=start;i<=(start+end)/2;i++){ //notice that we use <= other than<\r\n\t\t\tif(input[i] ==input[start+end-i]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we come here that means it is a palindrome for selected start/end\r\n\t\treturn true;\r\n\t}", "public boolean isSubSequence(String x, String y){\n\t\tint j = 0;\n\t\tfor(int i = 0 ; i < x.length() && j< y.length(); i++){\n\t\t\tif(x.charAt(j) == y.charAt(i)){\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\treturn j == x.length();\n\t}", "public static boolean backspaceCompare(String S, String T) {\n char[] arr1 = S.toCharArray();\n char[] arr2 = T.toCharArray();\n StringBuilder sb1 = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for(int i = arr1.length - 1; i >= 0; i--){\n if(arr1[i] == '#'){\n arr1[i] = ' ';\n for(int k = i - 1; k >= 0; k--){\n if(arr1[k] != '#' && arr1[k] != ' '){\n arr1[k] = ' ';\n break;\n }\n }\n }else if(arr1[i] != ' '){\n sb1.append(arr1[i]);\n }\n }\n\n for(int i = arr2.length - 1; i >= 0; i--){\n if(arr2[i] == '#'){\n arr2[i] = ' ';\n for(int k = i - 1; k >= 0; k--){\n if(arr2[k] != '#' && arr2[k] != ' '){\n arr2[k] = ' ';\n break;\n }\n }\n }else if(arr2[i] != ' '){\n sb2.append(arr2[i]);\n }\n }\n// System.out.println(\"sb1:\"+sb1.toString()+\"----sb2:\"+sb2.toString());\n return sb1.toString().equals(sb2.toString());\n }", "int main()\n{\n string str1,str2;\n cin>>str1;\n while(str2!=\"####\"){\n \t\n cin>>str2;\n int len=str1.length();\n if(str1[len-1]==str2[0]){\n \tcout<<str1<<endl;\n }\n else{\n \tbreak;\n \t}\n str1=str2;\n }\n cout<<str1;\n}", "private boolean inSameSuit() {\n for (int i = 0; i < cards.length-2; i++) {\n if (cards[i].charAt(1) != cards[i + 1].charAt(1)) {\n return false;\n }\n }\n \n return true;\n }", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "public String lastChars(String a, String b) {\r\n String result = \"\";\r\n\r\n if (a.isEmpty()) {\r\n result += \"@\";\r\n } else {\r\n result += a.charAt(0);\r\n }\r\n\r\n if (b.isEmpty()) {\r\n result += \"@\";\r\n } else {\r\n result += b.charAt(b.length() - 1);\r\n }\r\n\r\n return result;\r\n }", "public static int canArrangeWords(String arr[])\n {\n // INSERT YOUR CODE HERE\n for(int i=0;i<arr.length;i++){\n for(int j=0;j<arr.length-i-1;j++){\n if(arr[j].charAt(0)>arr[j+1].charAt(0)){\n String temp=arr[j];\n arr[j]=arr[j+1];\n arr[j+1]=temp;\n }\n }\n }\n for(int i=1;i<arr.length;i++){\n if(arr[i].charAt(0)!=arr[i-1].charAt(arr[i-1].length()-1)){\n return -1;\n }\n }\n return 1;\n }", "public boolean isAccepted2(String word) {\r\n\t return word.endsWith(\"baa\");\r\n \r\n }", "public boolean doubleX(String str) {\n int index = 0;\n for (char c : str.toCharArray()) {\n if(index + 1 < str.length() && c == str.charAt(index + 1)){\n return true;\n }\n index++;\n }\n return false;\n }", "private static boolean letterDifferByOne(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n\n int differenceCount = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) != word2.charAt(i)) {\n differenceCount++;\n }\n }\n return (differenceCount == 1);\n }", "public static boolean compareSubstring(List<String> pieces, String s)\n {\n\n boolean result = true;\n int len = pieces.size();\n\n int index = 0;\n\nloop: for (int i = 0; i < len; i++)\n {\n String piece = pieces.get(i);\n\n // If this is the first piece, then make sure the\n // string starts with it.\n if (i == 0)\n {\n if (!s.startsWith(piece))\n {\n result = false;\n break loop;\n }\n }\n\n // If this is the last piece, then make sure the\n // string ends with it.\n if (i == len - 1)\n {\n result = s.endsWith(piece);\n break loop;\n }\n\n // If this is neither the first or last piece, then\n // make sure the string contains it.\n if ((i > 0) && (i < (len - 1)))\n {\n index = s.indexOf(piece, index);\n if (index < 0)\n {\n result = false;\n break loop;\n }\n }\n\n // Move string index beyond the matching piece.\n index += piece.length();\n }\n\n return result;\n }", "private boolean isSubSequence(char str1[], char str2[]) {\n int j = 0;\n int m = str1.length;\n int n = str2.length;\n for (int i=0; i<n&&j<m; i++)\n if (str1[j] == str2[i])\n j++;\n return (j==m);\n }", "private boolean findFullStop(ArrayList<String> parameters) {\n int index = findIndexOfLastWord(parameters);\n if (index == -1) {\n return false;\n }\n return true;\n }", "private static boolean validPalindrome(String s, int head, int tail) {\n\t\tif (tail - head == 0) return true;\n\t\tint left = head, right = tail;\n\t\twhile (left <= right) {\n\t\t\tif (s.charAt(left) != s.charAt(right)) return false;\n\t\t\tleft ++;\n\t\t\tright --;\n\t\t}\n\t\treturn true;\n\t}", "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n \t return false;\n \t}\n \treturn (text[i0+n]<text[i1+n]);\n }", "@Test\r\n public void testEqualChars(){\r\n boolean res1=offByOne.equalChars('c','b');\r\n assertTrue(\"should be true\",res1);\r\n boolean res2=offByOne.equalChars('a','c');\r\n assertFalse(\"should be false\",res2);\r\n }", "public boolean checkPalindromeFormation(String a, String b) {\n int n = a.length();\n return findCommonSubstring(a.toCharArray(), b.toCharArray(), 0, n - 1) ||\n findCommonSubstring(b.toCharArray(), a.toCharArray(), 0, n - 1);\n }", "@Override\n\tpublic boolean isAtEnd()\n\t{\n\t\tif (right.isEmpty())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public int compare(String s, String t1) {\n return t1.charAt(t1.length()-1)-s.charAt(s.length()-1);\n// return s.charAt(4);\n\n }", "char checkMoves(char curr, char last) {\n boolean moved = false;\n switch (curr) {\n case 'R':\n if (last != 'L') {\n if (blankCol != 0) {\n moved = true;\n }\n }\n break;\n case 'L':\n if (last != 'R') {\n if (blankCol != SIZE-1) {\n moved = true;\n }\n }\n break;\n case 'U':\n if (last != 'D') {\n if (blankRow != SIZE - 1) {\n moved = true;\n }\n }\n break;\n case 'D':\n if (last != 'U') {\n if (blankRow != 0) {\n moved = true;\n }\n }\n break;\n }\n if (!moved) {\n return ' ';\n }\n return curr;\n }", "public static boolean isUnique(String s) {\n if (s.length() > 128) return false;\n\n // we dont need to check the last element\n for (int i = 0; i < s.length() - 1; i++){\n String current = \"\";\n current += s.charAt(i);\n// System.out.println(current);\n if (s.substring(i + 1).contains(current))\n return false;\n }\n return true;\n }", "@Test\n public void testEqualChars2() {\n char a = 'a';\n char b = 'b';\n char c = '1';\n char d = '2';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(c, d);\n\n assertTrue(result1);\n assertTrue(result2);\n }", "private static String flipEndChars(String str) {\n if (str.length() < 2) {\n return \"Incompatible.\";\n }\n char firstChar = str.charAt(0);\n char lastChar = str.charAt(str.length() - 1);\n if (firstChar == lastChar) {\n return \"Two\\'s a pair.\";\n }\n return lastChar + str.substring(1, str.length() - 1) + firstChar;\n }", "public boolean isEquivalent(char character, char anothercharacter);", "@Test\n public void testEqualChars1() {\n char a = 'a';\n char b = 'a';\n char c = 'z';\n char d = 'B';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(a, c);\n boolean result3 = offByOne.equalChars(a, d);\n\n assertFalse(result1);\n assertFalse(result2);\n assertFalse(result3);\n }", "private boolean isSmallLexi(String curr, String ori) {\n if (curr.length() != ori.length()) {\n return curr.length() < ori.length();\n }\n for (int i = 0; i < curr.length(); i++) {\n if (curr.charAt(i) != ori.charAt(i)) {\n return curr.charAt(i) < ori.charAt(i);\n }\n }\n return true;\n }", "public static void main(String[] args) {\n String word = \"Computer\";\r\n System.out.println(word.length());\r\nSystem.out.println(word.charAt(0));\r\nSystem.out.println(word.charAt(1));\r\nSystem.out.println(word.charAt(2));\r\nSystem.out.println(word.charAt(3));\r\nSystem.out.println(word.charAt(4));\r\nSystem.out.println(word.charAt(5));\r\nSystem.out.println(word.charAt(6));\r\nSystem.out.println(word.charAt(7));\r\n\r\n//\r\n\r\nString word2 = \"Java\";\r\n if(word2.charAt(0) == 'J');{\r\nSystem.out.println(\"J is first character\");\r\n} \r\n \r\n String word3 = \"civic\";\r\n char first = word3.charAt(0); // index always zero\r\n char last = word.charAt(4); \r\n\r\nif (first == last) {\r\n\tSystem.out.println(\"FIrst and last match\");\r\n} else {\r\n\tSystem.out.println(\" not match\");\r\n}\r\n// always print the last character no matter the length\r\n\r\nString word4 = \"abcdefghijklmnopqrstuvwxyz\";\r\n\r\nchar lastChar = word4.charAt(word4.length()-1);\r\n\r\nSystem.out.println(\"last character of the word \" + word4 + \" is \" + lastChar);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}", "@Test\n public void testEqualChars2()\n {\n assertTrue(offBy2.equalChars('a', 'c')); // true\n assertTrue(offBy2.equalChars('c', 'a')); // true\n assertTrue(offBy2.equalChars('e', 'g')); // true\n\n assertFalse(offBy2.equalChars('C', 'c')); // false\n assertFalse(offBy2.equalChars('a', 'e')); // false\n assertFalse(offBy2.equalChars('z', 'a')); // false\n assertFalse(offBy2.equalChars('k', 's')); // false\n }", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter your first word: \");\n String word1 = scan.next();\n System.out.println(\"Enter your second word: \");\n String word2 = scan.next();\n\n char lastLetter = word1.charAt(word1.length()-1);\n char firstLetter = word2.charAt(0);\n if (lastLetter == firstLetter) {\n System.out.println(word1+word2.substring(1));\n }else {\n System.out.println(word1 + word2);\n\n }\n\n\n }", "public static boolean isPalindrome(String a)\n { \n boolean flag = true; \n //Iterate the string forward and backward and compare one character at a time \n //till middle of the string is reached \n for(int i = 0; i < a.length()/2; i++)\n { \n if(a.charAt(i) != a.charAt(a.length()-i-1))\n { \n flag = false; \n break; \n } \n } \n return flag; \n }", "public static boolean checkTwoStringsAreZeroOrOneEditsAway(String first, String second) {\n if (first.length() == second.length()) {\n return oneEditReplace(first, second);\n }else if(first.length() - 1 == second.length()){\n return oneEditInsert(second, first);\n }else if(first.length() + 1 == second.length())\n return oneEditInsert(first, second);\n\n return false;\n }", "private static boolean beforeStar(String v1, String v2) {\n\t\t\n\t\tif(v1.length() < (v2.length() - 1) ) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tchar[] value1 = v1.toCharArray();\n\t\tchar[] value2 = v2.toCharArray();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint n = v1.length();\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\tif( (value1[i] != value2[j]) && value2[j] != '*') {\n\t\t\t\treturn false;\n\t\t\t}else if(value2[j] == '*') {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t\tj++;\n\t\t\t\n\t\t\tif(i == n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public abstract int lastIndexOf(E e);", "boolean doubleX(String str) {\n int i = str.indexOf(\"x\");\n if (str.length() <= i + 1) {\n return false;\n } else if (str.charAt(i + 1) == 'x') {\n return true;\n } else {\n return false;\n }\n }", "public static boolean hasTrailingChar(char c,String s) {\n \tif(s == null || s.length()==0) {\n \t\treturn false;\n \t}\n \treturn (s.charAt(s.length()-1) == c);\n }", "public boolean endsWithSpecificString(String str, String str2)\r\n{\r\n if(str.length()== str2.length())\r\n {\r\n return compare2Strings(str,str2);\r\n }\r\n else if(str.length()> str2.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return str.endsWith(str2);\r\n }\r\n}", "public static boolean sameFirstLast(int[] nums) {\n\n return nums.length >= 1 && nums[0] == nums[nums.length-1];\n\n }", "private boolean isIncreasing(String s) {\n char[] carray = s.toCharArray();\n int prev = carray[0] - '0';\n\n for(int i = 1; i < carray.length; i++) {\n int cur = carray[i] - '0';\n if (prev > cur) {\n return false;\n }\n prev = cur;\n }\n\n return true;\n }", "public boolean endsWith(\n String... suffix\n ) {\n \t// TODO optimize\n int offset = size() - suffix.length;\n if (offset < 0) return false;\n for(\n int index = 0;\n index < suffix.length;\n index++\n ) {\n if(!suffix[index].equals(this.getSegment(offset+index).toClassicRepresentation())) return false;\n }\n return true; \n }", "@Override\n public int compare(Character char1, Character char2) {\n if(char1.charValue() == char2.charValue()){\n return 0;\n }\n int char1Index = findIndex(char1);\n int char2Index = findIndex(char2);\n if(char1Index >= 0 && char2Index >= 0){\n return char1Index < char2Index ? -1: 1;\n }\n // char1 exists in S and char2 doesn't,then char1 should come first.\n if(char1Index >=0 && char2Index == -1){\n return -1;\n }\n else if(char1Index == -1 && char2Index >=0){\n return 1;\n }\n else{\n return 0;\n }\n }", "private static boolean mirarSiTerminado(char[] a) {\r\n\t\tboolean terminado = true;\r\n\t\tfor (int i = 0; i <= a.length - 1; i++) {// COMPRUEBO QUE NO HAYA '_'\r\n\t\t\tif (a[i] == '_') {\r\n\t\t\t\tterminado = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn terminado;\r\n\t}", "public String tweakFront(String str) {\n\n if(str.substring(0, 1).equalsIgnoreCase(\"a\")){\n\n if(!str.substring(1, 2).equalsIgnoreCase(\"b\")){\n str = str.substring(0, 1) + str.substring(2,str.length());\n }\n \n }else{\n str = str.substring(1);\n \n if(str.substring(0, 1).equalsIgnoreCase(\"b\")){\n \n }else{\n str = str.substring(1);\n }\n }\n \n \n \n return str;\n \n}", "public boolean checkInvalid5(String x) {\n for (int i = 0; i < x.length() - 1; i++) {\n if ((x.charAt(i) == x.charAt(i + 1)) && (x.charAt(i) != 'o')) {\n return true;\n }\n }\n return false;\n }", "boolean hasMid();", "boolean hasMid();", "public static boolean backspaceCompare(String S, String T) {\n Stack<Character> sStack = new Stack<Character>();\n for(char c : S.toCharArray()) {\n if(c != '#') {\n sStack.push(c);\n } else if (!sStack.isEmpty()) {\n sStack.pop();\n }\n }\n Stack<Character> tStack = new Stack<Character>();\n for(char c : T.toCharArray()) {\n if(c != '#') {\n tStack.push(c);\n } else if (!tStack.isEmpty()) {\n tStack.pop();\n }\n }\n while(!sStack.isEmpty() && !tStack.isEmpty()) {\n if(sStack.pop() != tStack.pop()) {\n return false;\n }\n }\n\n return sStack.isEmpty() && tStack.isEmpty();\n }", "private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }", "private boolean RANGE(char first, char last) {\r\n if (in >= input.length()) return false;\r\n int len = input.nextLength(in);\r\n int code = input.nextChar(in, len);\r\n if (code < first || code > last) return false;\r\n in += len;\r\n return true;\r\n }", "public boolean isCharacterInSameLocation(Character inputCharA, Character inputCharB) {\r\n\t\tString LocationCharA = inputCharA.getLocation();\r\n\t\tArrayList<Character> inputListLocation = getListCharacterInLocation(LocationCharA);\r\n\t\tif (inputListLocation.contains(inputCharA) && inputListLocation.contains(inputCharB))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "public static boolean AdditionalSolution(String str)\r\n\t{\r\n\t\t\r\n\t\t//Precondition if null, length <0 // Assuming the String Contains ASCII characters\r\n\t\tif(str == null || str.length()<0||str.length()>128)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t//converting into character array\r\n\t\tchar[] res = str.toCharArray();\r\n\t\t\r\n\t\t//Sort using time sort, modified TimeSort in 1.7 ,O(n)< x < O(nlgn)\r\n\t\tArrays.sort(res);\r\n\t\t\r\n\t\tfor(int i =0;i<res.length-1;i++)\t\r\n\t\t{\r\n\t\t\t//Compare the adjacent Elements\r\n\t\t\tif(res[i] == res[i+1])\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t}", "private boolean isPalindrome(Deque<Character> wordInDeque, CharacterComparator cc) {\n while (wordInDeque.size() > 1) {\n return cc.equalChars(wordInDeque.removeFirst(), wordInDeque.removeLast()) && isPalindrome(wordInDeque, cc);\n }\n return true;\n }", "public boolean gHappy(String str) {\n for(int x=0; x<str.length(); x++)\n {\n if(str.charAt(x)=='g')\n {\n if(str.length()<2)\n return false;\n else if(x==0 && str.charAt(x+1) != 'g')\n return false;\n else if(x>0 && str.charAt(x-1) != 'g' && x+1==str.length())\n return false;\n else if(x>0 && str.charAt(x-1) != 'g' && str.charAt(x+1) != 'g')\n return false;\n }\n }\n\n return true;\n}", "public static boolean hasSameCharInSequence(String password) throws InvalidSequenceException\r\n {\r\n char c1, c2, c3;\r\n if (password.length() > 2)\r\n {\r\n for (int i = 2; i < password.length(); i++)\r\n {\r\n c1 = password.charAt(i - 2);\r\n c2 = password.charAt(i - 1);\r\n c3 = password.charAt(i);\r\n if (c1 == c2 && c2 == c3)\r\n throw new InvalidSequenceException();\r\n }\r\n }\r\n return true;\r\n }", "public static boolean uniqueCharStringNoDS(String s){\r\n for (int i = 0; i < s.length(); i++){\r\n for (int j = i+1; j < s.length(); j++){\r\n char temp = s.charAt(i);\r\n if (temp == s.charAt(j)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "@Test\n public void testEqualChar3() {\n char a = '%';\n char b = '!';\n char c = '\\t';\n char d = '\\n';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(c, d);\n\n assertFalse(result1);\n assertTrue(result2);\n }", "public static boolean backspaceCompare(String S, String T) {\n char[]sChar = S.toCharArray();\n char[]tChar = T.toCharArray();\n int sIndex = 0;\n for (int i = 0; i < sChar.length; i++) {\n if (sChar[i] != '#') {\n sChar[sIndex++] = sChar[i];\n } else {\n if(sIndex > 0) sIndex--;\n sChar[sIndex] = 0;\n }\n }\n int tIndex = 0;\n for (int i = 0; i < tChar.length; i++) {\n if (tChar[i] != '#') {\n tChar[tIndex++] = tChar[i];\n } else {\n if(tIndex > 0) tIndex--;\n tChar[tIndex] = 0;\n }\n }\n if (sIndex != tIndex) {\n return false;\n }\n for (int i = 0; i < tIndex; i++) {\n if (sChar[i] != tChar[i]) {\n return false;\n }\n }\n return true;\n }", "public boolean validPalindrome(String s) {\n int start = 0, end = s.length() - 1;\n int[] delete = new int[3];\n while (start < end) {\n char a = s.charAt(start);\n char b = s.charAt(end);\n \n if (a != b) {\n if (delete[0] == 2) {\n return false;\n }\n if (delete[0] == 1) {\n delete[0] = 2;\n start = delete[1];\n end = delete[2];\n end += 1;\n } else {\n delete[0] = 1;\n delete[1] = start;\n delete[2] = end;\n start -= 1;\n }\n }\n start += 1;\n end -= 1;\n }\n return true;\n }", "static String morganAndString(String a, String b) {\n\n\t\tString result = \"\";\n\n\t\tint pointerA = 0, pointerB = 0;\n\n\t\touter:\n\t\t\twhile ( pointerA < a.length() || pointerB < b.length()){\n\t\t\t\tif ( pointerA == a.length()) {\n\t\t\t\t\tresult = result + b.charAt(pointerB++);\n\t\t\t\t}\n\t\t\t\telse if ( pointerB == b.length()) {\n\t\t\t\t\tresult = result + a.charAt(pointerA++);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchar ca = a.charAt ( pointerA );\n\t\t\t\t\tchar cb = b.charAt ( pointerB );\n\n\t\t\t\t\tif ( ca < cb ) {\n\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( cb < ca ){\n\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Find the smallest successor.\n\t\t\t\t\t\tint extraPointer = 1;\n\t\t\t\t\t\twhile ( pointerA + extraPointer < a.length() && pointerB + extraPointer < b.length()){\n\t\t\t\t\t\t\tchar cEa = a.charAt ( pointerA + extraPointer);\n\t\t\t\t\t\t\tchar cEb = b.charAt ( pointerB + extraPointer);\n\n\t\t\t\t\t\t\tif ( cEa < cEb ){\n\t\t\t\t\t\t\t\tresult = result + cEa;\n\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( cEb < cEa ){\n\t\t\t\t\t\t\t\tresult = result + cEb;\n\n\n\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\textraPointer++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// We got to the point in which both are the same.\n\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() && pointerB + extraPointer == b.length()){\n\t\t\t\t\t\t\t// Both are equal. It doesn't matter which one I take it from.\n\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() ){\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( b.charAt ( pointerB + extraPointer ) > b.charAt ( pointerB + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// The opposite.\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( a.charAt ( pointerA + extraPointer ) > a.charAt ( pointerA + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn result;\n\n\n\t}", "public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}", "public boolean endsLy(String str) {\r\n return str.length() > 1 ? str.substring(str.length() - 2, str.length()).equals(\"ly\") : false;\r\n }", "private static boolean lastEmailFieldTwoCharsOrMore(String emailAddress) {\r\n\t\tif (emailAddress == null)\r\n\t\t\treturn false;\r\n\t\tStringTokenizer st = new StringTokenizer(emailAddress, \".\");\r\n\t\tString lastToken = null;\r\n\t\twhile (st.hasMoreTokens()) {\r\n\t\t\tlastToken = st.nextToken();\r\n\t\t}\r\n\t\tif (lastToken.length() >= 2) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean backspaceCompare(String S, String T) {\n return build(S).equals(build(T));\n }", "private boolean isSubSequence(String s, String word){\n int startPointer = 0;\n for(int i=0; i<word.length(); i++){\n int location = s.indexOf(word.charAt(i), startPointer);\n if(location < 0)\n return false;\n startPointer = location+1;\n }\n return true;\n }", "@Override\n public int compare(String left, String right) {\n int result = 0;\n int length = left.length() > right.length()\n ? right.length() : left.length();\n for (int i = 0; i < length; i++) {\n result = Character.compare(left.charAt(i), right.charAt(i));\n if (result != 0) {\n break;\n }\n }\n if (result == 0) {\n result = left.length() - right.length();\n }\n return result;\n\n }", "public boolean buscarLetra(char letra) {\n if ( palabra.indexOf(letra,0) == -1 ) { \r\n almacenarErrados(letra); \r\n return false; \r\n }else{ \r\n //Recorremos toda la palabra para reemeplaza el _ por la letra ingresada \r\n int pos = 0; \r\n do { \r\n pos = palabra.indexOf(letra, pos); \r\n if (pos != -1) { \r\n letras[pos] = letra; \r\n pos++; \r\n } \r\n } \r\n while (pos != -1); \r\n } \r\n return true; \r\n }", "boolean truncateSuffix(final long lastIndexKept);", "protected boolean isSubString(BSTVertexOfBabyNames T,String subString)\r\n\t{\r\n\t\tString babyName=T.key;\r\n\t\tint stringLength=subString.length();\r\n\t\tboolean identical=false;\r\n\t\t\r\n\t\tfor(int i=0;i<babyName.length();i++)\r\n\t\t{\r\n\t\t\tif(i+stringLength>babyName.length())\r\n\t\t\t\treturn false;\r\n\t\t\tfor(int start=0;start<stringLength;start++)\r\n\t\t\t{\r\n\t\t\t\tif(babyName.charAt(i+start)==subString.charAt(start))\r\n\t\t\t\t\tidentical=true;\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tidentical=false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(identical)\treturn true;\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t\t\r\n\t}", "public int last2(String str) {\n if (str.length() < 2) {\n return 0;\n }\n String end = str.substring(str.length() - 2);\n int result = 0;\n for (int i = 0; i < str.length() - 2; i++) {\n if (str.substring(i, (i + 2)).equals(end)) {\n result++;\n }\n }\n return result;\n }", "public boolean isOneLetterOff(String word1, String word2){\n \tif(word1.equals(word2)){ //all letters same\n \t\treturn false;\n \t}\n \tif(word1.substring(1).equals(word2.substring(1))){\t//all letters same except 1st\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,1).equals(word2.substring(0, 1)) && word1.substring(2).equals(word2.substring(2))){ //all letters same except 2nd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,2).equals(word2.substring(0,2)) && word1.substring(3).equals(word2.substring(3))){\t//all letters same except 3rd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,3).equals(word2.substring(0,3)) && word1.substring(4).equals(word2.substring(4))){\t//all letters same except 4th\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,4).equals(word2.substring(0,4))){\t//all letters same except 5th\n\t\t\treturn true;\n\t\t}\n \treturn false;\n }", "public static boolean backspaceCompare(String S, String T) {\n\n Stack<Character> stackS = new Stack<>();\n Stack<Character> stackT = new Stack<>();\n\n\n for(int i=0; i<S.length();i++){\n if(S.charAt(i) != '#'){\n stackS.push(S.charAt(i));\n }else if(!stackS.empty())\n stackS.pop();\n }\n\n System.out.println(stackS);\n\n for(int i=0; i<T.length();i++){\n if(T.charAt(i) != '#'){\n stackT.push(T.charAt(i));\n }else if (!stackT.empty())\n stackT.pop();\n }\n\n System.out.println(stackT);\n return stackS.equals(stackT);\n }", "private boolean separator(char c){\n int n = separators.length;\n for(char s : separators){\n if(s == c) return true;\n }\n return false;\n }", "public static boolean checkPermutation(String str1, String str2) {\n if (str1.length() != str2.length()) // imediate check if string is not the same length, obviously false\n return false;\n // null check as well\n int[] arr = new int[256]; // ascii\n for (int i = 0; i < str1.length(); i++) { // for all chars in the first list\n char temp = str1.charAt(i); // get the char at the index\n int index = temp; // get the int val for the char\n arr[index] = arr[index] + 1; // increase an array at that index by 1\n }\n for (int i = 0 ; i < str1.length(); i++) { // for all values in the second string\n char temp = str2.charAt(i); // get the char at the index\n int index = temp; // get the val for that char\n arr[index] = arr[index] - 1; // decrement the array at the index by 1\n if (arr[index] < 0) // if the string has incorrect amount of letters,\n return false; // the array should have -1, which will return false\n }\n return true; // else return true\n }", "private boolean m81840a(String str, String str2) {\n boolean isEmpty = TextUtils.isEmpty(str);\n boolean isEmpty2 = TextUtils.isEmpty(str2);\n if (isEmpty && isEmpty2) {\n return true;\n }\n if (!isEmpty && isEmpty2) {\n return false;\n }\n if (!isEmpty || isEmpty2) {\n return str.equals(str2);\n }\n return false;\n }", "static String abbreviation(String a, String b) {\r\n \r\n HashSet<Character> aSet = new HashSet<>();\r\n\r\n for(int i = 0 ; i< a.length() ; i++){\r\n aSet.add(a.charAt(i));\r\n }\r\n \r\n for(int i = 0 ; i < b.length() ; i++){\r\n \r\n if(aSet.contains(b.charAt(i)) ){\r\n aSet.remove(b.charAt(i));\r\n }\r\n else if(aSet.contains(Character.toLowerCase(b.charAt(i)))){\r\n aSet.remove(Character.toLowerCase(b.charAt(i)));\r\n }\r\n else{\r\n return \"NO\";\r\n }\r\n \r\n\r\n }\r\n\r\n Iterator<Character> it = aSet.iterator();\r\n while(it.hasNext()){\r\n\r\n if(!isLowerCase(it.next())){\r\n return \"NO\";\r\n }\r\n }\r\n return \"YES\";\r\n \r\n /*\r\n String regex = \"\";\r\n for(int i = 0 ; i < b.length() ; i++){\r\n regex += \"[a-z]*\" + \"[\" + b.charAt(i) + \"|\" + Character.toLowerCase(b.charAt(i)) + \"]\";\r\n }\r\n regex += \"[a-z]*\";\r\n Pattern ptrn = Pattern.compile(regex);\r\n Matcher matcher = ptrn.matcher(a);\r\n\r\n return matcher.matches() ? \"YES\" : \"NO\";\r\n*/\r\n \r\n /*\r\n int aPtr = 0;\r\n\r\n //b e F g H\r\n // E F H\r\n for(int i = 0 ; i < b.length() ; i++){\r\n\r\n if(aPtr + 1 >= a.length())\r\n return \"NO\";\r\n //if(aPtr + 1 == a.length() && i + 1 == b.length())\r\n // return \"YES\";\r\n\r\n System.out.println(b.charAt(i) + \" \" + a.charAt(aPtr));\r\n if(b.charAt(i) == a.charAt(aPtr)){\r\n aPtr++;\r\n }else if(b.charAt(i) == Character.toUpperCase(a.charAt(aPtr)) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n\r\n } else if(b.charAt(i) != a.charAt(aPtr) && !isLowerCase(a.charAt(aPtr))){\r\n return \"NO\";\r\n }else if(b.charAt(i) != a.charAt(aPtr) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n i--;\r\n }\r\n\r\n\r\n\r\n }\r\n for(int i = aPtr ; i < a.length() ; i++){\r\n if(!isLowerCase(a.charAt(i)))\r\n return \"NO\";\r\n }\r\n\r\n return \"YES\";\r\n */\r\n\r\n }", "public static boolean isPalindrome(String s, int length){\n if(length <= 1){\r\n return true;\r\n }\r\n // create a new string for the first letter\r\n String first = s.substring(0,1);\r\n \r\n //create a new string for the last letter\r\n String last = s.substring(s.length() - 1, s.length());\r\n \r\n //create an if statement if the first and the last letter equal together\r\n if(first.equals(last)){\r\n //use a subtring to seperate the letters\r\n return isPalindrome(s.substring(1, length - 1), length - 2); \r\n } else {\r\n //return false if the letters are not the same\r\n return false;\r\n }\r\n }", "private boolean recursiveHelper(Deque<Character> item) {\n if (item.size() <= 1) {\n return true;\n }\n if(item.removeFirst() == item.removeLast()) {\n return recursiveHelper(item);\n } else {\n return false;\n }\n }", "public boolean adjacent(String a, String b) {\n\t\tint nDifferent = 0;\n\t\tint length = a.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (a.charAt(i) != b.charAt(i)) {\n\t\t\t\tnDifferent++;\n\t\t\t}\n\t\t\tif (nDifferent > 1)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public int compareToByName(String first, String last){\r\n // Checks if the names are equal\r\n if(this.getFirstName().equals(first) && this.getLastName().equals(last)){\r\n return 0;\r\n }\r\n // Checks the alphabetical order if the last names are not equal\r\n else if(this.getLastName().equals(last) == false){\r\n // i stores the index of both last names\r\n int i = 0;\r\n /* Goal: To iterate through both last names simultaneously until an unmatching character is found */\r\n while(this.getLastName().charAt(i) == last.charAt(i)){\r\n i = i + 1;\r\n }\r\n if((int)this.getLastName().charAt(i) < (int)last.charAt(i)){\r\n return -1;\r\n }\r\n else if((int)this.getLastName().charAt(i) > (int)last.charAt(i)){\r\n return 1;\r\n }\r\n else\r\n return 7;\r\n }\r\n // Checks the alphabetical order if the last names are equal, but the first names are not\r\n else if(this.getLastName().equals(last) && this.getFirstName().equals(first) == false){\r\n // i stores the index of both first names\r\n int i = 0;\r\n /* Goal: To iterate through both first names simultaneously until an unmatching character is found */\r\n while(this.getFirstName().charAt(i) == first.charAt(i)){\r\n i = i + 1;\r\n }\r\n if((int)this.getFirstName().charAt(i) < (int)first.charAt(i)){\r\n return -1;\r\n }\r\n else if((int)this.getFirstName().charAt(i) > (int)first.charAt(i)){\r\n return 1;\r\n }\r\n else\r\n return 7;\r\n }\r\n else\r\n return 7;\r\n }", "public static boolean isPalindrome(String s, int start, int last)\r\n\t{\r\n\t\tif(s.charAt(start) != s.charAt(last-1)) return false;\r\n\t\tif(start >= last) return true;\r\n\t\treturn isPalindrome(s, start+1, last-1);\r\n\t}" ]
[ "0.6344779", "0.61937106", "0.61911774", "0.6116392", "0.597251", "0.5935801", "0.5863016", "0.58590084", "0.58565307", "0.5821898", "0.58019614", "0.5747659", "0.5736291", "0.57350117", "0.56756145", "0.5670188", "0.5614359", "0.5597057", "0.5580708", "0.5571624", "0.5535252", "0.5522293", "0.5487956", "0.54580367", "0.5436981", "0.5420133", "0.5416852", "0.54103035", "0.5408762", "0.5403749", "0.5374645", "0.53540826", "0.5353638", "0.53487325", "0.53247505", "0.5322075", "0.5293864", "0.52879524", "0.5281582", "0.52771705", "0.52673626", "0.5259031", "0.52564526", "0.52493334", "0.5242311", "0.5240488", "0.5237543", "0.52360404", "0.5232253", "0.5232158", "0.5228783", "0.5228159", "0.52258277", "0.5211674", "0.52038234", "0.520244", "0.5198412", "0.5198266", "0.51973516", "0.5195787", "0.5176428", "0.5166837", "0.51485777", "0.51462585", "0.5135775", "0.5135775", "0.5127426", "0.5124968", "0.51171196", "0.5112403", "0.5109369", "0.51085675", "0.5108207", "0.5103276", "0.50914913", "0.5085214", "0.5083569", "0.50801617", "0.5064031", "0.50413597", "0.5035598", "0.5028114", "0.5024203", "0.50230145", "0.5000853", "0.49983525", "0.4997298", "0.4997217", "0.49958685", "0.49925423", "0.49905616", "0.49899912", "0.49845785", "0.49804348", "0.4977792", "0.49772722", "0.49729443", "0.496817", "0.49670184", "0.49637097" ]
0.5263723
41
check if string starts and ends with same letter
boolean isCircular(String s);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean hasA( String w, String letter )\r\n { return w.indexOf(letter) != -1;\r\n }", "public static boolean hasA( String w, String letter ) \n {\n return (w.indexOf(letter) > -1);\n }", "@Override\r\n\tpublic boolean matches(String first, String last) {\n\t\treturn false;\r\n\t}", "private boolean alphabCheck(String first, String second) {\n\t\tif (first.length() == 1 || second.length() == 1) {\n\t\t\tif (first.compareTo(second) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) == 0) {\n\t\t\t\t\treturn alphabCheck(first.substring(1, first.length()),second.substring(1,second.length()));\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private static boolean stringStartsWith(String string, String prefix){\n for(int i=0; i < prefix.length(); i++){\n if(string.charAt(i) != prefix.charAt(i)){\n return false;\n }\n }\n return true;\n }", "public boolean isAccepted2(String word) {\r\n\t return word.endsWith(\"baa\");\r\n \r\n }", "private boolean ifAlphabetOnly(String str){\n return str.chars().allMatch(Character :: isLetter);\n }", "@Test\n public void testAreFirstAndLastCharactersTheSame() {\n \n assertTrue(stringHelper.areFirstAndLastCharactersTheSame(\"AA\"));\n \n }", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static boolean startsWith(String str, String token) {\n return str.startsWith(token)\n && (str.length() == token.length()\n || Character.isUpperCase(str.charAt(token.length())));\n }", "static String abbreviation(String a, String b) {\r\n \r\n HashSet<Character> aSet = new HashSet<>();\r\n\r\n for(int i = 0 ; i< a.length() ; i++){\r\n aSet.add(a.charAt(i));\r\n }\r\n \r\n for(int i = 0 ; i < b.length() ; i++){\r\n \r\n if(aSet.contains(b.charAt(i)) ){\r\n aSet.remove(b.charAt(i));\r\n }\r\n else if(aSet.contains(Character.toLowerCase(b.charAt(i)))){\r\n aSet.remove(Character.toLowerCase(b.charAt(i)));\r\n }\r\n else{\r\n return \"NO\";\r\n }\r\n \r\n\r\n }\r\n\r\n Iterator<Character> it = aSet.iterator();\r\n while(it.hasNext()){\r\n\r\n if(!isLowerCase(it.next())){\r\n return \"NO\";\r\n }\r\n }\r\n return \"YES\";\r\n \r\n /*\r\n String regex = \"\";\r\n for(int i = 0 ; i < b.length() ; i++){\r\n regex += \"[a-z]*\" + \"[\" + b.charAt(i) + \"|\" + Character.toLowerCase(b.charAt(i)) + \"]\";\r\n }\r\n regex += \"[a-z]*\";\r\n Pattern ptrn = Pattern.compile(regex);\r\n Matcher matcher = ptrn.matcher(a);\r\n\r\n return matcher.matches() ? \"YES\" : \"NO\";\r\n*/\r\n \r\n /*\r\n int aPtr = 0;\r\n\r\n //b e F g H\r\n // E F H\r\n for(int i = 0 ; i < b.length() ; i++){\r\n\r\n if(aPtr + 1 >= a.length())\r\n return \"NO\";\r\n //if(aPtr + 1 == a.length() && i + 1 == b.length())\r\n // return \"YES\";\r\n\r\n System.out.println(b.charAt(i) + \" \" + a.charAt(aPtr));\r\n if(b.charAt(i) == a.charAt(aPtr)){\r\n aPtr++;\r\n }else if(b.charAt(i) == Character.toUpperCase(a.charAt(aPtr)) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n\r\n } else if(b.charAt(i) != a.charAt(aPtr) && !isLowerCase(a.charAt(aPtr))){\r\n return \"NO\";\r\n }else if(b.charAt(i) != a.charAt(aPtr) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n i--;\r\n }\r\n\r\n\r\n\r\n }\r\n for(int i = aPtr ; i < a.length() ; i++){\r\n if(!isLowerCase(a.charAt(i)))\r\n return \"NO\";\r\n }\r\n\r\n return \"YES\";\r\n */\r\n\r\n }", "public static boolean checkOccurrence(String toCheck) {\n if (!toCheck.equals(\"\")) {\n String firstChar = \"\" + toCheck.charAt(0);\n return firstChar.matches(\".*[A-Z].*\");\n }\n return false;\n }", "public static boolean lettersCheck(String name) {\r\n\t\treturn name.matches(\"^[\\\\p{L} .'-]+$\");\r\n\t}", "boolean checkChar(String s1, String s2);", "public static boolean isWord(String word) {\r\n String lower = word.toLowerCase();\r\n int start = getLetterIndex(lower, head); // to find the index for the letter appear\r\n int end = getLetterIndex(lower, tail); // to find the last index for the letter appear\r\n\r\n if (start == -1) // if does not find a letter in the string\r\n return false;\r\n\r\n while (start < end) // check the middle\r\n {\r\n if (lower.charAt(start) == '-' && lower.charAt(start + 1) == '-')// check continuous\r\n return false;\r\n if ((lower.charAt(start) < 'a' || lower.charAt(start) > 'z') && lower.charAt(start) != '-') // check the character\r\n return false;\r\n start++;\r\n }\r\n\r\n return true;\r\n }", "private static boolean letterDifferByOne(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n\n int differenceCount = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) != word2.charAt(i)) {\n differenceCount++;\n }\n }\n return (differenceCount == 1);\n }", "public boolean isOneLetterOff(String word1, String word2){\n \tif(word1.equals(word2)){ //all letters same\n \t\treturn false;\n \t}\n \tif(word1.substring(1).equals(word2.substring(1))){\t//all letters same except 1st\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,1).equals(word2.substring(0, 1)) && word1.substring(2).equals(word2.substring(2))){ //all letters same except 2nd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,2).equals(word2.substring(0,2)) && word1.substring(3).equals(word2.substring(3))){\t//all letters same except 3rd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,3).equals(word2.substring(0,3)) && word1.substring(4).equals(word2.substring(4))){\t//all letters same except 4th\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,4).equals(word2.substring(0,4))){\t//all letters same except 5th\n\t\t\treturn true;\n\t\t}\n \treturn false;\n }", "public boolean mixStart(String str) {\n if (str.length() < 3) return false;\n return (str.substring(1,3).equals(\"ix\"));\n}", "public boolean acceptable(String s){\n\t\tCharacter first = s.charAt(0);\n\t\tCharacter last = s.charAt(s.length() - 1);\n\t\t\n\t\treturn (super.acceptable(s) && !Character.isDigit(first) && Character.isDigit(last));\n\t}", "public boolean isARotation(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tStringBuilder stb = new StringBuilder();\n\t\tint i = 0;\n\t\twhile(i < s1.length()) {\n\t\t\tif(s1.charAt(i) == s1.charAt(i)) {\n\t\t\t\treturn subString(s1.substring(0, i), s2) \n\t\t\t\t\t\t&& stb.toString().compareTo(s2.substring(i, s2.length()-1)) == 0;\n\t\t\t}\n\t\t\ti++;\n\t\t\tstb.append(s1.charAt(i));\n\t\t}\n\t\treturn false;\n\t}", "public abstract boolean containsUppercaseLetters(String str);", "private boolean checkNameChar(String name) {\n\t\tString patternStr = \"[a-zA-Z]+\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(name);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}", "@Test\n\tpublic void testareFirstAndLastTwoCharactersTheSame_BasicNegative() \n\t{\n\t\tassertFalse(helper.areFirstAndLastTwoCharactersTheSame(\"ABCD\"));\n\t}", "private static boolean isUnique(String str) {\n\t\tfor(char c: str.toCharArray()) {\n\t\t\tif(str.indexOf(c) == str.lastIndexOf(c))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean frontAgain(String str) {\r\n if (str.length() > 1 && str.substring(0, 2).equals(str.substring(str.length() - 2))) {\r\n return true;\r\n }\r\n return false;\r\n }", "public static boolean endOther(String a, String b) {\n String larger, smaller;\n if (a.length() > b.length()){\n larger = a;\n smaller = b;\n }\n else{\n larger = b;\n smaller = a;\n }\n larger = larger.toLowerCase();\n smaller = smaller.toLowerCase();\n int i = larger.length() - smaller.length();\n return ((larger.substring(i, larger.length())).equals(smaller));\n }", "public static boolean checkchar(String sentence){\n for (int i =0; i < sentence.length(); i++){ //just compare for the whole length \n if (Character.isLetter(sentence.charAt(i))==false){ //if it is not a letter\n return false; //return false\n }\n return true; //otherwise return true\n }\n return true;\n}", "@Test\n public void whenEndsWithPrefixThenTrue() {\n char[] word = {'H', 'e', 'l', 'l', 'o'};\n char[] post = {'l', 'o'};\n boolean result = ArrayChar.endsWith(word, post);\n assertThat(result, is(true));\n }", "public abstract boolean isSingleCharMatcher();", "public static void main(String[] args) {\n\n String str = \"abXYabc\"; //abXYabc //prefix means first couple of letters\n int n = 2; // 3\n // abX Yabc // rest of the string means word after the prefix\n\n String prefix = str.substring(0,n); // 0, 2 //here we need multiple characters\n String remaining = str.substring(n); //XYabc\n\n System.out.println(remaining.contains(prefix));\n\n\n }", "@Test\n public void shouldFindSubstringAtTheEndOfTheStringAfterOneCharacterPartialMatch() {\n // Given\n String string = \"AABc\";\n CharSequence charSequence = new StringBuilder(\"ABc\");\n\n // When\n boolean containsCharSequence = string.contains(charSequence);\n\n // Then\n assertTrue(containsCharSequence);\n }", "private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }", "public boolean startHi(String str) {\n if (str.length() < 2) return false;\n \n String front;\n if (str.length() == 2) {\n front = str;\n } else {\n front = str.substring(0, 2);\n }\n \n return (front.equals(\"hi\"));\n \n}", "public static boolean startsWith(final String string, final String sub) {\n final int sl = string.length(), tl = sub.length();\n if(tl > sl) return false;\n for(int t = 0; t < tl; t++) {\n if(!equals(string.charAt(t), sub.charAt(t))) return false;\n }\n return true;\n }", "public boolean check (String s){\n\n boolean value = false;\n\n if (s.length()>=3){\n\n for (int i= 0;i<s.length();i++){\n\n if (s.charAt(i)>= 'A' && s.charAt(i)<= 'Z' || s.charAt(i) >='a' &&s.charAt(i)<='z'){\n\n value = true;\n }\n else {\n value = false;\n return value;\n\n\n }\n }\n }\n\n\n return value;\n }", "public boolean isLetterOrDigitAhead()\n {\n\n int pos = currentPosition;\n\n while (pos < maxPosition)\n {\n if (Character.isLetterOrDigit(str.charAt(pos)))\n return true;\n\n pos++;\n }\n\n return false;\n }", "boolean checkName (String name){\r\n \r\n // Use for loop to check each character\r\n for (int i = 0; i < name.length(); i++) {\r\n // If character is below 'A' in Unicode table then return false\r\n if (name.charAt(i) < 65 && name.charAt(i) != 32 && name.charAt(i) != 10){\r\n return false;\r\n }\r\n // Else if character is between 'Z' and 'a' in unicode table,\r\n // then return false\r\n else if (name.charAt(i) > 90 && name.charAt(i) < 97){\r\n return false;\r\n }\r\n else if (name.charAt(i) > 122)\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean isAbbreviation(String word) {\n\n boolean abbr = true;\n String[] parts = word.split(\"\\\\.\");\n for (String part : parts) {\n if (part.length() > 1 || !Pattern.matches(\"[a-zA-Z]\", part)) {\n abbr = false;\n break;\n }\n }\n return abbr;\n }", "public static void main(String[] args) {\n System.out.println(\"1. \" + StringTools.isAlpha(\"Happy\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"Happy-Happy\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '-'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isNumeric(\"09368955866\"));\n System.out.println(\"2. \" + StringTools.isNumeric(\"0936-895-5866\"));\n System.out.println(\"3. \" + StringTools.isNumeric(\"0936/895/5866\", '/'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isAlpha(\"HappyDay\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"#Happy-Day\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '#', '-'));\n // alpha space\n System.out.println(\"1. \" + StringTools.isAlpha(\"asd\", ' '));\n }", "public static Boolean Letter(String arg){\n\t\tif(arg.matches(\"\\\\p{L}{1}\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean differByOne(String word, String ladderLast) {\n if (word.length() != ladderLast.length()) {\n return false;\n }\n int count = 0;\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) != ladderLast.charAt(i)) {\n count++;\n }\n }\n return (count == 1);\n }", "private boolean isSubSequence(String s, String word){\n int startPointer = 0;\n for(int i=0; i<word.length(); i++){\n int location = s.indexOf(word.charAt(i), startPointer);\n if(location < 0)\n return false;\n startPointer = location+1;\n }\n return true;\n }", "boolean hasChar();", "public boolean isSubSequence(String x, String y){\n\t\tint j = 0;\n\t\tfor(int i = 0 ; i < x.length() && j< y.length(); i++){\n\t\t\tif(x.charAt(j) == y.charAt(i)){\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\treturn j == x.length();\n\t}", "public static boolean containsString (char[] letters, String word){\n int numberOfSameLetters = 0;\n word.toCharArray();\n for(char charInWord : word.toCharArray()) {\n for (char letter : letters) {\n if(charInWord == letter){\n// System.out.println(\"letter \" + letter);\n numberOfSameLetters ++;\n break;\n }\n }\n }\n if(numberOfSameLetters == word.length()){\n// System.out.println(true);\n return true;\n }\n// System.out.println(\"false\");\n return false;\n }", "static int isSubstring(String s1, String s2) {\n int m = s1.length();\n int n = s2.length();\n\n // A loop to slide pat[] one by one\n for (int i = 0; i <= n - m; i++) {\n int j;\n\n // For current index i, check for pattern match\n for (j = 0; j < m; j++) {\n if (s2.charAt(i + j) != s1.charAt(j)) {\n break;\n }\n }\n\n if (j == m) {\n return i;\n }\n }\n return -1;\n }", "public boolean gHappy(String str) {\n for(int x=0; x<str.length(); x++)\n {\n if(str.charAt(x)=='g')\n {\n if(str.length()<2)\n return false;\n else if(x==0 && str.charAt(x+1) != 'g')\n return false;\n else if(x>0 && str.charAt(x-1) != 'g' && x+1==str.length())\n return false;\n else if(x>0 && str.charAt(x-1) != 'g' && str.charAt(x+1) != 'g')\n return false;\n }\n }\n\n return true;\n}", "public boolean validateName(String input)//true if valid\n\t{\n\t\t//loop through string verifying for numbers\n\t\tfor(int i = 0;i<input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\t\n\t\t\tif(!Character.isAlphabetic(c))\n\t\t\t{\n\t\t\t if(c == '-' || c == ' ')\n\t\t\t\t{\n\t\t\t\treturn true;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t else return false;\n\t\t\t}\t\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "private boolean isIn(String s1, String s2) {\n\t for(int i = 0; i <= s2.length() - s1.length(); i++) {\n\t \n\t if(s2.substring(i, i+s1.length()).equals(s1) ) {\n\t // System.out.println(\"+ \" + s2.substring(i, i+s1.length()) + \" \" + s1);\n\t return true;\n\t }\n\t }\n\t return false;\n\t}", "private boolean isRotation(String s1, String s2) {\n\t\treturn (s1.length() == s2.length()) && isSubstring(s1 + s1, s2);\n\t}", "public static boolean charsOccurIn(final String string, final String sub) {\n final int sl = string.length(), tl = sub.length();\n int t = 0;\n for(int s = 0; s < sl && t < tl; s++) {\n if(equals(string.charAt(s), sub.charAt(t))) t++;\n }\n return t == tl;\n }", "public boolean verifyString(String s) {\n\t\t\n\t\tfor (int i = 0; i<s.length();i++) {\n\t\t\tif (!alphabet.contains(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public static boolean substring(String first,String second)\r\n {\r\n return second.toLowerCase().contains(first.toLowerCase());\r\n }", "public static boolean beginsWithCapital( String w ) \r\n { String t = w.substring(0,1);\r\n\treturn t.toUpperCase().equals(t);\r\n }", "public static boolean isSubString(String shortStr, String longStr) {\n if ((shortStr.length() > longStr.length()) || shortStr.isEmpty() || longStr.isEmpty()) {\n return false;\n }\n for (int i = 0; i < longStr.length() - shortStr.length() + 1; i++) {\n int j = 0;\n for (; j < shortStr.length(); j++) {\n if (shortStr.charAt(j) == longStr.charAt(i + j)) {\n continue;\n } else {\n break;\n }\n }\n if (j == shortStr.length()) {\n return true;\n }\n }\n return false;\n }", "private boolean isFitPatternStr(char startC, String patternStr) {\n\n if (startC != patternStr.charAt(0)) {\n return false;\n }\n char inputChar = ' ';\n char patternchar = ' ';\n for (int i = 1; i < patternStr.length(); i++) {//the post\n patternchar = patternStr.charAt(i);\n inputChar = getNextChar();\n if (inputChar != patternchar) {\n throwParseError();\n }\n\n }\n return true;\n }", "private boolean startsWithAFilteredPAttern(String string)\n {\n Iterator<String> iterator = filteredFrames.iterator();\n while (iterator.hasNext())\n {\n if (string.trim().startsWith(iterator.next()))\n {\n return true;\n }\n }\n return false;\n }", "static boolean isValidWord(String word){\n\t\tword = word.toLowerCase();\n\t\tchar check;\n\t\tfor(int i=0; i<word.length(); i++){\n\t\t\tcheck = word.charAt(i);\n\t\t\tif((check<97 || check>122)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean isSubStr(String s, String t) {\n\t\tint k = 0;\n\t\tfor (int i = 0; i < s.length(); ++i) {\n\t\t\tboolean found = false;\n\t\t\tfor (; k < t.length(); ++k) if (found = (t.charAt(k) == s.charAt(i))) break;\n\t\t\tif (!found) return false;\n\t\t\t++k;\n\t\t}\n\t\treturn true;\n\t}", "private static boolean isValidWord(String s) {\r\n\t\tString valid = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-'\";\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (valid.indexOf(s.charAt(i)) < 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "@Test\n public void whenNotStartWithPrefixThenFalse() {\n ArrayChar word = new ArrayChar(\"Hello\");\n boolean result = word.startWith(\"Hi\");\n assertThat(result, is(false));\n }", "private boolean oneCharOff( String word1, String word2 )\n {\n if( word1.length( ) != word2.length( ) )\n return false;\n int diffs = 0;\n for( int i = 0; i < word1.length( ); i++ )\n if( word1.charAt( i ) != word2.charAt( i ) )\n if( ++diffs > 1 )\n return false;\n return diffs == 1;\n }", "@Test\n public void shouldNotFindSubstringWithMismatchedFirstCharacterAtTheEndOfThString() {\n // Given\n String string = \"123ABc\";\n CharSequence charSequence = new StringBuilder(\"cBc\");\n\n // When\n boolean containsCharSequence = string.contains(charSequence);\n\n // Then\n assertFalse(containsCharSequence);\n }", "@Test\n public void repeatedSubstringPattern() {\n assertTrue(new Solution1().repeatedSubstringPattern(\"abcabcabcabc\"));\n }", "public static Predicate<String> checkIfStartsWith(final String letter) { \n\t\treturn name -> name.startsWith(letter);\n\t}", "public static boolean contains(String word, String letter){\n\t\tif (word.indexOf(letter) != -1){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean checkAllAlphabets(String input) {\n if (input.length() < 26) {\n return false;\n }\n\n //Even a single character is missing, return false\n for (char ch = 'A'; ch <= 'Z'; ch++) {\n if (input.indexOf(ch) < 0 && input.indexOf((char) (ch + 32)) < 0) {\n return false;\n }\n }\n return true;\n }", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "static String twoStrings(String s1, String s2){\n // Complete this function\n String letters = \"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0;i<letters.length();i++){\n char lettersChar = letters.charAt(i); \n if(s1.indexOf(lettersChar) > -1 && s2.indexOf(lettersChar) > -1){\n return \"YES\";\n }\n }\n \n return \"NO\";\n }", "private boolean isAllCaps(String name) {\r\n for (int ndx = 0; ndx < name.length(); ndx++) {\r\n char ch = name.charAt(ndx);\r\n if (ch == '_') {\r\n // OK\r\n } else if (Character.isUpperCase(ch)) {\r\n // OK\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public String nameCheck(String name) {\n\t\twhile(true) {\n\t\t\tif(Pattern.matches(\"[A-Z][a-z]{3,10}\", name)){\n\t\t\t\treturn name;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Name should have first capital alphabet and rest small alphabets.\");\n\t\t\t\tSystem.out.println(\"Enter again: \");\n\t\t\t\tname = sc.next();\n\t\t\t}\n\t\t}\n\t}", "private boolean preTest(String str) {\n\t\treturn str.matches(\"^[\\\"A-Z][\\u0000-\\u0080]+$\");\n\t}", "public boolean checkForChar(String str) {\n\t\tif (str.contains(\"a\") || str.contains(\"A\") || str.contains(\"e\") || str.contains(\"E\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// TO DO\n\n\t\treturn false;\n\t}", "private boolean isAlpha(char toCheck) {\n return (toCheck >= 'a' && toCheck <= 'z') ||\n (toCheck >= 'A' && toCheck <= 'Z') ||\n toCheck == '_';\n }", "public boolean nameValidation(String name) {\n\t char[] chars = name.toCharArray();\n\t int tempNum = 0;\n\t for (char c : chars) {\n\t tempNum += 1;\n\t \tif(!Character.isLetter(c)) {\n\t return false;\n\t }\n\t }\n\t if (tempNum == 0)\n\t \treturn false;\n\n\t return true;\n\t}", "public static void main(String[] args) {\n\n\t\tString s=\"xxxxxabcxxxx\";\n\t\tint m=s.length()/2;\n\t\t\n\t\tif(s.substring(m-1, m+2).equals(\"abc\")) {\n\t\t\t\n\t\tSystem.out.println(\"middle\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"no inmid\");\n\t\t\n\n}\n}", "public static boolean isRotation(String str1, String str2) {\n if ((str1.length() != str2.length()) || str1.isEmpty() || str2.isEmpty()\n || str1 == null || str2 == null) {\n return false;\n }\n return isSubString(str1, str2 + str2);\n // return (str2 + str2).contains(str1);\n // return ((str2 + str2).indexOf(str1) > -1);\n }", "public static boolean stringRotation(String str1, String str2) {\n String temp = str2 + str2;\n return temp.contains(str1);\n }", "public static boolean contains(String string, char letter){\n\t boolean bool = false;\n\t for(int i = 0; i < string.length(); i++){\n\t if(string.charAt(i) == letter){\n\t bool = true;\n\t }\n\t }\n\t return bool;\n\t}", "boolean hasHasCharacter();", "public boolean stringE(String str) {\n int count = 0;\n \n for (int i=0; i < str.length(); i++) {\n if (str.charAt(i) == 'e') count++;\n }\n \n return (count >= 1 && count <=3);\n}", "private boolean checkInCashe(String s) {\n return true;\n }", "public static boolean matchletters (String temp, String letters)\r\n {\r\n String newLetters = letters;\r\n for(int i = 0; i < temp.length(); i++)\r\n {\r\n if(newLetters.indexOf(temp.charAt(i)) != -1)\r\n {\r\n newLetters = newLetters.replaceFirst(Character.toString(temp.charAt(i)), \"\");\r\n }\r\n else return false;\r\n }\r\n return true;\r\n }", "boolean isValid(String word);", "public boolean endsWithSpecificString(String str, String str2)\r\n{\r\n if(str.length()== str2.length())\r\n {\r\n return compare2Strings(str,str2);\r\n }\r\n else if(str.length()> str2.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return str.endsWith(str2);\r\n }\r\n}", "private static boolean allDashes(String s) {\n/* 1121 */ for (int i = 0; i < s.length(); i++) {\n/* 1122 */ if (s.charAt(i) != '-')\n/* 1123 */ return false; \n/* */ } \n/* 1125 */ return true;\n/* */ }", "public static boolean isCon(String s){\n boolean flag = true;\n int i = 0;\n while(flag && i < s.length()){\n if ((s.charAt(i) >= 'a' && s.charAt(i) <= 'z') || (s.charAt(i) >= 'A' && s.charAt(i) <='Z')) {\n flag = (s.charAt(i) != 'a' && s.charAt(i) != 'A' &&\n s.charAt(i) != 'e' && s.charAt(i) != 'E' &&\n s.charAt(i) != 'i' && s.charAt(i) != 'I' &&\n s.charAt(i) != 'o' && s.charAt(i) != 'O' &&\n s.charAt(i) != 'u' && s.charAt(i) != 'U' );\n }else\n flag = false;\n \n i++;\n }\n return flag;\n }", "private boolean validate(String s)\r\n\t{\r\n\t\tint i=0;\r\n\t\tchar[] s1=s.toLowerCase().toCharArray();\r\n\t\twhile(i<s1.length)\r\n\t\t{\r\n\t\t\tif(s1[i]=='*' || s1[i]=='?')\r\n\t\t\t\tbreak;\r\n\t\t\tif(s1[i]<'a' || s1[i]>'z') return false;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static boolean startsWith(final String source, final String prefix) {\n return prefix.length() <= source.length() && source.regionMatches(true, 0, prefix, 0, prefix.length());\n }", "public static Boolean validateInput(String input) {\n\t\tString xInput = input.substring(0,1);\n\n\t\n\n\t\t\n\t\tboolean xIsLetter = Character.isLetter(xInput.charAt(0));\n\n\t\tif((!input.isEmpty()) || (!xIsLetter)) {\n\t\n\t\t\treturn false;\n\t\t} else {\n\n\t\t\treturn true; \n\t\t\t}\n\t\t}", "public static boolean letter_digit_check(String pass){\n\t\tint sum=0;\n\t\tint count=0;\n\t\tfor (int i=0; i<pass.length(); i++){\n\t\t\tif (Character.isDigit(pass.charAt(i))){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t\telse if(Character.isLetter(pass.charAt(i))){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (sum>=2 && count>=2)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "public boolean isPalindrome2(String s) {\n int start = 0;\n int end = s.length() - 1;\n while(start <= end) {\n while(start <= end && !Character.isLetterOrDigit(s.charAt(start))) {\n start++;\n }\n while(start <= end && !Character.isLetterOrDigit(s.charAt(end))) {\n end--;\n }\n if(start <= end && Character.toLowerCase(s.charAt(start)) != Character.toLowerCase(s.charAt(end))) {\n return false;\n }\n start++;\n end--;\n }\n return true;\n }", "public static boolean alphanumericCheck(String name)\r\n\t{\r\n\t\treturn name.matches(\"^[a-zA-Z0-9]*$\");\r\n\t}", "private boolean isAlpha(String name) {\r\n\t\treturn name.matches(\"^[a-zA-Z0-9_]*$\");\r\n\t}", "public static String alexBrokenContest(String s){\n\t\tString[] names={\"Danil\", \"Olya\", \"Slava\", \"Ann\",\"Nikita\"};\n\t\tint count=0;\n\t\tfor (int i=0;i<5 ;i++)\n\t\t{\n\t\t\t\n\t\t\tint index = s.indexOf(name[i]);\n\t\t\twhile (index!=-1)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\tindex=s.indexOf(name[i],index+1);\n\t\t\t}\n\t\t}\n\t\tif(count==1)\n\t\t{\n\t\t\n\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse\n\t\t{\n\n\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}", "public boolean checkSam(String stringA, String stringB) {\r\n\t\tString[] s1 = stringA.split(\" \");\r\n\t\tString[] s2 = stringB.split(\" \");\r\n\t\tif(s1.length == s2.length){\r\n\t\t\tint count = 0;\r\n\t\t\tfor (String sB : s2) {\r\n\t\t\t\tfor (String sA : s1) {\r\n\t\t\t\t\tif(sA.equals(sB)){\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == s2.length){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n }", "public boolean endsLy(String str) {\r\n return str.length() > 1 ? str.substring(str.length() - 2, str.length()).equals(\"ly\") : false;\r\n }", "public boolean endsWith(String suffix) {\n/* 371 */ return this.m_str.endsWith(suffix);\n/* */ }", "public static boolean checkString(String s, Predicate<String> pre1,Predicate<String> pre2) {\n return pre1.or(pre2).test(s);\n }", "private boolean matchString(String s, String key)\n {\n if (s.equals(key)) return true;\n int min = s.length()<key.length()?s.length():key.length();\n for (int i=0;i<min; ++i)\n {\n \n if(key.charAt(i) == '*')\n return true;\n if(s.charAt(i) != key.charAt(i) && key.charAt(i) != '?')\n return false;\n }\n for (int i=s.length();i<key.length();i++)\n {\n if (key.charAt(i)!='*') \n return false;\n }\n return true;\n }", "public static boolean isLetter(String p) {\n boolean check = true;\n for (int i = 0; i < p.length(); i++) {\n if (!Character.isLetter(p.charAt(i))) {\n check = false;\n }\n }\n return check;\n }" ]
[ "0.6827817", "0.6799004", "0.6746815", "0.66848207", "0.66333103", "0.66052395", "0.65833044", "0.65560496", "0.65424097", "0.64947224", "0.6486262", "0.64571595", "0.6447897", "0.64330083", "0.6417566", "0.6413365", "0.6404891", "0.6397254", "0.62812", "0.62644374", "0.62553424", "0.62363005", "0.62048393", "0.6191688", "0.618784", "0.6167575", "0.615553", "0.6152157", "0.6149846", "0.61317885", "0.61172587", "0.61080354", "0.6104075", "0.6094256", "0.609144", "0.60883427", "0.6080858", "0.6073327", "0.6063483", "0.60420716", "0.60405964", "0.6032449", "0.6028654", "0.6023619", "0.6013701", "0.6001299", "0.5997194", "0.59901226", "0.5987933", "0.5987771", "0.5987517", "0.5970268", "0.5966004", "0.59560865", "0.5955247", "0.5949056", "0.59390277", "0.5936964", "0.59369105", "0.5932454", "0.5920085", "0.591902", "0.59131026", "0.5912814", "0.5911613", "0.591084", "0.5901864", "0.5901546", "0.59001714", "0.58950955", "0.5892483", "0.58902246", "0.5889605", "0.58874714", "0.5887385", "0.5886818", "0.5884805", "0.58779013", "0.5876841", "0.5866252", "0.5861426", "0.5858309", "0.5855528", "0.58453995", "0.58290756", "0.58251077", "0.5823707", "0.5822294", "0.5821819", "0.5817279", "0.57972676", "0.57949924", "0.57892793", "0.578538", "0.5770801", "0.5769103", "0.57647425", "0.5761733", "0.5760763", "0.57596254", "0.57558584" ]
0.0
-1
read the input from console and call createList method to create a list in form of ab, c ,d , ef .... single element for single input line, double for double
String consoleInput();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static ArrayList<Double> manualInput() {\n\t\tArrayList<Double> lineData = new ArrayList<Double>();\n\t\t// Cumulative data\n\t\tArrayList<Double> cumData = new ArrayList<Double>();\n\t\tSystem.out.println(MANUAL_MSG);\n\t\tin = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString line = in.nextLine();\n\t\t\ttry {\n\t\t\t\tlineData = strToArrList(line);\n\t\t\t\tcumData.addAll(lineData);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\treturn cumData;\n\t\t\t}\n\t\t}\n\t}", "ArrayList<String> createList(String finalInput);", "static List<Intervall> handleInput(String input) {\n\t\tList<Intervall> listIntervall = new ArrayList<>();\n\t\tif (input.length() > 0) {\n\t\t\tString[] inputArray = input.split(\" \");\n\n\t\t\tfor (String s : inputArray) {\n\t\t\t\tString sTrimmed = s.substring(1, s.length() - 1);\n\t\t\t\tString[] inputValues = sTrimmed.split(\",\");\n\t\t\t\tlistIntervall.add(new Intervall(Integer.parseInt(inputValues[0]), Integer.parseInt(inputValues[1])));\n\t\t\t}\n\t\t}\n\t\treturn listIntervall;\n\t}", "public void getInput(){\n\t\tScanner scan= new Scanner(System.in);\n\t\t//Get the range\n\t\tif(scan.hasNext()){\n\t\t\tcount=Integer.parseInt(scan.nextLine()); \n\t\t}\n\t\t//Initialize the array\n\t\tpeople = new People[count];\n\t\t//Get the array elements\n\t\tint i=0;\n\t\twhile(i<count){\n\t\t\tString lin[] = scan.nextLine().split(\" \");\n\t\t\tpeople[i] = new People(Integer.parseInt(lin[0]), Double.parseDouble(lin[1]));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t\n\t}", "private List<String> getInputList(BufferedReader br) throws IOException {\n\t\tArrayList<String> inputWordsList = new ArrayList<String>();\n\t\tString tempInputWord = null;\n\t\twhile ((tempInputWord = br.readLine()) != null) {\n\t\t\tinputWordsList.add(tempInputWord);\n\t\t}\n\t\treturn inputWordsList;\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n ArrayList<Integer> arrayList = new ArrayList<>();\n\n\n\n System.out.println(\"pleas enter a element \");\n String input = scanner.nextLine();\n\n while (!input.equals(\"exit\")){\n arrayList.add(Integer.parseInt(input));\n input =scanner.nextLine();\n }\n\n System.out.println(arrayList);\n\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> a = null;\n\t\tint size1;\n\t\tsize1 = sc.nextInt();\n\n\t\tfor (int i = 0; i < size1; i++) {\n\t\t\tint size;\n\n\t\t\tString str = sc.next();\n\n\t\t\tString[] strArray;\n\t\t\tstrArray = str.split(\"\");\n\n\t\t\tsize = sc.nextInt();\n\n\t\t\ta= new ArrayList<Integer>(size);\n\t\t\ttry {\n\t\t\t\tfor (int k = 0; k < size; k++) {\n\t\t\t\t\ta.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < strArray.length; j++) {\n\t\t\t\t\tif (strArray[j].equals(\"R\")) {\n\t\t\t\t\t\ta = R(a, size);\n\t\t\t\t\t} else if (strArray[j].equals(\"D\")) {\n\t\t\t\t\t\ta = D(a, size);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(a);\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"error\");\n\t\t\t}\n\n\t\t}\n//\t\tSystem.out.println(a);\n\t}", "private static ArrayList<ArrayList<Integer>> populateListOfInputs() {\n\t\t\n\t\tArrayList<ArrayList<Integer>> listOflist = new ArrayList<ArrayList<Integer>>();\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(filePath);\n\t\t\tBufferedReader br = new BufferedReader(fr);\t\t\n\t\t\t\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t// Remove all spaces, '[' and ']'\n\t\t\t\tString numbers = line.replace(\" \", \"\");\n\t\t\t\tnumbers = numbers.replace(\"[\", \"\");\n\t\t\t\tnumbers = numbers.replace(\"]\", \"\");\n\t\t\t\t\n\t\t\t\tif(line.equals(\"\")) {\n\t\t\t\t\t//if empty line leave it and continue the loop\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\t\t\n\t\t\t\tString[] individualnums = numbers.split(\",\");\n\t\t\t\tfor (int i = 0; i < individualnums.length; i++) {\t\t\t\t\t\n\t\t\t\t\tlist.add(Integer.parseInt(individualnums[i]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlistOflist.add(list);\t\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listOflist;\n\t}", "default ArrayList readIntNumbers(char symbol) {\n ArrayList<Double> numbers = new ArrayList<>();\n System.out.println(\"Dwse arithmo. Gia na stamathseis pata to enter\");\n Scanner input = new Scanner(System.in);\n double answer;\n String s = null;\n\n //an to symbolo einai h riza tote diavazei mono ena noumero\n if (symbol == '\\u221A') {\n try {\n s = input.nextLine();\n answer = Double.parseDouble(s);\n numbers.add(answer);\n } catch (NumberFormatException e) {\n if (s.equals(\"\")) {\n ;\n } else {\n System.out.println(\"Not a number. Please give a number\");\n }\n }\n //alliws diavazei osous thelei o xristis\n } else {\n do {\n try {\n s = input.nextLine();\n answer = Double.parseDouble(s);\n numbers.add(answer);\n } catch (NumberFormatException e) {\n if (s.equals(\"\")) {\n ;\n } else {\n System.out.println(\"Not a number. Please give a number\");\n }\n //if (s.equals(\"\") || numbers.size() <= 2) {\n // System.out.println(\"Not a number. Please give a number\");\n //}\n }\n } while (!s.equals(\"\") || numbers.size() < 2);\n }\n return numbers;\n\n }", "public ListTest() {\n this.console = new Scanner(System.in);\n this.coursesToSelect = new ArrayList();\n }", "public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n int n=Integer.parseInt(br.readLine());\r\n String[] strings=br.readLine().split(\",\");\r\n //System.out.println( printNoofUniqueStrings(n,strings));\r\n System.out.println(printAnswer(n,strings));\r\n \r\n /*List<String> list=new LinkedList<String>();\r\n //list.add(\"def\");\r\n //list.add(\"abc\");\r\n //list.remove(\"abc\");\r\n //list.add(0, \"abc\");\r\n \r\n list.add(\"2\");\r\n list.add(\"5\");\r\n list.add(\"9\");\r\n \r\n list.remove(\"5\");\r\n list.add(0,\"5\");\r\n \r\n for(String a:list){\r\n \tSystem.out.println(a);\r\n }*/\r\n\t}", "private void createList() {\n /**\n * New design, split input in array list so we can directly call the shape factory and create the shape in there\n * The current design from assignment 1 will be too complicated to extend because it is optimised\n * for a polygon, I attempted to keep the same design, but had a check for the instance type, which worked\n * but if we added more shapes that required different reading in implementation then there will be a lot of if\n * statements which would be difficult to maintain.\n */\n\n /**\n * was using input.hasNextLine() but that only works if the data is following a point by line structure. What if a point\n * starts on the same line? This will break\n */\n\n String data = \"\";\n\n //Check if there is an input\n while(input.hasNext()) {\n System.out.print(\"Reading character by character: \");\n\n\n data = data.concat(input.next() + \" \");\n\n System.out.print(data + \"\\n\");\n\n //This if checks if there is a polygon, circle or semi-circle to be added\n //The last check ensures that the final shape to be added is not ignored\n if(input.hasNext(\"P\") || input.hasNext(\"C\") || input.hasNext(\"S\") || !input.hasNext()) {\n System.out.println(\"Next is a new shape\");\n unorderedList.append(shapeFactory(data));\n System.out.println(\"\\n\");\n data = \"\";\n }\n }\n\n\n\n\n\n// while(input.hasNext()) {\n// String value = input.next(); //set the value to the input.next so it can be reused later\n//\n// //Ignore space characters\n// if(value.equals(\" \")) {\n// continue;\n// }\n//\n// //Switch through the steps in the create process\n// //Each step will go onto the next process. e.g POLYGON -> SIZE\n// switch (inputType) {\n// case SHAPE:\n// System.out.println(\"CREATING A SHAPE: \" + value);\n// //Creates a new shape\n// shape = shapeFactory(value);\n//\n// //To keep the same flow, this checks if the type requires the size or not.\n// if(requireSize(shape)) {\n// System.out.println(\"\\t Shape is a polygon\");\n// inputType = InputType.SIZE;\n// } else {\n// System.out.println(\"\\t Shape is not a polygon\");\n// inputType = InputType.XCOORDINATE;\n// }\n//\n// break;\n// case SIZE:\n// //Sets the size of the array in polygon\n// shape.setSize(Integer.parseInt(value));\n// inputType = InputType.XCOORDINATE;\n// break;\n// case XCOORDINATE:\n// //Sets the x-coordinate of a point\n// System.out.println(\"\\t Adding x value: \" + value);\n// point.setXCoordinate(Float.parseFloat(value));\n// inputType = InputType.YCOORDINATE;\n// break;\n// case YCOORDINATE:\n// //Sets the y-coordinate of a point\n// System.out.println(\"\\t Adding y value: \" + value);\n// point.setYCoordinate(Float.parseFloat(value));\n//\n// System.out.println(\"\\t Adding point to the shape: \" + point.toString() + \", Pos: \"+ position);\n// //shapes.Point now has two values, so add to shape\n// shape.addPoint(point, position);\n//\n// //Reset point so we don't get any reference issues\n// point = new Point();\n// position++;\n//\n// if(!requireRadius(shape)) {\n// //Check if all points have been added or not\n// if (position == shape.getSize() - 1) {\n// //All points have been added, hence:\n//\n// shape.addFirstPoint(); //add the first point to the array\n// unorderedList.append(shape); //append polygon to the list\n//\n// //Set the input type back to polygon to add a new polygon\n// inputType = InputType.SHAPE;\n// position = 0; //reset position to add items to the start of the array\n// } else {\n// //More points to be added\n// inputType = InputType.XCOORDINATE;\n//\n// }\n// } else {\n// inputType = InputType.RADIUS;\n// }\n// break;\n// case RADIUS:\n// System.out.println(\"Adding radius: \" + value);\n// ((Circle)shape).addRadius(Float.parseFloat(value));\n//\n// unorderedList.append(shape);\n// inputType = InputType.SHAPE;\n// position = 0;\n// break;\n// }\n// }\n input.close();\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\t\tList <String> l=new ArrayList<String>();//If it is Linkedlist the reading is slow;If it is vector it is syncronized.\r\n\t\t\t\tScanner sc=new Scanner(System.in);\r\n\t\t\t\tfor(int i=0;i<10;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Enter String\");\r\n\t\t\t\t\tl.add(sc.next());\r\n\t\t\t\t}\r\n\t\t\t\tCollections.sort(l);//To sort in ascending order\r\n\t\t\t\tfor(String s:l)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(s);\r\n\t\t\t\t}\r\n\t\t\t}", "public static void main(String[] args) {\n\t\tArrayList<Integer> Lista = new ArrayList<Integer>();\n\t\tScanner in = new Scanner(System.in);\n\t\tString string;\n\t\twhile ((string = in.next()) != \"\\n\") {\n\t\t\tLista.add(Integer.parseInt(string));\n\t\t}\n\t\tin.close();\n\t\tSystem.out.println(Lista.size());\n\t\tfor (int i:Lista) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\n\t}", "public FrequencyList (String input){\n\tadd(input);\n }", "public static void main(String[] args) throws IOException {\n\t\tInputStreamReader isreader = new InputStreamReader(System.in);\n\t\tBufferedReader breader = new BufferedReader(isreader);\n\t\tString input = breader.readLine();\n\t\tint n = Integer.parseInt(input);\n\t\tresetList(n);\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n\t\t Scanner s=new Scanner(System.in);\r\n\t\t System.out.println(\"First list :\\n\");\r\n\t\t ArrayList<String>list=new ArrayList<String>();//for getting string datatyped list\r\n\t\t list.add(\"Hai\");//adding elements to the first list\r\n\t\t list.add(\"Welcome\");//adding next element\r\n\t\t list.add(\"Face\");//adding third element\r\n\t\t Iterator itr=list.iterator();//iterating the list to print the values in the list\r\n\t\t while(itr.hasNext())\r\n\t\t {\r\n\t\t \tSystem.out.print(itr.next()+\" \");//printing the list\r\n\t\t }\r\n\t\t System.out.print( \"]\");\r\n\t\t list.clear();//to clear all elements in the array list\r\n\t\t System.out.print(\"\\nAfter clear ArrayList:[\");\r\n\t\t System.out.print( \"]\");\r\n\t}", "public static void main(String[] args) {\r\n \t try{\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n String input=br.readLine();\r\n int N=Integer.parseInt(input);\r\n input=br.readLine();\r\n String[] values=input.split(\" \");\r\n int ints[]=genArray(values);\r\n printArray(ints);\r\n }\r\n catch(Exception e){\r\n \r\n }\r\n }", "@Override\n\tpublic ArrayList<BigDecimal> input(String line) {\n\t\tArrayList<BigDecimal> list = new ArrayList<BigDecimal>();\n\t\tfor (String s : line.split(\"\\\\s+\")) {\n\t\t\tBigDecimal num = new BigDecimal(Double.parseDouble(s));\n\t\t\tlist.add(num);\n\t\t}\n\n\t\treturn list;\n\t}", "public static void main(String[] args) throws NumberFormatException,IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint T = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor(int test_case=1;test_case<=T;test_case++) {\n\t\t\tArrayList list = new ArrayList<>();\n\t\t\tint N = Integer.parseInt(br.readLine());\n\t\t\tStringBuilder str = new StringBuilder(br.readLine());\n\t\t\tfor(int i=0; i<str.length(); i++) {\n\t\t\t\tfor(int j=i+1;j<=str.length();j++) {\n\t\t\t\tlist.add(str.substring(i,j));\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.sort(null);\n\t\t\tSystem.out.println(\"#\"+test_case+\" \"+list.get(N-1));\n\t\t}\n\n\t}", "public void readData() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Enter employee ID \");\n int id = sc.nextInt();\n System.out.println(\"Enter Employee name \");\n String name = sc.next();\n System.out.println(\"Enter Employee salary \");\n double salary = sc.nextDouble();\n\n employeePayrollDataList.add(new EmployeePayrollData(id, name, salary));\n }", "public static void main(String args[]){\r\n Object objArray;\r\n \r\n \t Scanner input = new Scanner(System.in);\r\n \t // display on console enter file name\r\n \t System.out.println(\"Enter array list data separated by a comma - for example 1, 2, 3, 4 : \");\r\n\r\n \t input = new Scanner(System.in);\r\n Object arrayListInput = input.nextLine();\r\n \r\n // create instance of class ArrayList.java\r\n \t Arraylist arrayList = new Arraylist();\r\n\r\n \t // load input data into array list object\r\n \t arrayList.loadArrayList(arrayListInput);\r\n\r\n \t // determine if array list object is empty \t \r\n \t boolean arrayListEmpty = arrayList.isEmpty();\r\n \t \r\n \t System.out.println(\"Is the array list empty \" + arrayListEmpty);\r\n \r\n arrayList.add(\"10\"); \r\n \t System.out.println(\"Add object to array list\");\r\n \t \r\n objArray = arrayList.get(5);\r\n \t System.out.println(\"Get object from array list \");\r\n \r\n }", "List<Object> parse(String inputLine) {\n List<Object> lo = new ArrayList<>();\n int lineLength = inputLine.length();\n for (int i = 0; i < lineLength; i++) {\n char c = inputLine.charAt(i);\n //creator of constant:\n if (isPartOfNumber(c)) {\n String constantValue = \"\";\n for (; i < lineLength; i++) {\n c = inputLine.charAt(i);\n if (!isPartOfNumber(c)) {\n break;\n }\n constantValue += c;\n }\n //assign constant\n lo.add(new Constant(Double.parseDouble(constantValue)));\n if (i == lineLength) {\n break;\n }\n }\n switch (c) {\n case '(':\n lo.add(Brackets.OPENING);\n break;\n case ')':\n lo.add(Brackets.CLOSING);\n break;\n case '²':\n lo.add(Operators.SQUARE);\n break;\n case '√':\n lo.add(Operators.SQUARE_ROOT);\n break;\n case '÷':\n lo.add(Operators.DIVIDE);\n break;\n case '×':\n lo.add(Operators.MULTIPLY);\n break;\n case '%':\n lo.add(Operators.PERCENTAGE);\n break;\n case '+':\n lo.add(Operators.ADD);\n break;\n case '−':\n lo.add(Operators.SUBTRACT);\n break;\n default:\n throw new IllegalArgumentException(\"Unknown symbol used as input string\");\n }\n }\n return lo;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\t\t\t\r\n\t\t\t\tScanner s=new Scanner(System.in);\r\n\t\t\t\tSystem.out.println(\"Enter the List size\");\r\n\t\t\t\tint n=s.nextInt();\r\n\t\t\t\t\r\n\t\t\t\tLinkedList<String> list=new LinkedList<String>();\r\n\t\t\t\tfor(int i=0;i<n;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Enter List index[\"+i+\"]\");\r\n\t\t\t\t\tString no=s.next();\r\n\t\t\t\t\tlist.add(no);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tlist.remove(4);\r\n\t\t\t\tlist.add(2,\"Welcome\");\r\n\t\t\t\tIterator itr1=list.iterator();\r\n\t\t\t\twhile(itr1.hasNext())\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(itr1.next());\r\n\t\t\t\t}\r\n\t\t\r\n\r\n\t}", "private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject = Integer.parseInt(sc.nextLine());\n }\n for (int i=0;i<numOfObject;i++) {\n if (sc.hasNext()) {\n String s = sc.nextLine();\n if (s.trim().isEmpty()) {\n continue;\n }\n result.add(s.split(\" \"));\n }\n }\n sc.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException\");\n }\n return result;\n }", "@SuppressWarnings(\"resource\")\n\tprivate ArrayList<Process> processInput(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Process> processes = new ArrayList<Process>();\n\t\tint count = 0;\n\t\tint index = count % 4;\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tint numOfProcesses, A = 0, B = 0, C = 0, IO;\n\t\tFile file = new File(args[0]);\n\t\ttry {\n\t\t\tscan = new Scanner(file);\n\t\t\tnumOfProcesses = scan.nextInt();\n\t\t\twhile (scan.hasNextInt()) {\n\t\t\t\tindex = count % 4;\n\t\t\t\tint n = scan.nextInt();\n\t\t\t\tif (index == 0)\n\t\t\t\t\tA = n;\n\t\t\t\telse if (index == 1)\n\t\t\t\t\tB = n;\n\t\t\t\telse if (index == 2)\n\t\t\t\t\tC = n;\n\t\t\t\telse {\n\t\t\t\t\tIO = n;\n\t\t\t\t\tProcess p = new Process(A,B,C,IO);\n\t\t\t\t\tp.setCpuTime(C);\n\t\t\t\t\tprocesses.add(p);\n\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tscan.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn processes;\n\t\t\n\t}", "private static ArrayList<Double> autoInput() {\n\t\tArrayList<Double> cumData = new ArrayList<Double>();\n\t\tString workingDir = System.getProperty(\"user.dir\");\n\n\t\tSystem.out.println(AUTO_MSG);\n\t\tin = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString filename = in.nextLine();\n\t\t\tString path = workingDir + File.separator + filename;\n\t\t\tFile file = new File(path);\n\t\t\tif (!file.canRead()) {\n\t\t\t\tSystem.out.println(\"Can\\'t read file! Please try again.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// Good until this point\n\t\t\ttry {\n\t\t\t\treader = new BufferedReader(new FileReader(file));\n\t\t\t\tString line = null;\n\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\tSystem.out.println(\"Line: \" + line);\n\t\t\t\t\tcumData.addAll(strToArrList(line));\n\t\t\t\t}\n\t\t\t\t// if (line == null)\n\t\t\t\treturn cumData;\n\t\t\t\t// cumData.addAll(strToArrList(line));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(FILE_FORMAT_ERR_MSG);\n\t\t\t\tcontinue;\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(FILE_NOT_FOUND_MSG);\n\t\t\t\tcontinue;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t}\n\t}", "public static void main (String[] args){\n\t\tScanner input = new Scanner(System.in); // creates a new scanner object\n\t\t\n\t\tSystem.out.print(\"Enter list (first number is the number of elements) \");\n\t\tint l = input.nextInt(); //first number is the number of elements in the list and it doesn't count in calc.\n\t\tdouble[] numbers = new double [l]; \n\t\tfor (int i = 0; i < l; i++){\n\t\t\tnumbers[i] = input.nextDouble();\n\t\t}\n\t\tif (isSorted(numbers) == true){ // JA: The comparison is not needed, just isSorted(numbers) returns a boolean\n\t\t\tSystem.out.println(\"The list is sorted.\");\n\t\t} else if (isSorted(numbers) == false) {\n\t\t\tSystem.out.println(\"The list is not sorted.\");\n\t\t}\n\t}", "public static void main(String[] args) {\n List s=new ArrayList();\n\t\t s.add(\"Rohit\");\n s.add(2);\n\t\t s.add(1);\n\t\t\n// for collectionssorting \n// s.add(2);\n//\t\ts.add(1);\n//\t\tCollections.sort(s); // for same data type sorting\n//\t\tSystem.out.println(s);\n\t\t\n\t\tIterator itr=s.iterator(); //An Iterator is an object that can be used to loop through collections, \n\t\t //like ArrayList and HashSet.\n\t\twhile(itr.hasNext()) //The hasNext() is a method of Java Scanner class which returns true \n\t\t\t //if this scanner has another token in its input.\n\t\t{\n\t\t\tObject o=itr.next(); //The next() is a method of Java Scanner class which finds and \n\t\t\t //returns the next complete token from the scanner which is in using\n\t\t\t\n\t\t\tSystem.out.println(o);\n\t\t}\n\t\t}", "public static void main(String[] args) {\n\t\tString[] listContents = null;\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tboolean again = true;\n\t\twhile (again) {\n\t\t\tagain = false;\n\t\t\tSystem.out.println(\"Enter file path\");\n\t\t\tString input = scan.next();\n\t\t\ttry {\n\t\t\t\tString contentGrab = new String(Files.readAllBytes(Paths.get(input)));\n\t\t\t\tif (contentGrab.charAt(0) == '1') {\n\t\t\t\t\tcontentGrab = contentGrab.substring(3);\n\t\t\t\t\tcontentGrab = contentGrab.replace(\"\\n\", \"\").replace(\"\\r\", \"\");\n\t\t\t\t\tArrayList<String> choppedList = new ArrayList<String>();\n\t\t\t\t\tfor (int i = 0; i < (contentGrab.length() / 80); i++) {\n\t\t\t\t\t\tchoppedList.add(contentGrab.substring(i * 80, (1 + i) * 80));\n\t\t\t\t\t}\n\t\t\t\t\tformat1(choppedList);\n\t\t\t\t} else if (contentGrab.charAt(0) == '2') {\n\t\t\t\t\tcontentGrab = contentGrab.substring(3);\n\t\t\t\t\tcontentGrab = contentGrab.replace(\"\\n\", \",\").replace(\"\\r\", \"\");\n\t\t\t\t\tlistContents = contentGrab.split(\",\");\n\t\t\t\t\tformat2(listContents);\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tagain = true;\n\t\t\t\tSystem.out.println(\"File not found, enter a correct file path\");\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}", "List<T> readList();", "ListString createListString();", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter some integers and end with 0 \\n\");\n\t\tScanner in = new Scanner(System.in);\n\t\tNode1 top,np,last=null;\n\t\ttop=null;\n\t\tint n=in.nextInt();\n\t\twhile(n!=0) {\n\t\t\tnp = new Node1(n);\n\t\t\tif (top==null){\n\t\t\t\ttop=np;\n\t\t\t}\n\t\t\telse last.next=np;\n\t\t\tlast=np;\n\t\t\tn=in.nextInt();\t\t\t\n\t\t}\n\t\tSystem.out.println(\"The items in the list are: \");\n\t\tprintList(top);\n\n\t}", "private List<CityByDegrees> parseCityInput() throws IOException,NumberFormatException {\r\n\r\n\t\t BufferedReader br = null;\r\n\r\n\t try\r\n\t {\r\n\t \tList <CityByDegrees> cityList = new ArrayList<CityByDegrees>();\r\n\r\n // first try to read from standard input\r\n\t br = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\t String inputLine = null;\r\n\r\n\t //Retrieve and store the different tokens from each line from STDIN\r\n\t\t\t\t\twhile ((inputLine = br.readLine()) != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tinputLine = inputLine.trim();\r\n\t\t\t\t\t\tif(inputLine.startsWith(\"#\")) continue;\r\n\t\t\t\t\t\tString[] tokens = inputLine.split(\"\\\\|\");\r\n\t\t\t\t\t\tString[] interstates = tokens[3].split(\";\");\r\n\t\t\t\t\t\tList interstateList = Arrays.asList(interstates);\r\n\r\n\t\t\t\t\t\tCityByDegrees cityByDegrees = new CityByDegrees(Integer.parseInt(tokens[0].trim()), tokens[1].trim(), tokens[2].trim(), interstateList);\r\n\t\t\t\t\t\tif(cityByDegrees.getCity().equalsIgnoreCase(getStartingVertexCityName())) {\r\n\t\t\t\t\t\t\tcityByDegrees.setDegrees(ZERO_DEGREE);\r\n\t\t\t\t\t\t\tsetStartingVertexCity(cityByDegrees);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcityList.add(cityByDegrees);\r\n\t\t\t\t\t}//end while\r\n\r\n\t\t\t\t\treturn cityList;\r\n\t }\r\n\t\t\tfinally {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tif (br != null) br.close();\r\n\r\n\t\t\t\t\t\t} catch (IOException ex) {\r\n\r\n\t\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t}\r\n\t}", "private List<Item> extractItems(String input) {\n String[] i = input.split(\" \");\n List<Item> items = new ArrayList<>();\n\n for(String s: i) {\n int itemNo = extractItemNo(s);\n double weight = extractWeight(s);\n int price = extractCost(s);\n items.add(new Item(itemNo, weight, price));\n }\n\n items.sort(Comparator.comparingDouble(Item::getWeight));\n return items;\n }", "private static List<Double> parse_line_double(String line, int d) throws Exception {\n\t List<Double> ans = new ArrayList<Double>();\n\t StringTokenizer st = new StringTokenizer(line, \" \");\n\t if (st.countTokens() != d) {\n\t throw new Exception(\"Bad line: [\" + line + \"]\");\n\t }\n\t while (st.hasMoreElements()) {\n\t String s = st.nextToken();\n\t try {\n\t ans.add(Double.parseDouble(s));\n\t } catch (Exception ex) {\n\t throw new Exception(\"Bad Integer in \" + \"[\" + line + \"]. \" + ex.getMessage());\n\t }\n\t }\n\t return ans;\n\t }", "public static void main(String[] args) {\n\t\tArrayList<String> num = new ArrayList<String>();\n\t\tSystem.out.println(\"Enter 5 data to arraylist\");\n\t\tScanner ab = new Scanner(System.in);\n\t\tString a= \"\";\n\t\tfor (int i=0;i<5;i++)\n\t\t{\n\t\t\ta = ab.nextLine();\n\t\t\tnum.add(a);\n\t\t}\n\t\tSystem.out.println(\"ArrayList Elements\"+num);\n\t\tCollections.reverse(num);\n\t\tSystem.out.println(\"ArrayList Reversed Elements\"+num);\n\t\tCollections.swap(num, 0, num.size()-1);\n\t\tSystem.out.println(\"ArrayList after swap\"+num);\n\t}", "public List<Input> inputList_no_dependency_no_timeout() {\n Input t3 = new Input(\"T3\",3, 43);\n Input t2 = new Input(\"T2\",2, 42);\n Input t1 = new Input(\"T1\",1, 41);\n List<Input> input = new ArrayList<>(); input.add(t2); input.add(t3); input.add(t1);\n return input;\n }", "public static void main(String [] args)\r\n\t{\n\t\t\r\n\t\tArrayList<String> arl = new ArrayList<String>();\r\n\t\t\t//addAryList(arl);\r\n\t\tprintArryList(arl);\r\n\t\t//n = sc.nextInt();\r\n\t LinkedList<String> lst = new LinkedList<String>();\r\n\t\tprintLList(lst);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\tint n =5;\n\t\tfor (int i = 0; i <= n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tlist.add(a);\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i <list.size(); i++) {\n\t\t\tSystem.out.print(list.get(i)+\" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = list.size()-1; i >=0; i--) {\n\t\t\tSystem.out.print(list.get(i)+\" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"E__F___L\");\n\t\tfor(int val : list) {\n\t\t\tSystem.out.print(val+\" \");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n ArrayList<Integer> list = new ArrayList<>();\n for (String n:new Scanner(System.in).nextLine().split(\" \")){\n list.add(Integer.parseInt(n));\n }\n\n list.sort((o1, o2) -> {\n if (o1==o2){\n return 0;\n }\n if (o1<o2){\n return -1;\n }\n return 1;\n });\n\n for (int i = 0; i < list.size()/2; i++) {\n System.out.print(list.get(list.size()-i-1)+\" \"+list.get(i)+\" \");\n }\n if (list.size()%2!=0){\n System.out.print(list.size()/2+1);\n }\n\n }", "private static int Initialize (String[] list)\n {\n\t\tString filename, stateInput;\n \t\tint i = 0, numItems = 0;\n \t \ttry {\n System.out.print(\"Input File : \");\n Scanner stdin = new Scanner(System.in);\n filename = stdin.nextLine();\n stdin = new Scanner(new File(filename));\n\n while ((stdin.hasNext()) && (i < list.length))\n {\n stateInput = stdin.nextLine();\n System.out.println(\"S = \" + stateInput);\n list[i] = stateInput;\n i++;\n }\n numItems = i;\n }\n catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return numItems;\n }", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\tString a = input.nextLine();//=> untuk mengambil inputan dari user\r\n\t\t\r\n\t\t/*\r\n\t\t *trim() , digunakan untuk menghapus Whitespace sebelum atau sesudah suatu string\r\n\t\t *split, untuk men-split atau membagi string dari suatu karakter tertentu\r\n\t\t *String[]arr => akan menampung hasil dari trim dan split yang telah dilakukan program \r\n\t\t * */\r\n String[]arr = a.trim().split(\"[ !,?._'@]+\");\r\n \r\n /*\r\n * ArrayList<String> berbeda dengan array biasa\r\n * Perbedaannya adalah:\r\n * array biasa apabila kita menghapus/menambah elemen maka tidak akan mengubah ukurannya\r\n * ArrayList , akan berubah ukuran ketika kita menambah atau mengurangi isi dari array\r\n */\r\n ArrayList<String>listOfStrings = new ArrayList<String>(Arrays.asList(arr));\r\n \r\n //untuk mengetahui berapa banyak elemen dari array \r\n System.out.println(listOfStrings.size());\r\n \r\n for(String str:listOfStrings){\r\n System.out.println(str);\r\n }\r\n\r\n\t}", "public static List<List<Integer>> getR(Scanner input) {\r\n\t\tList<List<Integer>> R = new ArrayList<List<Integer>>();\r\n\t\t\r\n\t\tint i = 0;\r\n\t\twhile(input.hasNextLine()) {\r\n\t\t\tR.add(new ArrayList<Integer>());\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tScanner lineScanner = new Scanner(line);\r\n\t\t\t\r\n\t\t\twhile(lineScanner.hasNext()) {\r\n\t\t\t\tString token = lineScanner.next();\r\n\t\t\t\tif(token.equalsIgnoreCase(\"NA\")) {\r\n\t\t\t\t\tR.get(i).add(INFINITY);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tR.get(i).add(Integer.parseInt(token));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ti++;\r\n\t\t\tlineScanner.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn R;\r\n\t}", "List<String> getListInput(String fieldName);", "public static void main(String[] args) throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n ArrayList<String> list = new ArrayList<String>();\n for (int i = 0; i < 10; i++) {\n list.add(reader.readLine());\n }\n\n // checking the sorting order\n for (int i = 0; i < list.size()-1; i++) {\n if (list.get(i).length() > list.get(i + 1).length()) {\n System.out.println(i+1);\n }\n }\n }", "public static ArrayList<String> nameInput() {\r\n\t\tString name = \"initialized\";\r\n\t\twhile(name.length() > 0) {\r\n\t\tSystem.out.println(\"Enter name: \");\r\n\t\tname = input.nextLine();\r\n\t\tnames.add(name);\r\n\t\t}\r\n\t\treturn names;\r\n\t}", "private static List<StudentRecord> convert(List<String> lines) {\n\t\tObjects.requireNonNull(lines);\n\t\t\n\t\tArrayList<StudentRecord> result = new ArrayList<>(lines.size());\n\t\t\n\t\tfor(String data : lines) {\n\t\t\tif(data.length() == 0) continue; //preskoci prazne linije\n\t\t\tScanner sc = new Scanner(data);\n\t\t\tsc.useDelimiter(\"\\t\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tresult.add(new StudentRecord(sc.next(), sc.next(), sc.next(), sc.next(), sc.next(), sc.next(), sc.next()));\n\t\t\t}catch(NoSuchElementException e) {\n\t\t\t\tsc.close();\n\t\t\t\tthrow new NoSuchElementException(\"Data not formatted correctly.\");\n\t\t\t}\n\t\t\tsc.close();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tFileInputStream fileInputStream = new FileInputStream(\"G:\\\\Prog\\\\arraylist.txt\");\n\t\t\tint i;\n\t\t\twhile((i = fileInputStream.read()) != -1)\n\t\t\t{\n\t\t\t\tSystem.out.print((char)i);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfileInputStream.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t\n\tList l = new ArrayList();\n\t l.toArray();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int orders = Integer.parseInt(in.nextLine());\n List<Node> rst = new ArrayList<Node>();\n for (int i = 1; i <= orders; i++) {\n String[] inputs = in.nextLine().split(\"\\\\s+\");\n int startTime = Integer.parseInt(inputs[0]);\n int duration = Integer.parseInt(inputs[1]);\n rst.add(new Node(i, startTime + duration));\n }\n Collections.sort(rst, new NodeComparator());\n for (Node node : rst) {\n System.out.print(node.index + \" \");\n }\n System.out.println(\"\");\n }", "public static void main(String[] args) throws Exception {\r\n \r\n \t\tCDCollection collection = new CDCollection();\r\n\t\r\n \t\tBufferedReader br = new BufferedReader(new FileReader(\"E:\\\\Reading Writing Labs\\\\bin\\\\textfile.txt\"));\r\n \tString line = null;\r\n \twhile ((line = br.readLine()) != null) {\r\n\t // you can use \" \" to split where white space is\r\n\t String[] values = line.split(\"-\");\r\n\t // for (String str : values) {\r\n\t // System.out.println(str);\r\n\t //}\r\n\t collection.addCD(values[0], values[1], Double.parseDouble(values[2]) , Integer.parseInt(values[3]));\r\n\t }\r\n\t br.close();\r\n\r\n System.out.println (collection);\r\n \r\n }", "public static void main(String[] args) {\n\t\tScanner scn=new Scanner(System.in);\n\t\tlong n=scn.nextInt();\n\t\tSystem.out.print(list(n));\n\t}", "public InputLinkedList(String sInputList) \n\t{\n\t\t//String array for storing each element after ectracting them from the input string\n\t\tString[] splitString = new String[sInputList.length()];\n\t\t\n\t\t//Gives the number of elements in the input List \n\t\tint len = 0;\n\t\t\n\t\t//Checking the input string for presence of spaces\n\t\tfor(int i=0; i < sInputList.length(); i++)\n\t\t{\n\t\t\t\n\t\t\t//Checking whether the character at the current position is a space or not\n\t\t\tif(sInputList.charAt(i) != ' ')\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//Extracting each element from the string and storing them in a string array\n\t\t\t\tsplitString[len] = sInputList.substring(i, sInputList.indexOf(' ', i) == -1 ? sInputList.length() : sInputList.indexOf(' ', i));\n\t\t\t\t\n\t\t\t\t//Updating the value of i\n\t\t\t\ti = sInputList.indexOf(' ', i) == -1 ? sInputList.length() : sInputList.indexOf(' ', i);\n\t\t\t\t\n\t\t\t\t//Incrementing len\n\t\t\t\tlen++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Getting the reference of the head of the Linked List\n\t\tNode ref = head;\n\t\tfor (int i = 0; i < len; i++)\n\t\t{\n\t\t\tif(i == 0)\n\t\t\t{\n\t\t\t\t//If it is the 1st element then create a new \n\t\t\t\t//Node object and assign it to ref and head\n\t\t\t\tref = new Node();\n\t\t\t\thead = ref;\n\t\t\t}\n\t\t\t\n\t\t\t//Create a temporary Node object\n\t\t\tNode temp = new Node();\n\t\t\t\n\t\t\t//Getting the Integer value of the element which are stored as string \n\t\t\t//in the string array and assigning them to the value part of the temp Node\n\t\t\ttemp.value = Integer.parseInt(splitString[i]);\n\t\t\t\n\t\t\t//Assigning the next reference of ref to temp \n\t\t\tref.next = temp;\n\t\t\t\n\t\t\t//Assigning the reference of temp to ref\n\t\t\tref = temp;\n\t\t}\n\t}", "StringList createStringList();", "private ArrayList<Double> fromStringToList(String str){\n ArrayList<Double> list = new ArrayList(0);\n int index = 0;\n for (int i = 0 ; i < str.toCharArray().length ; i++){\n if (str.toCharArray()[i] == '$'){\n String task = str.substring(index, i); //will tell when a task ends\n list.add(Double.parseDouble(task));\n index = i+1;\n }\n }\n return list;\n }", "public static void main(String [] args) {\n DoublyLinkedList<String> ll = new DoublyLinkedList<String>();\n\n String[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\");\n\n for (String s : alphabet) {\n ll.addFirst(s);\n ll.addLast(s);\n }\n System.out.println(ll.toString());\n\n for (String s : ll) {\n System.out.print(s + \", \");\n }\n }", "private void buildUnsortedList(String list)\n\t{\n\t\ttokenBuffer = new StringTokenizer(line);\n\t\tlistSize = Integer.parseInt(tokenBuffer.nextToken());\n\t\tunsortedList = new int[listSize];\n\t\tsortedList = new int[listSize];\n\n\t\t// Grab each integer from the line and throw it in our lists\n\t\tfor(int i = 0; i < listSize; i++) \n\t\t{\n\t\t\tunsortedList[i] = Integer.parseInt(tokenBuffer.nextToken());\n\t\t\tsortedList[i] = unsortedList[i];\n\t\t}\n\t}", "private List<String> getList(String digits) {\n\t\tif(digits.length() == 0) \n\t\t\treturn new LinkedList<String>();\n\t\t\n\t\n\t\treturn Arrays.asList(getCrossProduct(digits));\n\n\t\t\n\t}", "private static double[] getInputs() {\n\t\tdouble[] inputs = new double[SIZE];\n\t\tint counter = 0;\n\t\t\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tSystem.out.print(\"Enter the \" + (counter + 1) + \" value: \");\n\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\tdouble value = sc.nextDouble();\n\t\t\t\tinputs[counter] = value;\n\t\t\t\tcounter += 1;\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Invalid datatype \" + e + \" please try again!\");\n\t\t\t}\n\t\t} while (counter != SIZE);\n\t\t\n\t\t//sc.close();\n\t\treturn inputs;\n\t}", "private void getEachElementOfTheLine() {\n int nbOfComa = 0;\n String idItemCraft = \"\";\n ArrayList<String> idItemNeeded = new ArrayList<>();\n ArrayList<String> quantityItemNeeded = new ArrayList<>();\n boolean isFinished = false;\n for (int c = 0; c < line.length() && !isFinished; c++) {\n switch (nbOfComa) {\n\n case 2:\n quantityItemNeeded.add(new String(\"\" + line.charAt(c)));\n if (line.charAt(c + 1) == '.') {\n isFinished = true;\n } else if (line.charAt(c + 1) == ';') {\n nbOfComa = 1;\n c++;\n }\n break;\n\n case 1:\n idItemNeeded.add(new String(\"\" + line.charAt(c)));\n if (line.charAt(c + 1) == ',') {\n nbOfComa++;\n c++;\n }\n break;\n\n case 0:\n idItemCraft = idItemCraft + line.charAt(c);\n if (line.charAt(c + 1) == ';') {\n nbOfComa++;\n c++;\n }\n break;\n\n default:\n break;\n }\n }\n this.idItemCraft = idItemCraft;\n this.idItemNeeded = idItemNeeded;\n this.quantityItemNeeded = quantityItemNeeded;\n }", "public static void main(String[] args) {\n\t\tArrayList<String> planetList = new ArrayList<String>();\n\t Scanner console = new Scanner(System.in);\n\t System.out.println(\" \\nEnter your favouurate planet: \" );\n\t String planet = console.next();\n\n\t console.close(); \n\t\t//Add user input to the list\n\t\tplanetList.add(planet);\n\t\t//Add a string to the list\n\t\tplanetList.add(\"Gliese 581 c\");\n\t\tSystem.out.println(\" \\nTwo cool planets: \" + planetList);\n\t}", "public InputArray(String sInputList) \n\t{\n\t\t//String array for storing each element after ectracting them from the input string\n\t\tString[] splitString = new String[sInputList.length()];\n\t\t\n\t\t//Gives the number of elements in the input List \n\t\tint len = 0;\n\t\t\n\t\t//Checking the input string for presence of spaces\n\t\tfor(int i=0; i < sInputList.length(); i++)\n\t\t{\n\t\t\t\n\t\t\t//Checking whether the character at the current position is a space or not\n\t\t\tif(sInputList.charAt(i) != ' ')\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//Extracting each element from the string and storing them in a string array\n\t\t\t\tsplitString[len] = sInputList.substring(i, sInputList.indexOf(' ', i) == -1 ? sInputList.length() : sInputList.indexOf(' ', i));\n\t\t\t\t\n\t\t\t\t//Updating the value of i\n\t\t\t\ti = sInputList.indexOf(' ', i) == -1 ? sInputList.length() : sInputList.indexOf(' ', i);\n\t\t\t\t\n\t\t\t\t//Incrementing len\n\t\t\t\tlen++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Instantiating the array with size equal to len\n\t\tinputArray=new int[len];\n\t\t\n\t\t//Getting the Integer value of the element which are stored as string \n\t\t//in the string array and assigning them to the List array\n\t\tfor(int i = 0; i < len; i++)\n\t\t{\n\t\t\tinputArray[i] = Integer.parseInt(splitString[i]);\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tString line;\n\t\tboolean displayNumFlag = true;\n\t\tint displayNum = 0;\n\t\tList<String> sortList = new ArrayList<>();\n\n\t\t//入力例 1\\nSalt Lake City\\nSeattle\\nDenver\\nPhoenix\\n\n\t\t//入力例 2\\nHello World\\n\\nCodeEval\\nQuick Fox\\nA\\nSan Francisco\\n\n\t\twhile ((line = in.readLine()) != null) {\n\t\t\tif (displayNumFlag) {\n\t\t\t\tdisplayNum = Integer.parseInt(line);\n\t\t\t\tdisplayNumFlag = false;\n\t\t\t} else {\n//\t\t\t\tfor (int i = 1; i < list.size(); i++) {\n\t\t\t\tint sortListSize = sortList.size();\n\n\t\t\t\tif (sortListSize > 0) {\n\t\t\t\t\tfor(int j = 0; j < sortListSize; j++) {\n\t\t\t\t\t\tif (line.length() > sortList.get(j).length()) {\n\t\t\t\t\t\t\tsortList.add(j, line);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if (j == sortListSize - 1){\n\t\t\t\t\t\t\tsortList.add(line);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsortList.add(line);\n\t\t\t\t}\n\t\t\t\t//問題文がおかしい?一行ずつの入力でどこで実行の確定処理が入るのか不明。\n\t\t\t\tif (line.equals(\"Phoenix\") || line.equals(\"San Francisco\")) {\n\t\t\t\t\tfor (int i = 0; i < displayNum; i++) {\n\t\t\t\t\t\tSystem.out.println(sortList.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String args[]) {\n Scanner in = new Scanner(System.in);\n int as = in.nextInt();\n int arr[] = new int[as];\n for (int i = 0; i< as ; i++)\n {\n arr[i] = in.nextInt();\n }\n separate(as, arr);\n for (int i = 0; i< as ; i++)\n {\n System.out.print(arr[i] + \" \");\n }\n }", "private void readFromConsole(){\n Scanner cin = new Scanner(System.in);\n\n if(cin.hasNext()){\n number = cin.nextInt();\n }\n array = new long[number];\n\n for(int num = 0; num < number; num++){\n if(cin.hasNext()){\n array[num] = cin.nextLong();\n }\n }\n }", "public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while(true)\n {\n String[] str = br.readLine().split(\" \");\n int n = Integer.parseInt(str[0]);\n int d = Integer.parseInt(str[1]);\n if(n == 0 && d == 0)\n return;\n /*\n else if(n == 1)\n System.out.println(1);\n */\n /*\n else if(d == 0)\n {\n System.out.println(n);\n }\n */\n else\n {\n josephus(n,d);\n }\n /*\n else\n {\n head = null;\n end = null;\n createList(n);\n func(n,d);\n }\n */\n }\n }", "public ArrayList<Files> parseInput(String input){\r\n\t\tScanner parse = new Scanner(input);\r\n\t\tparse.useDelimiter(\";\");\r\n\t\tArrayList<Files> output = new ArrayList<Files>();\r\n\t\twhile(parse.hasNext())output.add(new Files(parse.next()));\r\n\t\tparse.close();\r\n\t\treturn output;\r\n\t}", "public static void main(String[] args)throws Exception\n\t{\n\t\tint n,k,element;\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tGeeksQ13 g=new GeeksQ13();\n\t\t\n\t\tSystem.out.println(\"Enter length of list:\");\n\t\tn=Integer.parseInt(br.readLine());\n\t\tSystem.out.println(\"Enter element whose last occurence removed:\");\n\t\telement=Integer.parseInt(br.readLine());\n\t\tSystem.out.println(\"Enter data in list:\");\n\t\t\n\t\tg.insert(n);\n\t\t\n\t\tSystem.out.println(\"Original list:\");\n\t\tg.printList();\n\t\t\n\t\tSystem.out.println(\"New list:\");\n\t\tg.removeSecond(element);\n\t\tg.printList();\n\n\t}", "public static void main(String[] args) throws IOException {\n\n\n\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n\n int gradesCount = Integer.parseInt(bufferedReader.readLine().trim());\n\n List<Integer> grades = IntStream.range(0, gradesCount).mapToObj(i -> {\n try {\n return bufferedReader.readLine().replaceAll(\"\\\\s+$\", \"\");\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n })\n .map(String::trim)\n .map(Integer::parseInt)\n .collect(toList());\n\n List<Integer> result = Result.gradingStudents(grades);\n\n bufferedReader.close();\n System.out.println(result.stream()\n .map(Object::toString)\n .collect(joining(\"\\n\"))\n + \"\\n\");\n }", "public static List<Input> inputList_no_dependency_with_timeout() {\n Input t3 = new Input(\"T3\",3, 2);\n Input t2 = new Input(\"T2\",2, 1);\n Input t1 = new Input(\"T1\",1, 41);\n List<Input> input = new ArrayList<>(); input.add(t1); input.add(t2); input.add(t3);\n return input;\n }", "abstract void makeList();", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n\t\tSystem.out.println(\"Please enter the list of each ints seperated by a single space..\");\n\t\tboolean validInput = true;\n\n\t\tdo {\n\t\ttry {\n\t\t\tString s = read.readLine();\t\n\t\t\tList<Integer> lst = rightmost.rightMostDigit(s);\n\t\t\tSystem.out.println(\"Rightmost digit of each number is: \" + lst);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Exception: \" + e);\n\t\t\tSystem.out.println(\"Please enter a valid input again... \");\n\t\t\tvalidInput = false;\n\t\t}\n\t\t}while(!validInput);\n\n\t}", "private static void readInput() { input = sc.nextLine().toLowerCase().toCharArray(); }", "public static void main(String[] args) {\n\n\t\tScanner console = new Scanner(System.in);\n\t\tint numEntries = console.nextInt();\n\t\tfor(int ii = 0; ii < numEntries; ii++){\n\t\t\tconsole.nextLine();\n\t\t\tString lineScan = console.nextLine();\n\t\t}\n\t}", "public void processList(List<String> inList);", "private void start() {\n Scanner scanner = new Scanner(System.in);\n \n // While there is input, read line and parse it.\n String input = scanner.nextLine();\n TokenList parsedTokens = readTokens(input);\n }", "public static void main(String[] args) {\n\n List list = new ArrayList();\n\n Iterator i = list.iterator();\n\n list.add(1);\n list.add(\"String\");\n list.add(true);\n list.add(12.23d);\n list.add('c');\n\n while (i.hasNext()) {\n System.out.println(\"Using Iterators : \" + i.next());\n }\n\n\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tList<Integer> l1=Arrays.asList(1,2,3); \n\t System.out.println(\"displaying the Integer values\"); \n\t addNumbers(l1); \n\t \n\t List<Number> l2=Arrays.asList(1.1,2.0,3.0); \n\t System.out.println(\"displaying the Number values\"); \n\t addNumbers(l2); \n\t}", "@Test\n public void testCreateRouterArrayList() throws Exception {\n System.out.println(\"createRouterArrayList\");\n //Scanner input = new Scanner(System.in);\n java.io.File file = new java.io.File(\"sample.csv\");\n Scanner input = new Scanner(file);\n ArrayList<String> expResult = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"C.EXAMPLE.COM,1.1.1.3,no,12.1,\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"c.example.com,1.1.1.5,no,12,Case a bit loose\",\n \"e.example.com,1.1.1.6,no,12.3,\",\n \"f.example.com,1.1.1.7,No,12.200,\",\n \"g.example.com,1.1.1.6,no,15.0,Guarded by sharks with lasers on their heads\"\n ));\n ArrayList<String> result = BTRouterPatch.createRouterArrayList(input);\n assertEquals(expResult, result);\n }", "public static void main(String[] args) throws IOException{\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n\t //TODO Take First line using buffer reader and seperate element by space.\n\t String[] firstMultipleInput = bufferedReader.readLine().replaceAll(\"\\\\s+$\", \"\").split(\" \");\n\t \t \t \tArrayList<Integer> inpArray = new ArrayList<Integer>(firstMultipleInput.length);\n\t \t \t \tfor (int i = 0; i < firstMultipleInput.length; i++) {\n\t\t\t\t\tinpArray.add(Integer.valueOf(firstMultipleInput[i]).intValue());\n\t\t\t\t}\n\t \t System.out.println(DifferenceEvenOdd.solve( inpArray));\n }", "private static List<CustomerDetails> buildInput() {\r\n\t\tList<CustomerDetails> iList = new ArrayList<CustomerDetails>();\r\n\t\tiList.add(new CustomerDetails(\"Abhay\", \"[email protected]\", \"11001\", 7402,\r\n\t\t\t\t\"22-06-2012 11:23\", \"2348723\"));\r\n\t\tiList.add(new CustomerDetails(\"\", \"\", \"\", 5000, \"22-06-2012 13:48\",\r\n\t\t\t\t\"3830283\"));\r\n\t\tiList.add(new CustomerDetails(\"Anant\", \"[email protected]\", \"11002\",\r\n\t\t\t\t3839, \"22-06-2012 15:39\", \"2939303\"));\r\n\t\tiList.add(new CustomerDetails(\"Ashish\", \"[email protected]\", \"11003\",\r\n\t\t\t\t13890, \"22-06-2012 17:15\", \"2828939\"));\r\n\t\tiList.add(new CustomerDetails(\"\", \"\", \"11001\", 12083,\r\n\t\t\t\t\"23-06-2012 11:38\", \"3839403\"));\r\n\t\tiList.add(new CustomerDetails(\"Abhimanyu\", \"[email protected]\", \"11004\",\r\n\t\t\t\t33283, \"23-06-2012 14:18\", \"1384839\"));\r\n\t\tiList.add(new CustomerDetails(\"\", \"\", \"\", 5984, \"23-06-2012 19:56\",\r\n\t\t\t\t\"8383939\"));\r\n\t\tiList.add(new CustomerDetails(\"\", \"\", \"11003\", 38103,\r\n\t\t\t\t\"24-06-2012 15:38\", \"9388383\"));\r\n\t\tiList.add(new CustomerDetails(\"Anant\", \"[email protected]\", \"11002\",\r\n\t\t\t\t7281, \"24-06-2012 19:18\", \"2938381\"));\r\n\t\tiList.add(new CustomerDetails(\"\", \"\", \"\", 1038, \"24-06-2012 20:00\",\r\n\t\t\t\t\"8383383\"));\r\n\t\tiList.add(new CustomerDetails(\"Abhijeet\", \"[email protected]\", \"11005\",\r\n\t\t\t\t17937, \"25-06-2012 18:83\", \"3833838\"));\r\n\r\n\t\t// Collections.unmodifiableList(iList);\r\n\t\treturn iList;\r\n\t}", "public static List<String> createCompetencyList() {\n List<String> list = new ArrayList<String>();\n list.add(\"Line number 1\");\n list.add(\"Line number 2\");\n return list;\n }", "public static void fillArray(TextFileInput input){\r\n String line = input.readLine();\r\n while(line!=null){\r\n StringTokenizer cTokens = new StringTokenizer(line, \":\");\r\n //only if the line has three arguments\r\n if(cTokens.countTokens()==3){\r\n int h = Integer.parseInt(cTokens.nextToken());\r\n int m = Integer.parseInt(cTokens.nextToken());\r\n int s = Integer.parseInt(cTokens.nextToken());\r\n Clock c = new Clock(h, m, s);\r\n //adds clocks to the array\r\n allClocks[clockCount++] = c;\r\n }\r\n else{\r\n System.out.println(line + \" does not have three tokens\");\r\n }\r\n line = input.readLine();\r\n }\r\n }", "public static void main(String[] args) {\n LinkedList lines = new LinkedList();\n Scanner in = new Scanner(System.in);\n Dictionary vars = new Dictionary();\n \n System.out.println(\"Welcome to the testing release of this BASIC interpreter!\");\n \n while(true) {\n System.out.print(\"> \");\n String input = in.nextLine();\n String keyword = input.split(\" \")[0].toUpperCase();\n \n if (keyword.equals(\"RESEQUENCE\")) {\n lines.resequence();\n } else if (keyword.equals(\"LIST\")) {\n System.out.println(lines);\n } else if (keyword.equals(\"ACCEPT\")) {\n String var = input.split(\" \")[1];\n System.out.print(var + \" = \");\n String num = in.nextLine();\n vars.put(var, Double.parseDouble(num));\n } else if (keyword.equals(\"PRINT\")) {\n String var = input.split(\" \")[1];\n System.out.println(var + \" = \" + vars.get(var));\n } else if (keyword.equals(\"RUN\")) {\n //TODO: make it do things\n \n } else {\n //System.out.println(\"default case\");\n String[] tokens = input.split(\" \", 2);\n try {\n Integer.parseInt(tokens[0]);\n lines.insert(input); //to insert a line\n } catch (NumberFormatException e) {\n if (tokens[0].equals(\"LET\")) {\n String[] letTokens = tokens[1].split(\"=\");\n System.out.println(java.util.Arrays.toString(letTokens));\n try {\n Double num = Double.parseDouble(letTokens[1].replaceAll(\"\\\\s\", \"\"));\n vars.put(letTokens[0], num);\n } catch (NumberFormatException e1) {\n System.out.println(\"Invalid input, try again.\");\n } \n } else {\n InfixConverter converter = new InfixConverter(input, vars);\n System.out.println(converter.convert());\n }\n }\n }\n }\n }", "public static void main(String args[] ) throws Exception {\n \n Scanner s = new Scanner(System.in);\n List<String> inputList = new ArrayList<String>(); \n int limit = Integer.parseInt(s.nextLine());\n while (s.hasNextLine()) {\n \n String scanValue = s.nextLine();\n inputList.add(scanValue); \n } \n\n List<Integer> intList = getAllValuesArr(inputList);\n \n intList.stream().forEach(i -> {\n\n IntStream.range(1, i+1).forEach(num -> { \n printRangeNumbers(num); \n });\n });\n \n\n\n }", "public static double[][] insertArray(int number) {\n double[][] array = new double[number][number];\n System.out.println(number + \"*\" + number);\n System.out.println(\"Enter all the elements: \");\n Scanner scanner1 = new Scanner(System.in);\n while (true) {\n if (!scanner1.hasNextLine()) break;\n for (int i = 0; i < array.length; i++) {\n String[] line = scanner1.nextLine().trim().split(\" \");\n for (int j = 0; j < line.length; j++) {\n array[i][j] = Double.parseDouble(line[j]);\n }\n }\n break;\n }\n objectives=array.clone();\n return array;\n }", "public static void main(String a[])throws IOException\n {\n \tInputStreamReader r=new InputStreamReader(System.in); \n BufferedReader br=new BufferedReader(r); \n String name=br.readLine(); \n String name2=br.readLine(); \n LinkedList obj = new LinkedList();\n String str[] = name.split(\",\");\n for(int i=0;i<str.length;i++)\n {\n \tobj.add(str[i]);\n }\n System.out.println(obj);\n System.out.println(\"Size of the linked list: \"+obj.size());\n System.out.println(\"Is LinkedList empty? \"+obj.isEmpty());\n System.out.println(\"Does LinkedList contains \"+name2+\"?\");\n System.out.println(obj.contains(name2));\n }", "private Command createListCommand(){\n\t\tList<Command> commands = new ArrayList<>();\n\t\twhile(!codeReader.hasNext(END_LIST)) {\n\t\t\ttry {\n\t\t\t\tString s = codeReader.next();\n\t\t\t\tcommands.add(parseCommand(s));\n\t\t\t}\n\t\t\tcatch(NoSuchElementException n) {\n\t\t\t\tthrow new SLogoException(\"Unclosed Bracket.\");\n\t\t\t}\n\t\t}\n\t\tcodeReader.next();\n\t\treturn new ListCommand(commands);\n\t}", "public static void main(String[] args) {\n\n\t\n\t\tScanner sc =new Scanner(System.in);\n\t\t\n\t\tfor (int i =1; i <=10; i++) {\n\t\t\t\n\t\t\ttree=null;\n\t\t\tint n=sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\t\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tString str= sc.nextLine();\n\t\t\t\t\n\t\t\t\tstr=str.split(\"\\n\")[0];\n\t\t\t\t\n\t\t\t\tString[] spli=str.split(\" \");\n\t\t\t\t\n//\t\t\t\tSystem.out.println(Arrays.toString(spli));\n\t\t\t\t\n\t\t\t\tmakeNode(spli);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.print(\"#\"+i+\" \");\n\t\t\tinorder(tree);\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t}", "public static void main(String[] args) {\n String[] List = new String[50];\n\n System.out.println(\"Hello! Here is a list with the actions that you can do! \");\n Agenda m = new Agenda();\n\n //create an object to show printMenu method\n m.printMenu();\n\n System.out.println(\"Select an option:\");\n Scanner intrare=new Scanner(System.in);\n\n\n do {\n\n //Option takes the entered value\n int option= intrare.nextInt();\n\n switch (option){\n case 1: m.listWholeList();\n break;\n\n case 2: m.searchNameAndDisplay();\n break;\n\n case 3: m.createItem();\n break;\n\n case 4: m.updateName();\n break;\n\n case 5: m.deleteName();\n break;\n\n case 6: m.exitList();\n break;\n }\n\n\n }\n while (true);\n\n\n\n\n\n}", "public static List<Integer> makeList(int size) {\r\n List<Integer> result = new ArrayList<>();\r\n /** \r\n * taking input from the user \r\n * by using Random class. \r\n * \r\n */\r\n for (int i = 0; i < size; i++) {\r\n int n = 10 + rng.nextInt(90);\r\n result.add(n);\r\n } // for\r\n\r\n return result;\r\n /**\r\n * @return result \r\n */\r\n }", "public ConsList<String> tryToConsumeInput( ConsList<String> unprocessedInput );", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n // Objects of polynomial class (Linked list) to store expressions.\n Polynomial polynomial = new Polynomial();\n Polynomial polynomial1 = new Polynomial();\n\n // input expression in the form of string.\n String equation1 = scan.nextLine();\n String equation2 = scan.nextLine();\n\n // stringToLinkedList method to convert given string to linked list of polynomial.\n polynomial.stringToLinkedList(equation1);\n polynomial1.stringToLinkedList(equation2);\n\n // resultantPolynomial to store addition of two expressions in linked list of polynomial type.\n Polynomial resultantPolynomial = new Polynomial();\n resultantPolynomial.addPolynomial(polynomial, polynomial1);\n\n // Display polynomial equation on console.\n resultantPolynomial.display();\n }", "public static LinkedList_Details createList() {\n\n\t\t\t\t\tSystem.out.print(\"\\nEnter min length of list : \");\n\t\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\t\tint len = sc.nextInt(); //take min length of list \n\t\t\t\t\tint i = 0; //loop counter variable\n\t\t\t\t\tint v; //list values will be assigned to this variable in loop\n\n\t\t\t\t\tNode head = null; //head node declaration\n\t\t\t\t\tNode temp = null; //temp node to keep track of node in loop\n\n\t\t\t\t\t//If we dont want to enter list values manually, we can generate random values\n\t\t\t\t\tSystem.out.println(\"\\nDo you want enter your own values for the list? if Yes, enter 1 \\nif No, enter 0\");\n\t\t\t\t\tScanner rd_sc = new Scanner(System.in);\n\t\t\t\t\tint rd_val = rd_sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\twhile (i <= len) {\n\n\t\t\t\t\t\t\t\tif( i == len) {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\nYou have created a list of \" + len + \" values.\"); \n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Do you still want to enter values in the list?\");\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"if Yes, enter the length by which you want to extend the list\");\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"if No, enter 0\");\n\n\t\t\t\t\t\t\t\t\t\tScanner li_sc = new Scanner(System.in);\n\t\t\t\t\t\t\t\t\t\tint ext_len = li_sc.nextInt();\n\t\t\t\t\t\t\t\t\t\tlen = len + ext_len;\n\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tif(i < len){\t\t\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\t\t\t\tif(rd_val == 0) {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tRandom rand = new Random(); \n\t\t\t\t\t\t\t\t\t\t\t\t\tv = rand.nextInt(1000);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Enter a value for the list\");\n\t\t\t\t\t\t\t\t\t\t\tScanner val_sc = new Scanner(System.in);\n\t\t\t\t\t\t\t\t\t\t\tv = val_sc.nextInt();\n\t\t\t\t\t\t\t\t\t\t} \n\t\t\n\t\t\t\t\t\t\t\t\t\tif(head == null) { temp = new Node(v); head = temp; }\n\t\t\t\n\t\t\t\t\t\t\t\t\t\telse {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\ttemp.next = new Node(v);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\ttemp = temp.next;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tLinkedList_Details ld = new LinkedList_Details(len, head);\n\n\t\t\t\t\treturn ld;\n\t\t\t}", "public static void main(String args[]) {\n LinkedList list = new LinkedList();\n // add elements to the linked list\n list.add(\"M\");\n list.add(\"A\");\n list.add(\"N\");\n list.add(\"is\");\n list.add(\"#\");\n list.addLast(\"1\");\n list.addFirst(\"A\");\n list.add(0, \"A2\");\n System.out.println(\"The contents of the linked list are: \" + list); \n }", "public static ArrayList<Integer> getIntegerList(){\n Scanner input = new Scanner(System.in);\n ArrayList<Integer> numbers = new ArrayList<>();\n String answer = \"\";\n do{\n System.out.println(\"Please enter your number:\");\n Integer num = input.nextInt();\n numbers.add(num);\n System.out.println(\"Do you want to enter more?\");\n input.nextLine();\n answer = input.nextLine();\n }while (answer.equalsIgnoreCase(\"Y\"));\n\n return numbers;\n }", "public static void main(String[] args) {\n String input = \"ABC\";\n List<String> result = new ArrayList <> ();\n result = permutations(input);\n System.out.println(Arrays.asList(result)); \n }", "List<T> read();", "public List<Arguments> source_StringDouble() {\n //Processing done here\n return Arrays.asList(Arguments.arguments(\"tomato\", 2.0),\n Arguments.arguments(\"carrot\", 4.5),\n Arguments.arguments(\"cabbage\", 7.8));\n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint N = Integer.parseInt(br.readLine());\n\t\tPriorityQueue<Integer> q = new PriorityQueue<Integer>();\n\t\t\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tq.add(n);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tsb.append(q.poll() + \"\\n\");\n\t\t}\n\t\t\n\t\tSystem.out.println(sb.toString());\n\t}" ]
[ "0.6572415", "0.6501005", "0.618849", "0.61647713", "0.6120314", "0.6105987", "0.6055772", "0.6052319", "0.5973635", "0.5970861", "0.5946384", "0.59173584", "0.59097546", "0.5815159", "0.57664895", "0.57170296", "0.5703371", "0.5695636", "0.5687495", "0.568222", "0.5655935", "0.56424433", "0.5641333", "0.56140643", "0.5567111", "0.555975", "0.5541334", "0.5534384", "0.552525", "0.5520582", "0.5519934", "0.55118567", "0.55096686", "0.55039793", "0.5484773", "0.5483872", "0.5482873", "0.54794836", "0.54784364", "0.54760253", "0.5475579", "0.5469943", "0.5468497", "0.54644424", "0.5463899", "0.5458202", "0.5453163", "0.5450925", "0.54497963", "0.54371893", "0.5431332", "0.5419363", "0.54192376", "0.5414145", "0.5407729", "0.5403205", "0.5401313", "0.53713185", "0.5369289", "0.53684145", "0.53597707", "0.5354976", "0.5340061", "0.531898", "0.53160757", "0.5313153", "0.5309281", "0.5297356", "0.5296138", "0.5295792", "0.5287588", "0.5286278", "0.5282637", "0.5282033", "0.5281513", "0.5279955", "0.5274361", "0.5269045", "0.5264775", "0.5264072", "0.5261458", "0.5260548", "0.5251613", "0.52512467", "0.5236967", "0.5236653", "0.52350277", "0.5224018", "0.5220776", "0.52153784", "0.5213119", "0.5209599", "0.5208759", "0.5198788", "0.51957583", "0.5187622", "0.518714", "0.5185046", "0.51832145", "0.5177663", "0.51775753" ]
0.0
-1
When the draggableEllipse (the head) is clicked, it changes its color to the one saved in the color holder(which is the color of the button clicked)
public void mouseClicked(MouseEvent e) { this.setColor(colorHolder.getColor()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed(MouseEvent e){\n if(e.getSource() == cmUI) {\n ColorMixerModel.ColorItem tmpC = selectedColor(e.getPoint());\n if(tmpC == null) {\n // if clicked on a empty space\n // create a new color\n // or draw a trace to delete color\n isTracing = true;\n mouseTrace.moveTo(e.getX(),e.getY());\n cmModel.addColor(e.getPoint(), cpModel.getMainColor(), false);\n }\n else{\n // sampling a certain of color\n tmpC.setSample(true, e.getPoint());\n }\n }\n \n //if mouse event is called from the color picker\n else if(e.getSource() == cpUI) {\n \t//if the press is in the handle set the booleans\n\t\t\tif(cpUI.getHandle().contains(e.getPoint())) {\n\t\t\t\tmouseClickedInCircle = true;\n\t\t\t\tmouseClickedInSwipePanel = false;\n\t\t\t}\n\t\t\t//if the press is anywhere else\n\t\t\telse {\n\t\t\t\t//if the press is inside one of the fix circles change the color directly\n\t\t\t\tfor(int i = 0; i < 8; i++) {\n\t\t\t\t\tif(cpUI.getFixCircle(i).contains(e.getPoint())) {\n\t\t\t\t\t\tcpModel.setMainColor(cpUI.getFixCircleColor(i));\n\t\t\t\t\t\tcpUI.repaint();\n\t\t\t\t\t\tmouseClickedInCircle = false;\n\t\t\t\t\t\tmouseClickedInSwipePanel = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmouseClickedInCircle = false;\n\t\t\t\tmouseClickedInSwipePanel = true;\n\t\t\t}\n\t\t\tmouseClickedPoint = e.getPoint();\n\t\t\tmouseDraggedPoint = mouseClickedPoint;\n\t\t}\n }", "public void mouseClicked(MouseEvent e){\n if(e.getSource() == cmUI){\n ColorMixerModel.ColorItem tempC = selectedColor(e.getPoint());\n if(e.getClickCount() == 1){\n if(!cmModel.isCreating()) {\n // if there is no color creating and no color selected\n // single click to create random explore-purposed color\n if (tempC == null && (cmModel.getSelectedItem()== null || cmModel.getSelectedItem().isEmpty())) {\n cmModel.addColor(e.getPoint(), null, true);\n }\n // select color\n // if tempC == null, it will deselect all the color\n cmModel.setSelectedItem(tempC);\n // when selecting a color, set the color picker\n if(tempC != null) {\n cpModel.setMainColor(tempC.getColor());\n cpUI.repaint();\n }\n\n }\n\n }\n else if(e.getClickCount() == 2){\n // double click to add the color to palette\n if(tempC!=null){\n pModel.addColor(tempC.getColor());\n repaint(pModel.getSize()-1);\n }\n }\n cmModel.stopCreating();\n cmUI.repaint();\n }\n \n else if(e.getSource() == pUI){\n int idx = pUI.getIdx(e.getPoint());\n if (idx < pModel.getSize()) {\n if (cmModel.getSelectedItem() == null) {\n pModel.select(idx);\n }\n else {\n cmModel.changeColor(pModel.getColor(idx));\n }\n }\n }\n\n\n }", "public void mouseClicked(MouseEvent e) {\n \t Color current = model.getColor();\r\n \t //this will be better as a separate function but later\r\n \t if (current==Color.red){ //if red\r\n \t\t model.setColor(Color.blue);\r\n \t }\r\n \t else if (current==Color.blue){\r\n \t\t model.setColor(Color.green);\r\n \t }\r\n \t else if (current==Color.green) {\r\n \t\t model.setColor(Color.white);\r\n \t }\r\n \t else{ //anything but red or blue or green\r\n \t\t model.setColor(Color.red);\r\n \t }\r\n \t view.resetView(model);\r\n \t view.updateSquare();\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.RED;\n\t\t\t}", "public void colorClicked(View view) {\n //Selecting a colour\n if(view != currColor) {\n handwritingView.setErase(false); // Selecting a color switches to write mode\n ImageButton btnView = (ImageButton)view;\n String selColor = view.getTag().toString();\n handwritingView.changeColor(selColor);\n\n //Visually change selected color\n btnView.setAlpha((float) 0.50);\n currColor.setAlpha((float) 1.00);\n currColor = (ImageButton)view;\n }\n }", "@Override\r\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tComponent com = (Component)e.getSource(); //마우스가 올라간 컴포넌트 알아냄.\r\n\t\t\tcom.setBackground(Color.GRAY);\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.BLUE;\n\t\t\t}", "@Override\r\npublic void mouseClicked(MouseEvent e) {\n\t\r\n\tb1.setBackground(Color.pink);\r\n\t\r\n}", "@Override\r\npublic void mousePressed(MouseEvent arg0) {\n\t\r\n\tb1.setBackground(Color.pink);\r\n\t\r\n}", "@Override\r\n public void mousePressed(MouseEvent e) {\n setBackground(Color.BLUE);\r\n \r\n \r\n }", "@Override\r\n public void actionPerformed(ActionEvent event) {\r\n if (event.getSource() == redInput ||\r\n event.getSource() == greenInput ||\r\n event.getSource() == blueInput) {\r\n int value;\r\n int red = currentColor.getRed();\r\n int green = currentColor.getGreen();\r\n int blue = currentColor.getBlue();\r\n try {\r\n value = Integer.parseInt((String) event.getActionCommand());\r\n } catch (Exception e) {\r\n value = -1;\r\n }\r\n if (event.getSource() == redInput) {\r\n if (value >= 0 && value < 256)\r\n red = value;\r\n else\r\n redInput.setText(String.valueOf(red));\r\n } else if (event.getSource() == greenInput) {\r\n if (value >= 0 && value < 256)\r\n green = value;\r\n else\r\n greenInput.setText(String.valueOf(green));\r\n } else if (event.getSource() == blueInput) {\r\n if (value >= 0 && value < 256)\r\n blue = value;\r\n else\r\n blueInput.setText(String.valueOf(blue));\r\n }\r\n currentColor = new Color(red, green, blue);\r\n newSwatch.setForeground(currentColor);\r\n colorCanvas.setColor(currentColor);\r\n } else if (event.getSource() == okButton) {\r\n // Send action event to all color listeners\r\n if (colorListeners != null) {\r\n ActionEvent new_event = new ActionEvent(this,\r\n ActionEvent.ACTION_PERFORMED,\r\n CHANGE_ACTION);\r\n colorListeners.actionPerformed(new_event);\r\n }\r\n setVisible(false);\r\n } else if (event.getSource() == cancelButton) {\r\n if (colorListeners != null) {\r\n ActionEvent new_event = new ActionEvent(this,\r\n ActionEvent.ACTION_PERFORMED,\r\n CANCEL_ACTION);\r\n colorListeners.actionPerformed(new_event);\r\n }\r\n currentColor = null;\r\n setVisible(false);\r\n }\r\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent actionevent)\r\n\t\t{\n\t\t\tColor c = (Color) getValue( \"Color\" );\r\n\t\t\tsetBackground( c );\r\n\t\t}", "@Override\n public void mouseClicked(final MouseEvent e)\n {\n ColorChooserFrame.COLOR_CHOOSER_FRAME.chooseColor(this.color.getRGB(), this);\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetBackground(color);\t\r\n\t\t\t\tvazioSouth.setBackground(color);\r\n\t\t\t\tvazioEast.setBackground(color);\r\n\t\t\t\tbtsPaintJPanel.setBackground(color);\r\n\t\t\t\tbotaoJPanel.setBackground(color);\r\n\t\t\t}", "private void define_select_color(){\n\n TextView white_panel = (TextView) findViewById(R.id.palette_white);\n TextView black_panel = (TextView) findViewById(R.id.palette_black);\n TextView red_panel = (TextView) findViewById(R.id.palette_red);\n TextView blue_panel = (TextView) findViewById(R.id.palette_blue);\n\n white_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=WHITE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n black_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=BLACK;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n red_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = RED;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n blue_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = BLUE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n\n\n\n }", "public void mouseClicked(MouseEvent e) {\r\n if (e.getButton() == MouseEvent.BUTTON3) {\r\n rectangle = null;\r\n uncolorNodes(selectedIds);\r\n } else if (e.getButton() == MouseEvent.BUTTON1) {\r\n rectangle = new Rectangle(e.getPoint(), new Dimension(1, 1));\r\n colorSelectedNodes();\r\n }\r\n }", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "@Override\n public void handle(ActionEvent event) {\n canvasState.changeFillColor(fillercolor.getValue());\n redrawCanvas();\n }", "@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }", "public void actionPerformed(ActionEvent event) {\n if (event.getActionCommand().equals(EDIT)) {\n if (!canvas.isAncestorOf(colorChooserPanel)) {\n colorChooser.setColor(currentColor);\n \n // Add the colorChooserPanel.\n canvas.addAsFrame(colorChooserPanel);\n colorChooserPanel.requestFocus();\n parent.setEnabled(false);\n // No repainting needed apparently.\n }\n }\n else if (event.getActionCommand().equals(OK)) {\n currentColor = colorChooser.getColor();\n \n if ((lastRow >= 0) && (lastRow < players.size())) {\n Player player = getPlayer(lastRow);\n player.setColor(currentColor);\n }\n \n // Remove the colorChooserPanel.\n canvas.remove(colorChooserPanel);\n parent.setEnabled(true);\n // No repainting needed apparently.\n \n fireEditingStopped();\n }\n else if (event.getActionCommand().equals(CANCEL)) {\n // Remove the colorChooserPanel.\n canvas.remove(colorChooserPanel);\n parent.setEnabled(true);\n // No repainting needed apparently.\n \n fireEditingCanceled();\n }\n else {\n logger.warning(\"Invalid action command\");\n }\n }", "public void handle(ActionEvent event)\n {\n selectedColor = Paint.valueOf(colorCombo.getSelectionModel().getSelectedItem());\n event.consume();\n //----\n }", "private void onColourWheelInput(MouseEvent e)\n {\n int x = (int)e.getX(), y = (int)e.getY();\n try\n {\n setColour(pickerWheel.getImage().getPixelReader().getColor(x, y), true);\n syncSliderInput();\n syncHexInput();\n syncRgbInput();\n } catch (IndexOutOfBoundsException ex){}\n }", "@Override\n public void excute() {\n drawable.setColor(color);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.BLACK;\n\t\t\t}", "public void mousePressed(MouseEvent me) {\n\t\t\tfigure.setBackgroundColor(ColorConstants.yellow);\n\t\t}", "public void widgetSelected(SelectionEvent arg0) {\n\t\t ColorDialog dlg = new ColorDialog(shell);\r\n\r\n\t\t // Set the selected color in the dialog from\r\n\t\t // user's selected color\r\n\t\t Color shpColor = viewer.getShpReader().getForeColor();\r\n\t\t dlg.setRGB(shpColor.getRGB());\r\n\r\n\t\t // Change the title bar text\r\n\t\t dlg.setText(Messages.getMessage(\"SHPLayersScreen_ColorDialog\"));\r\n\r\n\t\t // Open the dialog and retrieve the selected color\r\n\t\t RGB rgb = dlg.open();\r\n\t\t if (rgb != null && !rgb.equals(shpColor.getRGB())) {\r\n\t\t // Dispose the old color, create the\r\n\t\t // new one, and set into the label\r\n\t\t \tnewColor = new Color(shell.getDisplay(), rgb);\r\n\t\t\t\t\tlabelColor.setBackground(newColor);\r\n\t\t }\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n\n cp.show();\n /* On Click listener for the dialog, when the user select the color */\n Button okColor = (Button) cp.findViewById(R.id.okColorButton);\n okColor.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n /* You can get single channel (value 0-255) */\n int red = cp.getRed();\n int blue = cp.getBlue();\n int green = cp.getGreen();\n /*\n if (color < 0)\n color = -color;*/\n lights.lightscolors.get(index).rgbhex = \"#\" + String.format(\"%02x\", red) + String.format(\"%02x\", green) + String.format(\"%02x\", blue);\n lights.lightscolors.get(index).color = \"rgb(\" + red + \",\" + green + \",\" + blue + \")\";\n Log.v(\"ColorPicker ambiance\", lights.lightscolors.get(index).color);\n int rgb = Color.parseColor(lights.lightscolors.get(index).rgbhex);\n if (!lights.lightscolors.get(index).on)\n rgb = 0;\n GradientDrawable gd = (GradientDrawable) circles.get(index).getDrawable();\n gd.setColor(rgb);\n gd.setStroke(1, Color.WHITE);\n cp.dismiss();\n }\n });\n }", "public void mouseDragged(MouseEvent e){\n if(e.getSource() == cmUI) {\n // finish the creation\n cmModel.stopCreating();\n\n // if we are sampling the model\n // move the sample color to pass it to another color\n if (cmModel.sample != null) {\n cmModel.sample.setPos(e.getPoint());\n if (cmModel.sampledItem != null) {\n // when the sample enters/ leave the sampled item\n // set the different display mode\n if (cmModel.sampledItem.isSampling() && !cmModel.sampledItem.contains(cmModel.sample)) {\n cmModel.sampledItem.setSample(false, null);\n repaint(cmModel.sampledItem, cmModel.sample);\n } else if (!cmModel.sampledItem.isSampling() && cmModel.sampledItem.contains(cmModel.sample)) {\n cmModel.sampledItem.setSample(true, null);\n repaint(cmModel.sampledItem, cmModel.sample);\n } else if (cmModel.sampledItem.isSampling()) {\n repaint(cmModel.sampledItem, cmModel.sample);\n } else {\n repaint(cmModel.sample);\n }\n }\n }\n\n // save the trace points\n if(isTracing){\n mouseTrace.lineTo(e.getX(),e.getY());\n }\n }\n \n //click event comes from the color picker\n else if(e.getSource() == cpUI) {\n\t\t\tmouseClickedPoint = mouseDraggedPoint;\n\t\t\tmouseDraggedPoint = e.getPoint();\n\t\t\t\n\t\t\t//if mouse is clicked in the white handle change the hue\n\t\t\tif(mouseClickedInCircle) {\n\t\t\t\t//Hue changes faster with left click\n\t\t\t\tif(SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\tcalculateHue(1);\n\t\t\t\t}\n\t\t\t\t//Hue changes slowly with right click\n\t\t\t\telse if(SwingUtilities.isRightMouseButton(e)){\n\t\t\t\t\tcalculateHue(2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if mouse is clicked anywhere except the handle\n\t\t\t//and the circles surrounding the main color picker\n\t\t\t//change saturation and brightness\n\t\t\telse if(mouseClickedInSwipePanel) {\n\t\t\t\t//Saturation and Brightness change faster with left click\n\t\t\t\tif(SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\tcalculateSandB(1);\n\t\t\t\t}\n\t\t\t\t//Saturation and Brightness change slowly with right click\n\t\t\t\telse if(SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\tcalculateSandB(2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Add a trail circle (circles that follow the mosue when you press it)\n\t\t\t\t//every five times this action listener is called\n\t\t\t\tif(count % 5 == 0) {\n\t\t\t\t\tcpUI.getCircleTrail().add(mouseDraggedPoint);\n\t\t\t\t\tif(cpUI.getCircleTrail().size() == 10) {\n\t\t\t\t\t\tcpUI.getCircleTrail().remove(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t\tcpUI.repaint();\n\t\t}\n\n }", "@Override\n public void onClick(View v) {\n int red = cp.getRed();\n int blue = cp.getBlue();\n int green = cp.getGreen();\n /*\n if (color < 0)\n color = -color;*/\n lights.lightscolors.get(index).rgbhex = \"#\" + String.format(\"%02x\", red) + String.format(\"%02x\", green) + String.format(\"%02x\", blue);\n lights.lightscolors.get(index).color = \"rgb(\" + red + \",\" + green + \",\" + blue + \")\";\n Log.v(\"ColorPicker ambiance\", lights.lightscolors.get(index).color);\n int rgb = Color.parseColor(lights.lightscolors.get(index).rgbhex);\n if (!lights.lightscolors.get(index).on)\n rgb = 0;\n GradientDrawable gd = (GradientDrawable) circles.get(index).getDrawable();\n gd.setColor(rgb);\n gd.setStroke(1, Color.WHITE);\n cp.dismiss();\n }", "public void highlight(){\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\t//if(!clicked){\t\n\t\t\t\t\n\t\t\t\tfirsttime=true;\n\t\t\t\tclicked=true;\n\t\t\t\tif(piece!=null){\n\t\t\t\t\txyMovment=piece.xyPossibleMovments(xPosition, yPosition);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public void actionPerformed(ActionEvent e)\n {\n//this is called when an action event occurs\n\n\n String cmd = e.getActionCommand();\n if (cmd.equals(\"Red\"))\n c.setBackground(Color.red);\n if (cmd.equals(\"Blue\"))\n c.setBackground(Color.blue);\n }", "@Override\n \t public void actionPerformed(ActionEvent e) \n \t {\n \t\t Color newColour = JColorChooser.showDialog(null, \"Choose a colour!\", Color.black);\n \t\t if(newColour == null)\n \t\t\t return;\n \t\t else\n \t\t\t client.setColor(newColour);\n \t }", "protected abstract void updateShapeColor(Color color);", "private void onBucketInput(MouseEvent e)\n {\n Circle bucket = (Circle)e.getTarget();\n if (e.getButton().equals(MouseButton.PRIMARY))\n {\n setColour((Color)bucket.getFill(), true);\n syncRgbInput();\n syncHexInput();\n syncSliderInput();\n }\n else if (e.getButton().equals(MouseButton.SECONDARY))\n {\n bucket.setFill(toolColour);\n Tooltip.uninstall(bucket, bucketTooltip);\n }\n }", "public void mousePressed(MouseEvent me) {\r\n Object obj = getElementAt(me.getX(), me.getY());\r\n if (obj != null) {\r\n ((Brick) obj).setBrickColor(Color.BLUE);\r\n ((Brick) obj).setColor(Color.BLUE);\r\n }\r\n }", "public void actionPerformed(ActionEvent e) {\n float zufall = (float) Math.random(); \n Color grauton = new Color(zufall,zufall,zufall);\n c.setBackground(grauton); // Zugriff auf c moeglich, da\n }", "public void mousePressed( MouseEvent e )\n {\n x = pressx = e.getX(); y = pressy = e.getY();\n \n Point p0 = new Point( x, y );\n Point p1 = new Point( pressx, pressy );\n \n if ( mode==0 ) { theShape = theLine = new Line( p0, p1 ); }\n else if ( mode==1 ) { theShape = theBox = new Box( p0, p1 ); }\n \n allTheShapes[ allTheShapesCount++ ] = theShape;\n \n theShape.color = theColorPicker.b.color;\n }", "public void changeColor(View v) {\n\n if (i_act_id > 0) {\n ImageView img = (ImageView) findViewById(ID_PlacementMode_BrickPreview_ImageView);\n\n // release old brick\n if (objBrickPreview != null) {\n objBlockFactory.ReleaseBlock(objBrickPreview);\n objBrickPreview = null;\n b_brick_is_placeable = false;\n }\n\n // get actual selected shape\n BlockShape block_shape = map_id_to_bricks.get(i_act_id);\n\n // get color from id\n BlockColor block_color = map_id_to_color.get(v.getId());\n\n // if block is available pick up\n if (objBlockFactory.IsBlocktypeAvailable(block_shape, block_color)) {\n img.setColorFilter(map_blockcolor_to_int.get(block_color));\n objBrickPreview = objBlockFactory.Allocate(block_shape, block_color);\n objBrickPreview.setRotation(BlockRotation.DEGREES_0);\n\n // Allowing a view to be dragged\n findViewById(ID_PlacementMode_BrickPreview_ImageView).setOnTouchListener(new BrickTouchListener());\n\n // set flag that brick is placeable\n b_brick_is_placeable = true;\n }\n }\n updateView();\n\n }", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tActionCell.this.setBackground(new Color(.35f, .58f, .92f));\n\t\t\t}", "public void paint (MouseEvent mouseDragged, ColorPicker colorPicker) {\n graphicsContext = getGraphicsContext2D();\n x = mouseDragged.getX();\n y = mouseDragged.getY();\n graphicsContext.setFill(colorPicker.getValue());\n graphicsContext.fillOval(x, y, size,size);\n\n }", "@Override\n public void mousePressed(MouseEvent arg0) {\n yourBoardPanel[xx][yy].setBackground(new Color(175, 175, 0));\n }", "@Override\n public void onClick(View view) {\n int clickedID = view.getId();\n CircleView clicked = view.findViewById(clickedID);\n baseLayout.setBackgroundColor(clicked.getColor()); //set the background colour to the circle's colour\n chosenCircle = clickedID; //set the chosen category\n }", "private void onColorClick() {\n Integer colorFrom = getResources().getColor(R.color.animated_color_from);\r\n Integer colorTo = getResources().getColor(R.color.animated_color_to);\r\n ValueAnimator colorAnimator = ValueAnimator.ofObject(new ArgbEvaluator(), colorFrom, colorTo);\r\n colorAnimator.setDuration(animationDuration);\r\n colorAnimator.setRepeatCount(1);\r\n colorAnimator.setRepeatMode(ValueAnimator.REVERSE);\r\n colorAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\r\n\r\n @Override\r\n public void onAnimationUpdate(ValueAnimator animator) {\r\n animatedArea.setBackgroundColor((Integer)animator.getAnimatedValue());\r\n }\r\n\r\n });\r\n colorAnimator.start();\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n btnAdicionar.setBackground(new Color(176, 196, 222));\n btnCalcular.setBackground(new Color(176, 196, 222));\n btnLimpar.setBackground(new Color(176, 196, 222));\n btnRemover.setBackground(new Color(176, 196, 222));\n }", "@Override\n public void onColorSelected(int selectedColor) {\n }", "private void deleteBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMouseReleased\n deleteBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "public void actionPerformed(ActionEvent event) {\r\n\t\t\t\tstatusValue.setText(\"Odbieram\");\r\n\t\t\t\tcolorChangeListener.set_receive(!colorChangeListener\r\n\t\t\t\t\t\t.is_receive());\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// obiekt realizująca zmianę kolorów w wybranych elementach\r\n\t\t\t\t\t// GUI\r\n\t\t\t\t\t\r\n\t\t\t\t\tList<ColorChangeExecutor> executors = new ArrayList<ColorChangeExecutor>();\r\n\t\t\t\t\texecutors.add(ColorChangeExecutorFactory.createCanvasColorChangeExecutor(canvas));\r\n\t\t\t\t\tList<JSlider> sliders = new ArrayList<JSlider>();\r\n\t\t\t\t\tsliders.add(sliderR);\r\n\t\t\t\t\tsliders.add(sliderG);\r\n\t\t\t\t\tsliders.add(sliderB);\r\n\t\t\t\t\texecutors.add(ColorChangeExecutorFactory.createSlidersColorChangeExecutor(sliders));\r\n\t\t\t\t\t\r\n\t\t\t\t\t// metoda uruchamia: @1 watek realizujacy nasluchiwanie na\r\n\t\t\t\t\t// zmiane kolorow @2 watek reagujacy na odbior zmiany koloru\r\n\t\t\t\t\tengine.receiveColor(executors);\r\n\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(this.getClass() + \" \" + e.getClass()\r\n\t\t\t\t\t\t\t+ \" \" + e.getMessage());\r\n\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\tSystem.out.println(this.getClass() + \" \" + e.getClass()\r\n\t\t\t\t\t\t\t+ \" \" + e.getMessage());\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "boolean changeColor(Color newColor){\n boolean change=false;\r\n\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()) {\r\n TShape theShape = (TShape) iter.next();\r\n\r\n if (theShape.getSelected()) {\r\n theShape.setColor(newColor);\r\n change = true;\r\n }\r\n }\r\n }\r\n\r\n if (!change){\r\n TShape prototype=fPalette.getPrototype();\r\n\r\n if (prototype!=null)\r\n prototype.setColor(newColor);\r\n fPalette.repaint(); // no listeners for change in the palette\r\n }\r\n\r\n return\r\n change; // to drawing itself\r\n }", "private void deleteBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMousePressed\n deleteBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "@Override\r\n public void mousePressed(MouseEvent event) { // on left mouse press, draw shapes\r\n System.out.println(\"pressed\");\r\n\r\n switch (state) {\r\n case DRAWRECT: // for drawing rectangle\r\n RectangleNode rectangle = new RectangleNode(event.getX(), event.getY());\r\n shapes.add(rectangle);\r\n repaint();\r\n state = SELECT;\r\n break;\r\n case DRAWELLIPSE: // for drawing ellipse\r\n EllipseNode ellipse = new EllipseNode(event.getX(), event.getY());\r\n shapes.add(ellipse);\r\n repaint();\r\n state = SELECT;\r\n break;\r\n case DRAWEDGE: // for drawing edge start\r\n Edge edge = new Edge(event.getX(), event.getY(), event.getX(), event.getY());\r\n currentEdge = edge;\r\n shapes.add(edge);\r\n repaint();\r\n state = DRAWINGEDGE;\r\n break;\r\n case DRAWINGEDGE: // for drawing edge end\r\n repaint();\r\n currentEdge = null;\r\n state = SELECT;\r\n break;\r\n default: // select\r\n if (event.getButton() == MouseEvent.BUTTON1) { // if the left mouse button is clicked\r\n for (int i = 0; i < shapes.size(); i++) {\r\n if (shapes.get(i).isClicked(event.getX(), event.getY())) { // checks if the mouse click is in a shape\r\n System.out.println(\"selecting shit\");\r\n\r\n if (selectedElement != null) {\r\n selectedElement.setColor(Color.BLACK);\r\n repaint();\r\n selectedElement = null;\r\n }\r\n\r\n selectedElement = shapes.get(i);\r\n selectedElement.setColor(Color.BLUE);\r\n repaint();\r\n break;\r\n\r\n } else if (selectedElement != null) {\r\n System.out.println(\"deselecting shit\");\r\n selectedElement.setColor(Color.BLACK);\r\n repaint();\r\n selectedElement = null;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n\r\n if (event.getButton() == MouseEvent.BUTTON3 && selectedElement != null) { // on right mouse press shape is DELETED\r\n System.out.println(\"BUTTON TWO ASDFGHJKL;\");\r\n shapes.remove(selectedElement);\r\n selectedElement = null;\r\n repaint();\r\n }\r\n\r\n\r\n\r\n }", "@Override\n public void onClick() {\n // TODO: Disabled adding shape on just click. It should be added inside the BPMNDiagram by default.\n // log(Level.FINE, \"Palette: Adding \" + description);\n // addShapeToCanvasEvent.fire(new AddShapeToCanvasEvent(definition, factory));\n }", "@Override\n public void update(Observable o, Object arg) {\n if (arg instanceof Color && this.shapeSelected()) {\n Color color = (Color) arg;\n this.selectedShape.setColor(color);\n }\n }", "private void deleteBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMouseEntered\n deleteBtn.setBackground(Color.decode(\"#339966\"));\n }", "public void display2() { // for drag action -> color change\n stroke (255);\n fill(0,255,255);\n ellipse (location.x, location.y, diameter, diameter);\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tString command =e.getActionCommand();\r\n\t\t\t\t\tJButton button =(JButton) e.getSource();\r\n\t\t\t\t\tif(command.equals(\"north\")) {\r\n\t\t\t\t\t\tbutton.setBackground(Color.gray);\r\n\t\t\t\t }\telse if (command.equals(\"south\")) {\r\n\t\t\t\t\t\tbutton.setBackground(Color.BLUE);\r\n\t\t\t\t\t}else if (command.equals(\"east\")) {\r\n\t\t\t\t\t\tbutton.setBackground(Color.yellow);\r\n\t\t\t\t\t}else if (command.equals(\"center\")) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(Myframe.this,\"aa,bb,cc\");\r\n\t\t\t\t\t}else if (command.equals(\"west\")) {\r\n\t\t\t\t\t\tbutton.setBackground(Color.PINK);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}", "@Override\r\npublic void mouseExited(MouseEvent arg0) {\n\tb1.setBackground(Color.pink);\r\n\t\r\n}", "public void actionPerformed( ActionEvent e )\n {\n if (e.getSource() == theButton )\n {\n changeColor();\n }\n }", "@FXML\r\n private void CambiarColor(ActionEvent event){\r\n \r\n \r\n \r\n g.setFill(Color.rgb((int) (Math.random()*255),(int) (Math.random()*255),(int) (Math.random()*255)));\r\n g.fillPolygon(x, y, 3); // Triangulo //\r\n g.fillOval(150, 70, 90, 90); // Circulo //\r\n g.strokeRect(10, 45, 45, 45); // Cuadrado todavia no funciona //\r\n \r\n \r\n }", "public void mouseClicked(MouseEvent e) {\n\t\te.getComponent().setBackground(Color.white);\n\t\t\n\t}", "public void setColor(Color choice) {\n circleColor = choice;\n\n }", "public interface OnColorPickedListener {\n\tvoid onColorPicked(int swatch, int color);\n}", "@Override\r\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\tComponent com = (Component)e.getSource(); //마우스가 올라간 컴포넌트 알아냄.\r\n\t\t\tcom.setBackground(null);\r\n\t\t}", "private void addBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addBtnMousePressed\n addBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "public SelectColorDialog(JFrame parent) {\n\t\tsuper(parent, ModalityType.APPLICATION_MODAL);\n\t\tint size = 190;\n\t\tsetUndecorated(true);\n\t\tsetLocationRelativeTo(null);\n\t\tsetLocation(100, 100);\n\t\tsetIconImage(new ImageIcon(new ImageIcon(ViewSettings.class.getResource(\"/images/uno_logo.png\")).getImage()\n\t\t\t\t.getScaledInstance(40, 40, Image.SCALE_SMOOTH)).getImage());\n\t\tsetSize(size, size);\n\t\tDimension resoltion = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetLocation((int) (resoltion.getWidth() / 2 - size / 2), (int) (resoltion.getHeight() / 2 - size / 2));\n\t\tViewSettings.setupPanel(contentPanel);\n\n\t\tcontentPanel.addMouseMotionListener(new MouseMotionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\tint x = e.getXOnScreen();\n\t\t\t\tint y = e.getYOnScreen();\n\t\t\t\tSelectColorDialog.this.setLocation(x - xx, y - xy);\n\t\t\t}\n\t\t});\n\t\tcontentPanel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\txx = e.getX();\n\t\t\t\txy = e.getY();\n\t\t\t}\n\t\t});\n\t\tint gap = 4;\n\t\tint boxSize = ((size - (gap * 2)) / 2) - 2;\n\t\tJButton red = ViewSettings.createButton(gap, gap, boxSize, boxSize, new Color(245, 100, 98), \"\");\n\t\tred.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"red\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(red);\n\n\t\tJButton blue = ViewSettings.createButton(size / 2, gap, boxSize, boxSize, new Color(0, 195, 229), \"\");\n\t\tblue.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"blue\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(blue);\n\n\t\tJButton green = ViewSettings.createButton(gap, size / 2, boxSize, boxSize, new Color(47, 226, 155), \"\");\n\t\tgreen.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"green\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(green);\n\n\t\tJButton yellow = ViewSettings.createButton(size / 2, size / 2, boxSize, boxSize, new Color(247, 227, 89), \"\");\n\t\tyellow.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"yellow\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(yellow);\n\n\t\tgetContentPane().add(contentPanel);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t}", "Color userColorChoose();", "private void buttonRedMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonRedMouseEntered\n buttonRed.setBackground(new Color(255, 100, 100));\n repaint();\n }", "public void setDataColor(Color c)\r\n/* 48: */ {\r\n/* 49: 36 */ this.ballColor = c;repaint();\r\n/* 50: */ }", "@Override\n public void respond(ShapePanel sp) {\n sp.changeBackgroundColor(ColouringUtils.openJColorChooser(sp.getBackgroundColor()));\n }", "public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "@Override\r\npublic void mouseEntered(MouseEvent arg0) {\n\tb1.setBackground(Color.pink);\r\n\t\r\n}", "private void updateBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMousePressed\n updateBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "public void onClickRed(View view){\n int col;\n col = 1;\n byte[] colorBytes = {(byte)Color.red(col),\n (byte)Color.green(col),\n (byte)Color.blue(col),\n 0x0A};\n //remove spurious line endings so the serial device doesn't get confused\n for (int i=0; i<colorBytes.length-1; i++){\n if (colorBytes[i] == 0x0A){\n colorBytes[i] = 0x0B;\n }\n }\n //send the color to the serial device\n if (sPort != null){\n try{\n sPort.write(colorBytes, 500);\n }\n catch (IOException e){\n Log.e(TAG, \"couldn't write color bytes to serial device\");\n }\n }\n }", "private void sFCButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tfinal SelectColor sASelectColor=new SelectColor(mAnnotation.getFillColor());\n\t\tsASelectColor.setOKListener( new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tColor clr = sASelectColor.getColor();\n\t\t\t\tpreview.setFillColor(clr);\n\t\t\t\tpreviewPanel.repaint();\n\t\t\t}\n\t\t});\n\t\n\t\tsASelectColor.setSize(435, 420);\n\t\tsASelectColor.setVisible(true);\n\t\t//1 -> FillColor\n\t}", "private void addBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addBtnMouseReleased\n addBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "public void onClickGreen(View view){\n int col;\n col = 3;\n byte[] colorBytes = {(byte)Color.red(col),\n (byte)Color.green(col),\n (byte)Color.blue(col),\n 0x0A};\n //remove spurious line endings so the serial device doesn't get confused\n for (int i=0; i<colorBytes.length-1; i++){\n if (colorBytes[i] == 0x0A){\n colorBytes[i] = 0x0B;\n }\n }\n //send the color to the serial device\n if (sPort != null){\n try{\n sPort.write(colorBytes, 500);\n }\n catch (IOException e){\n Log.e(TAG, \"couldn't write color bytes to serial device\");\n }\n }\n }", "public void handle(MouseEvent event)\n {\n\n System.out.println(event.getEventType().getName());\n if (event.getEventType() == MouseEvent.MOUSE_PRESSED) {\n xs = event.getX();\n ys = event.getY();\n }else if (event.getEventType() == MouseEvent.MOUSE_DRAGGED){\n if (currentShapeNode != null) {\n canvas.getChildren().remove(currentShapeNode);\n shapeList.remove(currentShapeNode);\n }\n switch (shapeInfo) {\n case 1 : {\n xe = event.getX();\n ye = event.getY();\n currentShapeNode = new Rectangle(xs, ys, xe-xs, ye-ys);\n currentShapeNode.setFill(selectedColor);\n break;\n }\n case 2 : {\n xe = event.getX();\n ye = event.getY();\n double radius = Math.sqrt(Math.pow(xe-xs, 2) + Math.pow(ye-ys, 2));\n currentShapeNode = new Circle(xs, ys, radius);\n currentShapeNode.setFill(selectedColor);\n break;\n }\n case 3 : {\n xe = event.getX();\n ye = event.getY();\n double angle = Math.atan2(-(ys-ye), xe-xs);\n double length = Math.toDegrees(angle);\n Arc arc = new Arc(xs, ys, xe, xe/2, 0, length);\n arc.setType(ArcType.ROUND);\n currentShapeNode = arc;\n currentShapeNode.setFill(selectedColor);\n\n break;\n }\n default: break;\n }\n shapeList.add(currentShapeNode);\n canvas.getChildren().add(currentShapeNode);\n }else if (event.getEventType() == MouseEvent.MOUSE_RELEASED) {\n currentShapeNode = null;\n }\n\n event.consume();\n }", "private void switchColor(Node node) {\n Circle temp = (Circle) node;\n\n if (isRed) {\n temp.setFill(Paint.valueOf(\"Red\"));\n turnCircle.setFill(Paint.valueOf(\"Blue\"));\n turnDisplay.setText(aiTurn);\n isRed = false;\n } else {\n temp.setFill(Paint.valueOf(\"Blue\"));\n turnCircle.setFill(Paint.valueOf(\"Red\"));\n turnDisplay.setText(humanTurn);\n isRed = true;\n }\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tpunto1.setFilled(true);\n\t\t\t\tpunto1.setColor(Color.red);\n\t\t\t\t\tif(numClicks == 0) {\n\t\t\t\t\t\tadd(punto1, e.getX(),e.getY());\n\t\t\t\t\t\tnumClicks++;\n\t\t\t\t\t\taprox.setStartPoint(e.getX(), e.getY());\n\t\t\t\t\t\tadd(engorgio1, e.getX(),e.getY());\n\n\t\t\t\t\t}\n\t\t//final\n\t\t\t\t\telse if(numClicks == 1) {\n\t\t\t\t\t\tpunto2.setFilled(true);\n\t\t\t\t\t\tpunto2.setColor(Color.blue);\n\t\t\t\t\t\tadd(punto2, e.getX(),e.getY());\n\t\t\t\t\t\tnumClicks++;\n\t\t\t\t\t\taprox.setEndPoint(e.getX(), e.getY());\n\t\t\t\t\t\tadd(aprox);\n\t\t\t\t\t\tadd(engorgio2, e.getX(),e.getY());\n\t\t\t\t\t}\n\t\t}", "@Override\n public void mouseReleased(MouseEvent arg0) {\n yourBoardPanel[xx][yy].setBackground(updateYourBoardHelper(xx, yy));\n //potential problem here during initialization of ships?\n \n }", "private void painterJPanelMouseDragged(MouseEvent event) {\n // Circle to add to the ArrayList\n Circle newCircle;\n if (event.isMetaDown()) {\n // erase circle if right mouse button is pressed\n newCircle = new Circle(circleDiameter, event.getPoint(),\n this.getBackground());\n } else {\n // draw circle if left mouse button is pressed\n newCircle = new Circle(circleDiameter, event.getPoint(),\n circleColor);\n }\n\n circleArrayList.add(newCircle);\n\n repaint(); // repaint this PainterJPanel\n\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n state = \"select\";\r\n instruction.setText(\"Drag the rectangle to cover the whole shape which you want to select\");\r\n\r\n }", "@Override\n public void onColorChosen(@ColorInt int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n\n Note note = notes.get(position);\n\n Note newNote = new Note(note.getNoteTitle(), note.getNoteContent(), r, g, b);\n replaceNote(position, newNote);\n\n cp.dismiss();\n }", "@Override\r\n public void processMouseEvent(MouseEvent event) {\r\n if (event.getID() == MouseEvent.MOUSE_PRESSED) {\r\n // Subtract off the offsets to make checking easier\r\n int mx = event.getX() - offsetX - selectDiameter / 2 - 1;\r\n int my = event.getY() - offsetY - selectDiameter / 2 - 1;\r\n\r\n // Check if outside color selection area\r\n if (mx < 0 || my < 0 || my > diameter)\r\n return;\r\n if (mx > diameter + selectDiameter / 2 + spacing + valueBarWidth)\r\n return;\r\n\r\n boolean new_color = false;\r\n if (mx < diameter) {\r\n // In color wheel, set the hue and saturation\r\n if (getColorAt(currentHSBColor, mx, my, false)) {\r\n colorX = mx;\r\n colorY = my;\r\n redrawValueBar = true;\r\n new_color = true;\r\n }\r\n } else if (mx > diameter + selectDiameter / 2 + spacing && my < diameter - 2) {\r\n // In value bar, set the brightness\r\n currentHSBColor[2] = (float) (diameter - 2 - my) / (diameter - 2);\r\n new_color = true;\r\n }\r\n if (new_color) {\r\n Color color = Color.getHSBColor(currentHSBColor[0],\r\n currentHSBColor[1],\r\n currentHSBColor[2]);\r\n // Call function in parent to update the color\r\n ColorPicker.this.changeColor(color);\r\n repaint();\r\n }\r\n } else\r\n super.processMouseEvent(event);\r\n }", "public ControlPanel(DrawingPanel c){\n canvas = c;\n this.colorButton = new JButton(\"Pick Color\");\n add(colorButton);\n panel = new JPanel();\n panel.setBackground(Color.BLUE);\n add(panel);\n this.circleButton = new JButton(\"Add Circle\");\n add(circleButton);\n this.squareButton = new JButton(\"Add Square\");\n add(squareButton);\n \n ClickListener listener = new ClickListener();\n this.colorButton.addActionListener(listener);\n this.circleButton.addActionListener(listener);\n this.squareButton.addActionListener(listener);}", "private void onColorChoose(View view) {\n int intColor = ((ColorDrawable) view.getBackground()).getColor();\n setColorForDialog(intColor);\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tswitch (which) {\n\t\t\t\t\t\t\tcase 0:cz1.setcolor(0);break;\n\t\t\t\t\t\t\tcase 1:cz1.setcolor(1);break;\n case 2:cz1.setcolor(2);break;\n case 3:cz1.setcolor(3);break;\n case 4:cz1.setcolor(4);break;\n case 5:cz1.setcolor(5);break;\n default:\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "private void clearBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMouseReleased\n clearBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "public void makeSwitcherBall(TPaintDropListItem paintSelectedItem);", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==but1)\r\n\t\t\tpanel.setBackground(Color.YELLOW);\r\n\t\telse if(e.getSource()==but2)\r\n\t\t\tpanel.setBackground(Color.BLUE);\r\n\t}", "public void handle(ActionEvent event)\n {\n if (rbRect.isSelected())\n shapeInfo = 1;\n else if (rbCircle.isSelected())\n shapeInfo = 2;\n else shapeInfo = 3;\n\n event.consume();\n //----\n }", "private void deleteBtnMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMouseExited\n deleteBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "public void chooseCellColor(){\n currentCellColor = cellColorPicker.getValue();\n draw();\n }", "void changeColor(Color color) {\r\n currentColor = color;\r\n redInput.setText(String.valueOf(color.getRed()));\r\n greenInput.setText(String.valueOf(color.getGreen()));\r\n blueInput.setText(String.valueOf(color.getBlue()));\r\n newSwatch.setForeground(currentColor);\r\n }", "@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tsuper.paintComponent(g);\n\t\t\tGraphics2D ga = (Graphics2D) g; \n\t\t\tif (currentColor == color) {\n\t\t\t\tShape check = factory.getShape(ShapeFactory.CHECK);\n\t\t\t\tcheck.setPosition(new Point2D.Double(point.getX() + getPreferredSize().width/2 - 7, point.getY()+ 25));\n\t\t\t\tga.setColor(currentColor);\n\t\t\t\tcheck.draw(ga);\n\t\t\t}\n\t\t}", "private void updateBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseReleased\n updateBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "abstract void botonJuegoRed_actionPerformed(ActionEvent e);", "@Override\n\tpublic void actionPerformed(ActionEvent e) \n\t{\n\t\tbrush.draw();\n\t}", "@Override\n\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\tContainer c=(Container)e.getSource();\n\t\t\tc.setBackground(Color.blue);\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t\tShape newShape = (Shape)currentShape.clone(); //Creates new shape based on the shape constructed and cloned \n\t\tnewShape.setCenter(e.getX(), e.getY()); //sets the shape to center around the mouse clicked region \n\t\tDrawingCanvas drawingCanvas = (DrawingCanvas)e.getSource(); //creates a drawingCanvas after mouse(clicked)event occurs\n\t\tdrawingCanvas.addShape(newShape); //adds the related shape to drawingCanvas\n\t\t\n }", "public void putPeiceOnBoard(MouseEvent e) {\r\n\t\tint id[] = gameBoard.coordinateToID(e.getX(), e.getY());\r\n\r\n\t\tif (e.getButton() == 1) {\r\n\t\t\tgameBoard.setBoardValue(id, GameBoardModel.CHECKER_RED);\r\n\t\t} else if (e.getButton() == 3) {\r\n\t\t\tgameBoard.setBoardValue(id, GameBoardModel.CHECKER_BLACK);\r\n\t\t} else {\r\n\t\t\tgameBoard.setBoardValue(id, GameBoardModel.CHECKER_RED);\r\n\t\t}\r\n\t}" ]
[ "0.70191383", "0.700711", "0.6810776", "0.6662906", "0.66531813", "0.6636769", "0.6635478", "0.6601053", "0.65315795", "0.6528011", "0.65145355", "0.6488741", "0.64758223", "0.6461282", "0.64463013", "0.6439536", "0.64202636", "0.63836515", "0.63754714", "0.6335455", "0.6334018", "0.6280845", "0.6269598", "0.6260636", "0.62364906", "0.6234279", "0.62286824", "0.6179224", "0.6157721", "0.6157626", "0.6143015", "0.6141763", "0.6135838", "0.612819", "0.611336", "0.61113423", "0.61042726", "0.6102284", "0.60990995", "0.60950017", "0.60912925", "0.60751396", "0.6069666", "0.60655004", "0.60557914", "0.6033692", "0.6031424", "0.6026936", "0.6024945", "0.6019202", "0.60151416", "0.6002431", "0.59791195", "0.5977038", "0.5975243", "0.5970207", "0.59594685", "0.59516454", "0.5938892", "0.5935756", "0.5920549", "0.59141004", "0.59110034", "0.5909286", "0.5905909", "0.5901801", "0.589926", "0.58938855", "0.5892998", "0.588606", "0.5884207", "0.588148", "0.58811796", "0.587248", "0.5872162", "0.58677214", "0.5857987", "0.5854967", "0.5849037", "0.58444303", "0.5828827", "0.58212173", "0.5818114", "0.58175", "0.5810036", "0.58060545", "0.5801649", "0.5798879", "0.57983565", "0.5785756", "0.5785419", "0.57807714", "0.5778891", "0.57745427", "0.5774293", "0.5772686", "0.57716906", "0.5769556", "0.5763849", "0.57499725" ]
0.7187559
0
Implemented methods of the interface
@Override public void move(int dx, int dy) { // TODO Auto-generated method stub co.move(dx, dy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "@Override\n\tpublic boolean isImplemented() {\n\t\treturn false;\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n protected void prot() {\n }", "public abstract void abstractMethodToImplement();", "@Override\n\tpublic void implements_(JDefinedClass cls) {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public interface Implementor {\n // 实现抽象部分需要的某些具体功能\n void operationImpl();\n}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public interface IBibliotheque {\n\t// Start of user code (user defined attributes for IBibliotheque)\n\n\t// End of user code\n\n\t/**\n\t * Description of the method listeDesEmpruntsEnCours.\n\t */\n\tpublic void listeDesEmpruntsEnCours();\n\n\t// Start of user code (user defined methods for IBibliotheque)\n\n\t// End of user code\n\n}", "public void buildImplementedInterfacesInfo() {\n\t\twriter.writeImplementedInterfacesInfo();\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public interface PhrasingContent extends ContentInterface {\r\n\r\n}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "public interface I_ParametersLoaded\n{\n public void ParametersLoaded();\n}", "@Override\r\n\tpublic void interfaceMethod() {\n\t\tSystem.out.println(\"childClass - interfaceMethod\");\r\n\t\tSystem.out.println(\"Val of variable from interface: \" + DemoInterface.val );\r\n\t}", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"This is an implemented interface\");\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n protected void getExras() {\n }", "public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public interface C22486a {\n void bGQ();\n\n void cMy();\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public boolean isInterface() { return false; }", "public void method_1()\n {\n System.out.println(\"Interface method.\");\n }", "@Override\n public List<JavaType> getInterfaces() {\n return ImmutableList.of();\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public interface AbstractC03680oI {\n}", "@Override\n\tpublic void sal() {\n\t\tSystem.out.println(\"This is implemnts from HomePackage Interface.\");\n\t\t\n\t}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "public interface MyInterface {\n public void m1();\n public void m2();\n public void m3();\n public void m4();\n\n}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public interface AbstractC1953c50 {\n}", "@Override\n\tpublic void verkaufen() {\n\t}", "public interface IOverride extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "interface Hi {\n // MUST BE IMPLEMENTED IN IMPLEMENTING CLASS!!\n void Okay(String q);\n}", "public interface C11922a {\n void bvR();\n }", "public interface IService {\n void methodA();\n void methodB();\n void methodC();\n}", "public interface ViewInterface extends BaseViewInterface {\n /**\n * Interface method yang diimplement ketika presenter berhasil memcreate/update report\n * @param report balikan berupa object report\n * @param isNew balikan berupa nilai boolean true(jika berupa data baru/insert) atau false(bukan data baru/update)\n */\n void onReportResult(Report report, boolean isNew);\n\n /**\n * Interface method yang diimplement ketika presenter berhasil menghapus report\n * @param report balikan berupa object report\n */\n void onReportDeleted(Report report);\n\n /**\n * Interface method yang diimplement ketika presenter berhasil mendapatkan data report\n * @param reports balikan berupa List report\n * @param sumary balikan berupa summary\n */\n void onGetAllDataReport(List<Report> reports, Sumary sumary);\n }", "public interface AnInterface {\n void f();\n\n void g();\n\n void h();\n}", "public interface C11859a {\n void bvs();\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public interface AbstractC2502fH1 extends IInterface {\n}", "public interface SampleA {\n void operation1();\n void operation2();\n}", "interface I {}", "public InterfaceAbout() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "public interface Zrada\n{\n void accuse();\n}", "private void display3(){\n\t\tSystem.out.println(\"Private Method inside interface\");\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface AbstractC3386kV0 {\n boolean b();\n\n void d();\n\n void dismiss();\n\n ListView f();\n}", "@Override\n\tpublic void leti() \n\t{\n\t}", "public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "@Override\n\tpublic void doYouWantTo() {\n\n\t}", "public interface CoverCreationMethod {\n\n}", "public interface InterfaceGetAllSteps {\n void getAllStepsSucceed();\n void getAllStepsFailed();\n}", "@Override\n\tpublic void method4() {\n\t\tSystem.out.println(\"Hello from MyInterface1 method4() \");\n\t}", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "public interface AbstractC14990nD {\n void ACi(View view);\n\n void ACk(View view);\n\n void ACo(View view);\n}", "public void method() {\n\t\t\r\n\t\t\r\n\t\tnew Inter() {\t\t\t\t\t\t\t//实现Inter接口\r\n\t\t\tpublic void print() {\t\t\t\t//重写抽象方法\r\n\t\t\t\tSystem.out.println(\"print\");\r\n\t\t\t}\r\n\t\t}.print();\r\n\t\t\r\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "public interface IPresenterHienThiSanPhamTheoDanhMuc {\n void LayDanhSachSP_theoMaLoai(int masp,boolean kiemtra);\n}", "public void myPublicMethod() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public interface Actions extends EObject\n{\n}", "private final void i() {\n }", "public interface eit {\n}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public interface i {\n}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "public interface IGetDataView extends IBaseView {\n void getDataSuccess(Cursor cursor);\n void getDataFail();\n}", "public interface IVendUploadView extends IBaseView{\n void upLoadSccess();\n void getGoodsDetail(GoodsDetailEntity.DataBean dataBean);\n void changeGoodsSuccess();\n void onError(String msg);\n}", "public interface IFaci {\n}", "public interface se {\n void a(List<POI> list);\n\n boolean a();\n\n void b();\n\n boolean c();\n\n List<POI> d();\n\n POI e();\n\n POI f();\n}", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "public void hello(){\n\t\tSystem.out.println(\"hello Interface\\n\");\n\t}", "public interface RemotInterfaceOperations \n{\n String createDRecord (String managerId, String firstName, String lastName, String address, String phone, String specialization, String location);\n String createNRecord (String managerId, String firstName, String lastName, String designation, String status, String statusDate);\n String getRecordCount (String managerId, int recordType);\n String editRecord (String managerId, String recordID, String fieldName, String newValue);\n String transferRecord (String managerID, String recordID, String remoteClinicServerName);\n}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public interface i {\n int a();\n\n boolean b();\n\n void c();\n}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public interface ITire {\n\n /**\n * 轮胎\n */\n void tire();\n}", "@Override\n public void memoria() {\n \n }", "public interface IMainView extends IBaseView{\n\n void onSuccess(List<Wallpaper> wallpapers);\n\n void onLoadMore(List<Wallpaper> wallpapers);\n\n void onCateChange(List<Wallpaper> wallpapers);\n\n void initBackground(List<Wallpaper> wallpapers);\n\n void onError(Throwable e);\n\n}", "interface C34503a {\n void bMl();\n }", "interface U {\n public void A() ;\n public void B() ;\n public void C() ;\n}", "public interface Mypersent {\n void getData();\n}", "interface InWriter { // In interface class, all methods are abstract. (You can't specify the body)\n // public abstract void write(); By default all methods are public and abstract\n void write();\n}", "public interface ViewBinhLuan {\n void DangBinhLuanThanhCong();\n void DangBinhLuanThatBai();\n}", "@Override\n\tprotected void getData() {\n\t\t\n\t}" ]
[ "0.7090655", "0.66611", "0.66407233", "0.6574496", "0.6470494", "0.6470494", "0.6455723", "0.64511675", "0.6441801", "0.6430225", "0.64260423", "0.6421914", "0.64085364", "0.6391605", "0.63853234", "0.6375566", "0.6362583", "0.62626183", "0.6257456", "0.6255159", "0.6226624", "0.62246215", "0.6194986", "0.6185655", "0.6185115", "0.61732346", "0.6170714", "0.61524725", "0.6151759", "0.6150866", "0.6144215", "0.61420786", "0.61391354", "0.6138332", "0.6133952", "0.6117669", "0.61124283", "0.60973746", "0.6094062", "0.60819227", "0.60764813", "0.607402", "0.60668623", "0.60545367", "0.6041542", "0.60327923", "0.6025236", "0.60197985", "0.6017521", "0.6016907", "0.60156196", "0.6015162", "0.6015162", "0.60100013", "0.6005257", "0.60034037", "0.59987235", "0.5992918", "0.5990133", "0.59897584", "0.59852594", "0.5982652", "0.5969563", "0.59687036", "0.59681183", "0.59634864", "0.5959628", "0.59546965", "0.59546965", "0.5954021", "0.5953151", "0.5953136", "0.5952034", "0.59475267", "0.59471685", "0.5946707", "0.59463304", "0.59385157", "0.5937354", "0.5936226", "0.59296966", "0.59286404", "0.5924129", "0.59231544", "0.5921656", "0.592152", "0.5917828", "0.5915659", "0.59014696", "0.5897769", "0.58936214", "0.58899736", "0.5888246", "0.58876693", "0.5886545", "0.5879349", "0.587927", "0.5876565", "0.5873681", "0.5868863", "0.58666235" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent e) { co.mousePressed(e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseDragged(MouseEvent e) { co.mouseDragged(e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Don't modify this constructor
public Reptile() { // Providing default constructor System.out.println( " Reptile() - If this called then something is wrong"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "public static void copyConstructor(){\n\t}", "private TMCourse() {\n\t}", "Reproducible newInstance();", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "protected Coord() {\n\t}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private UniqueChromosomeReconstructor() { }", "protected Problem() {/* intentionally empty block */}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "protected abstract void construct();", "public Pleasure() {\r\n\t\t}", "O() { super(null); }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private Instantiation(){}", "private Node() {\n\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "private void __sep__Constructors__() {}", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "public PSRelation()\n {\n }", "private ChainingMethods() {\n // private constructor\n\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private CheckingTools() {\r\n super();\r\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public Pitonyak_09_02() {\r\n }", "public AllDifferent()\n {\n this(0);\n }", "private Cat() {\n\t\t\n\t}", "public MethodEx2() {\n \n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "public Coche() {\n super();\n }", "public CyanSus() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Clade() {}", "private SingleObject()\r\n {\r\n }", "protected ASTNode() {\n\t\t\n\t}", "public lo() {}", "private IndexBitmapObject() {\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "protected Animal() {\t\r\n\t}", "protected Product() {\n\t\t\n\t}", "protected SimpleMatrix() {}", "private Road()\n\t{\n\t\t\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "protected Approche() {\n }", "private JsonUtils() {\n\t\tsuper();\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "protected DenseMatrix()\n\t{\n\t}", "private BigB()\r\n{\tsuper();\t\r\n}", "private Mth()\n\t{\n\t\tthrow new AssertionError();\n\t}", "protected Span() {/* intentionally empty block */}", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public void constructor() {\n setEdibleAnimals();\n }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public MossClone() {\n super();\n }", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "public Anschrift() {\r\n }", "public Person(){\r\n\t\tsuper();\r\n\t}", "protected AST_Node() {\r\n\t}", "public Lanceur() {\n\t}", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private SingleObject(){}", "public Clone() {}", "@Override\r\n\tpublic void init() {}", "protected ChildType() {/* intentionally empty block */}", "private Value() {\n\t}", "private Board() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// A private board constructor to ensure only one is created\n\t\tsuper();\n\t}", "private UtilsCache() {\n\t\tsuper();\n\t}", "protected Product()\n\t{\n\t}", "private Source() {\n throw new AssertionError(\"This class should not be instantiated.\");\n }", "protected VboUtil() {\n }", "public b3(){\n super();\n }", "public Self__1() {\n }", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "private Infer() {\n\n }", "public Complex(){\r\n\t this(0,0);\r\n\t}", "public Catelog() {\n super();\n }", "@Override\n protected void init() {\n }", "protected Sentence() {/* intentionally empty block */}", "public Orbiter() {\n }", "public mapper3c() { super(); }", "public Chick() {\n\t}", "private ServiceListingList() {\n //This Exists to defeat instantiation\n super();\n }", "public Pasien() {\r\n }", "private UsineJoueur() {}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public Waschbecken() {\n this(0, 0);\n }", "protected Doodler() {\n\t}", "public Sad() {\n }", "@Override\n public void init() {}", "public _355() {\n\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public Cohete() {\n\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "protected Time() {\n\t}", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "public Vector() {\n construct();\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "private RegressionPrior() { \n /* empty constructor */\n }" ]
[ "0.73842746", "0.73810446", "0.72206074", "0.70535505", "0.7001785", "0.696136", "0.695235", "0.6844648", "0.68402874", "0.67700243", "0.6764537", "0.6728556", "0.6728123", "0.6686466", "0.66853225", "0.6684632", "0.66710275", "0.6667287", "0.66433215", "0.6604595", "0.6595439", "0.6584687", "0.6583656", "0.6579438", "0.6578382", "0.6577407", "0.65708447", "0.65698594", "0.65687317", "0.65687305", "0.65638644", "0.6556424", "0.6554804", "0.6549965", "0.6549794", "0.6546717", "0.65322846", "0.65235835", "0.651727", "0.65139025", "0.6509058", "0.65086615", "0.65069944", "0.6500545", "0.65005434", "0.64992446", "0.64936936", "0.6487542", "0.64780694", "0.6472015", "0.6469519", "0.6459192", "0.64566547", "0.64566547", "0.6456081", "0.64560616", "0.64555043", "0.6452293", "0.6449038", "0.6444361", "0.6437922", "0.6437757", "0.64280856", "0.642275", "0.6419145", "0.641397", "0.6412099", "0.6412074", "0.64115876", "0.6408576", "0.64055675", "0.6399906", "0.63994986", "0.639944", "0.6398666", "0.6396125", "0.6391287", "0.63890785", "0.63888496", "0.6387359", "0.6382265", "0.63790977", "0.63777244", "0.63760513", "0.63751733", "0.6373828", "0.637055", "0.636341", "0.6356375", "0.63463193", "0.63444823", "0.63411856", "0.6333889", "0.63337296", "0.63299704", "0.6329842", "0.6328075", "0.6326998", "0.6326714", "0.6324579", "0.6323627" ]
0.0
-1
You should not need any additional field variables This sets the classification of the animal to Reptile
public Reptile(String spec, String crazy) { super(spec, crazy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setClassification(String classification) {\n this.classification = classification;\n }", "AnimalSpecific(String category,String name,String type){\n\t\tsuper(category);\n\t\tanimalName = name;\n\t\tanimalType = type;\n\t}", "public void setClassification(String classification) {\n this.classification = classification;\n }", "@Override\r\npublic String getCelestialClassification() {\n\treturn \"DwarfPlanets\";\r\n}", "public Animal(String tipo){\n\t\tthis.tipo = tipo;\n\t}", "@Override\n public void setEdibleAnimals() {\n addPrey(Rabbit.SPECIES);\n }", "@IcalProperty(pindex = PropertyInfoIndex.CLASS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setClassification(final String val) {\n classification = val;\n }", "@Override\n\tpublic void tipoInteligencia() {\n\t\tSystem.out.println(super.getNome() + \" é um animal \" + ((super.isRacional() == true) ? \"racional.\" : \"irracional.\"));\n\t}", "public void setFiction() {\n if (super.getGenre() == null || super.getGenre().length() == 0) {\n super.setGenre(\"Fiction\");\n } else if (!super.getGenre().contains(\"FICTION\")) {\n super.setGenre(super.getGenre() + \", Fiction\");\n }\n super.setGenre(super.getGenre().toUpperCase());\n }", "public void setClassify(Integer classify) {\n this.classify = classify;\n }", "public void setFoodType(String food);", "public Martian(int classified){\n\t\tsuper(\"Martian\", \"red\", \"carbon dioxyde\");\n\t\t\n\t\t//set Alien classification directly from the CreateAlien class\n\t\tclassification = classified;\n\t}", "public static void main(String[] args) {\n AnimalBp turtle = new AnimalBp(); \n AnimalBp dog = new AnimalBp();\n AnimalBp cat = new AnimalBp();\n \n \n \n turtle .setType(\"Reptile\");\n String turtleType = turtle.getType();\n \n \n System.out.println(turtleType);\n \n turtle.setnumberOfFeet(4);\n int turtlenumberOfFeet = turtle.getnumberOfFeet();\n \n System.out.println(turtlenumberOfFeet);\n \n turtle.setColor(\"Green\");\n String turtleColor = turtle.getColor();\n \n System.out.println(turtleColor);\n \n turtle.setlaysAnEgg(true);\n boolean turtlelaysAnEgg = turtle.getLaysAnEgg();\n \n System.out.println(turtlelaysAnEgg);\n \n \n dog .setType(\"Mammal\");\n String dogType = dog.getType();\n \n System.out.println(dogType);\n \n dog.setnumberOfFeet(4);\n int dognumberOfFeet = dog.getnumberOfFeet();\n \n System.out.println(dognumberOfFeet);\n \n dog.setColor(\"Brown and White\");\n String dogColor = dog.getColor();\n \n System.out.println(dogColor);\n \n dog.setlaysAnEgg(false);\n boolean doglaysAnEgg = dog.getLaysAnEgg();\n \n System.out.println(doglaysAnEgg);\n \n cat .setType(\"Mammal\");\n String catType = cat.getType();\n \n \n System.out.println(catType);\n \n cat.setnumberOfFeet(4);\n int catnumberOfFeet = cat.getnumberOfFeet();\n \n System.out.println(catnumberOfFeet);\n \n cat.setColor(\"gray\");\n String catColor = cat.getColor();\n \n System.out.println(catColor);\n \n cat.setlaysAnEgg(false);\n boolean catlaysAnEgg = cat.getLaysAnEgg();\n \n System.out.println(catlaysAnEgg);\n }", "public void createAnimalsCollection() {\n ArrayList<DataSetAnimal> animalsFetched = getDFO().getAnimalData(getFILE_NAME()).getAnimals();\n setAnimals(new ArrayList<>());\n for (DataSetAnimal animal: animalsFetched) {\n String tmpBreed = animal.getBreedOrType().substring(animal.getBreedOrType().lastIndexOf(\" \") + 1);\n switch (tmpBreed) {\n case \"dolphin\":\n getAnimals().add(new AnimalDolphin(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"duck\":\n getAnimals().add(new AnimalDuck(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"cat\":\n getAnimals().add(new AnimalCat(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"chicken\":\n getAnimals().add(new AnimalChicken(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"horse\":\n getAnimals().add(new AnimalHorse(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"shark\":\n getAnimals().add(new AnimalShark(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"parakeet\":\n getAnimals().add(new AnimalParakeet(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n default:\n getAnimals().add(new AnimalDog(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n }\n }\n }", "public void setAnimal(AnimalModel param) {\n localAnimalTracker = true;\n\n this.localAnimal = param;\n }", "public void setAnimal(Animal animal) {\n\t\tthis.animal = animal;\r\n\t}", "public void specialize(){\n\tdefense *= .6;\n\tattRating *= 1.4;\n\tif ( attRating > 2.0){\n\t attRating = 2.0;\n\t}\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "public void changeAnimal(Animal newAnimal){\n\t\tthis.myFlyweight = newAnimal;\n\t\tthis.maxAnimationFrame = this.myFlyweight.getMaxAnimationFrame();\n\t}", "public void setClassifier(Classifier classifier) {\n this.classifier = classifier;\n //setClassifier(classifier, false);\n }", "abstract String classify(Instance inst);", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public void setLBR_ICMS_TaxReliefType (String LBR_ICMS_TaxReliefType);", "public void setClassificationName(String classificationName)\n {\n this.classificationName = classificationName;\n }", "@Override\r\n\tpublic String getType() {\n\t\treturn \"Pigiste\";\r\n\t}", "public String getClassification() {\n return classification;\n }", "@Override\n\tString getName(){\n\t\treturn animalName;\n\t}", "public void setClassification(String classification) {\r\n\t\tif (this.compareFields(this.classification, classification)) {\r\n\t\t\tthis.fireUpdatePendingChanged(true);\r\n\t\t}\r\n\t\tthis.classification = classification != null ? classification.trim()\r\n\t\t\t\t: null;\r\n\t}", "public void setAnimalName(java.lang.String param) {\n localAnimalNameTracker = true;\n\n this.localAnimalName = param;\n }", "public void settype(String cat) { this.type = cat; }", "void removeClassification(int i);", "public void setTypeOfFood(String foodType){\n typeOfFood = foodType;\n }", "@Override\n\tpublic void tipoAnimal() {\n\t\tSystem.out.println(super.getNome() + \" é um gato.\");\n\t}", "@Override\n public void modifyCharacterRPClassDefinition(RPClass character) {\n }", "public void setRarity(char newrareity)\n {\n rarity = newrareity;\n }", "public Classification(int imageUUID, String speciesName) {\r\n\t\tthis.imageUUID = imageUUID;\r\n\t\tthis.speciesName = speciesName;\r\n\t}", "public DataSetAnimal(String breedOrType, String name, int yearOfBirth) {\n this.breedOrType = breedOrType;\n this.name = name;\n this.yearOfBirth = yearOfBirth;\n }", "private Category classify() {\n Category category = null;\n if (name != null) {\n if (name.contains(\"potato\") || name.contains(\"apple\")) {\n category = Category.FOOD;\n } else if (name.contains(\"cloths\") || name.contains(\"pants\") || name.contains(\"shirt\")) {\n category = Category.CLOTHING;\n }\n }\n return category;\n }", "public BaseFeat(String inName)\n {\n super(inName, TYPE);\n }", "void setFoil (Foil foil) {\n current_part.foil = foil;\n }", "public void setTypeOfFood(String _typeOfFood)\n {\n typeOfFood = _typeOfFood;\n }", "public void constructor() {\n setEdibleAnimals();\n }", "public void bark(){// bark class only belongs to dog class\n System.out.println(name+\" is barking\");\n }", "public void setNature(String nature) {\n\t\tthis.nature = nature;\n\t}", "public abstract double classify(Instance e);", "public ServiceProviderAnimalType() {\n super();\n animalSize = AnimalSize.SMALL;\n billingType = BillingType.PER_HOUR;\n }", "void setFoil (String name) {\n current_part.foil = (Foil)foils.get(name);\n }", "public Dog(String Breed, String PrimaryColor, String Size, String name, int age){\r\n // setting the parent animal name\r\n super(name,age);\r\n // setting the parent animal age\r\n // System.out.println(\"Setting Breed...\");\r\n this.Breed = Breed ;\r\n // System.out.println(\"Setting PrimaryColor...\");\r\n this.PrimaryColor = PrimaryColor;\r\n //System.out.println(\"Setting Size...\");\r\n this.Size = Size;\r\n\r\n\r\n\r\n }", "public void setBreedType(EnumDragonBreed type) {\n\t\tgetBreedHelper().setBreedType(type);\n\t}", "public void setNature(String nature) {\r\n\r\n\t\tclickLookup(\"@class\",\"x-gadget\", \"NEW_NATURE\",\"Select a Nature\");\r\n\r\n\t\twaitForExtJSAjaxComplete(25);\r\n\r\n\t\tdriver.findElement(By.xpath(\"//div[contains(@class,'x-resizable')]//span[contains(text(),'Tree')]\")).click();\r\n\r\n\t\tsetValueTreeLookup(new String[]{nature});\r\n\r\n\t}", "private void populatepets(){\r\n\t\tpets.add(new Cat(\"UnNamed\"));\r\n\t\tpets.add(new Cow(\"UnNamed\"));\r\n\t\tpets.add(new Dog(\"UnNamed\"));\r\n\t\tpets.add(new Rabbit(\"UnNamed\"));\r\n\t\tpets.add(new Rat(\"UnNamed\"));\r\n\t\tpets.add(new Velociraptor(\"UnNamed\"));\r\n\t}", "@Override\n protected void reproduce() {\n new AnimalCell(super.planet);\n super.reproductionThreshold = 0;\n }", "public void setAnimals(ArrayList<Animal> animals) { this.animals = animals; }", "@Override\npublic void resting(Animal a) {\nSystem.out.println(a.getType()+ \" is resting.\");\n}", "public Integer getClassify() {\n return classify;\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification insertNewClassification(int i);", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Problem found when classifying the text\");\n\t\t}\t\t\n\t}", "public void setClass_(String newValue);", "protected BaseFeat()\n {\n super(TYPE);\n }", "public void setClassifier(String classifier) {\n JodaBeanUtils.notNull(classifier, \"classifier\");\n this._classifier = classifier;\n }", "public String getClassificationName()\n {\n return classificationName;\n }", "@Override\n public void modifyItemRPClassDefinition(RPClass item) {\n }", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "public interface IFeature\n{\n\tGeppettoFeature getType();\n}", "public HerbierPic getTypicalPic() {\n\t\tHerbierPic result = null;\n\t\t\n\t\t// first look for a typical child\n\t\tfor (Taxon child : children) {\n\t\t\tif (child.isTypical) {\n\t\t\t\tresult = child.getTypicalPic();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// return the best species pic\n\t\tif (result == null && TaxonRank.SPECIES == rank) {\n\t\t\tresult = getBestPic();\n\t\t}\n\t\t\n\t\t// else return the best pic of all\n\t\tif (result == null) {\n\t\t\tTreeSet<HerbierPic> allPics = getPicsCascade();\n\t\t\tif (!allPics.isEmpty()) {\n\t\t\t\tVector<HerbierPic> vPics = new Vector<>();\n\t\t\t\tvPics.addAll(allPics);\n\t\t\t\tCollections.sort(vPics, new Comparator<HerbierPic>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(HerbierPic pic1, HerbierPic pic2) {\n\t\t\t\t\t\treturn pic2.getRating() - pic1.getRating();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tresult = vPics.firstElement();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void classify() throws Exception;", "public void reduceAnimalHealth() {\n\t\thealth -= 10;\n\t}", "public String getNature() {\n\t\treturn this.nature;\n\t}", "@Override\n\tpublic String type() {\n\t\treturn \"armour\";\n\t}", "public void setRarity(Rarity rare)\r\n {\r\n\tthis.rare = rare;\r\n }", "public Animal(boolean randomAge, Field field, Location location, int breeding_age, int max_age, double breeding_probability, int max_litter_size)\n {\n alive = true;\n age = 0;\n if(randomAge) {\n age = rand.nextInt(max_age);\n }\n this.field = field;\n setLocation(location);\n this.breeding_age = breeding_age;\n this.max_age = max_age;\n this.breeding_probability = breeding_probability;\n this.max_litter_size = max_litter_size;\n gender = Math.random() < 0.5;\n }", "public String getFoodType() {\n return \"Carnivore\";\n }", "public void removeAnimal(Entity e){\r\n\t\tSet<String> farmers = plugin.getAnimalData().getConfigurationSection(\"Farmer\").getKeys(false);\r\n\t\tfor(String farmer : farmers){\r\n\t\t\tSet<String> farmeranimals = plugin.getAnimalData().getConfigurationSection(\"Farmer.\" + farmer + \".Animals\").getKeys(false);\r\n\t\t\t\r\n\t\t\tfor(String farmanimal : farmeranimals){\r\n\t\t\t\tif(farmanimal.equalsIgnoreCase(e.getUniqueId().toString())){\r\n\t\t\t\t\tLivingEntity le = (LivingEntity) e;\r\n\t\t\t\t\tplugin.getAnimalData().set(\"Farmer.\" + farmer +\".Animals.\"+ farmanimal, null);\r\n\t\t\t\t\tPlayer[] p = Bukkit.getOnlinePlayers();\r\n\t\t\t\t\tfor(Player online : p){\r\n\t\t\t\t\tif(online.getUniqueId().toString().equalsIgnoreCase(farmer)){\r\n\t\t\t\t\tonline.sendMessage(ChatColor.GRAY + \"Your \" + e.getType().toString() + \" \" + le.getCustomName() + \" has \" + ChatColor.DARK_RED + \"died.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(plugin.getAnimalData().contains(\"AnimalCoolDown.\" + farmanimal)){\r\n\t\t\t\t\t\tplugin.getAnimalData().set(\"AnimalCoolDown.\" + farmanimal, null );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tplugin.saveAnimalData();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Classification [imageUUID=\" + imageUUID + \", speciesName=\" + speciesName + \"]\";\r\n\t}", "public void setType(int choice) {\r\n\r\n\t\tswitch(choice) {\r\n\t\tcase 0:\r\n\t\t\tif((int)(Math.random()*10)>=5) {\r\n\t\t\t\ttype = 2;\r\n\t\t\t}else {\r\n\t\t\t\ttype = 1;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 1: type = 1;\r\n\t\t\tbreak;\r\n\t\tcase 2: type = 2;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\r\n\t\ttry {\r\n\t\t\tif(type == 1) {\r\n\t\t\t\timg = ImageIO.read(getClass().getClassLoader().getResource(\"ReinforceTp1.PNG\"));\r\n\t\t\t}else if(type ==2) {\r\n\t\t\t\timg = ImageIO.read(getClass().getClassLoader().getResource(\"ReinforceTp2.PNG\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.img = img.getScaledInstance(img.getWidth(null)/scaleFactor, img.getHeight(null)/scaleFactor, Image.SCALE_SMOOTH);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"image of Reinforce is missing\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void randomizeCategory() {\n this.group = (int) (3*Math.random()+1);\n }", "public interface RelationalClassifier extends Classifier {\r\n}", "@Override\n public void mature(Farm farm, Animal animal) {\n }", "public void setTypal(boolean value) {\n this.typal = value;\n }", "public static void main(String[] args) {\n\r\n\tBird eagle = new Bird();\r\n\tBird amazon = new Bird();\r\n\tBird cardinal = new Bird();\r\n\tBird owls = new Bird();\r\n\t\r\n\tSystem.out.println();\r\n\t\t\r\n\teagle.setBreed();\r\n\teagle.setColour();\r\n\teagle.setSize();\r\n\teagle.setClassification();\r\n\t\r\n\tSystem.out.println();\r\n\t\r\n\tamazon.setBreed();\r\n\tamazon.setColour();\r\n\tamazon.setSize();\r\n\tamazon.setClassification();\r\n\t\r\n\tSystem.out.println();\r\n\t\r\n\tcardinal.setBreed();\r\n\tcardinal.setColour();\r\n\tcardinal.setSize();\r\n\tcardinal.setClassification();\r\n\t\r\n\tSystem.out.println();\r\n\t\r\n\towls.setBreed();\r\n\towls.setColour();\r\n\towls.setSize();\r\n\towls.setClassification();\r\n\t\r\n\tSystem.out.println();\r\n\t\r\n\tSystem.out.println(\"Breed: \" + eagle.getBreed());\r\n\tSystem.out.println(\"Colour: \" + eagle.getColour());\r\n\tSystem.out.println(\"Size: \" + eagle.getSize());\r\n\tSystem.out.println(\"Classification: \" + eagle.getClassification());\r\n\t\r\n\tSystem.out.println();\r\n\t\r\n\tSystem.out.println(\"Breed: \" + amazon.getBreed());\r\n\tSystem.out.println(\"Colour: \" + amazon.getColour());\r\n\tSystem.out.println(\"Size: \" + amazon.getSize());\r\n\tSystem.out.println(\"Classification: \" + amazon.getClassification());\r\n\t\r\n\tSystem.out.println();\r\n\t\r\n\tSystem.out.println(\"Breed: \" + cardinal.getBreed());\r\n\tSystem.out.println(\"Colour: \" + cardinal.getColour());\r\n\tSystem.out.println(\"Size: \" + cardinal.getSize());\r\n\tSystem.out.println(\"Classification: \" + cardinal.getClassification());\r\n\t\r\n\tSystem.out.println();\r\n\t\r\n\tSystem.out.println(\"Breed: \" + owls.getBreed());\r\n\tSystem.out.println(\"Colour: \" + owls.getColour());\r\n\tSystem.out.println(\"Size: \" + owls.getSize());\r\n\tSystem.out.println(\"Classification: \" + owls.getClassification());\r\n\t}", "public void setFursuitType (FursuitType newVar) {\n fursuitType = newVar;\n }", "public void assignShape() {\n\t\t\n\t}", "public AnimalModel getAnimal() {\n return localAnimal;\n }", "@Override\n public String getFoodType() {\n return foodType;\n }", "@Override\n public String getFoodType() {\n return foodType;\n }", "public AttributeDiscretization() {\n\n }", "public Reptile() {\n // Providing default constructor\n System.out.println(\n \" Reptile() - If this called then something is wrong\");\n }", "void breed()\n {\n roaches *= 2;\n }", "public void testSetDiscriminator() {\n for (String discriminator : TEST_DISCRIMINATORS) {\n instance.setDiscriminator(discriminator);\n assertEquals(\"equal value expected.\", discriminator, instance.getDiscriminator());\n }\n }", "public void sortByBreed() {\n\t\tAnimalCompare animalCompare = new AnimalCompare();\n\t\tCollections.sort(animals, animalCompare);\n\t}", "public void decideNature()\n {\n String nature = new String(\"\");\n Random rand = new Random();\n int i = rand.nextInt(100);\n if(i <= 25)\n {\n nature = \"Very mischievous. Enjoys hiding objects in plain sight\";\n }//ends the if\n else if(i > 25 && i <= 50)\n {\n nature = \"Loves to spend time sleeping on the clouds\";\n }//ends the else if\n else if(i > 50 && i <= 75)\n {\n nature = \"Is very playful\";\n }//ends the else if\n else\n {\n nature = \"Loves to perform dances in the air\";\n }\n \n setNature(nature);\n }", "private void seeAnimal() {\n\r\n\t}", "public void setGenre() {\r\n this.genre = genre;\r\n }", "public void setAnimalModel(AnimalModel[] param) {\n validateAnimalModel(param);\n\n localAnimalModelTracker = true;\n\n this.localAnimalModel = param;\n }", "public abstract void setType();", "public void setCharacterType(String characterType)\n\t{\n\t\tif (characterType.equalsIgnoreCase(\"Argonian Warrior\"))\n\t\t{\n\t\t\tthis.characterType = \"Argonian Warrior\";\n\t\t\t\n\t\t\tthis.hair = \"None\";\n\t\t\tthis.facialHair = \"None\";\n\t\t\tthis.hairColour = \"None\";\t\t\t\n\t\t\tthis.eyeColour = \"Green\";\n\t\t\tthis.warpaint = \"None\";\n\t\t\tthis.horns = \"Chin\";\n\t\t\tthis.armour = \"Ebon-Steel Armour\";\n\t\t\tthis.weapon = \"Ebon-Steel Sword\";\n\t\t\t\n\t\t\tcharacterTypeNum = \"0\";\n\t\t}\n\t\telse if (characterType.equalsIgnoreCase(\"Assassin\"))\n\t\t{\n\t\t\tthis.characterType = \"Assassin\";\n\t\t\t\n\t\t\tthis.hair = \"None\";\n\t\t\tthis.facialHair = \"None\";\n\t\t\tthis.hairColour = \"None\";\t\t\t\n\t\t\tthis.eyeColour = \"Black\";\n\t\t\tthis.warpaint = \"None\";\n\t\t\tthis.horns = \"None\";\n\t\t\tthis.armour = \"Nightingale Armour\";\n\t\t\tthis.weapon = \"Daedric Dagger\";\n\t\t\t\n\t\t\tcharacterTypeNum = \"1\";\n\t\t}\n\t\telse if (characterType.equalsIgnoreCase(\"Marsh Mage\"))\n\t\t{\n\t\t\tthis.characterType = \"Marsh Mage\";\n\t\t\t\n\t\t\tthis.hair = \"None\";\n\t\t\tthis.facialHair = \"None\";\n\t\t\tthis.hairColour = \"None\";\t\t\t\n\t\t\tthis.eyeColour = \"Green\";\n\t\t\tthis.warpaint = \"None\";\n\t\t\tthis.horns = \"Chin\";\n\t\t\tthis.armour = \"Bone-Scaled Robes\";\n\t\t\tthis.weapon = \"Jagged Staff\";\n\t\t\t\n\t\t\tcharacterTypeNum = \"2\";\n\t\t}\n\t\telse if (characterType.equalsIgnoreCase(\"Scaled Knight\"))\n\t\t{\n\t\t\tthis.characterType = \"Scaled Knight\";\n\t\t\t\n\t\t\tthis.hair = \"None\";\n\t\t\tthis.facialHair = \"None\";\n\t\t\tthis.hairColour = \"None\";\t\t\t\n\t\t\tthis.eyeColour = \"Blue\";\n\t\t\tthis.warpaint = \"None\";\n\t\t\tthis.horns = \"Goat-Horns and Chin\";\n\t\t\tthis.armour = \"Dragon Scale Armour\";\n\t\t\tthis.weapon = \"Dragon Tooth Spear\";\n\t\t\t\n\t\t\tcharacterTypeNum = \"3\";\n\t\t}\n\t\telse if (characterType.equalsIgnoreCase(\"Water-Lurker\"))\n\t\t{\n\t\t\tthis.characterType = \"Water-Lurker\";\n\t\t\t\n\t\t\tthis.hair = \"Feathers\";\n\t\t\tthis.facialHair = \"Green\";\n\t\t\tthis.hairColour = \"Green\";\n\t\t\tthis.eyeColour = \"Blue\";\n\t\t\tthis.warpaint = \"None\";\n\t\t\tthis.horns = \"Goat Horns, Chin, Brow\";\n\t\t\tthis.armour = \"Ragged Trousers\";\n\t\t\tthis.weapon = \"Claws\";\n\t\t\t\n\t\t\tcharacterTypeNum = \"4\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.characterType = \"N/A\";\n\t\t\t\n\t\t\tthis.hair = \"N/A\";\n\t\t\tthis.facialHair = \"N/A\";\n\t\t\tthis.hairColour = \"N/A\";\n\t\t\tthis.eyeColour = \"N/A\";\n\t\t\tthis.warpaint = \"N/A\";\n\t\t\tthis.horns = \"N/A\";\n\t\t\t\n\t\t\tcharacterTypeNum = null;\n\t\t}\n\t}", "@Override\r\n\tpublic void setFactorRebote(int factorRebote) {\n\r\n\t}" ]
[ "0.61177623", "0.6047034", "0.5994793", "0.5887884", "0.5739459", "0.56976473", "0.569743", "0.563308", "0.55980825", "0.55820656", "0.5566337", "0.5565883", "0.5553645", "0.5495441", "0.54773986", "0.5472798", "0.5455889", "0.54345405", "0.5382479", "0.5373244", "0.5300894", "0.5282921", "0.52533185", "0.52533185", "0.52184814", "0.5200443", "0.51964986", "0.5182814", "0.5180852", "0.5180005", "0.5166758", "0.5138365", "0.511786", "0.5114673", "0.51026267", "0.5101595", "0.5100456", "0.509802", "0.5069778", "0.5054449", "0.50525504", "0.50362337", "0.50317115", "0.50295275", "0.5028478", "0.500597", "0.5004755", "0.5001242", "0.49907655", "0.49866885", "0.49613398", "0.4955772", "0.49385297", "0.4936934", "0.4925302", "0.49104616", "0.49078053", "0.49023473", "0.4901647", "0.49003345", "0.4900241", "0.48909345", "0.48880094", "0.4887131", "0.48817888", "0.48756588", "0.48686454", "0.48652083", "0.48590353", "0.48386708", "0.48342076", "0.48272383", "0.48203737", "0.4799317", "0.47969955", "0.47959492", "0.4793097", "0.4785858", "0.47818175", "0.47738135", "0.47730055", "0.47720778", "0.47719908", "0.4771748", "0.47701776", "0.47681135", "0.4764324", "0.4764324", "0.47637", "0.47514296", "0.47437912", "0.47435808", "0.4743541", "0.47401556", "0.4737606", "0.47344396", "0.4730914", "0.47283328", "0.4726118", "0.47222772" ]
0.5214928
25
ExecutorService es = Executors.newFixedThreadPool(3);
public static void main(String[] args) { ExecutorService es = Executors.newCachedThreadPool(); es.execute(new Task(65)); es.execute(new Task(5)); System.out.println("结束执行!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void testES() {\n ExecutorService es = Executors.newFixedThreadPool(2);\n for (int i = 0; i < 10; i++)\n es.execute(new TestTask());\n }", "public static void main(String[] args) {\n\t\tExecutorService pool = Executors.newFixedThreadPool(3);\n\t\t//ExecutorService pool = Executors.newSingleThreadExecutor();\n\t\t\n\t\tExecutorService pool2 = Executors.newCachedThreadPool();\n\t\t//this pool2 will add more thread into pool(when no other thread running), the new thread do not need to wait.\n\t\t//pool2 will delete un runing thread(unrun for 60 secs)\n\t\tThread t1 = new MyThread();\n\t\tThread t2 = new MyThread();\n\t\tThread t3 = new MyThread();\n\n\t\tpool.execute(t1);\n\t\tpool.execute(t2);\n\t\tpool.execute(t3);\n\t\tpool.shutdown();\n\t\t\n\t}", "private static void useCachedThreadPool() {\n ExecutorService executor = Executors.newCachedThreadPool();\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n\n executor.execute(() -> {\n System.out.println(\"==========\");\n });\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 100).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }", "public static void main(String[] args) throws InterruptedException, ExecutionException {\n\t\tExecutorService executor = Executors.newFixedThreadPool(5);\n for (int i = 0; i < 10; i++) {\n \tCallable worker = new WorkerThread1(\"\" + i);\n \tFuture future = executor.submit(worker);\n \tSystem.out.println(\"Results\"+future.get());\n //executor.execute(worker);\n }\n executor.shutdown();\n while (!executor.isTerminated()) {\n }\n System.out.println(\"Finished all threads\");\n }", "public static void main(String[] args) throws ExecutionException, InterruptedException {\n ExecutorService executorService=Executors.newScheduledThreadPool(5);\n try{\n for (int i = 0; i < 10; i++) {\n Future<String> futures = executorService.submit(new TestCallable());\n System.out.println(\"result---------------------\"+futures.get());\n }\n }catch (Exception e){\n e.printStackTrace();\n }finally {\n executorService.shutdown();\n }\n }", "@Test\n void test3() {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(1,1,10L, TimeUnit.SECONDS,new LinkedBlockingDeque<>(2),new ThreadPoolExecutor.DiscardPolicy());\n for (int i = 0; i < 10; i++) {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n System.out.println(Thread.currentThread().getName()+\"输出\");\n }\n });\n }\n }", "public static void main(String[] args) {\n\t\tExecutorService es = new Executors.\n\t}", "public static void main(String[] args) {\n ExecutorService executor = Executors.newFixedThreadPool(5);\n\n for (int i = 0; i < 10; i++) {\n Runnable worker = new WorkerThreadSand(\" \" + i);\n executor.execute(worker);\n }\n executor.shutdown();\n\n// nasty path for executor\n try {\n ExecutorService nastyExecutor = Executors.newSingleThreadExecutor();\n nastyExecutor.execute(null);\n }catch (Exception e){\n System.out.println(\"Nulls don't work\");\n }\n\n\n System.out.println(\"Finished all threads\");\n\n }", "private void normalExecutorService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n try {\n Set<Future<String>> printTaskFutures = new HashSet<Future<String>>();\n for (final String printRequest : printRequests) {\n// Future<String> printer = executor.submit(new Printer(printRequest));\n ListenableFuture<String> printer = executor.submit(new Printer(printRequest));\n printTaskFutures.add(printer);\n// Futures.addCallback(printer, new FutureCallback<String>() {\n// // we want this handler to run immediately after we push the big red button!\n// public void onSuccess(String explosion) {\n//// walkAwayFrom(explosion);\n// }\n//\n// public void onFailure(Throwable thrown) {\n//// battleArchNemesis(); // escaped the explosion!\n// }\n// });\n }\n for (Future<String> future : printTaskFutures) {\n System.out.print(future.get());\n\n }\n } catch (Exception e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n }", "@Test\n @SneakyThrows\n void test() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n\n Runnable runnable = () -> {\n System.out.println(\"this is a new thread !!\");\n System.out.println(\"===============\");\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n };\n\n for (int i = 0; i < 3; i++) {\n executor.submit(runnable);\n }\n Thread.sleep(10 * 1000);\n\n executor.shutdown();\n\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\tpublic static void main(String[] args) throws InterruptedException, ExecutionException{\n\t\tExecutorService e = Executors.newFixedThreadPool(2);\r\n//\t\tList<Future> list = new ArrayList<Future>();\r\n\t\tfor(int i=0;i<10;i++){\r\n\t\t\tCallable c = new JavaTestThread(i);\r\n\t\t\tFuture f = e.submit(c);\r\n\t\t\tSystem.out.println(\"-------\"+ f.get().toString());\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t\r\n\t}", "public EngineConcurrency() {\n Runtime runtime = Runtime.getRuntime();\n int threads = runtime.availableProcessors();\n if (threads > 1) {\n threads++;\n }\n this.executor = Executors.newFixedThreadPool(threads);\n }", "private ExecutorService getDroneThreads() {\n\t\treturn droneThreads;\n\t}", "private void ejecutorDeServicio(){\r\n dbExeccutor = Executors.newFixedThreadPool(\r\n 1, \r\n new databaseThreadFactory()\r\n ); \r\n }", "public void testForNThreads();", "private static void threadPoolWithExecute() {\n\n Executor executor = Executors.newFixedThreadPool(3);\n IntStream.range(1, 10)\n .forEach((i) -> {\n executor.execute(() -> {\n System.out.println(\"started task for id - \"+i);\n try {\n if (i == 8) {\n Thread.sleep(4000);\n } else {\n Thread.sleep(1000);\n }\n System.out.println(\"In runnable task for id -\" + i);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n });\n System.out.println(\"End of method .THis gets printed immdly since execute is not blocking call\");\n }", "private void initExecService() {\n try {\n executorService = Executors.newFixedThreadPool(NO_OF_THREADS);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }", "private static void threadPoolInit() {\n ExecutorService service = Executors.newCachedThreadPool();\n try {\n for (int i = 1; i <= 10; i++) {\n service.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" 办理业务...\");\n });\n try {\n TimeUnit.MILLISECONDS.sleep(1L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n service.shutdown();\n }\n }", "public void testNewFixedThreadPool3() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(2, null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public static void main(String[] args) {\n\t\tList<Future<String>> futureList = new ArrayList<Future<String>>();\r\n\r\n\t\t//collection of multiple tasks which we are supposed to give to thread pool to perform\r\n\t\tList<CallableDemo> taskList = new ArrayList<CallableDemo>();\r\n\t\t//adding multiple tasks to collection (tasks are created using 'Callable' Interface.\r\n\t\ttaskList.add(new CallableDemo(\"first\"));\r\n\t\ttaskList.add(new CallableDemo(\"second\"));\r\n\t\ttaskList.add(new CallableDemo(\"third\"));\r\n\t\ttaskList.add(new CallableDemo(\"fourth\"));\r\n\t\ttaskList.add(new CallableDemo(\"fifth\"));\r\n\t\ttaskList.add(new CallableDemo(\"sixth\"));\r\n\t\ttaskList.add(new CallableDemo(\"seventh\"));\r\n\r\n\t\t//creating a thread pool of size four\r\n\t\tExecutorService threadPool = Executors.newFixedThreadPool(4);\r\n\t\t\r\n\t\tfor (CallableDemo task : taskList) {\r\n\t\t\tfutureList.add(threadPool.submit(task));\r\n\t\t}\r\n threadPool.shutdown();\r\n\t\tfor (Future<String> future : futureList) {\r\n\t\t\ttry {\r\n//\t\t\t\t System.out.println(future.get());\r\n\t\t\t\tSystem.out.println(future.get(1L, TimeUnit.SECONDS));\r\n\t\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}catch (TimeoutException e) {\r\n\t\t\t\tSystem.out.println(\"Sorry already waited for result for 1 second , can't wait anymore...\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n SomeRunnable obj1 = new SomeRunnable();\n SomeRunnable obj2 = new SomeRunnable();\n SomeRunnable obj3 = new SomeRunnable();\n \n System.out.println(\"obj1 = \"+obj1);\n System.out.println(\"obj2 = \"+obj2);\n System.out.println(\"obj3 = \"+obj3);\n \n //Create fixed Thread pool, here pool of 2 thread will created\n ExecutorService pool = Executors.newFixedThreadPool(3);\n ExecutorService pool2 = Executors.newFixedThreadPool(2);\n pool.execute(obj1);\n pool.execute(obj2);\n pool2.execute(obj3);\n \n pool.shutdown();\n pool2.shutdown();\n }", "public void startThread() \n { \n ExecutorService taskList = \n Executors.newFixedThreadPool(2); \n for (int i = 0; i < 5; i++) \n { \n // Makes tasks available for execution. \n // At the appropriate time, calls run \n // method of runnable interface \n taskList.execute(new Counter(this, i + 1, \n \"task \" + (i + 1))); \n } \n \n // Shuts the thread that's watching to see if \n // you have added new tasks. \n taskList.shutdown(); \n }", "public static void main(String[] args) {\n ThreadPoolExecutor executorService = new ThreadPoolExecutor(3, 10, 1L, TimeUnit.SECONDS,\n new LinkedBlockingQueue<>(20),\n Executors.defaultThreadFactory(),\n new ThreadPoolExecutor.AbortPolicy());\n ABC abc = new ABC();\n try {\n for (int i = 1; i <= 10; i++) {\n executorService.execute(abc::print5);\n executorService.execute(abc::print10);\n executorService.execute(abc::print15);\n }\n\n }finally {\n executorService.shutdown();\n }\n }", "public static void main(String[] args) throws Exception {\n Service1 service1 = new Service1();\n ExecutorService service = Executors.newFixedThreadPool(10);\n Future<String> f1 = service.submit(service1);\n\n\n }", "public static void main(String[] args) {\n\n var pool = Executors.newFixedThreadPool(5);\n Future outcome = pool.submit(() -> 1);\n\n }", "public static void main( String[] args ) throws Exception\n {\n PrintTask task1 = new PrintTask( \"thread1\" );\n PrintTask task2 = new PrintTask( \"thread2\" );\n PrintTask task3 = new PrintTask( \"thread3\" );\n \n System.out.println( \"Starting threads\" );\n \n // create ExecutorService to manage threads \n ExecutorService threadExecutor = Executors.newFixedThreadPool( 3 );\n \n // start threads and place in runnable state \n threadExecutor.execute( task1 ); // start task1\n threadExecutor.execute( task2 ); // start task2\n threadExecutor.execute( task3 ); // start task3\n \n threadExecutor.shutdown(); // shutdown worker threads\n threadExecutor.awaitTermination(10, TimeUnit.SECONDS); \n System.out.println( \"Threads started, main ends\\n\" );\n }", "public static void main(String [] args) {\n\t\tExecutorService executor= Executors.newFixedThreadPool(2);\n\t\t\n\t\t//add the tasks that the threadpook executor should run\n\t\tfor(int i=0;i<5;i++) {\n\t\t\texecutor.submit(new Processor(i));\n\t\t}\n\t\t\n\t\t//shutdown after all have started\n\t\texecutor.shutdown();\n\t\t\n\t\tSystem.out.println(\"all submitted\");\n\t\t\n\t\t//wait 1 day till al the threads are finished \n\t\ttry {\n\t\t\texecutor.awaitTermination(1, TimeUnit.DAYS);\n\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"all completed\");\n\t\t\n\t}", "public static void main(String args[]) {\n\t\t (new Thread(new Threads_and_Executors())).start();\r\n}", "public static void main(String[] args) {\n Runnable r1 = () -> {\n String thread = Thread.currentThread().getName();\n log.info(\"{} getting lock\", thread);\n lock.lock();\n log.info(\"{}, increment to {}\", thread, count++);\n log.info(\"{} unlock\", thread);\n lock.unlock();\n\n };\n\n for (int i=0; i <= 5; i++){\n executorService.execute(r1);\n }\n\n executorService.shutdown();\n\n }", "public static void main(String[] args) {\n\t\tExecutorService eservice = Executors.newFixedThreadPool(3);\n\t\tdoSomething ds = new doSomething();\n\t\tFuture<Integer> future = eservice.submit(ds);\n\t\ttry{\n\t\t\tSystem.out.println(future.get());\n\t\t}\n\t\tcatch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\teservice.shutdown();\n\t}", "public static void main(String[] args) {\r\n\r\n ExecutorService es = Executors.newFixedThreadPool(100);\r\n for (int i = 0; i < 10; i++) {\r\n es.execute(new Runnable() {\r\n @Override\r\n public void run() {\r\n // l++;\r\n // l--;\r\n l.incrementAndGet();\r\n l.decrementAndGet();\r\n }\r\n });\r\n }\r\n // for (int i = 0; i < 10; i++) {\r\n // es.execute(new Runnable() {\r\n // @Override\r\n // public void run() {\r\n // synchronized (l) {\r\n // l--;\r\n // }\r\n // // l.decrementAndGet();\r\n // }\r\n // });\r\n // }\r\n System.out.println(l);\r\n }", "public static void main(String[] args) {\n ExecutorService threadPool = Executors.newCachedThreadPool();\n\n try{\n for (int i = 0; i < 10; i++) {\n threadPool.execute(() ->{\n System.out.println(Thread.currentThread().getName()+\"\\t 办理业务\");\n });\n //try {TimeUnit.SECONDS.sleep(1); } catch (InterruptedException e) {e.printStackTrace();}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }finally {\n threadPool.shutdown();\n }\n\n\n\n }", "public static void main (String[] args) {\n logger.info (\"Creating a executor...\");\n ExecutorService executorService = Executors.newFixedThreadPool (3);\n\n\n\n /*\n * Create a lock counter class.\n * */\n logger.info (\"Creating a lock counter class...\");\n ReadWriteCounter counter = new ReadWriteCounter ();\n\n\n\n /*\n * Submit a thread.\n * */\n logger.info (\"Create a read thread...\");\n Runnable readTask = () -> logger.debug (Thread.currentThread ().getName () +\n \" Read Task : \" + counter.getCount ());\n\n\n\n /*\n * Submit a thread.\n * */\n logger.info (\"Create a write thread...\");\n Runnable writeTask = () -> logger.debug (Thread.currentThread().getName() +\n \" Write Task : \" + counter.incrementAndGetCount ());\n\n\n\n /*\n * Submit a threads.\n * */\n logger.info (\"Submit a read threads...\");\n executorService.submit (readTask);\n executorService.submit (readTask);\n\n /*\n * Submit a thread.\n * */\n logger.info (\"Submit a write thread...\");\n executorService.submit (writeTask);\n\n /*\n * Submit a threads.\n * */\n logger.info (\"Submit a read threads...\");\n executorService.submit (readTask);\n executorService.submit (readTask);\n\n\n\n /*\n * Shutdown executor.\n * */\n logger.info (\"Shutdown the executor...\");\n executorService.shutdown ();\n }", "public static void main(String[] args) throws InterruptedException,\n ExecutionException {\n ExecutorService executor = Executors\n .newFixedThreadPool(THREAD_POOL_SIZE);\n\n Future future1 = executor.submit(new Counter());\n Future future2 = executor.submit(new Counter());\n\n System.out.println(Thread.currentThread().getName() + \" executing ...\");\n\n //asynchronously get from the worker threads\n System.out.println(future1.get());\n System.out.println(future2.get());\n\n }", "public static void main(String[] args)\r\n\t{\r\n\t\tExecutorService executorService = Executors.newFixedThreadPool(1);\r\n\t\tList<Future<String>> futureList = new ArrayList<>();\r\n\t\t\r\n\t\tCallable<String> callable = new Thread1();\r\n\t\tCallable<String> callable2 = new Thread1();\r\n\t\tCallable<String> callable3 = new Thread1();\r\n\t\t\r\n\t\t// Future:\r\n\t\t/** A Future represents the result of an asynchronous computation. Methods are provided to check if the computation is complete, \r\n\t\t* to wait for its completion, and to retrieve the result of the computation. The result can only be retrieved using method get \r\n\t\t* when the computation has completed, blocking if necessary until it is ready. Cancellation is performed by the cancel method. \r\n\t\t* Additional methods are provided to determine if the task completed normally or was cancelled. Once a computation has completed, \r\n\t\t* the computation cannot be cancelled. If you would like to use a Future for the sake of cancellability but not provide a usable \r\n\t\t* result, you can declare types of the form Future<?> and return null as a result of the underlying task. **/\r\n\t\t\r\n\t\t// submit():\r\n\t\t/** Submits a value-returning task for execution and returns a Future representing the pending results of the task. \r\n\t\t* The Future's get method will return the task's result upon successful completion. \r\n\t\t* If you would like to immediately block waiting for a task, you can use constructions of the form result = exec.submit(aCallable).get(); **/ \r\n\t\tFuture<String> future = executorService.submit(callable);\r\n\t\tfutureList.add(future);\r\n\t\t\r\n\t\tFuture<String> future2 = executorService.submit(callable2);\r\n\t\tfutureList.add(future2);\r\n\t\t\r\n\t\tFuture<String> future3 = executorService.submit(callable3);\r\n\t\tfutureList.add(future3);\r\n\t\t\r\n\t\tSystem.out.println(\"futureList.size(): \"+futureList.size()); \r\n\t\t\r\n\t\tfor(Future<String> fut : futureList)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// cancel(true)\r\n\t\t\t\t/** Attempts to cancel execution of this task. This attempt will fail if the task has already completed, has already been cancelled, \r\n\t\t\t\t* or could not be cancelled for some other reason. If successful, and this task has not started when cancel is called, this task should never run. \r\n\t\t\t\t* If the task has already started, then the mayInterruptIfRunning parameter determines whether the thread executing this task should be \r\n\t\t\t\t* interrupted in an attempt to stop the task. After this method returns, subsequent calls to isDone will always return true. \r\n\t\t\t\t* Subsequent calls to isCancelled will always return true if this method returned true. **/\r\n\t\t\t\t// System.out.println(fut.cancel(true));\r\n\t\t\t\t\r\n\t\t\t\t// get():\r\n\t\t\t\t// Waits if necessary for the computation to complete, and then retrieves its result.\r\n\t\t\t\tSystem.out.println(fut.get());\r\n\t\t\t\t\r\n\t\t\t\t// get(1000, TimeUnit.MILLISECONDS):\r\n\t\t\t\t/** Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.\r\n\t\t\t\t* Here, we can specify the time to wait for the result, itís useful to avoid current thread getting blocked for longer time. **/ \r\n\t\t\t\t// System.out.println(fut.get(1000, TimeUnit.MILLISECONDS));\r\n\t\t\t\t\r\n\t\t\t\t// isDone():\r\n\t\t\t\t/** Returns true if this task completed. \r\n\t\t\t\t* Completion may be due to normal termination, an exception, or cancellation -- in all of these cases, this method will return true **/\r\n\t\t\t\t// System.out.println(fut.isDone());\r\n\t\r\n\t\t\t\t// isCancelled(): \r\n\t\t\t\t/** Returns true if this task was cancelled before it completed normally. **/\r\n\t\t\t\t// System.out.println(fut.isCancelled());\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex)\r\n\t\t\t{\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\texecutorService.shutdown();\r\n\t}", "public static void main(String[] args) throws Exception {\n ScheduledExecutorService exec = Executors.newScheduledThreadPool(3);// 3 threads\n\n System.out.println(\"TIME: \" + dateFormatter.format(new Date()));\n\n\n ScheduledFuture<?> sf1 = exec.schedule(new ScheduledTaskB(3000), 4,TimeUnit.SECONDS); // TASK-1\n ScheduledFuture<?> sf2 = exec.schedule(new CalculationTaskD(0,3,3000), 6, TimeUnit.SECONDS); // TASK-2\n\n exec.schedule(new ScheduledTaskB(0), 8, TimeUnit.SECONDS);\n ScheduledFuture<?> sf4 = exec.schedule(new CalculationTaskD(3,4,0), 10 , TimeUnit.SECONDS); // TASK-4\n\n exec.shutdown();\n sf1.cancel(true);\n sf2.cancel(true);\n\n // GET RESULTS ////////////////////////////////////////////////////////////\n\n System.out.println(\"\\n\\n\\nGetting results: \");\n\n /*\n .get() blocks until result is available\n */\n System.out.println(\"TASK-1: \" + sf1.get() + \"\\n\");\n System.out.println(\"TASK-2: \" + sf2.get() + \"\\n\");\n System.out.println(\"TASK-4: \" + sf4.get() + \"\\n\");\n\n\n\n\n\n }", "public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\ttry {\n\t\t\tsemaphore.acquire(); // 3 thread at a time\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Slow servie\"); //50 times concurrently\n\t\t\n\t\tsemaphore.release();\n\t\t//rst of service\n\t\t\n\t\t\n\t}", "protected synchronized ExecutorService getService() {\r\n if(service == null) {\r\n //System.out.println(\"creating an executor service with a threadpool of size \" + threadPoolSize);\r\n service = Executors.newFixedThreadPool(threadPoolSize, new ThreadFactory() {\r\n private int count = 0;\r\n \r\n public Thread newThread(Runnable r) {\r\n Thread t = new Thread(r, \"tile-pool-\" + count++);\r\n t.setPriority(Thread.MIN_PRIORITY);\r\n t.setDaemon(true);\r\n return t;\r\n }\r\n });\r\n }\r\n return service;\r\n }", "public static void main(String args[])\n {\n\t ScheduledExecutorService executorService= Executors.newScheduledThreadPool(2);\n\t Runnable task1=new RunnableChild(\"task1\");\n\t Runnable task2=new RunnableChild(\"task2\");\n\t Runnable task3=new RunnableChild(\"task3\");\n\t executorService.submit(task1);\n\t executorService.submit(task2);\n\t executorService.submit(task3);\n\t executorService.schedule(task1,20, TimeUnit.SECONDS);\n\t System.out.println(\"*******shutting down called\");\n\t executorService.shutdown();\n }", "@Singleton\n\t@Provides\n\tExecutorService provideExecutorService() {\n\t\tThreadFactory threadFactory = new ThreadFactory() {\n\t\t\tprivate final AtomicInteger threadNumber = new AtomicInteger(1);\n\n\t\t\t@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\t// Two-digit counter, used in load test.\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}\n\t\t};\n\t\treturn threadCount >= 0\n\t\t\t\t? Executors.newFixedThreadPool(threadCount, threadFactory)\n\t\t\t\t: Executors.newCachedThreadPool(threadFactory);\n\t}", "private static void useFixedSizePool(){\n ExecutorService executor = Executors.newFixedThreadPool(10);\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 20).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }", "public static void main(String[] args) {\n\t\tExecutorService threadPool = Executors.newCachedThreadPool();\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\t\tthreadPool.execute(()->{\r\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \"\\t 执行业务\");\r\n\t\t\t\t});\r\n\t\t\t\tTimeUnit.MICROSECONDS.sleep(200);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}finally {\r\n\t\t\tthreadPool.shutdown();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private static void multiThreading(){\n\t\tSystem.out.println(\"\\nCreating new two separate instances of Singleton using Multi threading\");\n\t\tExecutorService service = Executors.newFixedThreadPool(2);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.shutdown();\n\t}", "public static void main(String args[]) {\n\t\tExecutorService executor = Executors.newFixedThreadPool(5);\n\t\t\n\t\t// Create a list to hold the Future object associated with Callable\n\t\tList<Future<String>> futureList = new ArrayList<Future<String>>();\n\n\t\t/**\n\t\t * Create MyCallable instance using Lambda expression which return\n\t\t * the thread name executing this callable task\n\t\t */\n\t\tCallable<String> callable = () -> {\n\t\t\tThread.sleep(2000);\n\t\t\treturn Thread.currentThread().getName();\n\t\t};\n\t\t\n\t\t/**\n\t\t * Submit Callable tasks to be executed by thread pool\n\t\t * Add Future to the list, we can get return value using Future\n\t\t **/\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tFuture<String> future = executor.submit(callable);\n\t\t\tfutureList.add(future);\n\t\t}\n\t\t\n\t\t/**\n\t\t * Print the return value of Future, notice the output delay\n\t\t * in console because Future.get() waits for task to get completed\n\t\t **/\n\t\tfor (Future<String> future : futureList) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(new Date() + \" | \" + future.get());\n\t\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// shut down the executor service.\n\t\texecutor.shutdown();\n\t}", "public static void main(String[] args)\n\t{\n\t\tint coreCount = Runtime.getRuntime().availableProcessors();\n\t\t//Create the pool\n\t\tExecutorService ec = Executors.newCachedThreadPool(); //Executors.newFixedThreadPool(coreCount);\n\t\tfor(int i=0;i<100;i++) \n\t\t{\n\t\t\t//Thread t = new Thread(new Task());\n\t\t\t//t.start();\n\t\t\tec.execute(new Task());\n\t\t\tSystem.out.println(\"Thread Name under main method:-->\"+Thread.currentThread().getName());\n\t\t}\n\t\t\n\t\t//for scheduling tasks\n\t\tScheduledExecutorService service = Executors.newScheduledThreadPool(10);\n\t\tservice.schedule(new Task(), 10, TimeUnit.SECONDS);\n\t\t\n\t\t//task to run repetatively 10 seconds after previous taks completes\n\t\tservice.scheduleWithFixedDelay(new Task(), 15, 10, TimeUnit.SECONDS);\n\t\t\n\t}", "public static void main(String[] args) {\n ExecutorService executorService= Executors.newCachedThreadPool();\n// executorService.execute(new FibonacciA(5));\n// executorService.execute(new FibonacciB(5));\n Future<Integer> result=executorService.submit(new FibonacciCall(5));\n try {\n System.out.println(\"result:\"+result.get());\n }catch ( InterruptedException e){\n e.printStackTrace();\n }\n catch (ExecutionException e){\n e.printStackTrace();\n }\n finally {\n executorService.shutdown();\n }\n\n }", "public static void main(String[] args) throws InterruptedException {\n Runnable r1 = new Runnable() {\n @Override public void run() {\n try {\n Thread.sleep( 600);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println( \"A1 \" + Thread.currentThread() );\n System.out.println( \"A2 \" + Thread.currentThread() );\n }\n };\n\n Runnable r2 = new Runnable() {\n @Override public void run() {\n try {\n Thread.sleep(600);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println( \"B1 \" + Thread.currentThread() );\n System.out.println( \"B2 \" + Thread.currentThread() );\n }\n };\n\n ExecutorService executor = Executors.newCachedThreadPool();\n\n executor.submit( r1 );\n executor.submit( r2 );\n\n System.out.println(\"Pause beginnt ...\");\n Thread.sleep( 5000 );\n System.out.println(\"Pause beendet ...\");\n\n executor.execute( r1 );\n executor.execute( r2 );\n\n executor.shutdown();\n }", "ActorThreadPool getThreadPool();", "public static void main(String[] args) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2, 2, 0, TimeUnit.NANOSECONDS, new ArrayBlockingQueue<>(10));\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"all task over!\");\n threadPoolExecutor.shutdown();\n }", "public void testExecuteInParallel_Collection_ThreadPoolExecutor() throws Exception\n {\n System.out.println( \"executeInParallel\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInParallel( tasks, ParallelUtil.createThreadPool( 1 ) );\n assertEquals( result.size(), tasks.size() );\n }", "public void testNewFixedThreadPool4() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(0);\n shouldThrow();\n } catch (IllegalArgumentException success) {}\n }", "public static void main(String[] args) {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(7, 8, 5, TimeUnit.SECONDS,\r\n new LinkedBlockingQueue<Runnable>());\r\n System.out.println(executor.getCorePoolSize());\r\n System.out.println(executor.getMaximumPoolSize());\r\n System.out.println(\"***************************\");\r\n ThreadPoolExecutor executor2 = new ThreadPoolExecutor(7, 8, 5, TimeUnit.SECONDS,\r\n new SynchronousQueue<Runnable>());\r\n System.out.println(executor2.getCorePoolSize());\r\n System.out.println(executor2.getMaximumPoolSize());\r\n\r\n// 7\r\n// 8\r\n// ***************************\r\n// 7\r\n// 8\r\n\r\n // 熟悉下api,查询线程池中保存的core线程数量为7,最大为8\r\n }", "public static void main(String[] args) {\r\n\t\tMyThread thread = new MyThread();\r\n\t\tfixedExecutorService.execute(thread);\r\n\t\tfixedExecutorService.execute(thread);\r\n\t\tfixedExecutorService.execute(thread);\r\n\t\tfixedExecutorService.execute(thread);\r\n\t\tfixedExecutorService.execute(thread);\r\n\t\tfixedExecutorService.execute(thread);\r\n\t\tfixedExecutorService.execute(thread);\r\n\t}", "public void testNewFixedThreadPool1() {\n final ExecutorService e = Executors.newFixedThreadPool(2);\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "void setExecutorService(ExecutorService executorService);", "public static void main(String[] args) {\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n for(int i =0; i<10000; i++){\n System.out.println(\n Thread.currentThread().getId() + \":\" + i\n );\n }\n }\n };\n\n // using functions, a bit cleaner\n Runnable runnable2 = () -> {\n for(int i =0; i<10000; i++){\n System.out.println(\n Thread.currentThread().getId() + \":\" + i\n );\n }\n };\n\n Thread thread = new Thread(runnable);\n thread.start();\n\n Thread thread2 = new Thread(runnable);\n thread2.start();\n\n Thread thread3 = new Thread(runnable);\n thread3.start();\n\n }", "public static void main(String[] args) {\n ExecutorService service = Executors.newCachedThreadPool();\n for (int i = 0; i < 100; i++) {\n service.submit(new Task());\n }\n System.out.println(\"Running Main\" + Thread.currentThread().getName());\n }", "ScheduledExecutorService getExecutorService();", "public static void main(String[] args) throws InterruptedException {\n\t\tThreadPoolExecutor executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(3);\n\t\tint numPaletes = 5, ti, te, numMaons = 10;\n\t\t\n\t\t//instanciem els paletes\n\t\tPaletaP[] P = new PaletaP[numPaletes];\n\t\t\t\t\t\t\n\t\t//comencem a contar el temps\n\t\tti = (int) System.currentTimeMillis();\n\t\t//Donem nom als paletes i els posem a fer fer la paret\n\t\tfor (int i=0;i<numPaletes;i++) {\n\t\t\tP[i] = new PaletaP(\"Paleta-\"+i,numMaons);\n\t\t\texecutor.execute(P[i]);\n\t\t}\n\n\t\texecutor.shutdown();\n\t\texecutor.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS);\n\t\t/*while (!executor.isTerminated()) {\n\t\t}*/\n\n\t\t//Han acabat i agafem el temps final\n\t\tte = (int) System.currentTimeMillis();\n\t\t\t\t\n\t\tSystem.out.println(\"Han trigat: \" + (te - ti)/1000 + \" segons\");\n\t\t\n\t}", "@Test\r\n\tpublic void test()\r\n\t{\n\t\t\r\n\t\tThreadPoolManager.addPool(\"1,UD,12,12,30000,200000\");\r\n//\t\tThreadPoolManager.addPool(\"2,UD,12,12,30000,200000\");\r\n\r\n// ThreadPoolManager.init(params);\r\n// ThreadPoolManager.getPool(\"1\");\r\n\t\t\r\n//\t\tThread t = new Thread(this.testCreaterun());\r\n//\t\tBaseTask\r\n\t\tBaseTask b = this.testCreaterun();\r\n\t\tThreadPoolManager.submit(\"1\", b);\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\tThreadPoolManager.shutdownNow(\"1\");\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystemUtil.sleepForever();\r\n\t}", "@Test\n public void testThread() {\n\n Thread thread1 = new Thread(() -> {\n //i++;\n for (int j = 0; j < 2000000; j++) {\n (this.i)++;\n }\n });\n\n Thread thread2 = new Thread(() -> {\n //System.out.println(\"i = \" + i);\n for (int j = 0; j < 2000000; j++) {\n System.out.println(\"i = \" + this.i);\n }\n });\n\n thread1.start();\n thread2.start();\n /*for (int j = 0; j < 20; j++) {\n thread1.start();\n thread2.start();\n }*/\n\n\n /* ValueTask valueTask = new ValueTask();\n PrintTask printTask = new PrintTask();*/\n\n /*for (int i = 0; i < 20; i++) {\n Worker1 worker1 = new Worker1(valueTask);\n Worker2 worker2 = new Worker2(printTask);\n\n worker1.start();\n worker2.start();\n }*/\n\n }", "private void initThreadPool(int numOfThreadsInPool, int[][] resultMat, Observer listener) {\n for(int i=0;i<numOfThreadsInPool; i++){\r\n PoolThread newPoolThread = new PoolThread(m_TaskQueue, resultMat);\r\n newPoolThread.AddResultMatListener(listener);\r\n m_Threads.add(newPoolThread);\r\n }\r\n // Start all Threads:\r\n for(PoolThread currThread: m_Threads){\r\n currThread.start();\r\n }\r\n }", "public static void main(String[] args) {\n\n\t\tString word = args[0];\n\t\tString host = args[1];\n\t\tint port = Integer.parseInt(args[2]);\n\t\tint nPool = Integer.parseInt(args[3]);\n\t\tint apariciones = 0;\n\n\t\tExecutorService ex = Executors.newFixedThreadPool(nPool);\n\n\t\tArrayList<Future<Integer>> f = new ArrayList<Future<Integer>>();\n\n\t\tfor (int i = 1; i < 12; i++) {\n\t\t\tCountTarea c = new CountTarea(host, port, i, word);\n\t\t\tf.add(ex.submit(c));\n\t\t}\n\n\t\ttry {\n\t\t\tfor (Future<Integer> result : f) {\n\t\t\t\tapariciones += (Integer) result.get();\n\n\t\t\t}\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.printf(\"Total apariciones de '%s': %d\", word, apariciones);\n\t\tex.shutdown();\n\n\t\t// Obtener el ExecutorService\n\t\t// Crear una lista de Future<Integer> para almacenar lo que devuelva el método\n\t\t// submit\n\t\t// Para cada fichero\n\t\t// Crear una tarea (instancia de CountTarea)\n\t\t// Ejecutar la tarea en el ExecutorService y obtener el Future<Integer> que\n\t\t// devuelve\n\t\t// Almacenar el Future<Integer> en la lista\n\n\t\t// Para cada Future<Integer> de la lista\n\t\t// Obtener el resultado y acumularlo en apariciones\n\n\t\t// Mostrar el numero de apariciones\n\t}", "private void completionService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n ExecutorCompletionService<String> completionService = new ExecutorCompletionService<String>(executor);\n for (final String printRequest : printRequests) {\n// ListenableFuture<String> printer = completionService.submit(new Printer(printRequest));\n completionService.submit(new Printer(printRequest));\n }\n try {\n for (int t = 0, n = printRequests.size(); t < n; t++) {\n Future<String> f = completionService.take();\n System.out.print(f.get());\n }\n } catch (InterruptedException | ExecutionException e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n\n }", "public static void main(String args[]) {\n ExecutorService executor = Executors.newFixedThreadPool(5);\n //create a list to hold the Future object associated with Callable\n Map<Integer, Future<String>> map = new HashMap<Integer, Future<String>>();\n //Create MyCallable instance\n for (int i = 0; i < 10; i++) {\n Callable<String> callable = new MyCallable(\"\" + i);\n //submit Callable tasks to be executed by thread pool\n Future<String> future = executor.submit(callable);\n\n //add Future to the list, we can get return value using Future\n map.put(i, future);\n }\n System.out.println(\"Assigned\");\n map.forEach(MyCallable::handleResult);\n// for (Future<String> fut : list) {\n// try {\n// //print the return value of Future, notice the output delay in console\n// // because Future.get() waits for task to get completed\n// System.out.println(new Date() + \"::\" + fut.get());\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// } catch (ExecutionException e) {\n// System.out.println(\"Handled in main thread - Crash\");\n// }\n// }\n System.out.println(\"About to shutdown\");\n //shut down the executor service now\n executor.shutdown();\n System.out.println(\"Shutdown\");\n }", "public static void main(String[] args) {\n\n ScheduledExecutorService service = Executors.newScheduledThreadPool(4);\n\n //task to run after 10 seconds delay\n service.schedule(new Task(), 10, TimeUnit.SECONDS);\n\n //task to repeatedly every 10 seconds\n service.scheduleAtFixedRate(new Task(), 15, 10, TimeUnit.SECONDS);\n\n //task to run repeatedly 10 seconds after previous task completes\n service.scheduleWithFixedDelay(new Task(), 15, 10, TimeUnit.SECONDS);\n\n\n for (int i = 0; i < 100; i++) {\n System.out.println(\"task number - \" + i + \" \");\n service.execute(new Task());\n }\n System.out.println(\"Thread name: \" + Thread.currentThread().getName());\n\n }", "private SingletonThreadSafeExample(){\n this.invoke++;\n }", "public static void main(String[] args) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(threadNum, threadNum, 10L, TimeUnit.SECONDS, linkedBlockingDeque);\n\n final CountDownLatch countDownLatch = new CountDownLatch(NUM);\n\n long start = System.currentTimeMillis();\n\n for (int i = 0; i < NUM; i++) {\n threadPoolExecutor.execute(\n () -> {\n inventory--;\n System.out.println(\"线程执行:\" + Thread.currentThread().getName());\n\n countDownLatch.countDown();\n }\n );\n }\n\n threadPoolExecutor.shutdown();\n\n try {\n countDownLatch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n long end = System.currentTimeMillis();\n System.out.println(\"执行线程数:\" + NUM + \" 总耗时:\" + (end - start) + \" 库存数为:\" + inventory);\n }", "public static void main(String[] args)throws InterruptedException, ExecutionException {\n\t\tList<String> l1=new ArrayList<>(),l2=new ArrayList<>(),l3=new ArrayList<>();\n\t\tl1.add(\"Eng\");\n\t\tl2.add(\"Doc\");\n\t\tPerson p1=new Person(1,LocalDate.now(),l1);\n\t\tPerson p2=new Person(2,LocalDate.now(),l2);\n\t\tl3.add(\"Arts\");\n\t\tPerson p3=new Person(3,LocalDate.now(),l3);\n\t\tPerson p4=new Person(4,LocalDate.now().minusDays(2),l2);\n\t\tList<Person> lp=new ArrayList<>();\n\t\tlp.add(p1);\n\t\tlp.add(p2);\n\t\t\n\t\t\n\t\tExecutorService service = Executors.newFixedThreadPool(10);\n\t\tSemaphore semaphore = new Semaphore(10);\n\t\tFutureTask<List<Person>> future=new FutureTask<List<Person>>(new Test(lp,semaphore));\n\t\tFutureTask<String> futurew1=new FutureTask<String>(new TestWrite(lp,p3,semaphore));\n\t\tFutureTask<String> futurew2=new FutureTask<String>(new TestWrite(lp,p4,semaphore));\n\t\t\n\t\tservice.execute(future);\n\t\tfor(Person p:future.get())\n\t\t{\n\t\t\tSystem.out.println(\"The result after seraching is \"+p.toString());\n\t\t}//future.wait();\n\t\tservice.execute(futurew1);\n\t\tSystem.out.println(futurew1.get());\n\t\t\n\t\t//if(futurew1.isDone())\n\t\t\n\t\t{\n\t\t\tservice.execute(future);\n\t\t\tfor(Person p:future.get())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"The result after seraching is \"+p.toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\t//service.execute(futurew2);\n\t\t//System.out.println(futurew2.get());\n\t\t//if(future1.isDone())\n//\t\t{\n//\t\t\tservice.execute(future);\n//\t\t\tSystem.out.println();System.out.println();\n//\t\t\tfor(Person p:future.get())\n//\t\t\t{\n//\t\t\t\tSystem.out.println(\"The result after seraching is \"+p.toString());\n//\t\t\t}\n//\t\t}\n\t\tservice.shutdown();\n\t}", "public static void main(String[] args) {\n ExecutorService executorService = Executors.newFixedThreadPool(100);\n\n for (int i=0;i<10000000;i++){\n executorService.execute(()->{\n System.out.println(generateTransId());\n });\n }\n }", "public static ExecutorService daemonTwoThreadService(){\n return Executors.newFixedThreadPool(2,new ThreadFactory(){\n\n @Override\n public Thread newThread(Runnable r) {\n Thread t= Executors.defaultThreadFactory().newThread(r);\n t.setDaemon(true);\n return t;\n }\n });\n }", "@Test \n\t public static void Execute_Sessions() throws Exception\n\t {\n\t\t int MYTHREADS = 30; \n\t\t // ExecutorService pool = Executors.newFixedThreadPool(MYTHREADS); \n\t\t //CountDownLatch latch = new CountDownLatch(totalNumberOfTasks);\n\t\t ExecutorService executor = Executors.newFixedThreadPool(MYTHREADS);\n\t\t \n\t\t// CountDownLatch latch = new CountDownLatch(15);\n\t\t //ExecutorService executor = Executors.newFixedThreadPool(13);\n\t\t// ExecutorService pool = Executors.newFixedThreadPool(MYTHREADS); \n\t\t \n\t\t int NumberofTestScripts = 0;\n\t\t\tExcelApiTest3 eat = new ExcelApiTest3();\n\t\t\tNumberofTestScripts=eat.getRowCount(\"E://Batch2Source//Regression1.xls\",\"Sheet1\");\n\t\t\tSystem.out.println(\"Numberof TestScripts Count Regression1.xls :\"+NumberofTestScripts);\n\t\t\t\n\t\t\t\t\t\n\t\t\tfor (int iRow1=1;iRow1<NumberofTestScripts;iRow1++) // Number of Test Cases in Regression Sheet\n\t\t\t{\n\t\t\t\tRunnable worker = new DriverTest124(iRow1);\n\t\t\t\tThread.sleep(3000);\n\t\t\t\t\n\t \t\texecutor.execute(worker);\n\t \t\t\n\n\t\t\t\t//executor.awaitTermination(5, TimeUnit.HOURS);\n\t \t\t//Runnable worker = new WorkerThread(\"\" + iRow1);\n\t // executor.execute(worker);\n\t\t\t\t//Future f = executor.submit(new DriverTest124(iRow1));\n\t\t\t\t//f.get(60,TimeUnit.SECONDS);\n\t\t\t\t//Thread.sleep(9000);\n\t \t\n\t\n\t\t\t\t/*\n\t \t\tSystem.out.println(\"First Thread ID:\"+Thread.currentThread().getId());\n\t\t\t\tSystem.out.println(\"First Thread status:\"+Thread.currentThread().getState());\n\t\t\t\tSystem.out.println(\"First Thread Name:\"+Thread.currentThread().getName());\n\t\t\t\t\n\t\t\n\t\t\t\t String str=\"Row Iteration in for loop- \" + String.valueOf(iRow1);\n\t\t\t\t System.out.println(\"Row Iteration in for loop- \"+str);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Thread ID:\"+Thread.currentThread().getId());\n\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getState());\n\t\t\t\tSystem.out.println(\"Thread Name:\"+Thread.currentThread().getName());*/\n\t\t\t\t\n\t\t\t\t/*if(Thread.currentThread().isInterrupted())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getId());\n\t\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getState());\n\t\t\t\t}*/\n\t\t\t\t\n\t \t\n\t\t\t\t//f.wait();\n\t\t\t\t//System.out.println(\"Task Status - :\"+f.isCancelled());\n\t\t\t\t\n\t\t\t\t\t//f.isDone();\n\t \t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t/*try {\n\t\t\t latch.await();\n\t\t\t} catch (InterruptedException E) {\n\t\t\t\t\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\tSystem.out.println(\"Finish tasks\");\n\t\t\t\n\t\t\t//awaitTerminationAfterShutdown\n\t\t\t\t\t\n\t\t\n\t\t\texecutor.shutdown();\n\t\t\texecutor.awaitTermination(5, TimeUnit.HOURS);\n\t\t\t\n\t\t\t// Wait until all threads are finish\n\t\t//\twhile (!executor.isTerminated()) {\n\t \n\t\t//\t}\n\t\t\tSystem.out.println(\"\\nFinished all threads\");\n\t\t\t\n\t\t\t\n\t\t}", "public void testNewFixedThreadPool2() {\n final ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "public static ExecutorService m21543a() {\n return f19854a;\n }", "@Test\n public void testSingleton() throws InterruptedException{\n Singleton[] results = new Singleton[threadNumber];\n\n for(int i=0; i<threadNumber; i++) {\n final int finalI = i;\n executor.execute(() -> {\n try {\n long threadId = Thread.currentThread().getId();\n logger.info(\"[Thread-\" + threadId + \"] is running\");\n results[finalI] = Singleton.getInstance();\n logger.info(\"[Thread-\" + threadId + \"] is finished\");\n }\n catch (Throwable t) {\n logger.error(t, t.getCause());\n }\n });\n }\n executor.shutdown();\n executor.awaitTermination(10, TimeUnit.SECONDS);\n\n long count = Arrays.stream(results).distinct().count();\n assertEquals(\"Instance number supposed to be only one, but you got \" + count, expectInstances, count);\n }", "public static void main(String[] args) {\n\t\tExecutorService executor = Executors.newFixedThreadPool(3);\n\t\t\n\t\t// Submit runnable tasks to the executor\n\t\texecutor.execute(new PrintChar('a', 100));\n\t\texecutor.execute(new PrintChar('b', 100));\n\t\texecutor.execute(new PrintNum(100));\n\t\t\n\t\t// Shut down the executor\n\t\texecutor.shutdown();\n\t}", "public int getExecutors() {\r\n return executors;\r\n }", "@Test\n @DisplayName(\"SingleThread Executor + shutdown\")\n void firstExecutorService() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n executor.submit(this::printThreadName);\n\n shutdownExecutor(executor);\n assertThrows(RejectedExecutionException.class, () -> executor.submit(this::printThreadName));\n }", "public static void main(String[] args){\n\t\tint tamPool=Integer.parseInt(args[0]);\r\n\t\tSystem.out.println(\"Cuantos numero quiere lanzar?\");\r\n\t\tn=Integer.parseInt(args[1]);\r\n\t\tlong time_start, time_end;\r\n\t\tint numeros=n/tamPool;\r\n\t\tThread []hilos= new Thread[tamPool];\r\n\t\ttime_start = System.currentTimeMillis();\r\n\t\t//System.out.println(\"Numeros: \"+numeros);\r\n\t\tint grueso=numeros;\r\n\t\t\t//ExecutorService exec = Executors.newCachedThreadPool();\r\n\t\t\tfor(int i=0;i<tamPool;++i){\r\n\t\t\t\thilos[i]= new Thread(new piParalelo(numeros));\r\n\t\t\t\thilos[i].start();\r\n\t\t\t//System.out.println(i+\" : \"+grueso);\r\n\t\t\t//exec.execute(new piParalelo(numeros));\r\n\t\t\tif((grueso+numeros)>=n)numeros=n-grueso;\r\n\t\t\telse grueso+=numeros;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\tfor(int i=0;i<tamPool;++i){\r\n\t\t\t\ttry{\r\n\t\t\t\thilos[i].join();\r\n\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t/**try{\r\n\t\t\texec.shutdown();\r\n\t\t\texec.awaitTermination(1, TimeUnit.DAYS);\r\n\t\t\t}catch(Exception e){}*/\r\n\t\tPI=4*((double)atomico.get()/(double)n);\r\n\t\tSystem.out.println(\"La aproximacion del numero PI por montecarlo es: \"+PI);\r\n\t\ttime_end = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"the task has taken \"+ ( time_end - time_start ) +\" milliseconds\");\r\n\t\t\t\t\t\t\t}", "public static void main(String[] args) {\n\t\tBlockingQueue queue = new LinkedBlockingQueue(4);\n\n\t\t// Thread factory below is used to create new threads\n\t\tThreadFactory thFactory = Executors.defaultThreadFactory();\n\n\t\t// Rejection handler in case the task get rejected\n\t\tRejectTaskHandler rth = new RejectTaskHandler();\n\t\t// ThreadPoolExecutor constructor to create its instance\n\t\t// public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long\n\t\t// keepAliveTime,\n\t\t// TimeUnit unit,BlockingQueue workQueue ,ThreadFactory\n\t\t// threadFactory,RejectedExecutionHandler handler) ;\n\t\tThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 2, 10L, TimeUnit.MILLISECONDS, queue,\n\t\t\t\tthFactory, rth);\n\n\t\tfor (int i = 1; i <= 10; i++) {\n\t\t\tDataFileReader df = new DataFileReader(\"File \" + i);\n\t\t\tSystem.out.println(\"A new file has been added to read : \" + df.getFileName());\n\t\t\t// Submitting task to executor\n\t\t\tthreadPoolExecutor.execute(df);\n\t\t}\n\t\tthreadPoolExecutor.shutdown();\n\t}", "public static void main(String[] args) \n\t{\n\t\tForkJoinPool fjp = ForkJoinPool.commonPool();\n\t\t//ForkJoinPool fjp = new ForkJoinPool(2);\n\t\t\n\t\tSystem.out.println(fjp.getParallelism() + \" cores executing\");\n\t\tfjp.invoke(new MyAction());\n\t\tFuture<Integer> x = fjp.submit(new MyTask());\n\t\tfjp.invoke(new MyTask());\n\t\t\n\t\tList<Callable<Integer>> tasks = new ArrayList<>();\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 1 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 2 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 3 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 4 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 5 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\tint sum = 0;\n\t\tList<Future<Integer>> futureSums = fjp.invokeAll(tasks);\n\t\tfor(Future<Integer> num: futureSums)\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tsum += num.get();\n\t\t\t} catch (InterruptedException | ExecutionException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sum is \" + sum);\n\t\t\n\t\tfjp.shutdown();\n\t\ttry {\n\t\t\tfjp.awaitTermination(30,TimeUnit.SECONDS);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }", "public void testNewSingleThreadExecutor1() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "public static void main(String[] args) throws InterruptedException, ExecutionException {\t\r\n\t\tScanner reader = new Scanner(System.in);\r\n\t\t/*\r\n\t\t * Limite maximo de números. \r\n\t\t */\t\r\n\t\tList<Future<Long>> list = new ArrayList<Future<Long>>();\r\n\t\t/*\r\n\t\t * Lista que guarda los tiempos de ejecución de cada hilo. \r\n\t\t */\t\r\n\t\tArrayList<Long> ListaTiempo = new ArrayList<Long>();\r\n\t\tSystem.out.print(\"ingrese numeros limite de numeros para analizar:\");\r\n\t\t/*\r\n\t\t * Variable que guarda el numero captado por consola. \r\n\t\t */\t\r\n\t\tint numeros = reader.nextInt();\r\n\t\t/*\r\n\t\t * Variable que incrementa para generar los hilos. \r\n\t\t */\t\r\n\t\tint hilos = 1;\r\n\t\t/*\r\n\t\t * Variable que guarda el tiempo de ejecucion del hilo uno. \r\n\t\t */\t\r\n\t\tlong tiempoHiloUno = 0;\r\n\t\t\r\n\t\t//while que itera hasta 16 hilos.\r\n\t\twhile (hilos <= 16) {\r\n\t\t\t//Calculo del límite.\r\n\t\t\tint limite = numeros / hilos;\r\n\t\t\t/*\r\n\t\t\t * Se crea el pool de hilos. \r\n\t\t\t */\t\r\n\t\t\tExecutorService servicio = Executors.newFixedThreadPool(hilos);\r\n\t\t\tint inferior = 1;\r\n\t\t\tint superior = limite;\r\n\t\t\tlong initialTime = System.currentTimeMillis();\r\n\t\t\t//Itera segun el numero de hilos.\r\n\t\t\tfor (int i = 1; i <= hilos; i++) {\r\n\t\t\t\tFuture<Long> resultado = servicio.submit(new Nprimos(superior, inferior));\r\n\t\t\t\tlist.add(resultado);\r\n\t\t\t\tinferior = superior + 1;\r\n\t\t\t\tsuperior += limite;\r\n\t\t\t\t//Si supera el límite rompe el ciclo.\r\n\t\t\t\tif (superior > limite * hilos) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// se termina de ejecutar cuando todos los hilos terminan de trabajar.\r\n\t\t\tfor (Future<Long> resultado : list) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tListaTiempo.add(resultado.get());\r\n\t\t\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(hilos==1) {\r\n\t\t\t\ttiempoHiloUno = System.currentTimeMillis() - initialTime; \r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \\n \" + \"(\" + hilos + \")\" + \"tiempo de ejecución: \"+ (System.currentTimeMillis() - initialTime) + \" ms\\n\");\r\n\t\t\tSystem.out.print(\" speed up = \" + (double)(tiempoHiloUno /(System.currentTimeMillis() - initialTime)) + \" \\n\");\r\n\t\t\tservicio.shutdown();\r\n\t\t\t//Se incrementa variable hilos.\r\n\t\t\thilos++;\r\n\t\t}\r\n\r\n\t}", "public interface ThreadExecutor extends Executor {\n}", "int numberOfWorkers();", "public void testExecuteInSequence() throws Exception\n {\n System.out.println( \"executeInSequence\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInSequence( tasks );\n assertEquals( result.size(), tasks.size() );\n }", "public static void main(String[] args) throws InterruptedException, ExecutionException {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n\n System.out.println(\"submitted callable task to calculate factorial of 10\");\n Future<Long> result10 = executorService.submit(new FactorialCalculator(10));\n\n System.out.println(\"submitted callable task to calculate factorial of 15\");\n Future<Long> result15 = executorService.submit(new FactorialCalculator(15));\n\n System.out.println(\"submitted callable task to calculate factorial of 20\");\n Future<Long> result20 = executorService.submit(new FactorialCalculator(20));\n\n System.out.println(\"Calling get method of FutureUsage to fetch result of factorial 10\");\n long factorialOf10 = result10.get();\n System.out.println(\"factorial of 10 is : \" + factorialOf10);\n\n System.out.println(\"Calling get method of FutureUsage to get result of factorial 15\");\n long factorialOf15 = result15.get();\n System.out.println(\"factorial of 15 is : \" + factorialOf15);\n\n System.out.println(\"Calling get method of FutureUsage to get result of factorial 20\");\n long factorialOf20 = result20.get();\n System.out.println(\"factorial of 20 is : \" + factorialOf20);\n }", "public void testNewCachedThreadPool3() {\n try {\n ExecutorService e = Executors.newCachedThreadPool(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public static void main(String[] args) throws InterruptedException {\n for (int i = 0; i < 3; i++) {\n MyCountedCompleter myCountedCompleter = new MyCountedCompleter();\n// forkJoinPool.submit(myCountedCompleter);\n myCountedCompleter.fork();\n }\n System.out.println(ForkJoinPool.commonPool().getActiveThreadCount());\n Thread.sleep(200000000);\n// forkJoinPool.shutdown();\n// System.out.println(forkJoinPool.isShutdown());\n// System.out.println(\"quiescence: \" + forkJoinPool.awaitQuiescence(5000, TimeUnit.MILLISECONDS));\n// System.out.println(\"termination: \" + forkJoinPool.awaitTermination(1000000, TimeUnit.MILLISECONDS));\n// System.out.println(forkJoinPool.toString());\n }", "public void testNewSingleThreadExecutor3() {\n try {\n ExecutorService e = Executors.newSingleThreadExecutor(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public static void main(String[] args)\n {\n ExecutorService executorService = Executors.newCachedThreadPool();\n Future<Integer> future = executorService.submit(new Callable<Integer>() {\n public Integer call()\n {\n Random random = new Random();\n int duration = random.nextInt(500);\n System.out.println(\"Starting...\");\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"Finished\");\n return duration;\n }\n });\n executorService.shutdown();\n try {\n System.out.println(\"result is : \"+future.get());\n\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n System.out.println(\"future object done? :\"+future.isDone());\n System.out.println(\"future object cancelled? :\"+future.isCancelled());\n }", "public static void main(String[] args) throws InterruptedException, ExecutionException {\n\t\tExecutorService executor = Executors.newFixedThreadPool(THREAD_POOL_SIZE);\n\n\t\tCallableInterfaceDemo counter = new CallableInterfaceDemo();\n\n\t\tFuture<String> future1 = executor.submit(counter); // Producer\n\t\tFuture<String> future2 = executor.submit(counter); // Producer\n\n\t\tSystem.out.println(Thread.currentThread().getName() + \" executing ...\");\n\n\t\t// asynchronously get from the worker threads\n\t\tSystem.out.println(future1.get());\n\t\tSystem.out.println(future2.get());\n\n\t}", "public static void main(String[] args)\n {\n Runnable r1 = new Task1();\n // Creates Thread task\n Task2 r2 = new Task2();\n ExecutorService pool = Executors.newFixedThreadPool(MAX_T);\n\n pool.execute(r1);\n r2.start();\n\n // pool shutdown\n pool.shutdown();\n }", "@Override\n protected void init() {\n if (!initialized) {\n \n ExecutorService executor = Executors.newFixedThreadPool(10);\n \n \n \n \n // ThreadGroup group = new ThreadGroup(this.toString());\n\n ArrayList<ParallelHelper> threadlist = new ArrayList<ParallelHelper>();\n\n for (QueryIterator qi : iterators) {\n\n ParallelHelper h = new ParallelHelper(qi);\n /* Thread t = new Thread(group, h);\n t.start(); */\n threadlist.add(h);\n \n executor.submit(h);\n \n\n }\n executor.shutdown();\n \n while (!executor.isTerminated()) {\n try {\n executor.awaitTermination(3600, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n throw new ARQInternalErrorException(e);\n }\n }\n\n/* try {\n join(group);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n*/\n boolean error = false;\n\n for (ParallelHelper h : threadlist) {\n if (h.isError()) {\n error = true;\n throw new QueryExecException(\"Error: \"+h.getException().getMessage());\n }\n }\n \n \n if (!error) {\n for (ParallelHelper h : threadlist) {\n\n try {\n super.add(h.getResultIterator());\n } catch (Exception e) {\n throw new QueryExecException(e);\n }\n }\n super.init();\n }\n initialized = true;\n }\n }", "public static void main(String[] args) throws Exception {\n FutureTask<String> futureTask = new FutureTask<String>(new Callable<String>() {\n @Override\n public String call() throws Exception {\n Thread.sleep(10000);\n System.out.println(\"thread done ...\");\n return \"hello world\";\n }\n });\n futureTask.run();\n// executorService.submit(futureTask);\n System.out.println(futureTask.get());\n// executorService.shutdown();\n }", "public static <U> void main(String[] args) {\n\t\t\n\t\tExecutorService service = Executors.newFixedThreadPool(10);\n\t\t//String orderValue = \"\";\n\t\tFuture<String> order1 = service.submit(()->{return \"GetOrders111\";});\n\t\ttry {\n\t\t\tString orders = order1.get();\n\t\t\t//orderValue = orders;\n\t\t\tFuture<String> orderEnrich = service.submit(()->{return \"enrichingOrders : \"+orders;});\n\t\t\tFuture<String> orderReconciliation = service.submit(()->{return \"orderReconciliation : \"+orders;});\n\t\t\tFuture<String> orderAutoCreate = service.submit(()->{return \"orderAutoCreate : \"+orders;});\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//In above code if too many heavy loaded tasks are there then its a big problem, for ex. get order is fetching millions of records and other services need to wait above code is going to fail.\n\t\t\n\t\tProcessOrder p = (String s)->{System.out.println(\"S \"+s); return 0;};\n\t\t//Solution\n\t\tCompletableFuture<String> cfuture = new CompletableFuture<>();\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tcfuture.supplyAsync(()->{return \"GetOrders111\";})\n\t\t\t\t\t\t.thenApply((x)->{return \"enrichingOrders\";})\n\t\t\t\t\t\t.thenApply((x)->{return \"orderReconciliation\";})\n\t\t\t\t\t\t.thenAccept((x)->{System.out.println(\"orderAutoCreate\");});\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tExecutorService executor = Executors.newFixedThreadPool(1);\r\n\t\t\r\n\t\t// Submit tasks to the executor, which is also the pool?\r\n\t\texecutor.execute(new PrintChar('a', 100));\r\n\t\texecutor.execute(new PrintChar('b', 100));\r\n\t\texecutor.execute(new PrintNum(100));\r\n\t\t\r\n\t\t// Shutdown the executor\r\n\t\texecutor.shutdown();\r\n\t\t\r\n\t}", "@Override\n public ExecutorService getWrapped() {\n return es;\n }" ]
[ "0.7207475", "0.7040441", "0.6882216", "0.68595976", "0.67714846", "0.6763751", "0.6755664", "0.6676343", "0.6669979", "0.65944636", "0.659426", "0.65760654", "0.65651524", "0.6554811", "0.6550819", "0.6548148", "0.6515534", "0.6468423", "0.6446586", "0.6432302", "0.64169997", "0.64146227", "0.64106065", "0.64002067", "0.63987297", "0.6391714", "0.63883525", "0.6387004", "0.63746524", "0.6371829", "0.6366643", "0.63596207", "0.6305449", "0.6276361", "0.6253895", "0.62409157", "0.62314755", "0.622764", "0.6223039", "0.6215609", "0.61991614", "0.61826414", "0.6161305", "0.61480844", "0.60690916", "0.60663176", "0.6065315", "0.6060924", "0.6053257", "0.6039806", "0.6036869", "0.60220236", "0.6017867", "0.60158473", "0.6002023", "0.5998985", "0.5982333", "0.59542227", "0.5948657", "0.59431857", "0.59412813", "0.59163386", "0.5906063", "0.58987325", "0.589675", "0.589632", "0.58901626", "0.58810776", "0.58653337", "0.5846489", "0.5835488", "0.5835462", "0.58294094", "0.5825786", "0.58247757", "0.58206034", "0.58163464", "0.581434", "0.5812752", "0.580158", "0.5792876", "0.5787842", "0.5781366", "0.5777787", "0.5776194", "0.57629704", "0.5755779", "0.5755398", "0.57502204", "0.5744912", "0.57179946", "0.57140774", "0.5701826", "0.5694139", "0.5690013", "0.5688605", "0.56755024", "0.56748086", "0.5674576", "0.5673064" ]
0.67699695
5
/ marketItemList.add(new MarketItem("Selling PS4", 100, "Gaming", "New PS4 for sell", R.drawable.ps4)); marketItemList.add(new MarketItem("Selling PS4", 140, "Gaming", "New PS4 for sell", R.drawable.ps4)); marketItemList.add(new MarketItem("Selling PS4", 170, "Gaming", "New PS4 for sell", R.drawable.ps4)); marketItemList.add(new MarketItem("Selling PS4", 90, "Gaming", "New PS4 for sell", R.drawable.ps4)); marketItemList.add(new MarketItem("Selling PS4", 120, "Gaming", "New PS4 for sell"));
public void onViewCreated(View view, Bundle savedInstanceState) { market_recycler_view = view.findViewById(R.id.recycler_market_items_list); marketItemAdapter = new MarketRecyclerViewAdapter(marketItemList, getContext()); gridLayoutManager = new GridLayoutManager(getContext(), calculateNoOfColumns(getContext())); market_recycler_view.setLayoutManager(gridLayoutManager); market_recycler_view.setAdapter(marketItemAdapter); marketItemAdapter.notifyDataSetChanged(); //click event and pass data. marketItemAdapter.SetOnItemClickListener(new MarketRecyclerViewAdapter.OnItemClickListener() { @Override public void onItemClick(int position) { MarketItem marketItem = marketItemList.get(position); Intent intent = new Intent(getActivity(), MarketItemViewActivity.class); intent.putExtra("clickedItem", marketItem); startActivity(intent); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addItem() {\n\n ItemBean bean2 = new ItemBean();\n int drawableId2 = getResources().getIdentifier(\"ic_swrl\", \"drawable\", this.getPackageName());\n bean2.setAddress(drawableId2);\n bean2.setName(getResources().getString(R.string.swrl));\n itemList.add(bean2);\n\n ItemBean bean3 = new ItemBean();\n int drawableId3 = getResources().getIdentifier(\"ic_bianmin\", \"drawable\", this.getPackageName());\n bean3.setAddress(drawableId3);\n bean3.setName(getResources().getString(R.string.bianmin));\n itemList.add(bean3);\n\n ItemBean bean4 = new ItemBean();\n int drawableId4 = getResources().getIdentifier(\"ic_shenghuo\", \"drawable\", this.getPackageName());\n bean4.setAddress(drawableId4);\n bean4.setName(getResources().getString(R.string.shenghuo));\n itemList.add(bean4);\n\n ItemBean bean5 = new ItemBean();\n int drawableId5 = getResources().getIdentifier(\"ic_nxwd\", \"drawable\", this.getPackageName());\n bean5.setAddress(drawableId5);\n bean5.setName(getResources().getString(R.string.nxwd));\n// itemList.add(bean5);\n\n }", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "public void add_item_button(View v){\n if(expiry_date==0){ //if no expiry date was chosen,\n if(product_name.equals(\"Milk\")){//and if the product is milk, \n expiry_date=7; //set it to the default of 7 days until expiry\n }else{//If the product is bread,\n expiry_date=3;//set it to the default of 7 days until expiry\n }\n }\n Product added_p=new Product(product_name,expiry_date); //added_p : product chosen by the user that they currently own\n added_list.add(added_p); //this product is added to the list \n text=(TextView) findViewById(R.id.added_list);\n String content=\"\";\n for(Product p:added_list){\n content=content+(p.getProduct_name()+\" \"+p.getProduct_exp()+\" days \\n\"); //then displayed to show the user \n }\n text.setText(content);\n }", "private void fetchProducts() {\n Product p1 = new Product(R.drawable.aj1rls, \"Air Jordan 1 Retro Low Slip\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Jordan\", 9);\n Product p2 = new Product(R.drawable.aj1rhp, \"Air Jordan 1 Retro High Premium\", \"Đen/Trắng\", \"Nữ\", 8500000,9.5,\"Jordan\", 8.7);\n Product p3 = new Product(R.drawable.nm2ktse, \"Nike M2k Tenko SE\", \"Đen/Trắng\", \"Nữ\", 8500000,8,\"Nike\", 8.6);\n Product p4 = new Product(R.drawable.nre55, \"Nike React Element 55\", \"Đen/Trắng\", \"Nữ\", 8500000,8.5,\"Nike\", 9);\n Product p5 = new Product(R.drawable.ncracp, \"NikeCourt Royale AC\", \"Đen/Trắng\", \"Nữ\", 8500000,7,\"Nike\", 8);\n Product p6 = new Product(R.drawable.namff720, \"Nike Air Max FF 720\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p7 = new Product(R.drawable.nam90, \"Nike Air Max 90\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p8 = new Product(R.drawable.nbmby, \"Nike Blazer Mid By You\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p9 = new Product(R.drawable.nam270, \"Nike Air Max 270\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Nike\", 9);\n Product p10 = new Product(R.drawable.ncclxf, \"Air Jordan 1 Retro Low Slip\", \"Đen/Trắng\", \"Nữ\", 8500000,7.5,\"Jordan\", 9);\n productList = new ArrayList<>(Arrays.asList(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10));\n }", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "GameItem(String rarity, String name, String pickuptext, String effect, ArrayList<Double> stack){\n this.rarity = rarity;\n this.name = name;\n this.pickuptext = pickuptext;\n this.effect = effect;\n this.stack = stack;\n // this.imageloc = \"/../../../pictures/items/\"+this.rarity+\"/\"+this.name+\".png\";\n //this.img = new javax.swing.ImageIcon(getClass().getResource(this.imageloc));\n //Icon\n }", "Items(){\r\n\t\tname=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//Parts to the vaccine[1-3]\r\n\t\t\t\t\"Mysterious Vial\", \"Piece of alien meteorite\",\"Alien X\",\r\n\t\t\t\t//Keys[4-6]\r\n\t\t\t\t\"Mysterious Key\",\"Office Key\",\"Captian's Key\",\r\n\t\t\t\t//suit[7,8]\r\n\t\t\t\t\"Hazmat Suit\",\"Gas Mask\",\r\n\t\t\t\t//vials[9-11]\r\n\t\t\t\t\"Blue Vial\",\"Pink Vial\", \"Gold Vial\",\r\n\t\t\t\t//other[12,13]\r\n\t\t\t\t\"X Files\", \"Demon's Bane Flower\",\"Reinforced Armor\"\r\n\t\t};\r\n\t\tdescription=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//vaccine parts[2-4]\r\n\t\t\t\t\"A special vial coated with a mysterious substance\",\r\n\t\t\t\t\"Part of an alien meteorite that the crew excavated\",\r\n\t\t\t\t\"A powerful allergen that instantly kills one’s immune system and their whole well-being, mutating them into something inhuman\",\r\n\t\t\t\t//keys\r\n\t\t\t\t\"A metal key that must open a door\",\r\n\t\t\t\t\"Looks like a normal key\",\r\n\t\t\t\t\"A metal key used to unlock something\",\r\n\t\t\t\t//Suit\r\n\t\t\t\t\"A full-body suit designed to keep harmful toxins away from the wearer. The face mask is missing, however\",\r\n\t\t\t\t\"A mask that goes over the wearer’s head and filters out all harmful substances in the air\",\r\n\t\t\t\t//Vials\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows light blue\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows bright pink\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows golden yellow\",\r\n\t\t\t\t//other\r\n\t\t\t\t\"Recorded documentation of all experiments and research done while in space. Most importantly it contains reports on events leading up to the virus spreading throughout the ship\",\r\n\t\t\t\t\"A beautiful flower that seems to survive unattached to the ground, the veins running through its petals give a faint glow as a heavenly scent fills the room\",\r\n\t\t\t\t\"A set of fine leather armor with metal plates reinforcing vulnerable areas\"\r\n\t\t};\r\n\t}", "public void init(){\n elements = new ArrayList<>();\r\n elements.add(new ListElement(\"Aeshnidae\",this));\r\n ListElement element1 = createItem(\"Baetidae\");\r\n elements.add(element1);\r\n\r\n //elements.add(new ListElement(\"Aeshnidae\", 6, R.drawable.aeshnidaem));\r\n //elements.add(new ListElement(\"Baetidae\", 4, R.drawable.baetidae));\r\n elements.add(new ListElement(\"Blepharoceridae\", 10, R.drawable.blepharoceridae));\r\n elements.add(new ListElement(\"Calamoceratidae\", 10, R.drawable.calamoceridae));\r\n elements.add(new ListElement(\"Ceratopogonidae\", 4, R.drawable.ceratopogonidae));\r\n elements.add(new ListElement(\"Chironomidae\", 2, R.drawable.chironomidae));\r\n elements.add(new ListElement(\"Coenagrionidae\", 6, R.drawable.coenagrionidae));\r\n elements.add(new ListElement(\"Corydalidae\", 6, R.drawable.corydalidae));\r\n elements.add(new ListElement(\"Culicidae\", 2, R.drawable.culicidae));\r\n elements.add(new ListElement(\"Dolichopodidae\", 4, R.drawable.dolichopodidae));\r\n elements.add(new ListElement(\"Dystiscidae\", 3, R.drawable.dytiscidae));\r\n elements.add(new ListElement(\"Elmidae\", 5, R.drawable.elmidae));\r\n elements.add(new ListElement(\"Elmidae Larvae\", 5, R.drawable.elmidae_larvae));\r\n elements.add(new ListElement(\"Empididae\", 8, R.drawable.empididaem));\r\n elements.add(new ListElement(\"Ephydridae\", 8, R.drawable.ephydridaem));\r\n elements.add(new ListElement(\"Eprilodactylidae\", 5, R.drawable.eprilodactylidaem));\r\n elements.add(new ListElement(\"Gyrinidae\", 3, R.drawable.gyrinidae));\r\n elements.add(new ListElement(\"Helicopsychidae\", 10, R.drawable.helicopsychidae));\r\n elements.add(new ListElement(\"Hidrophilidae\", 3, R.drawable.hidrophilidae));\r\n elements.add(new ListElement(\"Hidropsychidae\", 5, R.drawable.hidropsychidae));\r\n elements.add(new ListElement(\"Hirudinea\", 5, R.drawable.hirudineam));\r\n elements.add(new ListElement(\"Hyalellidae\", 6, R.drawable.hyalellidaem));\r\n elements.add(new ListElement(\"Hydracarina\", 4, R.drawable.hydracarinam));\r\n elements.add(new ListElement(\"Hydrobiosidae\", 8, R.drawable.hydrobiosidae));\r\n elements.add(new ListElement(\"Hydroptilidae\", 6, R.drawable.hydroptilidae));\r\n elements.add(new ListElement(\"Leptoceridae\", 8, R.drawable.leptoceridae));\r\n elements.add(new ListElement(\"Leptohyphidea\", 7, R.drawable.leptohyphideam));\r\n elements.add(new ListElement(\"Leptophlebiidae\", 10, R.drawable.leptophlebiidae));\r\n elements.add(new ListElement(\"Lestidae\", 8, R.drawable.lestidaem));\r\n elements.add(new ListElement(\"Libellulidae\", 6, R.drawable.libellulidaem));\r\n elements.add(new ListElement(\"Lymnaeidae\", 3, R.drawable.lymnaeidaem));\r\n elements.add(new ListElement(\"Muscidae\", 2, R.drawable.muscidae));\r\n elements.add(new ListElement(\"Nematoda\", 0, R.drawable.nematodam));\r\n elements.add(new ListElement(\"Odontoceridae\", 10, R.drawable.odontoceridae));\r\n elements.add(new ListElement(\"Oligochaeta\", 1, R.drawable.oligochaetam));\r\n elements.add(new ListElement(\"Ostrachoda\", 3, R.drawable.ostracodam));\r\n elements.add(new ListElement(\"Perlidae\", 10, R.drawable.perlidae));\r\n elements.add(new ListElement(\"Philopotamidae\", 8, R.drawable.philopotamidae));\r\n elements.add(new ListElement(\"Physidae\", 3, R.drawable.physidaem));\r\n elements.add(new ListElement(\"Planaridae\", 5, R.drawable.planaridae));\r\n elements.add(new ListElement(\"Planorbidae\", 3, R.drawable.planorbidaem));\r\n elements.add(new ListElement(\"Psephenidae\", 5, R.drawable.psephenidae));\r\n elements.add(new ListElement(\"Psychodidae\", 3, R.drawable.psychodidae));\r\n elements.add(new ListElement(\"Scirtidae\", 5, R.drawable.scirtidae));\r\n elements.add(new ListElement(\"Sialidea\", 6, R.drawable.sialidaem));\r\n elements.add(new ListElement(\"Simuliidae\", 5, R.drawable.simuliidae));\r\n elements.add(new ListElement(\"Sphaeriidae\", 3, R.drawable.sphaeriidaem));\r\n elements.add(new ListElement(\"Stratiomidae\", 4, R.drawable.stratiomidae));\r\n elements.add(new ListElement(\"Syrphidae\", 1, R.drawable.syrphidaem));\r\n elements.add(new ListElement(\"Tabanidae\", 4, R.drawable.tabanidae));\r\n elements.add(new ListElement(\"Thiaridae\", 3, R.drawable.thiaridaem));\r\n elements.add(new ListElement(\"Tipulidae\", 5, R.drawable.tipulidae));\r\n elements.add(new ListElement(\"Xiphocentronidae\", 8, R.drawable.xiphocentronidaem));\r\n\r\n ListAdapter listAdapter = new ListAdapter(elements, this, new ListAdapter.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(ListElement item) {\r\n moveToDescription(item);\r\n }\r\n });\r\n RecyclerView recyclerView = findViewById(R.id.listRecyclerView);\r\n recyclerView.setHasFixedSize(true);\r\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\r\n recyclerView.setAdapter(listAdapter);\r\n\r\n }", "public void salesScreen()\n {\n onSales = true;\n salesItem = new SalesItem[50];\n Button timbitAdd = new Button(24, \"button-blue.png\", \"button-green.png\", \"Add timbit:\");\n Button doughnutAdd = new Button(24, \"button-blue.png\", \"button-green.png\", \"Add doughnut:\");\n Button coffeeAdd = new Button(24, \"button-blue.png\", \"button-green.png\", \"Add coffee:\");\n \n addObject(timbitAdd, 400, 100);\n addObject(doughnutAdd, 400, 200);\n addObject(coffeeAdd, 400, 300);\n }", "public void buySausage(View view) {\n Intent intent = new Intent(this, DisplayBasketActivity.class);\n String itemDescription=view.getContentDescription().toString();\n int itemNumber;\n double itemPrice;\n if (itemDescription.equals(\"Sausage Rolls\")) {itemNumber=20293847; itemPrice=25.63;} else {itemNumber=18475843; itemPrice=10.59;}\n BasketItem myItem= new BasketItem(itemNumber,itemDescription,itemPrice);\n Basket.addItem(myItem);\n startActivity(intent);\n }", "private ArrayList<Item> prepareDataSet() {\n ArrayList<Item> flowerData = new ArrayList<>();\n Item flower;\n\n //1st Item\n flower = new Item();\n flower.setItemName(\"CAR Lock\");\n flower.setItemphoto(R.drawable.locks);\n flowerData.add(flower);\n\n //2nd Item\n flower = new Item();\n flower.setItemName(\"Car Unlock\");\n flower.setItemphoto(R.drawable.unlock);\n flowerData.add(flower);\n\n\n //3rd Item\n flower = new Item();\n flower.setItemName(\"Doors\");\n flower.setItemphoto(R.drawable.doors);\n flowerData.add(flower);\n\n\n //4th Item\n flower = new Item();\n flower.setItemName(\"Vehicle Speed\");\n flower.setItemphoto(R.drawable.speed);\n flowerData.add(flower);\n\n\n //5th Item\n flower = new Item();\n flower.setItemName(\"Location\");\n flower.setItemphoto(R.drawable.location);\n flowerData.add(flower);\n\n\n //6th Item\n flower = new Item();\n flower.setItemName(\"Previous Trips\");\n flower.setItemphoto(R.drawable.trips);\n flowerData.add(flower);\n\n //6th Item\n flower = new Item();\n flower.setItemName(\"Honk\");\n flower.setItemphoto(R.drawable.honk);\n flowerData.add(flower);\n\n\n return flowerData;\n\n }", "@Override\n public void onClick(View v)\n {\n Card.addtoCard(new CardItem(content.get(position).getName(),\n content.get(position).getDescription(),\n content.get(position).getPrice(),(long) 1,\"None\",\n content.get(position).getPrice()));\n Toast.makeText(RecycleViewAdapter.this.mContext,\"Added to Cart\",Toast.LENGTH_LONG).show();\n }", "public Adapter() {\n super();\n this.listItemsBT = new ArrayList<>();\n /*Random random = new Random();\n for(int i = 0; i<50;i++){\n listItemsBT.add(new ItemBT(\"El vic xd\" + i, \"10:12:... NUMBER: \"+i, random.nextBoolean()));\n }*/\n }", "public void displayItems(){\n\n //Prepare Item ArrayList\n ArrayList<Item> itemList = new ArrayList<Item>();\n\n Cursor results = items_db_helper.getRecords();\n\n while(results.moveToNext()){\n int _id = results.getInt(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_ID));\n String item_title = results.getString(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_TITLE));\n int quantity_in_stock = results.getInt(results.getColumnIndex(DatabaseTables.InventoryItems.QUANTITY_IN_STOCK));\n double item_price = results.getDouble(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_PRICE));\n byte[] item_thumbnail_byte = results.getBlob(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_THUMBNAIL));\n Bitmap item_thumbnail = BitmapFactory.decodeByteArray(item_thumbnail_byte, 0, item_thumbnail_byte.length);\n\n //Create an Item object and store these data here (at this moment we will only extract data relevant to list item\n Item item = new Item();\n item.setItemId(_id);\n item.setItemTitle(item_title);\n item.setItemPrice(item_price);\n item.setItemThumbnail(item_thumbnail);\n item.setQuantityInStock(quantity_in_stock);\n\n itemList.add(item);\n }\n\n final ListView listView = (ListView) findViewById(R.id.item_list);\n listView.setItemsCanFocus(false);\n listView.setEmptyView(findViewById(R.id.empty_list_text));\n ItemAdapter itemAdapter = new ItemAdapter(MainActivity.this, itemList);\n listView.setAdapter(itemAdapter);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Item curr_item = (Item) listView.getItemAtPosition(i);\n Intent details_intent = new Intent(MainActivity.this, DetailsActivity.class);\n details_intent.putExtra(\"item_id\", curr_item.getItemId());\n startActivity(details_intent);\n }\n });\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ImageView imageView = (ImageView) findViewById(R.id.bisonImage);\n// String imgRef = imgRefArrayList.get(position);\n //Log.d(\"IMGREF\", imgRef);\n// Glide.with(MyOffers.this)\n// .load(\"http://bisonswap.com/uploads/\" + imgRef)\n// .into(imageView);\n String itemKey = itemKeys.get(position);\n String stuff = String.valueOf(parent.getItemAtPosition(position));\n Intent o_Menu = new Intent(MyOffers.this, OfferMenu_manageOffers.class);\n o_Menu.putExtra(\"ownsItem\", \"1\");\n o_Menu.putExtra(\"offerItemKey\", offerBaseKeys.get(position));\n o_Menu.putExtra(\"itemKey\", itemKey);\n startActivity(o_Menu);\n// startActivity((new Intent(MyOffers.this, ItemActivity.class)).putExtra(\"itemKey\", itemKey));\n }", "@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}", "private void parseData(JSONArray array, String count) {\r\n int productID = 0;\r\n String name=\"\", price=\"\", image=\"\", description=\"\", Stock = \"\";\r\n for (int i = 0; i < array.length(); i++) {\r\n\r\n //Creating the Request object\r\n JSONObject json = null;\r\n\r\n try {\r\n json = array.getJSONObject(i);\r\n\r\n //Adding data to the request object\r\n productID = json.getInt(\"PRODUCT_ID\");\r\n name = json.getString(\"NAME\");\r\n price = json.getString(\"PRICE\");\r\n image = json.getString(\"PICTURE\");\r\n description = json.getString(\"DESCRIPTION\");\r\n Stock = json.getString(\"ON_HAND\");\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n //Adding the request object to the list\r\n String[] imageURLs = image.split(\",\");\r\n ArrayList<String> images = new ArrayList<>();\r\n images.addAll(Arrays.asList(imageURLs));\r\n\r\n String image_url = imageURLs[0];\r\n\r\n if (count.equals(\"1\")) {\r\n computers_list.add(new ItemBox(productID,name, price, image_url, description,images,Stock));\r\n renderer(R.id.rv_computers, computers_list);\r\n }\r\n else if (count.equals(\"3\")) {\r\n books_list.add(new ItemBox(productID,name, price, image_url, description,images,Stock));\r\n renderer(R.id.rv_books, books_list);\r\n }\r\n else if (count.equals(\"6\")) {\r\n clothes_list.add(new ItemBox(productID, name, price, image_url, description, images, Stock));\r\n renderer(R.id.rv_clothes, clothes_list);\r\n }\r\n else if (count.equals(\"8\")) {\r\n health_list.add(new ItemBox(productID, name, price, image_url, description, images, Stock));\r\n renderer(R.id.rv_health, health_list);\r\n }\r\n else if (count.equals(\"10\")) {\r\n sports_list.add(new ItemBox(productID, name, price, image_url, description, images, Stock));\r\n renderer(R.id.rv_sports, sports_list);\r\n }\r\n else search_results.add(new ItemBox(productID,name, price, image_url, description,images,Stock));\r\n\r\n }\r\n\r\n }", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "public void addValueGames(){\n\n ModelListGames modelListGames = new ModelListGames(R.drawable.assassinscreedodyssey, R.drawable.assassinscreedodysseyfull, \"Assassin's Creed Odyssey\",\"Assassin's Creed Odyssey é um jogo eletrônico de RPG de ação produzido pela Ubisoft Quebec e publicado pela Ubisoft. É o décimo primeiro título principal da série Assassin's Creed e foi lançado em 5 de Outubro de 2018, para Microsoft Windows, PlayStation 4, Xbox One e Nintendo Switch. (Plataformas PS4, Xbox One, Computador e Switch)\" );\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.battlefield, R.drawable.battlefieldfull, \"Battlefield 1\", \"Battlefield 1 é um jogo eletrônico de tiro em primeira pessoa ambientado na Primeira Guerra Mundial, desenvolvido pela EA DICE e publicada pela Electronic Arts. É o décimo quarto jogo da franquia Battlefield. Foi lançado em outubro de 2016 para Microsoft Windows, PlayStation 4 e Xbox One.(Plataformas PS4, Xbox One, Computador e Switch)\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.daysgone, R.drawable.daysgonefull, \"Days Gone\", \"Days Gone é um jogo eletrônico de ação-aventura e sobrevivência desenvolvido pela SIE Bend Studio e publicado pela Sony Interactive Entertainment, sendo lançado exclusivamente para PlayStation 4 em 26 de abril de 2019.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.fifa, R.drawable.fifafull, \"FIFA 20\", \"FIFA 20 é um jogo eletrônico de futebol desenvolvido e publicado pela EA Sports, lançado mundialmente em 27 de setembro de 2019. Este é o vigésimo sétimo título da série FIFA e o quarto a usar o mecanismo de jogo da Frostbite para Xbox One, PS4 e PC.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.godofwar, R.drawable.godofwarfull, \"God of War III\", \"God of War III é um jogo eletrônico de ação-aventura e hack and slash desenvolvido pela Santa Monica Studio e publicado pela Sony Computer Entertainment. Foi lançado em 16 de março de 2010 para PlayStation 3.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.granturismo, R.drawable.granturismofull, \"Gran Turismo Sport\", \"Gran Turismo Sport é um jogo eletrônico simulador de corrida desenvolvido pela Polyphony Digital e publicado pela Sony Interactive Entertainment. É o sétimo título principal da série Gran Turismo e foi lançado exclusivamente para PlayStation 4 em outubro de 2017.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.homefront, R.drawable.homefrontfull, \"Homefront: The Revolution\", \"Homefront: The Revolution é um videogame de tiro em primeira pessoa desenvolvido pela Dambuster Studios e publicado pela Deep Silver para Microsoft Windows, PlayStation 4 e Xbox One. É a reinicialização / sequela do Homefront lançando em 17 de maio de 2016.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.horizonzerodawn, R.drawable.horizonzerodawnfull, \"Horizon Zero Dawn\", \"Horizon Zero Dawn é um jogo eletrônico RPG de ação desenvolvido pela Guerrilla Games e publicado pela Sony Interactive Entertainment lançado em 28 de fevereiro de 2017.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.infamous, R.drawable.infamousfull, \"Infamous: Second Son\", \"Infamous Second Son é um jogo eletrônico de ação-aventura produzido pela Sucker Punch Productions e publicado pela Sony Computer Entertainment em exclusivo para a PlayStation 4 em 21 de Março de 2014. \");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.nioh, R.drawable.niohfull, \"Nioh 2\", \"Nioh 2 é um jogo eletrônico de RPG de ação desenvolvido pela Team Ninja e publicado pela Koei Tecmo no Japão e pela Sony Interactive Entertainment internacionalmente. É uma pré-sequência de Nioh e foi lançado em 13 de março de 2020 para PlayStation 4.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.playerunknownsbattlegrounds, R.drawable.playerunknownsbattlegroundsfull, \"PlayerUnknown's Battlegrounds\", \"PlayerUnknown's Battlegrounds é um jogo eletrônico multiplayer desenvolvido pela PUBG Corp., subsidiária da produtora coreana Bluehole, utilizando o motor de jogo Unreal Engine 4 foi lançado em 30 de julho de 2016.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.residentevil, R.drawable.residentevilfull, \"Resident Evil 2\", \"Resident Evil 2, chamado no Japão de Biohazard RE:2, é um jogo eletrônico de survival horror desenvolvido e publicado pela Capcom, sendo um remake do jogo original de 1998. Os jogadores controlam o policial novato Leon foi lançado em 25 de janeiro de 2019.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.spiderman, R.drawable.spidermanfull, \"Spider-Man\", \"Spider-Man é um jogo eletrônico de ação-aventura desenvolvido pela Insomniac Games e publicado pela Sony Interactive Entertainment lançado em 7 de setembro de 2018.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.starwarsjedi, R.drawable.starwarsjedifull, \"Star Wars Jedi: Fallen Order\", \"Star Wars Jedi: Fallen Order é um jogo eletrônico de ação-aventura desenvolvido pela Respawn Entertainment e publicado pela Electronic Arts foi lançado em 15 de novembro de 2019.\");\n this.gamesListAll.add(modelListGames);\n\n modelListGames = new ModelListGames(R.drawable.theevilwithin, R.drawable.theevilwithinfull, \"The Evil Within\", \"The Evil Within, chamado no Japão de PsychoBreak, é um jogo eletrônico de terror de sobrevivência desenvolvido pela Tango Gameworks e publicado pela Bethesda Softworks. Foi lançado mundialmente em outubro de 2014 para Microsoft Windows, PlayStation 3, PlayStation 4, Xbox 360 e Xbox One.\");\n this.gamesListAll.add(modelListGames);\n\n }", "public void showSellItem(){\n\t\tListView view = (ListView) getView().findViewById(R.id.itemshopList);\n\t\tview.setVisibility(View.VISIBLE);\n\t\t\n\t\tMainGameActivity.setShopCode((Integer) 2);\n\t\t\n\t\t ArrayList<Item> itemList = MainGameActivity.getPlayerFromBackpack().GetItem();\n\t\t \n\t\t ArrayAdapter<Item> arrayAdapter = new ArrayAdapter<Item>(this.getActivity(),android.R.layout.simple_list_item_1, itemList);\n\t\t view.setAdapter(arrayAdapter); \n\n\t\t final Context ctx = this.getActivity();\n\t\t \n\t\t view.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\t \n\t\t @Override\n\t\t public void onItemClick(AdapterView<?> parent, final View view,\n\t\t int position, long id) {\n\t\t \t \n\t\t final Item item = (Item) parent.getItemAtPosition(position);\n\t\t \t// custom dialog\n\t\t\t\t\tfinal Dialog dialog = new Dialog(ctx);\n\t\t\t\t\tdialog.setContentView(R.layout.shop_dialog);\n\t\t\t\t\tdialog.setTitle(\"Buy \" + item.GetName());\n\t\t \n\t\t\t\t\t// set the custom dialog components - text, image and button\n\t\t\t\t\tfinal EditText editText = (EditText) dialog.findViewById(R.id.amountofItem);\n\t\t\t\t\t\n\t\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.currentMoney);\n\t\t\t\t\ttext.setText(\"Current Money: \" + MainGameActivity.getPlayerFromBackpack().GetMoney());\n\n\t\t \n\t\t\t\t\tButton sellButton = (Button) dialog.findViewById(R.id.button2shop);\n\t\t\t\t\tButton backButton = (Button) dialog.findViewById(R.id.button1shop);\t\t\n\t\t\t\t\t\n\t\t\t\t\tsellButton.setText(\"Sell\");\n\t\t\t\t\t//if button is clicked, buy\n\t\t\t\t\tsellButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t/* Sell sequence here */\n\t\t\t\t\t\t\tInteger Amount = Integer.valueOf(editText.getText().toString());\n\t\t\t\t\t\t\tif ((Amount > 0) && (Amount <= item.GetNItem())){\n\t\t\t\t\t\t\t\tMainGameActivity.getPlayerFromBackpack().SetMoney(MainGameActivity.getPlayerFromBackpack().GetMoney() + Amount * item.GetPrice() / 2);\n\t\t\t\t\t\t\t\titem.SetNItem(item.GetNItem() - Amount);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\tshowSellItem();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Showing message that Amount is not valid */\n\t\t\t\t\t\t\t\tTextView textError = (TextView) dialog.findViewById(R.id.messageItem);\n\t\t\t\t\t\t\t\ttextError.setText(\"Amount is not valid!\");\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}); \t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// if button is clicked, close the custom dialog\n\t\t\t\t\tbackButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t}); \n\t\t \n\t\t\t\t\tdialog.show();\n\t\t }\n\t\t });\t\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.full_image);\n\n dbHandler_card = new DBHandler_Card(this,null,null,1);\n\n // hashMap = new LinkedHashMap<>();\n\n Intent i = getIntent();\n\n position = i.getExtras().getInt(\"id\");\n final String[] name = i.getStringArrayExtra(\"name\");\n rup = i.getIntArrayExtra(\"rupee\");\n count = i.getExtras().getInt(\"count\");\n\n add_to_cart_button = (Button) findViewById(R.id.cart_button);\n\n\n //textView = (TextView) findViewById(R.id.text);\n // textView.setText(name[position]);\n\n ImageAdapter imageAdapter = new ImageAdapter(this);\n\n ImageView imageView = (ImageView) findViewById(R.id.full_image_view);\n\n imageView.setImageResource(imageAdapter.mThumbIds[position]);\n\n textView = (TextView) findViewById(R.id.amount_text);\n textView.setText(\"Rs. \"+ rup[position]);\n\n final Spinner spinner = (Spinner) findViewById(R.id.spinner);\n final ArrayAdapter<CharSequence> arrayAdapter = ArrayAdapter.createFromResource(this,R.array.number,android.R.layout.simple_spinner_item);\n\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(arrayAdapter);\n spinner.setOnItemSelectedListener(this);\n\n add_to_cart_button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // hashMap.put(name[position],textView.getText().toString());\n food=name[position];\n amount=textView.getText().toString();\n quan= Integer.parseInt(spinner.getSelectedItem().toString());\n Card_Data card_data = new Card_Data(food,amount,quan);\n dbHandler_card.add_data(card_data);\n Intent i =new Intent(getBaseContext(),Main_frame.class);\n i.putExtra(\"count\",count);\n startActivity(i);\n }\n });\n\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.list1);\n\t\t\n\t\tarItem = new ArrayList<MyItem4>();\n\t\tMyItem4 mi;\n\t\tmi = new MyItem4(R.drawable.muangym120, \"무안 실내 체육관\", \"주소 : 전남 무안군 현경면 공항로 345\");arItem.add(mi);\n\t\tmi = new MyItem4(R.drawable.younggwanggym120, \"영광 스포티움 체육관\", \"주소 : 전남 영광군 영광읍 월현로 170\");arItem.add(mi);\n\t\tmi = new MyItem4(R.drawable.muanchodangunivgym120, \"무안 초당대 체육관\", \"주소 : 전남 무안군 무안읍 무안로 380\");arItem.add(mi);\n\t\tmi = new MyItem4(R.drawable.donggangunivgym120, \"동강대 체육관\", \"주소 : 광주광역시 북구 동문대로 50\");arItem.add(mi);\n\t\tmi = new MyItem4(R.drawable.jeonjugym120, \"전주실내체육관\", \"주소 : 전북 전주시 덕진구 권삼득로 308\");arItem.add(mi);\n\t\t\n\t\tMyListAdapter4 MyAdapter = new MyListAdapter4(this, R.layout.stadium ,arItem);\n\t\t\n\t\tListView MyList;\n\t\tMyList = (ListView)findViewById(R.id.listView1);\n\t\tMyList.setAdapter(MyAdapter);\n\t}", "public Market(LegendsGame game) {\n\t\tthis.game = game;\n\t\t\n\t\tRandom r = new Random();\n\t\t\n\t\tr.nextInt(itemCap);\n\t\t\n\t\titems = new ArrayList<>();\n\t\t\n\t\tthis.addNumItems(r.nextInt(itemCap-1) + 1);\n\t\t\n\t}", "private void viewProducts(){\n Database manager = new Database(this, \"Market\", null, 1);\n\n SQLiteDatabase market = manager.getWritableDatabase();\n\n Cursor row = market.rawQuery(\"select * from products\", null);\n\n if (row.getCount()>0){\n while(row.moveToNext()){\n listItem.add(row.getString(1));\n listItem.add(row.getString(2));\n listItem.add(row.getString(3));\n listItem.add(row.getString(4));\n }\n adapter = new ArrayAdapter(\n this, android.R.layout.simple_list_item_1, listItem\n );\n productList.setAdapter(adapter);\n } else {\n Toast.makeText(this, \"No hay productos\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_testing_parent_transaction_pre_order_individual);\n\n\n\n tvTID = findViewById(R.id.tvIndividualTID);\n tvFoodName = findViewById(R.id.tvIndividualFoodName);\n tvFoodPrice = findViewById(R.id.tvIndividualFoodPrice);\n tvStallName = findViewById(R.id.tvIndividualFoodStallName);\n tvFoodStallOperation = findViewById(R.id.tvIndividualFoodStallDuration);\n tvQuantity = findViewById(R.id.IndividualQuantityDisplay);\n tvAddOn = findViewById(R.id.tvIndividualAddOn);\n tvAdditionalNotes = findViewById(R.id.tvIndividualAddtionalNotes);\n ivimage = findViewById(R.id.IndividualFoodImage);\n tvSchool = findViewById(R.id.tvIndividualSchool);\n\n// item = (Collection) getIntent().getSerializableExtra(\"item\");\n\n tvTID.setText(item.gettId());\n tvFoodName.setText(item.getName());\n tvFoodPrice.setText(String.format(\"$%.2f\",item.getPrice()));\n tvStallName.setText(\"Stall: \"+item.getStallName());\n tvFoodStallOperation.setText(String.format(\"Working from %s to %s\", MainpageActivity.convertDateToString(MainpageActivity.convertStringToDate(item.getStartTime(),\"HHmm\"), \"hh:mm a\"),MainpageActivity.convertDateToString(MainpageActivity.convertStringToDate(item.getEndTime(),\"HHmm\"), \"hh:mm a\") ));\n tvQuantity.setText(\"x\"+item.getQuantity());\n String allAddOn =\"\";\n if (item.getAddOn().size()==0){\n tvAddOn.setText(\"No Add On\");\n }\n else{\n for (AddOn i : item.getAddOn()){\n allAddOn+= String.format(\"%-60s +$%.2f\\n\", i.getName(), i.getPrice());\n }\n tvAddOn.setText(allAddOn);\n }\n\n if (item.getAdditionalNote().isEmpty()){\n tvAdditionalNotes.setText(\"No Additional Notes\");\n }\n else{\n tvAdditionalNotes.setText(item.getAdditionalNote());\n }\n Glide.with(TestingParentTransactionPreOrderIndividual.this).load(item.getImage()).centerCrop().into(ivimage);\n tvSchool.setText(item.getSchool());\n\n\n\n\n// findViewById(R.id.IndividualDenyStallBtn).setOnClickListener(new View.OnClickListener() {\n// @Override\n// public void onClick(View v) {\n//\n//\n// DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// switch (which){\n// case DialogInterface.BUTTON_POSITIVE:\n// setDeny();\n// break;\n//\n// case DialogInterface.BUTTON_NEGATIVE:\n// //No button clicked\n// break;\n// }\n// }\n// };\n//\n// AlertDialog.Builder builder = new AlertDialog.Builder(TestingParentTransactionPreOrderIndividual.this);\n// builder.setMessage(\"Are you sure to deny kid to purchase any item from this stall?\").setPositiveButton(\"Yes\", dialogClickListener)\n// .setNegativeButton(\"No\", dialogClickListener).show();\n//\n//\n//\n//\n//\n// }\n// });\n\n\n\n\n\n }", "@Override\n public void onClick(View v)\n {\n\n try\n {\n String item_id = list.get(position).getItem_id();\n String item_name = list.get(position).getItem_name();\n String totalPrice = list.get(position).getTotalPrice();\n String stockQty=list.get(position).getItem_qty();\n String dicount=list.get(position).getDiscount();\n String gst=list.get(position).getGst_per();\n String unit_price=list.get(position).getUnit_price();\n String purchase_price=list.get(position).getItem_purchase();\n String status=list.get(position).getStatus();\n String changedUnit=list.get(position).getUnit();\n\n\n String qty = view.sumValue.getText().toString().trim();\n Log.d(TAG, \"onClick:Qty\"+qty);\n Log.d(\"qty\", stockQty);\n Log.d(\"item\",item_name);\n Log.d(\"item_id\", item_id);\n Log.d(\"totalPrice\", totalPrice);\n Log.d(\"purchase_price\",purchase_price);\n Log.d(\"GST\",gst);\n\n Log.d(\"discount\",dicount);\n Log.d(\"UnitPrice:\",unit_price);\n Log.d(\"Status\",status);\n int quantity = Integer.parseInt(qty);\n quantity++;\n if(quantity<=Integer.parseInt(stockQty) || status.equalsIgnoreCase(\"infinite\"))\n {\n double totalAmont = Double.parseDouble(totalPrice) * quantity;\n Log.d(\"totalAount\", String.valueOf(totalAmont));\n view.sumValue.setText(String.valueOf(quantity));\n Log.d(TAG, \"onClick:Qty\"+quantity);\n // addItem(item_id,String.valueOf(quantity),totalPrice,dicount,gst,totalAmont,unit_price);\n addItem(item_id,String.valueOf(quantity),totalPrice,dicount,gst,totalAmont,unit_price,changedUnit);\n\n\n getTotalQunatity();\n notifyDataSetChanged();\n }else\n {\n Toast.makeText(context,\"Stock not Available\",Toast.LENGTH_LONG).show();\n }\n\n }catch (Exception e)\n {\n Log.d(TAG, \"onClick:Add Item\",e);\n\n\n }\n\n\n\n }", "public static void LoadItems() {\r\n\t\t\r\n\t\t/*\r\n\t\t * Basic Minecraft Hammers (Ex. Vannila Ores)\r\n\t\t */\r\n\t\r\n\t\tItemWoodHammer = new ItemWoodHammer(HammerModMain.MODID + \":ItemWoodHammer\", \"HammerMod-DZ_res/items/ItemWoodHammer.png\");\r\n\t\tItemStoneHammer = new ItemStoneHammer(HammerModMain.MODID + \":ItemStoneHammer\", \"HammerMod-DZ_res/items/ItemStoneHammer.png\");\r\n\t\t//ItemIronHammer = new ItemIronHammer(HammerModMain.MODID + \":ItemIronHammer\", \"HammerMod-DZ_res/items/ItemIronHammer.png\");\r\n\t\t//ItemGoldHammer = new ItemGoldHammer(HammerModMain.MODID + \":ItemGoldHammer\", \"HammerMod-DZ_res/items/ItemGoldHammer.png\");\r\n\t\tItemDiamondHammer = new ItemDiamondHammer(HammerModMain.MODID + \":ItemDiamondHammer\", \"HammerMod-DZ_res/items/ItemDiamondHammer.png\");\r\n\t\tItemDirtHammer = new ItemDirtHammer(HammerModMain.MODID + \":ItemDirtHammer\", \"HammerMod-DZ_res/items/ItemDirtHammer.png\");\r\n\t\tItemGlassHammer = new ItemGlassHammer(HammerModMain.MODID + \":ItemGlassHammer\", \"HammerMod-DZ_res/items/ItemGlassHammer.png\");\r\n\t\tItemSandHammer = new ItemSandHammer(HammerModMain.MODID + \":ItemSandHammer\", \"HammerMod-DZ_res/items/ItemSandHammer.png\");\r\n\t\t//ItemCactusHammer = new ItemCactusHammer(HammerModMain.MODID + \":ItemCactusHammer\", \"HammerMod-DZ_res/items/ItemCactusHammer.png\");\r\n\t\t//ItemGravelHammer = new ItemGravelHammer(HammerModMain.MODID + \":ItemGravelHammer\", \"HammerMod-DZ_res/items/ItemGravelHammer.png\");\r\n\t\t//ItemWoolHammer_white = new ItemWoolHammer_white(HammerModMain.MODID + \":ItemWoolHammer_white\", \"HammerMod-DZ_res/items/ItemWoolHammer_white.png\");\r\n\t\tItemEmeraldHammer = new ItemEmeraldHammer(HammerModMain.MODID + \":ItemEmeraldHammer\", \"HammerMod-DZ_res/items/ItemEmeraldHammer.png\");\r\n\t\tItemGrassHammer = new ItemGrassHammer(HammerModMain.MODID + \":ItemGrassHammer\", \"HammerMod-DZ_res/items/ItemGrassHammer.png\");\r\n\t\t//ItemObsidianHammer = new ItemObsidianHammer(HammerModMain.MODID + \":ItemObsidianHammer\", \"HammerMod-DZ_res/items/ItemObsidianHammer.png\");\r\n\t\t//ItemGlowstoneHammer = new ItemGlowstoneHammer(HammerModMain.MODID + \":ItemGlowstoneHammer\", \"HammerMod-DZ_res/items/ItemGlowstoneHammer.png\");\r\n\t\t//ItemRedstoneHammer = new ItemRedstoneHammer(HammerModMain.MODID + \":ItemRedstoneHammer\", \"HammerMod-DZ_res/items/ItemRedstoneHammer.png\");\r\n\t\t//ItemLapizHammer = new ItemLapizHammer(HammerModMain.MODID + \":ItemLapizHammer\", \"HammerMod-DZ_res/items/ItemLapizHammer.png\");\r\n\t\t//ItemNetherackHammer = new ItemNetherackHammer(HammerModMain.MODID + \":ItemNetherackHammer\", \"HammerMod-DZ_res/items/ItemNetherackHammer.png\");\r\n\t\t//ItemSoulSandHammer = new ItemSoulSandHammer(HammerModMain.MODID + \":ItemSoulSandHammer\", \"HammerMod-DZ_res/items/ItemSoulSandHammer.png\");\r\n\t\tItemCoalHammer = new ItemCoalHammer(HammerModMain.MODID + \":ItemCoalHammer\", \"HammerMod-DZ_res/items/ItemCoalHammer.png\");\r\n\t\tItemCharcoalHammer = new ItemCharcoalHammer(HammerModMain.MODID + \":ItemCharcoalHammer\", \"HammerMod-DZ_res/items/ItemCharcoalHammer.png\");\r\n\t\t//ItemEndstoneHammer = new ItemEndstoneHammer(HammerModMain.MODID + \":ItemEndstoneHammer\", \"HammerMod-DZ_res/items/ItemEndstoneHammer.png\");\r\n\t\tItemBoneHammer = new ItemBoneHammer(HammerModMain.MODID + \":ItemBoneHammer\", \"HammerMod-DZ_res/items/ItemBoneHammer.png\");\r\n\t\t//ItemSpongeHammer = new ItemSpongeHammer(HammerModMain.MODID + \":ItemSpongeHammer\", \"HammerMod-DZ_res/items/ItemSpongeHammer.png\");\r\n\t\t//ItemBrickHammer = new ItemBrickHammer(HammerModMain.MODID + \":ItemBrickHammer\", \"HammerMod-DZ_res/items/ItemBrickHammer.png\");\r\n\t\t//ItemSugarHammer = new ItemSugarHammer(HammerModMain.MODID + \":ItemSugarHammer\", \"HammerMod-DZ_res/items/ItemSugarHammer.png\");\r\n\t\t//ItemSlimeHammer = new ItemSlimeHammer(HammerModMain.MODID + \":ItemSlimeHammer\", \"HammerMod-DZ_res/items/ItemSlimeHammer.png\");\r\n\t\t//ItemMelonHammer = new ItemMelonHammer(HammerModMain.MODID + \":ItemMelonHammer\", \"HammerMod-DZ_res/items/ItemMelonHammer.png\");\r\n\t\t//ItemPumpkinHammer = new ItemPumpkinHammer(HammerModMain.MODID + \":ItemPumpkinHammer\", \"HammerMod-DZ_res/items/ItemPumpkinHammer.png\");\r\n\t\t//ItemPotatoHammer = new ItemPotatoHammer(HammerModMain.MODID + \":ItemPotatoHammer\", \"HammerMod-DZ_res/items/ItemPotatoHammer.png\");\r\n\t\t//ItemCarrotHammer = new ItemCarrotHammer(HammerModMain.MODID + \":ItemCarrotHammer\", \"HammerMod-DZ_res/items/ItemCarrotHammer.png\");\r\n\t\tItemAppleHammer = new ItemAppleHammer(HammerModMain.MODID + \":ItemAppleHammer\", \"HammerMod-DZ_res/items/ItemAppleHammer.png\");\r\n\t\t//ItemIceHammer = new ItemIceHammer(HammerModMain.MODID + \":ItemIceHammer\", \"HammerMod-DZ_res/items/ItemIceHammer.png\");\r\n\t\t//ItemPackedIceHammer = new ItemPackedIceHammer(HammerModMain.MODID + \":ItemPackedIceHammer\", \"HammerMod-DZ_res/items/ItemPackedIceHammer.png\");\r\n\t\t//ItemSnowHammer = new ItemSnowHammer(HammerModMain.MODID + \":ItemSnowHammer\", \"HammerMod-DZ_res/items/ItemSnowHammer.png\");\r\n\t\t//ItemCakeHammer = new ItemCakeHammer(HammerModMain.MODID + \":ItemCakeHammer\", \"HammerMod-DZ_res/items/ItemCakeHammer.png\");\r\n\t\t//ItemDragonEggHammer = new ItemDragonEggHammer(HammerModMain.MODID + \":ItemDragonEggHammer\", \"HammerMod-DZ_res/items/ItemDragonEggHammer.png\");\r\n\t\t//ItemTntHammer = new ItemTntHammer(HammerModMain.MODID + \":ItemTntHammer\", \"HammerMod-DZ_res/items/ItemTntHammer.png\");\r\n\t\t//ItemBedrockHammer = new ItemBedrockHammer(HammerModMain.MODID + \":ItemBedrockHammer\", \"HammerMod-DZ_res/items/ItemBedrockHammer.png\");\r\n\r\n\t\t/*\r\n\t\t * Mob Hammers\r\n\t\t */\r\n\t\t//ItemCreeperHammer = new ItemCreeperHammer(CREEPER).setUnlocalizedName(\"ItemCreeperHammer\").setTextureName(\"hammermod:ItemCreeperHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemPigHammer = new ItemPigHammer(PIG).setUnlocalizedName(\"ItemPigHammer\").setTextureName(\"hammermod:ItemPigHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemCowHammer = new ItemCowHammer(COW).setUnlocalizedName(\"ItemCowHammer\").setTextureName(\"hammermod:ItemCowHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t\r\n\r\n\t\t/*\r\n\t\t * Hammers Using Ores from other mods\r\n\t\t * **NOTE: REQUIRES Other mods to craft these hammers**\r\n\t\t */\r\n\t\tItemCopperHammer = new ItemCopperHammer(HammerModMain.MODID + \":ItemCopperHammer\", \"HammerMod-DZ_res/items/ItemCopperHammer.png\");\r\n\t\tItemBronzeHammer = new ItemBronzeHammer(HammerModMain.MODID + \":ItemBronzeHammer\", \"HammerMod-DZ_res/items/ItemBronzeHammer.png\");\r\n\t\tItemSilverHammer = new ItemSilverHammer(HammerModMain.MODID + \":ItemSilverHammer\", \"HammerMod-DZ_res/items/ItemSilverHammer.png\");\r\n\t\tItemTungstenHammer = new ItemTungstenHammer(HammerModMain.MODID + \":ItemTungstenHammer\", \"HammerMod-DZ_res/items/ItemTungstenHammer.png\");\r\n\t\tItemRubyHammer = new ItemRubyHammer(HammerModMain.MODID + \":ItemRubyHammer\", \"HammerMod-DZ_res/items/ItemRubyHammer.png\");\r\n\t\tItemTinHammer = new ItemTinHammer(HammerModMain.MODID + \":ItemTinHammer\", \"HammerMod-DZ_res/items/ItemTinHammer.png\");\r\n\t\tItemJadeHammer = new ItemJadeHammer(HammerModMain.MODID + \":ItemJadeHammer\", \"HammerMod-DZ_res/items/ItemJadeHammer.png\");\r\n\t\tItemAmethystHammer = new ItemAmethystHammer(HammerModMain.MODID + \":ItemAmethystHammer\", \"HammerMod-DZ_res/items/ItemAmethystHammer.png\");\r\n\t\tItemGraphiteHammer = new ItemGraphiteHammer(HammerModMain.MODID + \":ItemGraphiteHammer\", \"HammerMod-DZ_res/items/ItemGraphiteHammer.png\");\r\n\t\tItemCitrineHammer = new ItemCitrineHammer(HammerModMain.MODID + \":ItemCitrineHammer\", \"HammerMod-DZ_res/items/ItemCitrineHammer.png\");\r\n\t\tItemPierreHammer = new ItemPierreHammer(HammerModMain.MODID + \":ItemPierreHammer\", \"HammerMod-DZ_res/items/ItemPierreHammer.png\");\r\n\t\tItemSapphireHammer = new ItemSapphireHammer(HammerModMain.MODID + \":ItemSapphireHammer\", \"HammerMod-DZ_res/items/ItemSapphireHammer.png\");\r\n\t\tItemOnyxHammer = new ItemOnyxHammer(HammerModMain.MODID + \":ItemOnyxHammer\", \"HammerMod-DZ_res/items/ItemOnyxHammer.png\");\r\n\t\tItemNikoliteHammer = new ItemNikoliteHammer(HammerModMain.MODID + \":ItemNikoliteHammer\", \"HammerMod-DZ_res/items/ItemNikoliteHammer.png\");\r\n\t\tItemSilicaHammer = new ItemSilicaHammer(HammerModMain.MODID + \":ItemSilicaHammer\", \"HammerMod-DZ_res/items/ItemSilicaHammer.png\");\r\n\t\tItemCinnabarHammer = new ItemCinnabarHammer(HammerModMain.MODID + \":ItemCinnabarHammer\", \"HammerMod-DZ_res/items/ItemCinnabarHammer.png\");\r\n\t\tItemAmberBearingStoneHammer = new ItemAmberBearingStoneHammer(HammerModMain.MODID + \":ItemAmberBearingStoneHammer\", \"HammerMod-DZ_res/items/ItemAmberBearingStoneHammer.png\");\r\n\t\tItemFerrousHammer = new ItemFerrousHammer(HammerModMain.MODID + \":ItemFerrousHammer\", \"HammerMod-DZ_res/items/ItemFerrousHammer.png\");\r\n\t\tItemAdaminiteHammer = new ItemAdaminiteHammer(HammerModMain.MODID + \":ItemAdaminiteHammer\", \"HammerMod-DZ_res/items/ItemAdaminiteHammer.png\");\r\n\t\tItemShinyHammer = new ItemShinyHammer(HammerModMain.MODID + \":ItemShinyHammer\", \"HammerMod-DZ_res/items/ItemShinyHammer.png\");\r\n\t\tItemXychoriumHammer = new ItemXychoriumHammer(HammerModMain.MODID + \":ItemXychoriumHammer\", \"HammerMod-DZ_res/items/ItemXychoriumHammer.png\");\r\n\t\tItemUraniumHammer = new ItemUraniumHammer(HammerModMain.MODID + \":ItemUraniumHammer\", \"HammerMod-DZ_res/items/ItemUraniumHammer.png\");\r\n\t\tItemTitaniumHammer = new ItemTitaniumHammer(HammerModMain.MODID + \":ItemTitaniumHammer\", \"HammerMod-DZ_res/items/ItemTitaniumHammer.png\");\r\n\t\tItemBloodStoneHammer = new ItemBloodStoneHammer(HammerModMain.MODID + \":ItemBloodStoneHammer\", \"HammerMod-DZ_res/items/ItemBloodStoneHammer.png\");\r\n\t\tItemRustedHammer = new ItemRustedHammer(HammerModMain.MODID + \":ItemRustedHammer\", \"HammerMod-DZ_res/items/ItemRustedHammer.png\");\r\n\t\tItemRositeHammer = new ItemRositeHammer(HammerModMain.MODID + \":ItemRositeHammer\", \"HammerMod-DZ_res/items/ItemRositeHammer.png\");\r\n\t\tItemLimoniteHammer = new ItemLimoniteHammer(HammerModMain.MODID + \":ItemLimoniteHammer\", \"HammerMod-DZ_res/items/ItemLimoniteHammer.png\");\r\n\t\tItemMithrilHammer = new ItemMithrilHammer(HammerModMain.MODID + \":ItemMithrilHammer\", \"HammerMod-DZ_res/items/ItemMithrilHammer.png\");\r\n\t\tItemPrometheumHammer = new ItemPrometheumHammer(HammerModMain.MODID + \":ItemPrometheumHammer\", \"HammerMod-DZ_res/items/ItemPrometheumHammer.png\");\r\n\t\tItemHepatizonHammer = new ItemHepatizonHammer(HammerModMain.MODID + \":ItemHepatizonHammer\", \"HammerMod-DZ_res/items/ItemHepatizonHammer.png\");\r\n\t\tItemPoopHammer = new ItemPoopHammer(HammerModMain.MODID + \":ItemPoopHammer\", \"HammerMod-DZ_res/items/ItemPoopHammer.png\");\r\n\t\tItemAngmallenHammer = new ItemAngmallenHammer(HammerModMain.MODID + \":ItemAngmallenHammer\", \"HammerMod-DZ_res/items/ItemAngmallenHammer.png\");\r\n\t\tItemManganeseHammer = new ItemManganeseHammer(HammerModMain.MODID + \":ItemManganeseHammer\", \"HammerMod-DZ_res/items/ItemManganeseHammer.png\");\r\n\t\tItemSearedBrickHammer = new ItemSearedBrickHammer(HammerModMain.MODID + \":ItemSearedBrickHammer\", \"HammerMod-DZ_res/items/ItemSearedBrickHammer.png\");\r\n\t\tItemElectrumHammer = new ItemElectrumHammer(HammerModMain.MODID + \":ItemElectrumHammer\", \"HammerMod-DZ_res/items/ItemElectrumHammer.png\");\r\n\t\tItemPigIronHammer = new ItemPigIronHammer(HammerModMain.MODID + \":ItemPigIronHammer\", \"HammerMod-DZ_res/items/ItemPigIronHammer.png\");\r\n\t\tItemArditeHammer = new ItemArditeHammer(HammerModMain.MODID + \":ItemArditeHammer\", \"HammerMod-DZ_res/items/ItemArditeHammer.png\");\r\n\t\tItemAlumiteHammer = new ItemAlumiteHammer(HammerModMain.MODID + \":ItemAlumiteHammer\", \"HammerMod-DZ_res/items/ItemAlumiteHammer.png\");\r\n\t\tItemCobaltHammer = new ItemCobaltHammer(HammerModMain.MODID + \":ItemCobaltHammer\", \"HammerMod-DZ_res/items/ItemCobaltHammer.png\");\r\n\t\tItemManyullynHammer = new ItemManyullynHammer(HammerModMain.MODID + \":ItemManyullynHammer\", \"HammerMod-DZ_res/items/ItemManyullynHammer.png\");\r\n\t\tItemOureclaseHammer = new ItemOureclaseHammer(HammerModMain.MODID + \":ItemOureclaseHammer\", \"HammerMod-DZ_res/items/ItemOureclaseHammer.png\");\r\n\t\tItemHaderothHammer = new ItemHaderothHammer(HammerModMain.MODID + \":ItemHaderothHammer\", \"HammerMod-DZ_res/items/ItemHaderothHammer.png\");\r\n\t\tItemInfuscoliumHammer = new ItemInfuscoliumHammer(HammerModMain.MODID + \":ItemInfuscoliumHammer\", \"HammerMod-DZ_res/items/ItemInfuscoliumHammer.png\");\r\n\t\tItemRubberHammer = new ItemRubberHammer(HammerModMain.MODID + \":ItemRubberHammer\", \"HammerMod-DZ_res/items/ItemRubberHammer.png\");\r\n\t\tItemDesichalkosHammer = new ItemDesichalkosHammer(HammerModMain.MODID + \":ItemDesichalkosHammer\", \"HammerMod-DZ_res/items/ItemDesichalkosHammer.png\");\r\n\t\tItemMeutoiteHammer = new ItemMeutoiteHammer(HammerModMain.MODID + \":ItemMeutoiteHammer\", \"HammerMod-DZ_res/items/ItemMeutoiteHammer.png\");\r\n\t\tItemEximiteHammer = new ItemEximiteHammer(HammerModMain.MODID + \":ItemEximiteHammer\", \"HammerMod-DZ_res/items/ItemEximiteHammer.png\");\r\n\t\tItemMidasiumHammer = new ItemMidasiumHammer(HammerModMain.MODID + \":ItemMidasiumHammer\", \"HammerMod-DZ_res/items/ItemMidasiumHammer.png\");\r\n\t\tItemSanguiniteHammer = new ItemSanguiniteHammer(HammerModMain.MODID + \":ItemSanguiniteHammer\", \"HammerMod-DZ_res/items/ItemSanguiniteHammer.png\");\r\n\t\tItemInolashiteHammer = new ItemInolashiteHammer(HammerModMain.MODID + \":ItemInolashiteHammer\", \"HammerMod-DZ_res/items/ItemInolashiteHammer.png\");\r\n\t\tItemVulcaniteHammer = new ItemVulcaniteHammer(HammerModMain.MODID + \":ItemVulcaniteHammer\", \"HammerMod-DZ_res/items/ItemVulcaniteHammer.png\");\r\n\t\tItemLemuriteHammer = new ItemLemuriteHammer(HammerModMain.MODID + \":ItemLemuriteHammer\", \"HammerMod-DZ_res/items/ItemLemuriteHammer.png\");\r\n\t\tItemAmordrineHammer = new ItemAmordrineHammer(HammerModMain.MODID + \":ItemAmordrineHammer\", \"HammerMod-DZ_res/items/ItemAmordrineHammer.png\");\r\n\t\tItemCeruclaseHammer = new ItemCeruclaseHammer(HammerModMain.MODID + \":ItemCeruclaseHammer\", \"HammerMod-DZ_res/items/ItemCeruclaseHammer.png\");\r\n\t\tItemKalendriteHammer = new ItemKalendriteHammer(HammerModMain.MODID + \":ItemKalendriteHammer\", \"HammerMod-DZ_res/items/ItemKalendriteHammer.png\");\r\n\t\tItemVyroxeresHammer = new ItemVyroxeresHammer(HammerModMain.MODID + \":ItemVyroxeresHammer\", \"HammerMod-DZ_res/items/ItemVyroxeresHammer.png\");\r\n\t\tItemCarmotHammer = new ItemCarmotHammer(HammerModMain.MODID + \":ItemCarmotHammer\", \"HammerMod-DZ_res/items/ItemCarmotHammer.png\");\r\n\t\tItemTartariteHammer = new ItemTartariteHammer(HammerModMain.MODID + \":ItemTartariteHammer\", \"HammerMod-DZ_res/items/ItemTartariteHammer.png\");\r\n\t\tItemAtlarusHammer = new ItemAtlarusHammer(HammerModMain.MODID + \":ItemAtlarusHammer\", \"HammerMod-DZ_res/items/ItemAtlarusHammer.png\");\r\n\t\tItemAstralHammer = new ItemAstralHammer(HammerModMain.MODID + \":ItemAstralHammer\", \"HammerMod-DZ_res/items/ItemAstralHammer.png\");\r\n\t\tItemCelenegilHammer = new ItemCelenegilHammer(HammerModMain.MODID + \":ItemCelenegilHammer\", \"HammerMod-DZ_res/items/ItemCelenegilHammer.png\");\r\n\t\tItemAredriteHammer = new ItemAredriteHammer(HammerModMain.MODID + \":ItemAredriteHammer\", \"HammerMod-DZ_res/items/ItemAredriteHammer.png\");\r\n\t\tItemOrichalcumHammer = new ItemOrichalcumHammer(HammerModMain.MODID + \":ItemOrichalcumHammer\", \"HammerMod-DZ_res/items/ItemOrichalcumHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For YouTubers\r\n\t\t */\r\n\t\tItemPatHammer = new ItemPatHammer(HammerModMain.MODID + \":ItemPatHammer\", \"HammerMod-DZ_res/items/ItemPatHammer.png\");\r\n\t\tItemJenHammer = new ItemJenHammer(HammerModMain.MODID + \":ItemJenHammer\", \"HammerMod-DZ_res/items/ItemJenHammer.png\");\r\n\t\tItemDanTDMHammer = new ItemDanTDMHammer(HammerModMain.MODID + \":ItemDanTDMHammer\", \"HammerMod-DZ_res/items/ItemDanTDMHammer.png\");\r\n\t\tItemxJSQHammer = new ItemxJSQHammer(HammerModMain.MODID + \":ItemxJSQHammer\", \"HammerMod-DZ_res/items/ItemxJSQHammer.png\");\r\n\t\tItemSkyTheKidRSHammer = new ItemSkyTheKidRSHammer(HammerModMain.MODID + \":ItemSkyTheKidRSHammer\", \"HammerMod-DZ_res/items/ItemSkyTheKidRSHammer.png\");\r\n\t\tItemThackAttack_MCHammer = new ItemThackAttack_MCHammer(HammerModMain.MODID + \":ItemThackAttack_MCHammer\", \"HammerMod-DZ_res/items/ItemThackAttack_MCHammer.png\");\r\n\t\tItem_MrGregor_Hammer = new Item_MrGregor_Hammer(HammerModMain.MODID + \":Item_MrGregor_Hammer\", \"HammerMod-DZ_res/items/Item_MrGregor_Hammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For Twitch Streamers\r\n\t\t */\r\n\t\tItemDeeAxelJayHammer = new ItemDeeAxelJayHammer(HammerModMain.MODID + \":ItemDeeAxelJayHammer\", \"HammerMod-DZ_res/items/ItemDeeAxelJayHammer.png\");\r\n\t\tItemincapablegamerHammer = new ItemincapablegamerHammer(HammerModMain.MODID + \":ItemincapablegamerHammer\", \"HammerMod-DZ_res/items/ItemincapablegamerHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Community Hammers\r\n\t\t */\r\n\t\tItemCryingObsidainHammer = new ItemCryingObsidainHammer(HammerModMain.MODID + \":ItemCryingObsidainHammer\", \"HammerMod-DZ_res/items/ItemCryingObsidainHammer.png\");\r\n\t\tItemMythicalHammer = new ItemMythicalHammer(HammerModMain.MODID + \":ItemMythicalHammer\", \"HammerMod-DZ_res/items/ItemMythicalHammer.png\");\r\n\t\tItemToasterHammer = new ItemToasterHammer(HammerModMain.MODID + \":ItemToasterHammer\", \"HammerMod-DZ_res/items/ItemToasterHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Special Hammers\r\n\t\t */\r\n\t\tItemRainbowHammer = new ItemRainbowHammer(HammerModMain.MODID + \":ItemRainbowHammer\", \"HammerMod-DZ_res/items/ItemRainbowHammer.png\");\r\n\t\tItemMissingTextureHammer = new ItemMissingTextureHammer(HammerModMain.MODID + \":ItemMissingTextureHammer\", \"HammerMod-DZ_res/items/ItemMissingTextureHammer.png\");\r\n\r\n\t\tregisterItems();\r\n\t}", "public String getItem()\n {\n // put your code here\n return \"This item weighs: \" + weight + \"\\n\" + description + \"\\n\";\n }", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public Market(LegendsGame game, int numItems) {\n\t\tthis.game = game;\n\t\t\n\t\titems = new ArrayList<>();\n\t\t\n\t\tthis.addNumItems(numItems);\n\t\t\n\t}", "void createItem (String name, String description, double price);", "public void setimageitem(items item){\n ImageView item_icon = (ImageView) mView.findViewById(R.id.imageitem);\n //If the current weight is greater than half of the original weight, full Icon is displayed\n if(item.getCurrent_wieght() > item.getOriginal_weight()/2)\n item_icon.setImageResource(R.drawable.fullicon);\n //If the current weight is greater than quarter of the original weight, the half icon will be displayed\n else if (item.getCurrent_wieght() <= item.getOriginal_weight()/ 2 && item.getCurrent_wieght() > item.getOriginal_weight()/ 4)\n item_icon.setImageResource(R.drawable.halficon);\n //If the current weight is less than a quarter of the original weight\n // to suggest that the item is empty, a quarter icon will be displayed.\n else if(item.getCurrent_wieght() <= item.getOriginal_weight()/ 4 && item.getCurrent_wieght()> (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.quartericon);\n }\n //if the item is empty an alert icon will be displayed.\n else if(item.getCurrent_wieght()<= (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.alerticon);\n }\n }", "@Override\n\t public void onClick(View v)\n\t {\n\t\t\t sqLite=context.openOrCreateDatabase(\"basketbuddy\", context.MODE_PRIVATE, null);\n\t\t\t \n\t\t\t Cursor cc = sqLite.rawQuery(\"SELECT PRODUCT_QTY, PRODUCT_VALUE FROM CART WHERE PRODUCT_CODE =\"+Integer.parseInt(prod_name.getProductCode()), null);\n\t\t\t \n\t\t\t if (cc.getCount()== 0)\n\t\t\t {\n\t \t\t //product not already there in cart..add to cart\n\t\t\t\t sqLite.execSQL(\"INSERT INTO CART (PRODUCT_CODE, PRODUCT_NAME, PRODUCT_BARCODE, PRODUCT_GRAMMAGE\"+\n\t \t \", PRODUCT_MRP, PRODUCT_BBPRICE, PRODUCT_DIVISION, PRODUCT_DEPARTMENT,PRODUCT_QTY,PRODUCT_VALUE) VALUES(\"+\n\t \t\t prod_name.getProductCode()+\",'\"+ prod_name.getProductName()+ \"','\" +\n\t \t prod_name.getProductBarcode()+\"','\"+ prod_name.getProductGrammage()+\"',\"+\n\t \t\t Integer.parseInt(prod_name.getProductMRP())+\",\"+ Integer.parseInt(prod_name.getProductBBPrice())+\",\"+\n\t \t Integer.parseInt(prod_name.getProductDivision())+\",\"+Integer.parseInt(prod_name.getProductDepartment())+\n\t \t \",1,\"+ Integer.parseInt(prod_name.getProductBBPrice())+\")\");\n\t \t\t \n\t \t\tToast.makeText(context,\"Item \"+prod_name.getProductName()+\" added to Cart\", Toast.LENGTH_LONG).show();\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t \n\t\t\t\t //product already there in cart\n\t\t\t\t if(cc.moveToFirst())\n\t\t\t\t\t{\n\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\ttempQty=cc.getInt(0);\n\t\t\t\t\t\t\ttempValue = cc.getInt(1);\n\t\t\t\t\t\t}while(cc.moveToNext());\n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t\t if (tempQty < 10)\n\t\t\t\t {\n\t\t\t\t\t sqLite.execSQL(\"UPDATE CART SET PRODUCT_QTY = \"+ (tempQty+1)+\",PRODUCT_VALUE = \"+ \n\t\t\t\t\t(Integer.parseInt(prod_name.getProductBBPrice())+tempValue)+\" WHERE PRODUCT_CODE =\"+\n\t\t\t\t\tprod_name.getProductCode());\n\t\t\t\t\t \n\t\t\t\t\t Toast.makeText(context,\"Item \"+prod_name.getProductName()+\" added to Cart\", Toast.LENGTH_LONG).show();\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t sqLite.close();\n\t \t \n\t }", "public void showBuyItem(){\n\t\tListView view = (ListView) getView().findViewById(R.id.itemshopList);\n\t\tview.setVisibility(View.VISIBLE);\n\t\t\n\t\tMainGameActivity.setShopCode((Integer) 1);\n\t\t\n\t\t ArrayList<Item> itemList = MainGameActivity.getPlayerFromBackpack().GetItem();\n\n\t\t ArrayAdapter<Item> arrayAdapter = new ArrayAdapter<Item>(this.getActivity(),android.R.layout.simple_list_item_1, itemList);\n\t\t view.setAdapter(arrayAdapter); \n\t\t \n\t\t final Context ctx = this.getActivity();\n\n\t\t view.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t @Override\n\t\t public void onItemClick(AdapterView<?> parent, final View view,\n\t\t int position, long id) {\n\t\t \t \n\t\t final Item item = (Item) parent.getItemAtPosition(position);\n\t\t \t// custom dialog\n\t\t\t\t\tfinal Dialog dialog = new Dialog(ctx);\n\t\t\t\t\tdialog.setContentView(R.layout.shop_dialog);\n\t\t\t\t\tdialog.setTitle(\"Buy \" + item.GetName());\n\t\t \n\t\t\t\t\t// set the custom dialog components - text, image and button\n\t\t\t\t\tfinal EditText editText = (EditText) dialog.findViewById(R.id.amountofItem);\n\t\t\t\t\t\n\t\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.currentMoney);\n\t\t\t\t\ttext.setText(\"Current Money: \" + MainGameActivity.getPlayerFromBackpack().GetMoney());\n\n\t\t \n\t\t\t\t\tButton buyButton = (Button) dialog.findViewById(R.id.button2shop);\n\t\t\t\t\tButton backButton = (Button) dialog.findViewById(R.id.button1shop);\t\t\n\t\t\t\t\t\n\t\t\t\t\tbuyButton.setText(\"Buy\");\n\t\t\t\t\t//if button is clicked, buy\n\t\t\t\t\tbuyButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t/* Buy sequence here */\n\t\t\t\t\t\t\tInteger Amount = Integer.valueOf(editText.getText().toString());\n\t\t\t\t\t\t\tif ((Amount > 0) && (Amount * item.GetPrice() <= MainGameActivity.getPlayerFromBackpack().GetMoney())){\n\t\t\t\t\t\t\t\tMainGameActivity.getPlayerFromBackpack().SetMoney(MainGameActivity.getPlayerFromBackpack().GetMoney() - Amount * item.GetPrice());\n\t\t\t\t\t\t\t\titem.SetNItem(item.GetNItem() + Amount);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\tshowBuyItem();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Showing message that Amount is not valid */\n\t\t\t\t\t\t\t\tTextView textError = (TextView) dialog.findViewById(R.id.messageItem);\n\t\t\t\t\t\t\t\ttextError.setText(\"Amount is not valid!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}); \t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// if button is clicked, close the custom dialog\n\t\t\t\t\tbackButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t}); \n\t\t \n\t\t\t\t\tdialog.show();\n\t\t \t /* After buying process finished - refresh showBuyItem */\t\t \t \n\t\t }\n\t\t });\n\t}", "@Override\n public void bindView(View view, final Context context, Cursor cursor) {\n TextView nameView = (TextView) view.findViewById(R.id.product_name_text_view);\n TextView priceView = (TextView) view.findViewById(R.id.product_price_text_view);\n final TextView quantityView = (TextView) view.findViewById(R.id.product_quantity_text_view);\n ImageView imgView = (ImageView) view.findViewById(R.id.product_imageView);\n\n // Extract properties from cursor\n // Find the columns of inventory attributes that we're interested in\n int nameColumnIndex = cursor.getColumnIndex(StoreEntry.COLUMN_NAME);\n int priceColumnIndex = cursor.getColumnIndex(StoreEntry.COLUMN_PRICE);\n int quantityIndex = cursor.getColumnIndex(StoreEntry.COLUMN_QUANTITY);\n int imgIndex = cursor.getColumnIndex(StoreEntry.COLUMN_IMAGE);\n int rowIndex = cursor.getColumnIndex(StoreEntry._ID);\n\n // Read the product attributes from the Cursor for the current product\n final String productName = cursor.getString(nameColumnIndex);\n final int productPrice = cursor.getInt(priceColumnIndex);\n final int productQuantity = cursor.getInt(quantityIndex);\n //Uri imgUri = parse(cursor.getString(imgIndex));\n final int rowId = cursor.getInt(rowIndex);\n\n // Populate fields with extracted properties\n nameView.setText(productName);\n priceView.setText(Integer.toString(productPrice));\n quantityView.setText(Integer.toString(productQuantity));\n Glide.with(context).load(cursor.getString(imgIndex))\n .placeholder(R.mipmap.ic_launcher)\n .error(R.drawable.ic_add_shopping_cart)\n .crossFade()\n .centerCrop()\n .into(imgView);\n\n Button sellButton = (Button) view.findViewById(R.id.sell_product);\n sellButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n StoreDbHelper dbHelper = new StoreDbHelper(context);\n SQLiteDatabase database = dbHelper.getWritableDatabase();\n\n int items = Integer.parseInt(quantityView.getText().toString());\n if (items > 0) {\n int mQuantitySold = items - 1;\n ContentValues values = new ContentValues();\n values.put(StoreEntry.COLUMN_QUANTITY, mQuantitySold);\n String selection = StoreEntry._ID + \"=?\";\n String[] selectionArgs = new String[]{String.valueOf(rowId)};\n int rowsAffected = database.update(StoreEntry.TABLE_NAME, values, selection, selectionArgs);\n if (rowsAffected != -1) {\n quantityView.setText(Integer.toString(mQuantitySold));\n }\n } else\n Toast.makeText(context, \"No Stock Left \", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public String toString(){\n return \"winningitem\";\n }", "private ArrayList<Item> getData() { // generates an array containing 3 Item class objects\n\n // cost\n String[] cost = getResources().getStringArray(R.array.elvCostItems);\n Item i1=new Item(cost[0], new ArrayList<>(Collections.singletonList(cost[5])),false); // Define an Item object call i1\n i1.elements.add(cost[1]); // child elements below\n i1.elements.add(cost[2]);\n i1.elements.add(cost[3]);\n i1.elements.add(cost[4]);\n i1.elements.add(cost[5]);\n i1.elements.add(cost[6]);\n\n // activity or event\n String[] category = getResources().getStringArray(R.array.elvCategoryItems);\n Item i2=new Item(category[0], new ArrayList<>(Arrays.asList(category[1],category[2])),true); // Item.Option is set by the arg1 and default selection is set by arg 2\n i2.elements.add(category[1]);\n i2.elements.add(category[2]);\n\n // city\n String[] location = getResources().getStringArray(R.array.elvLocationItems);\n Item i4=new Item(location[0],new ArrayList<>(Collections.singletonList(location[1])),false);\n i4.elements.add(location[1]);\n\n // distance away\n String[] distance = getResources().getStringArray(R.array.elvDistanceItems);\n Item i5=new Item(distance[0],new ArrayList<>(Collections.singletonList(distance[4])),false);\n i5.elements.add(distance[1]);\n i5.elements.add(distance[2]);\n i5.elements.add(distance[3]);\n i5.elements.add(distance[4]);\n i5.elements.add(distance[5]);\n\n // other - disabled access, indoors, etc\n String[] other = getResources().getStringArray(R.array.elvOtherItems);\n ArrayList<String> temp = new ArrayList<>();\n Item i6=new Item(other[0], temp,true);\n i6.elements.add(other[1]);\n i6.elements.add(other[2]);\n i6.elements.add(other[3]);\n i6.elements.add(other[4]);\n i6.elements.add(other[5]);\n i6.elements.add(other[6]);\n\n // add items to the elv\n ArrayList<Item> allItems=new ArrayList<>(); // append all Item objects into an ArrayList\n allItems.add(i1);\n allItems.add(i2);\n allItems.add(i4);\n allItems.add(i5);\n allItems.add(i6);\n\n return allItems;\n }", "public ItemStack createItem(ItemType type, int damage,List<Text> lore);", "public Market(LegendsGame game, ArrayList<Item> items) {\n\t\tthis.game = game;\n\t\t\n\t\tthis.items = items;\n\t\t\n\t}", "public Marker createMarker(double latitude, double longitude, final String storeImg, String name, String description, String contact_number, String opening_time, String closing_time_store, ArrayList<Store_img_item> store_img_items, ArrayList<StoreItem> store_item) {\n this.name = name;\n this.contact_number = contact_number;\n this.opening_time_store = opening_time;\n this.closing_time_store = closing_time_store;\n this.store_img_item = store_img_items;\n\n //Log.e(\"store\", String.valueOf(store_item.size()));\n store_img_item = new ArrayList<>();\n mMarker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(latitude, longitude))\n .snippet(description)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.c_marker))\n .title(name));\n mMarker.setTag(store_img_items);\n //store_img_item = (ArrayList<Store_img_item>) mMarker.getTag();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 15));\n\n return mMarker;\n }", "private void initStorage() {\n storageList = new ItemsList();\n storageList.add(new StorageItem(1, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\pen.png\", \"pen\", 3));\n storageList.add(new StorageItem(2, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\pencil.png\", \"pencil\", 2));\n storageList.add(new StorageItem(3, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\book.jpg\", \"book\", 21));\n storageList.add(new StorageItem(4, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\rubber.png\", \"rubber\", 1));\n storageList.add(new StorageItem(5, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\calculator.png\", \"calculator\", 15));\n storageList.add(new StorageItem(6, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\cover.jpg\", \"cover\", 4));\n storageList.add(new StorageItem(7, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\globe.png\", \"globe\", 46));\n storageList.add(new StorageItem(8, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\map.jpg\", \"map\", 10));\n storageList.add(new StorageItem(9, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\marker.png\", \"marker\", 6));\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) lstDiseasesProcedure.getLayoutParams();\n// layoutParams.height = 450;\n// lstDiseasesProcedure.setLayoutParams(layoutParams);\n//\n String itemClicked = ((TextView) view.findViewById(R.id.title)).getText().toString();\n// txtDiseaseName.setText(itemClicked);\n// txtHerbalName.setText(\"\");\n// lyoutprocedure.setVisibility(View.VISIBLE);\n//// baymaxBodyProcedure.setImageResource(R.drawable.doc);\n// SQLiteDatabase myHerbalDbHelper = herbalDbHelper.getReadableDatabase();\n// Cursor cursor = myHerbalDbHelper.query(\"tbl_Herbal\" ,null, null, null, null, null, null);\n// toastThis(\"cliked \"+itemClicked);\n// while (cursor.moveToNext()) {\n// if (txtDiseaseName.getText().toString().toUpperCase().equals(cursor.getString(0).toString().toUpperCase())) {\n// txtDiseaseDescription.setText(\"Description - \" + cursor.getString(1).toString() + System.getProperty(\"line.separator\"));\n// txtHerbalName.setText(\"Herbal cure\" + System.getProperty(\"line.separator\") + cursor.getString(2).toString());\n// txtHerbalDescription.setText(\"Description - \" + cursor.getString(4).toString() + System.getProperty(\"line.separator\"));\n// txtHerbalProcedure.setText(\"-\" + System.getProperty(\"line.separator\") + cursor.getString(5).toString());\n// txtHerbalDays.setText(\"Days: \"+cursor.getString(6).toString());\n// }\n// }\n// if (txtDiseaseName.getText().toString().toLowerCase().equals(\"acne\")){\n// baymaxBodyProcedure.setImageResource(R.drawable.acne2);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"allergy\")){\n// baymaxBodyProcedure.setImageResource(R.drawable.allergy1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"burn\")){\n// baymaxBodyProcedure.setImageResource(R.drawable.burn1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"chicken pox\")){\n// baymaxBodyProcedure.setImageResource(R.drawable.chickenpox1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"dandruff\")){\n// baymaxBodyProcedure.setImageResource(R.drawable.dandruff1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"eczema \")){\n// baymaxBodyProcedure.setImageResource(R.drawable.eczema1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"infected mosquito bites \")){\n// baymaxBodyProcedure.setImageResource(R.drawable.infected1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"measles\")){\n// baymaxBodyProcedure.setImageResource(R.drawable.measles1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"acne\")){\n// baymaxBodyProcedure.setImageResource(R.drawable.acne1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"scabies (“galis aso”)\")){\n// baymaxBodyProcedure.setImageResource(R.drawable.scabies1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"sunburn or erythema\")){\n// baymaxBodyProcedure.setImageResource(R.drawable.sunburn1);\n// } else if (txtDiseaseName.getText().toString().toLowerCase().equals(\"underarm or body odor \")){\n// baymaxBodyProcedure.setImageResource(R.drawable.underarm1);\n// }\n\n\n Intent intent = new Intent(getApplicationContext(), Procedure.class);\n intent.putExtra(\"title\", itemClicked);\n startActivity(intent);\n\n }", "private void addIntroduction() {\n introductionArrayList = new ArrayList<>();\n introductionArrayList.add(new Item(R.drawable.image_introduction_child,getString(R.string.introduction).replace(\"\\n\",\"\")));\n introductionArrayList.add(new Item(R.drawable.image_history,getString(R.string.history)));\n introductionArrayList.add(new Item(R.drawable.image_symbols,getString(R.string.symbols)));\n introductionArrayList.add(new Item(R.drawable.image_why,getString(R.string.why)));\n introductionArrayList.add(new Item(R.drawable.image_software,getString(R.string.software_stack)));\n introductionArrayList.add(new Item(R.drawable.image_virtual,getString(R.string.virtual)));\n //introductionArrayList.add(new Item(R.drawable.image_art_dalvik,getString(R.string.art_dalvik)));\n introductionArrayList.add(new Item(R.drawable.image_components,getString(R.string.android_components)));\n introductionArrayList.add(new Item(R.drawable.image_setup,getString(R.string.setup)));\n introductionArrayList.add(new Item(R.drawable.image_building,getString(R.string.build_app)));\n\n }", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "public void sendToCheckout(){\n\n String price = String.valueOf(new_price);\n quantity = String.valueOf(count);\n String status = String.valueOf(R.string.red);\n model = new CheckoutModel();\n model.setImage(food.getImage());\n model.setName(food.getFood_name());\n model.setPrice(price);\n model.setQuantity(quantity);\n model.setStatus(status);\n\n modelList = new ArrayList<>();\n modelList.add(model);\n\n\n }", "public void a(Item paramalq, CreativeTabs paramakf, List paramList)\r\n/* 22: */ {\r\n/* 23:27 */ paramList.add(new ItemStack(paramalq, 1, 0));\r\n/* 24:28 */ paramList.add(new ItemStack(paramalq, 1, 1));\r\n/* 25: */ }", "public void addToCart(String name, Double price , String image , int quantity)\n {\n if(addToCart==1)\n {\n return;\n }\n addToCart = 1;\n noOfItemQuantities = Integer.parseInt(textQuantity.getText().toString());\n\n if(noOfItemQuantities>quantity ) {\n addToCart=2;\n outOfStockText.setText(\"Out of Stock\");\n return;\n }\n double totalPrice = price * noOfItemQuantities;\n\n\n\n\n\n\n final Cart cart= new Cart(name,totalPrice,image,noOfItemQuantities,currentUri.toString());\n\n\n addToFirebase(cart,ItemEntry.TABLE_NAME_CART);\n dataSnapShot(ItemEntry.TABLE_NAME_CART);\n\n ispresent[0]=0;\n\n\n\n\n\n\n\n }", "public void productBarcodeHandler(JSONObject response) {\n try {\n JSONObject productInfo = response.getJSONObject(\"product\");\n JSONArray keywords = productInfo.getJSONArray(\"_keywords\");\n\n String name = productInfo.getString(\"product_name\");\n int resID = R.drawable.food_misc;\n\n for (int i = 0; i < keywords.length(); i++) {\n String keyword = keywords.getString(i);\n\n if (keyword.contains(\" \")) {\n keyword = keyword.replace(\" \", \"_\");\n }\n\n int resource = this.getResources().getIdentifier(\"food_\" + keyword, \"drawable\", this.getPackageName());\n if (resource != 0) {\n resID = resource;\n break;\n }\n }\n\n Intent intent = new Intent(this, ItemEntry.class);\n intent.putExtra(\"FOOD_NAME\", name);\n intent.putExtra(\"FOOD_PIC\", resID);\n startActivity(intent);\n }\n catch (Exception e) {\n Toast.makeText(getApplicationContext(),\"ERROR finding product!\", Toast.LENGTH_LONG).show();\n Log.e(\"UPC Scan Error:\", e.getMessage());\n e.printStackTrace();\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_product);\n name = (TextView) findViewById(R.id.name);\n description = (TextView) findViewById(R.id.description);\n price = (TextView) findViewById(R.id.price);\n brand = (TextView) findViewById(R.id.brand);\n addToCart = (Button) findViewById(R.id.cartItem);\n viewCart = (Button) findViewById(R.id.ViewCart);\n quantity = (ElegantNumberButton) findViewById(R.id.productDetails_number_btn);\n Intent intentThatStartedThisActivity = getIntent();\n if (intentThatStartedThisActivity != null) {\n if (intentThatStartedThisActivity.hasExtra(Intent.EXTRA_TEXT)) {\n details = intentThatStartedThisActivity.getStringExtra(Intent.EXTRA_TEXT);\n String[] tokens = details.split(\"sravya\");\n System.out.println(tokens);\n// mProdDisplay.setText(details);\n name.setText(\"Name : \" + tokens[0]);\n brand.setText(\"Brand : \" + tokens[1]);\n price.setText(tokens[2]);\n description.setText(\"Description : \" + tokens[6]);\n ProductID = tokens[7];\n\n\n imgurl = tokens[4];\n\n Log.d(\"Imageeeeeeeee\", imgurl);\n// new DownloadImage(iv).execute(imgurl);\n }\n }\n addToCart.setOnClickListener(new View.OnClickListener()\n\n {\n @Override\n public void onClick (View v){\n String Name = name.getText().toString();\n String Price = price.getText().toString();\n String Brand = brand.getText().toString();\n String Quantity = quantity.getNumber().toString();\n addingToCartList(Name, Price, Brand, Quantity);\n }\n });\n\n viewCart.setOnClickListener(new View.OnClickListener()\n\n {\n @Override\n public void onClick (View v){\n Intent intent = new Intent(ProductActivity.this, CartActivity.class);\n startActivity(intent);\n }\n });\n}", "public static void createItem() {\n //Initializing an item and putting it in a room airport\n itemLocation.addItem(airport, new PickableItem(\"Bottle\", \"This is a bottle that have been left behind by someone\", 2, false));\n itemLocation.addItem(airport, new PickableItem(\"Boardingpass\", \"This is a boardingpass to get on the plane to Hawaii: 126AB\", 1, false));\n\n //Initializing an item and putting it in a room beach\n itemLocation.addItem(beach, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash \", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(beach, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n itemLocation.addItem(beach, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room jungle\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(jungle, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room mountain\n itemLocation.addItem(mountain, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(mountain, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n itemLocation.addItem(mountain, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n\n //Initializing an item and putting it in a room cave\n itemLocation.addItem(cave, new PickableItem(\"Shroom\", \"these shrooms look suspecius, but maybe the can be\", 1, true));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Waterbottle\", \"This is freshwater found in the jungle, maybe you can drink it\", 2, true));\n itemLocation.addItem(cave, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room camp\n itemLocation.addItem(camp, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(camp, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(camp, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n\n //Initializing an item and putting it in a room seaBottom\n itemLocation.addItem(seaBottom, new PickableItem(\"Backpack\", \"This is a backpack from the plane crash maybe you can use it to carry more items \", 0, false));\n itemLocation.addItem(seaBottom, new PickableItem(\"WaterBottle\", \"This is a water bottle from the plan crash \", 1, true));\n itemLocation.addItem(seaBottom, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash\", 2, false));\n }", "private void updateUI() {\n // Remove all views from shovelsList and BackgroundsList\n // and set the score.\n shovelsList.removeAllViews();\n backgroundsList.removeAllViews();\n shopScoreText.setText(Integer.toString(GameActivity.getScore()));\n\n //Create the list of shovels and backgrounds to buy.\n //Iterate through the list of shovels.\n for (Shovel shovel : SHOVELS) {\n //Setup all necessary parts of the item UI.\n View shovelChunk = getLayoutInflater()\n .inflate(R.layout.chunk_shop_item,\n shovelsList, false);\n TextView itemName = shovelChunk.findViewById(R.id.itemName);\n TextView itemDescription = shovelChunk\n .findViewById(R.id.itemDescription);\n Button buyButton = shovelChunk.findViewById(R.id.buyButton);\n\n //Set the text of the textViews and the button.\n //Set button onClickListeners.\n itemName.setText(shovel.getName());\n itemDescription.setText(shovel.getDescription());\n if (shovel.getState() == ItemStatusID.FORSALE) {\n buyButton.setText(Integer.toString(shovel.getPrice()));\n buyButton.setOnClickListener(unused ->\n buyButtonClicked(shovel));\n } else if (shovel.getState() == ItemStatusID.BOUGHT) {\n buyButton.setText(\"Equip\");\n buyButton.setOnClickListener(unused ->\n equipButtonClicked(shovel));\n } else if (shovel.getState() == ItemStatusID.EQUIPPED) {\n buyButton.setText(\"In Use\");\n //Set the current shovel power.\n currentShovel = shovel;\n }\n\n //Add the shovelChunk to the shovelsList.\n shovelsList.addView(shovelChunk);\n }\n //Iterate through the list of backgrounds.\n for (Background background : BACKGROUNDS) {\n View backgroundChunk = getLayoutInflater()\n .inflate(R.layout.chunk_shop_item,\n backgroundsList, false);\n TextView itemName = backgroundChunk.findViewById(R.id.itemName);\n TextView itemDescription = backgroundChunk\n .findViewById(R.id.itemDescription);\n Button buyButton = backgroundChunk.findViewById(R.id.buyButton);\n\n //Set the text of the textViews and the button.\n //Set button onClickListeners.\n itemName.setText(background.getName());\n itemDescription.setText(background.getDescription());\n if (background.getState() == ItemStatusID.FORSALE) {\n buyButton.setText(Integer.toString(background.getPrice()));\n buyButton.setOnClickListener(unused ->\n buyButtonClicked(background));\n } else if (background.getState() == ItemStatusID.BOUGHT) {\n buyButton.setText(\"Equip\");\n buyButton.setOnClickListener(unused ->\n equipButtonClicked(background));\n } else if (background.getState() == ItemStatusID.EQUIPPED) {\n buyButton.setText(\"In Use\");\n //Set the current background resource file.\n currentBackground = background;\n }\n\n //Add the background chunk to the backgroundsList.\n backgroundsList.addView(backgroundChunk);\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_saved_soccer_games);\n\n //Get the fields from the screen:\n TextView saveTitle = (TextView) findViewById(R.id.savedTitle);\n TextView saveDate = (TextView) findViewById(R.id.savedDate);\n TextView saveDescription = (TextView) findViewById(R.id.savedDescription);\n TextView saveLink = (TextView) findViewById(R.id.savedLink);\n ImageButton readSavedBtn = findViewById(R.id.readSavedBtn);\n\n ImageButton removeBtn = findViewById(R.id.removeBtn);\n ListView theSavedList = (ListView)findViewById(R.id.theSavedListView);\n imgView = (ImageView)findViewById(R.id.savedImage);\n imgView.setImageResource(R.drawable.soccerdefault);\n\n mySavedAdapter = new MyOwnAdapter();\n theSavedList.setAdapter(mySavedAdapter);\n\n // click the selected item to show details of the item.\n theSavedList.setOnItemClickListener((p, b, pos, id) -> {\n Item selectedItem = savedItems.get(pos);\n String getTitle = selectedItem.getTitle();\n String getDate = selectedItem.getDate();\n String getImage = selectedItem.getImage();\n String getDescription = selectedItem.getDescription();\n String getLink = selectedItem.getUrl();\n\n ImageRequest imageReq=new ImageRequest();\n imageReq.execute(getImage);\n\n saveTitle.setText(getTitle);\n saveDate.setText(getDate);\n saveDescription.setText(getDescription);\n saveLink.setText(getLink);\n\n readSavedBtn.setOnClickListener(click -> {\n Intent intent=new Intent();\n intent.setData(Uri.parse(getLink));\n intent.setAction(Intent.ACTION_VIEW);\n startActivity(intent);\n });\n\n // When clicking the remove button, the item is removed from the database.\n removeBtn.setOnClickListener(click -> {\n AlertDialog.Builder builder = new AlertDialog.Builder(SavedSoccerGames.this);\n View view = LayoutInflater.from(SavedSoccerGames.this).inflate(R.layout.soccer_dialog, null);\n\n TextView dialogTitle = (TextView) view.findViewById(R.id.dialogTitle);\n ImageButton dialogBtn = view.findViewById(R.id.dialogBtn);\n TextView dialogContent = (TextView) view.findViewById(R.id.dialogContent);\n\n dialogTitle.setText(\"Delete this news?\");\n dialogBtn.setImageResource(R.drawable.remove);\n dialogContent.setText(\"The selected news is: \" + pos + \"\\n\" + \"The database id id: \" + id);\n\n builder.setPositiveButton(\"Yes\", (e, arg) -> {\n deleteItem(selectedItem);\n savedItems.remove(pos);\n mySavedAdapter.notifyDataSetChanged();\n saveTitle.setText(\"\");\n saveDate.setText(\"\");\n saveDescription.setText(\"\");\n saveLink.setText(\"\");\n imgView.setImageBitmap(null);\n\n Snackbar snackbar= Snackbar.make(findViewById(R.id.savedLayout), \"The selected news is already deleted.\", Snackbar.LENGTH_SHORT);\n snackbar.show();\n });\n\n builder.setNegativeButton(\"No\", (e, arg) -> { });\n builder.setView(view);\n builder.show();\n });\n\n });\n\n loadDataFromDatabase(); //get any previously saved Contact objects\n }", "public static Items initialVendingMachine() {\n Items items = new Items();\n Item cola = new Item(R.drawable.cola, \"Cola\", 30, 100, 3000, 0);\n Item chips = new Item(R.drawable.chips, \"Chips\", 30, 50, 3000, 0);\n Item candy = new Item(R.drawable.candy, \"Candy\", 30, 65, 3000, 0);\n items.addItem(cola);\n items.addItem(chips);\n items.addItem(candy);\n items.addMachineCredit(5000);\n return items;\n }", "@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n final MoneyTrackerItem productItem=parkingList.get(position);\n\n ViewHolder holder = null;\n LayoutInflater inflater = (LayoutInflater) activity\n .getSystemService(Activity.LAYOUT_INFLATER_SERVICE);\n // If holder not exist then locate all view from UI file.\n if (convertView == null) {\n\n // inflate UI from XML file\n convertView = inflater.inflate(R.layout.money_tracker_list_item, parent, false);\n // get all UI view\n holder = new ViewHolder(convertView);\n // set tag for holder\n convertView.setTag(holder);\n\n\n } else {\n // if holder created, get tag from view\n holder = (ViewHolder) convertView.getTag();\n }\n\n /* productItem = parkingList.get(position);\n Log.e(\"book\",\"\"+book);*/\n\n holder.clinicName.setText(productItem.getClinicName());\n Log.e(\"packageName\",\"\"+productItem.getClinicName());\n holder.clinicName.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\"Fonts/Roboto-Regular.ttf\"));\n\n holder.totalAmount.setText(\"Total Amount : \"+productItem.getAmount()+\" Rs/-\");\n //holder.actulPrice.setPaintFlags(holder.actulPrice.getPaintFlags()| Paint.STRIKE_THRU_TEXT_FLAG);\n holder.totalAmount.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\"Fonts/Roboto-Light.ttf\"));\n\n holder.online.setText(productItem.getOnline());\n holder.online.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\"Fonts/Roboto-Light.ttf\"));\n\n holder.offline.setText(productItem.getOffline());\n holder.offline.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\"Fonts/Roboto-Light.ttf\"));\n\n holder.patients.setText(productItem.getPatients());\n holder.patients.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\"Fonts/Roboto-Light.ttf\"));\n\n\n return convertView;\n }", "public static Item generate(){\n\n //this method lists a collection of new items. it then uses a random number generator\n //to pick one of the objects, and then returns the object so that the main method\n //can add it to the inventory.\n\n ItemType weapon = ItemType.weapon;\n Item IronSword = new Item(weapon, \"Iron Sword\", 8, 50, 10);\n Item GoldenSword = new Item(weapon, \"Golden Sword\", 10, 75, 15);\n Item AllumSword = new Item(weapon, \"Alluminum Sword\", 6, 35, 8);\n Item BowandQuiver = new Item(weapon, \"Bow & Quiver\", 4, 45, 7);\n Item BattleAxe = new Item(weapon, \"Battle Axe\", 12, 55, 13);\n\n ItemType armor = ItemType.armor;\n Item ChainChest = new Item(armor, \"Chain Mail Chestplate\", 8, 40, 30);\n Item IronChest = new Item(armor, \"Iron Chestplate\", 10, 50, 40);\n Item GoldenChest = new Item(armor, \"Golden Chestplate\", 12, 65, 50);\n Item ChainPants = new Item(armor, \"Chain Mail Pants\", 7, 40, 30);\n Item IronPants = new Item(armor, \"Iron Pants\", 9, 50, 40);\n Item GoldenPants = new Item(armor, \"Golden Pants\", 11, 65, 50);\n Item Helmet = new Item(armor, \"Helmet\", 5, 40, 20);\n\n ItemType other = ItemType.other;\n Item Bandage = new Item(other, \"Bandage\", 1, 2, 0);\n Item Wrench = new Item(other, \"Wrench\", 3, 10, 5);\n Item Bread = new Item(other, \"Bread Loaf\", 2, 4, 0);\n Item Water = new Item(other, \"Water Flask\", 3, 2, 0);\n\n Item Initializer = new Item(other, \"init\", 0, 0, 0);\n\t\tint ItemPick = RandomNum();\n Item chosen = Initializer;\n\n switch (ItemPick){\n case 1:\n chosen = IronSword;\n break;\n case 2:\n chosen = GoldenSword;\n break;\n case 3:\n chosen = AllumSword;\n break;\n case 4:\n chosen = BowandQuiver;\n break;\n case 5:\n chosen = BattleAxe;\n break;\n case 6:\n chosen = ChainChest;\n break;\n case 7:\n chosen = IronChest;\n break;\n case 8:\n chosen = GoldenChest;\n break;\n case 9:\n chosen = ChainPants;\n break;\n\t\t\t case 10:\n chosen = IronPants ;\n break;\n case 11:\n chosen = GoldenPants;\n break;\n case 12:\n chosen = Helmet;\n break;\n case 13:\n chosen = Bandage;\n break;\n case 14:\n chosen = Wrench;\n break;\n case 15:\n chosen = Bread;\n break;\n case 16:\n chosen = Water;\n break;\n }\n\n return chosen;\n }", "public MyHolder(View itemView) {\n super(itemView);\n item = itemView.findViewById(R.id.item);\n noofpices = itemView.findViewById(R.id.noofpices);\n cost = itemView.findViewById(R.id.cost);\n amount = itemView.findViewById(R.id.total);\n plus = itemView.findViewById(R.id.plus);\n// minus = (ImageButton)itemView.findViewById(R.id.minus);\n delete = itemView.findViewById(R.id.del);\n\n // id= (TextView)itemView.findViewById(R.id.id);\n }", "void addGroceryItem(String item) {\n\n\t}", "void createSportItem (String name, String description, double price, String sportType);", "public InventoryItem(){\r\n this.itemName = \"TBD\";\r\n this.sku = 0;\r\n this.price = 0.0;\r\n this.quantity = 0;\r\n nItems++;\r\n }", "@Override\n public void onItemClick(int position, View v) {\n\n if (position == 0) {\n Intent intent = new Intent(getActivity(), Adorama.class);\n startActivity(intent);\n\n }\n\n if (position == 1) {\n Intent intent = new Intent(getActivity(), Apple.class);\n startActivity(intent);\n\n }\n\n if (position == 2) {\n Intent intent = new Intent(getActivity(), Craig.class);\n startActivity(intent);\n\n }\n\n if (position == 3) {\n Intent intent = new Intent(getActivity(), Frys.class);\n startActivity(intent);\n\n }\n\n if (position == 4) {\n Intent intent = new Intent(getActivity(), Rakuten.class);\n startActivity(intent);\n\n }\n\n if (position == 5) {\n Intent intent = new Intent(getActivity(), Sears.class);\n startActivity(intent);\n\n }\n\n if (position == 6) {\n Intent intent = new Intent(getActivity(), Tiger.class);\n startActivity(intent);\n\n }\n\n if (position == 7) {\n Intent intent = new Intent(getActivity(), Woot.class);\n startActivity(intent);\n\n }\n\n\n if (position == 8) {\n Intent intent = new Intent(getActivity(), Sony.class);\n startActivity(intent);\n\n }\n\n\n\n }", "private void prepareAlbums() {\n\n UserMiniCardClass a = new UserMiniCardClass(R.string.cardTitleNews1);\n list.add(a);\n\n a = new UserMiniCardClass(R.string.cardTitleNews2);\n list.add(a);\n\n a = new UserMiniCardClass(R.string.cardTitleNews3);\n list.add(a);\n\n a = new UserMiniCardClass(R.string.cardTitleNews4);\n list.add(a);\n\n a = new UserMiniCardClass(R.string.cardTitleNews5);\n list.add(a);\n\n a = new UserMiniCardClass(R.string.cardTitleNews6);\n list.add(a);\n\n adapter.notifyDataSetChanged();\n\n\n adapter.setOnItemClickListener(new UserMiniCardAdapter.onItemClickListener() {\n @Override\n public void onItemClick(View view, int position) {\n // albumList.get(position);\n //Toast.makeText(MainActivity.this, \"You Clicked \", Toast.LENGTH_SHORT).show();\n if (position == 0) {\n Uri webpage = Uri.parse(\"https://akhbarelyom.com/\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n\n } else if (position == 1) {\n Uri webpage = Uri.parse(\"https://www.youm7.com/\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n\n } else if (position == 2) {\n Uri webpage = Uri.parse(\"http://www.akhbarak.net/\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n\n } else if (position == 3) {\n Uri webpage = Uri.parse(\"https://www.shorouknews.com/\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n\n } else if (position == 4) {\n Uri webpage = Uri.parse(\"http://www.ahram.org.eg/\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n } else if (position == 5) {\n Uri webpage = Uri.parse(\"http://www.algomhuria.net.eg/algomhuria/today/fpage/\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n\n }\n\n }\n });\n\n }", "public void listImage() {\r\n\t\tGlobalValue.listFlags = new ArrayList<Integer>();\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_noname);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_brazil);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_croatia);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_mexico);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_cameroon);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_spain);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_netherland);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_chile);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_australia);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_colombia);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_ivory_coast);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_japan);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_greece);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_uruguay);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_costa_rica);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_england);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_italy);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_switzerland);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_ecuador);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_honduras);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_france);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_argentina);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_bosnia);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_iran);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_nigeria);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_germany);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_portugal);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_ghana);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_usa);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_belgium);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_algeria);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_russia);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_korea);\r\n\t\tGlobalValue.listFlags.add(R.drawable.icon_noname);\r\n\t}", "public FinalMysteryItem() {\n int randomIndex = new Random().nextInt(7);\n item = new Item(listOfPossibleNames[randomIndex], PRICE_TO_BUY);\n }", "public ArrayList<GameItemSingle> getCasualGameWhitPackageID(){\n\n ArrayList<GameItemSingle> data=new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \"+DATABASE_TABLE_SINGLE_PAGE + \" WHERE _type LIKE \" + \" '%casual_games%'\"+ \" AND acf_android_app_url LIKE 'c%'\" +\n \" ;\",null);\n StringBuffer stringBuffer = new StringBuffer();\n GameItemSingle singlePageItem = null;\n while (cursor.moveToNext()) {\n\n singlePageItem= new GameItemSingle();\n String id = cursor.getString(cursor.getColumnIndexOrThrow(\"id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title_rendered\"));\n String content = cursor.getString(cursor.getColumnIndexOrThrow(\"content_rendered\"));\n String date = cursor.getString(cursor.getColumnIndexOrThrow(\"date\"));\n String app_icon= cursor.getString(cursor.getColumnIndexOrThrow(\"app_icon_image\"));\n singlePageItem.setTitle_rendered(title);\n singlePageItem.setContent_rendered(content);\n singlePageItem.set_date(date);\n singlePageItem.setApp_icon(app_icon);\n singlePageItem.set_id(id);\n\n stringBuffer.append(singlePageItem);\n data.add(singlePageItem);\n }\n\n\n return data;\n }", "public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}", "public void a() {\n this.f25458d.a(this.f25457c);\n this.f25457c.a(this);\n Context context = getContext();\n LinearLayout linearLayout = new LinearLayout(context);\n linearLayout.setOrientation(1);\n addView(linearLayout, new ViewGroup.LayoutParams(-1, -2));\n d a2 = ShopAssistantItemView_.a(context);\n a2.a(R.drawable.ic_myproducts, R.string.sp_my_products, 0);\n a2.setTag(\"PRODUCT\");\n a2.setMinimumHeight(this.f25455a);\n linearLayout.addView(a2, new FrameLayout.LayoutParams(-1, -2));\n d a3 = ShopAssistantItemView_.a(context);\n a3.a(R.drawable.ic_mycustomers, R.string.sp_my_customers, 2);\n linearLayout.addView(a3, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a4 = ShopAssistantItemView_.a(context);\n a4.a(R.drawable.ic_shopprofile, R.string.sp_label_shop_profile, 6);\n linearLayout.addView(a4, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a5 = ShopAssistantItemView_.a(context);\n a5.a(R.drawable.img_shopsettings, R.string.sp_shop_settings, 4);\n linearLayout.addView(a5, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a6 = ShopAssistantItemView_.a(context);\n a6.a(R.drawable.ic_categories, R.string.sp_my_shop_categories, 8);\n a6.setSubtitle(this.f25461g.getCategoriesPath());\n linearLayout.addView(a6, new FrameLayout.LayoutParams(-1, this.f25455a));\n View view = new View(context);\n view.setBackgroundColor(b.a(R.color.background));\n linearLayout.addView(view, new FrameLayout.LayoutParams(-1, b.a.k));\n View view2 = new View(context);\n view2.setBackgroundColor(com.garena.android.appkit.tools.b.a(R.color.black06));\n linearLayout.addView(view2, new FrameLayout.LayoutParams(-1, b.a.f7690a));\n View inflate = ((LayoutInflater) context.getSystemService(\"layout_inflater\")).inflate(R.layout.seller_center, (ViewGroup) null);\n ((TextView) inflate.findViewById(R.id.url)).setText(\"http://seller\" + i.f7042e);\n int b2 = com.garena.android.appkit.tools.b.b() - b.a.m;\n w.a(getContext()).a((int) R.drawable.sellercentre_banner).b(b2, (int) (((float) b2) / 1.886f)).e().f().a((ImageView) inflate.findViewById(R.id.banner));\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);\n inflate.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.this.f25459e.V();\n }\n });\n linearLayout.addView(inflate, layoutParams);\n this.f25457c.e();\n this.f25457c.f();\n }", "public void addToBagList(int position) {\n Club club = clubList.get(position);\n String name = club.getName();\n String description = club.getDescription();\n int image = club.getImage();\n Intent intent = new Intent(ClubList.this, MainActivity.class);\n intent.putExtra(AddClub.NAME, name);\n intent.putExtra(AddClub.DESCRIPTION, description);\n intent.putExtra(AddClub.IMAGE, image);\n startActivity(intent);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) \n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.highprice);\n\t\t\n\t\tlistView=(ListView) findViewById(R.id.listview_highprice);\n\t\t\n\t\t//定义发送请求的URL\n\t\tString url=HttpUtil.BASE_URL+\"highprice\";\n\t\ttry {\n\t\t\t\tJSONArray jsonArray=new JSONArray(HttpUtil.getRequest(url));\n\t\t\t\tSystem.out.println(jsonArray);\n\t\t\t\tString[] no=new String[jsonArray.length()];\n\t\t\t\tString[] name=new String[jsonArray.length()];\n\t\t\t\tString[] desc=new String[jsonArray.length()];\n\t\t\t\tString[] highprice=new String[jsonArray.length()];\n\t\t\t\tfor(int i=0;i<jsonArray.length();i++)\n\t\t\t\t{\n\t\t\t\t\tJSONObject obj = jsonArray.getJSONObject(i);\n\t\t\t\t\tNo=obj.getString(\"商品编号\");\n\t\t\t\t\tno[i]=No;\n\t\t\t\t\tName=obj.getString(\"商品名称\");\n\t\t\t\t\tname[i]=Name;\n\t\t\t\t\tDesc=obj.getString(\"商品描述\");\n\t\t\t\t\tdesc[i]=Desc;\n\t\t\t\t\tHighprice=obj.getString(\"商品当前最高出价\");\n\t\t\t\t\thighprice[i]=Highprice;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(name.length);\n\t\t\t\tfor (int i = 0; i < name.length; i++) \n\t\t\t\t{\n\t\t\t\t\tMap<String, Object> listItem = new HashMap<String, Object>();\n\t\t\t\t\tlistItem.put(\"img\", imageIds[i]);\n\t\t\t\t\tlistItem.put(\"name\", \"商品名称:\"+name[i]);\n\t\t\t\t\tlistItem.put(\"info\", \"商品描述:\"+desc[i]);\n\t\t\t\t\tlistItem.put(\"highprice\",\"商品当前最高出价¥:\"+highprice[i]);\n\t\t\t\t\tlistItems.add(listItem);\n\t\t\t\t}\n\t\n\t\t\t\t// 创建一个SimpleAdapter\n\t\t\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(this, listItems,\n\t\t\t\t\t\tR.layout.showhighprice, new String[] { \"no\",\"name\", \"info\",\"highprice\",\"img\"},\n\t\t\t\t\t\tnew int[] {R.id.highpriceno, R.id.highpricename, R.id.highpriceinfo,R.id.highprice,\n\t\t\t\t\t\tR.id.highpriceimg});\n\t\t\t\t\n\t\t\t\t// 为ListView设置Adapter\n\t\t\t\tlistView.setAdapter(simpleAdapter);\n\t\t} \n\t\tcatch (JSONException e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private ShopItem ShoppingItem(int type, int money, boolean isBuy) {\n final int RINGMINPRICE = 250;\n final int ITEMMINPRICE = 6;\n String name;\n int price;\n Image icon;\n price = (int) (ITEMMINPRICE * (8.7 + rd.nextDouble()));\n switch (type) {\n case 0:\n name = \"Armour\";\n icon = armourImage;\n break;\n case 1:\n name = \"Helmet\";\n icon = helmetImage;\n break;\n case 2:\n name = \"Potion\";\n icon = potionImage;\n break;\n case 3:\n name = \"Shield\";\n icon = shieldImage;\n break;\n case 4:\n name = \"Stake\";\n icon = stakeImage;\n break;\n case 5:\n name = \"Sword\";\n icon = swordImage;\n break;\n case 6:\n name = \"Staff\";\n icon = staffImage;\n break;\n default:\n name = \"TheOneRing\";\n price = Math.max(RINGMINPRICE, (int) (money * 0.8 + rd.nextDouble() * money * 0.2));\n icon = theOneRingImage;\n }\n if (!isBuy) {\n price *= 0.4;\n }\n return new ShopItem(name, price, icon);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (position == SPEN_HELLOPEN) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample1_1_HelloPen.class);\n startActivity(intent);\n } else if (position == SPEN_PENSETTING) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample1_2_PenSetting.class);\n startActivity(intent);\n } else if (position == SPEN_ERASERSETTING) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample1_3_EraserSetting.class);\n startActivity(intent);\n } else if (position == SPEN_UNDOREDO) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample1_4_UndoRedo.class);\n startActivity(intent);\n } else if (position == SPEN_BACKGROUND) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample1_5_Background.class);\n startActivity(intent);\n } else if (position == SPEN_CAPTURE) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample1_6_Capture.class);\n startActivity(intent);\n } else if (position == SPEN_STROKEOBJECT) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample2_1_StrokeObject.class);\n startActivity(intent);\n } else if (position == SPEN_SAVEFILE) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample2_2_SaveFile.class);\n startActivity(intent);\n } else if (position == SPEN_LOADFILE) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample2_3_LoadFile.class);\n startActivity(intent);\n } else if (position == SPEN_ADDPAGE) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample2_4_AddPage.class);\n startActivity(intent);\n } else if (position == SPEN_SELECTIONSETTING) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample3_1_SelectionSetting.class);\n startActivity(intent);\n } else if (position == SPEN_MOVEOBJECT) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample3_2_ChangeObjectOrder.class);\n startActivity(intent);\n } else if (position == SPEN_SIMPLEVIEW) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample4_1_SimpleView.class);\n startActivity(intent);\n } else if (position == SPEN_ONLYPEN) {\n Intent intent = new Intent(Spen_Light_ProgramGuide.this, PenSample4_2_OnlyPen.class);\n startActivity(intent);\n }\n }", "private List<FreeShopProduct> getProductList() {\n\n productList = new ArrayList<>();\n productList.add(new FreeShopProduct(R.drawable.db_school_small, getResources().getString(R.string.shopItem0)));\n productList.add(new FreeShopProduct(R.drawable.db_clothes_small, getResources().getString(R.string.shopItem1)));\n productList.add(new FreeShopProduct(R.drawable.db_emotions_small, getResources().getString(R.string.shopItem2)));\n productList.add(new FreeShopProduct(R.drawable.db_etiquette_small, getResources().getString(R.string.shopItem3)));\n productList.add(new FreeShopProduct(R.drawable.db_landforms_small, getResources().getString(R.string.shopItem4)));\n productList.add(new FreeShopProduct(R.drawable.db_fruits_small, getResources().getString(R.string.shopItem5)));\n productList.add(new FreeShopProduct(R.drawable.db_kingdom_small, getResources().getString(R.string.shopItem6)));\n productList.add(new FreeShopProduct(R.drawable.db_outerspace_small, getResources().getString(R.string.shopItem7)));\n productList.add(new FreeShopProduct(R.drawable.db_festival_small, getResources().getString(R.string.shopItem8)));\n productList.add(new FreeShopProduct(R.drawable.db_music_small, getResources().getString(R.string.shopItem9)));\n\n return productList;\n }", "@SideOnly(Side.CLIENT)\n/* */ public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List, boolean par4) {\n/* 59 */ if (GuiScreen.isShiftKeyDown()) {\n/* 60 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome1.lore\"));\n/* 61 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome2.lore\"));\n/* 62 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome3.lore\"));\n/* 63 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 64 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome4.lore\"));\n/* 65 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome5.lore\"));\n/* 66 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 67 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome6.lore\"));\n/* 68 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome7.lore\"));\n/* 69 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome8.lore\"));\n/* 70 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 71 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome9.lore\"));\n/* 72 */ } else if (GuiScreen.isCtrlKeyDown()) {\n/* 73 */ par3List.add(StatCollector.translateToLocal(\"item.FRVisPerSecond.lore\"));\n/* 74 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRAerCost.lore\") + (AerCost / 100.0D * 10.0D));\n/* 75 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRTerraCost.lore\") + (TerraCost / 100.0D * 10.0D));\n/* 76 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRIgnisCost.lore\") + (IgnisCost / 100.0D * 10.0D));\n/* 77 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRPerditioCost.lore\") + (PerditioCost / 100.0D * 10.0D));\n/* */ } else {\n/* */ \n/* 80 */ par3List.add(StatCollector.translateToLocal(\"item.FRShiftTooltip.lore\"));\n/* 81 */ par3List.add(StatCollector.translateToLocal(\"item.FRViscostTooltip.lore\"));\n/* */ } \n/* */ \n/* 84 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* */ }", "public String getDescription() {return \"Use an item in your inventory\"; }", "private void prepareRestaurants() {\n int[] covers = new int[]{\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher,\n R.mipmap.ic_launcher};\n\n Restaurant a = new Restaurant(1,\"Restaurant One\",\"Delhi11\",covers[0]);\n restaurantList.add(a);\n\n a = new Restaurant(2,\"Restaurant One\",\"Delhi2\",covers[0]);\n restaurantList.add(a);\n\n a = new Restaurant(3,\"Restaurant One\",\"Delh3i\",covers[0]);\n restaurantList.add(a);\n\n a = new Restaurant(4,\"Restaurant One\",\"Delh4i\",covers[0]);\n restaurantList.add(a);\n\n a = new Restaurant(5,\"Restaurant One\",\"Delhi5\",covers[0]);\n restaurantList.add(a);\n\n a = new Restaurant(1,\"Restaurant One\",\"Delhi6\",covers[0]);\n restaurantList.add(a);\n\n a = new Restaurant(1,\"Restaurant One\",\"Delhi7\",covers[0]);\n restaurantList.add(a);\n\n a = new Restaurant(1,\"Restaurant One\",\"Delhi8\",covers[0]);\n restaurantList.add(a);\n\n a = new Restaurant(1,\"Restaurant One\",\"Delhi9\",covers[0]);\n restaurantList.add(a);\n\n a = new Restaurant(1,\"Restaurant One\",\"Delhi10\",covers[0]);\n restaurantList.add(a);\n\n adapter.notifyDataSetChanged();\n }", "@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinventory = papplier.getInventory();\r\n\t\t\t\t// inven.put(papplier, pinventory);\r\n\t\t\t\tItemStack item = e.getCurrentItem();\r\n\t\t\t\tItemStack transmog = e.getCursor();\r\n\t\t\t\tString tname = \"\";\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tItemMeta itemMeta = item.getItemMeta();\r\n\t\t\t\t\tArrayList<String> lore1 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore2 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore3 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore4 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore5 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore6 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore7 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> totallore = new ArrayList<String>();\r\n\t\t\t\t\tif (item.getType() != Material.AIR) {\r\n\t\t\t\t\t\t// papplier.sendMessage(\"1\");\r\n\t\t\t\t\t\tif (transmog != null) {\r\n\t\t\t\t\t\t\t// papplier.sendMessage(\"2\");\r\n\t\t\t\t\t\t\tif (item.getType().name().endsWith(\"SWORD\") || item.getType().name().endsWith(\"AXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HELMET\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"SHOVEL\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"CHESTPLATE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"LEGGINGS\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"BOOTS\") || item.getType().name().endsWith(\"BOW\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"PICKAXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HOE\")) {\r\n\t\t\t\t\t\t\t\t// papplier.sendMessage(\"3\");\r\n\t\t\t\t\t\t\t\tif (item.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"4\");\r\n\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"5\");\r\n\t\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"6\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"7\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(Api.transint(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t// + \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tdname.put(item, item.getItemMeta().getDisplayName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tI.put(papplier, Methods.transint(item));\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"8\");\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"9\");\r\n\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"10\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"11\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"12\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"13\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"14\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"15\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"17\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanted.put(titem, false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = \"&a\" + item.getType().name()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"21\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tString dname1 = dname.get(item).replace(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(\"&d&l[&b&l&n\" + I.get(papplier) + \"&d&l]\"), \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"22\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"23\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"24\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"25\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"26\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"27\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"28\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = dname1 + \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public View getView(int position, View view, ViewGroup viewGroup) {\n\n View vi = view;\n final int pos = position;\n if (vi == null) {\n\n viewHolder = new ViewHolder();\n\n vi = layoutInflater.inflate(R.layout.cart_new, null);\n viewHolder.imageview = (ImageView) vi.findViewById(R.id.imageView);\n viewHolder.cropname = (TextView) vi.findViewById(R.id.cropname);\n viewHolder.cropPrice = (TextView) vi.findViewById(R.id.cropPrice);\n viewHolder.cropQuantity = (TextView) vi.findViewById(R.id.cropQuantity);\n\n vi.setTag(viewHolder);\n } else {\n\n viewHolder = (ViewHolder) vi.getTag();\n }\n viewHolder.cropname.setText(cartArrayList.get(pos).getName());\n viewHolder.cropQuantity.setText(\"Quantity : \" + cartArrayList.get(pos).getQuantity());\n viewHolder.cropPrice.setText(\"Price : \" + cartArrayList.get(pos).getPrice());\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"wheat\")==0)\n viewHolder.imageview.setImageResource(R.drawable.wheat);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"dal\")==0)\n viewHolder.imageview.setImageResource(R.drawable.dal);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"sugarcane\")==0)\n viewHolder.imageview.setImageResource(R.drawable.sugarcane);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"rice\")==0)\n viewHolder.imageview.setImageResource(R.drawable.rice);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"corn\")==0)\n viewHolder.imageview.setImageResource(R.drawable.corn);\n\n\n\n\n return vi;\n }", "@Override\n public void bindView(View view, final Context context, final Cursor cursor) {\n TextView nameTextView = (TextView) view.findViewById(R.id.name);\n TextView priceTextView = (TextView) view.findViewById(R.id.price);\n TextView quantTextView = (TextView) view.findViewById(R.id.quantity_edit);\n ImageView orderImageView = (ImageView) view.findViewById(R.id.order);\n ImageView itemImageView = (ImageView) view.findViewById(R.id.itemPic);\n\n itemImageView.setImageURI(Uri.parse(cursor.getString(cursor.getColumnIndex(ItemEntry.COLUMN_IMAGE))));\n\n final int position = cursor.getPosition();\n\n orderImageView.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n cursor.moveToPosition(position);\n int itemColumnIndex = cursor.getColumnIndex(ItemEntry._ID);\n final long itemId = cursor.getLong(itemColumnIndex);\n Uri mCurrentItemUri = ContentUris.withAppendedId(ItemEntry.CONTENT_URI, itemId);\n int quantColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_QUANTITY);\n String itemQuant = cursor.getString(quantColumnIndex);\n int currentQuant = Integer.parseInt(itemQuant);\n\n if(currentQuant >0) {\n\n currentQuant--;\n\n ContentValues values = new ContentValues();\n values.put(ItemEntry.COLUMN_ITEM_QUANTITY, currentQuant);\n\n int tabUpdate = context.getContentResolver().update(mCurrentItemUri, values, null, null);\n\n } else {\n Toast.makeText(context, \"Out of stock\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n int nameColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_NAME);\n final int priceColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_PRICE);\n final int quantColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_QUANTITY);\n int imgColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_IMAGE);\n\n String itemName = cursor.getString(nameColumnIndex);\n String itemPrice = \"$\" + cursor.getString(priceColumnIndex);\n String itemQuant = cursor.getString(quantColumnIndex);\n String itemImg = cursor.getString(imgColumnIndex);\n\n if (TextUtils.isEmpty(itemPrice)) {\n itemPrice = context.getString(R.string.unknown_price);\n }\n nameTextView.setText(itemName);\n priceTextView.setText(itemPrice);\n quantTextView.setText(itemQuant);\n itemImageView.setImageURI(Uri.parse(itemImg));\n\n }", "@Override\n public String getItemName() {\n\treturn \"Goblin Sword\";\n }", "public Kit(String name, List<String> itemData) {\n for(String metadata : itemData) {\n if(metadata.contains(\":\")) {\n String[] data = metadata.split(\":\"); \n // Split a line of text that says \"DIAMOND_SWORD:1\" into new String[] { \"DIAMOND_SWORD\", \"1\" };\n items.add(new ItemStack(\n Material.getMaterial(data[0].toUpperCase()), // Item name\n Integer.parseInt(data[1]) // Item quantity\n ));\n }\n }\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.seller_product_layout, parent, false);\n }\n\n //Find the item at the given position in the list of items\n Item currentItem = (Item) getItem(position);\n\n ImageView image = (ImageView) listItemView.findViewById(R.id.image);\n\n if(image!=null){\n Glide.with(getContext()).load(currentItem.getmImageUrl()).into(image);\n }\n\n TextView type = (TextView) listItemView.findViewById(R.id.type_seller);\n type.setText(currentItem.getType());\n\n TextView pricepd = (TextView) listItemView.findViewById(R.id.ppd);\n pricepd.setText(String.valueOf(currentItem.getPayPerDay()));\n\n TextView deposit = (TextView) listItemView.findViewById(R.id.deposit);\n deposit.setText(String.valueOf(currentItem.getDeposit()));\n\n TextView description = (TextView) listItemView.findViewById(R.id.description);\n description.setText(String.valueOf(currentItem.getProductinfo()));\n\n TextView fromdate = (TextView) listItemView.findViewById(R.id.fromdate);\n fromdate.setText(String.valueOf(currentItem.getFromdate()));\n\n TextView todate = (TextView) listItemView.findViewById(R.id.todate);\n todate.setText(String.valueOf(currentItem.getTodate()));\n\n// TextView rating = (TextView) listItemView.findViewById(R.id.rating);\n// if(rating!=null){\n// rating.setText(currentItem.getType());\n// }\n\n //Return the list item view that is now showing the appropriate data\n return listItemView;\n\n }", "public void addGroceryItem(String item){\n groceryList.add(item);\n }", "public ArrayList<GameItemSingle> getColoringPagesData(){\n\n ArrayList<GameItemSingle> data=new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \"+DATABASE_TABLE_SINGLE_PAGE+ \" WHERE _type LIKE \" + \" '%coloring_pages%'\"+ \" ;\",null);\n StringBuffer stringBuffer = new StringBuffer();\n GameItemSingle singlePageItem = null;\n while (cursor.moveToNext()) {\n\n singlePageItem= new GameItemSingle();\n String id = cursor.getString(cursor.getColumnIndexOrThrow(\"id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title_rendered\"));\n String content = cursor.getString(cursor.getColumnIndexOrThrow(\"content_rendered\"));\n String date = cursor.getString(cursor.getColumnIndexOrThrow(\"date\"));\n String app_icon= cursor.getString(cursor.getColumnIndexOrThrow(\"app_icon_image\"));\n ;\n\n singlePageItem.setTitle_rendered(title);\n singlePageItem.setContent_rendered(content);\n singlePageItem.set_date(date);\n singlePageItem.setApp_icon(app_icon);\n singlePageItem.set_id(id);\n\n stringBuffer.append(singlePageItem);\n data.add(singlePageItem);\n }\n\n return data;\n }", "private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }", "@Override\n public void onClick(View view) {\n int tempQty = Integer.parseInt(itemQty.getText().toString());\n if(tempQty > 0)\n {\n tempQty = tempQty - 1;\n itemQty.setText(String.valueOf(tempQty));\n }\n //get quantity\n int fillQuantity = Integer.parseInt(itemQty.getText().toString());\n //Create SaleItem\n SaleItem tempSaleItem = new SaleItem(fillName, fillQuantity, fillPrice, fillIngArr);\n //Update SaleItems Array\n saleItems.set(position, tempSaleItem);\n updateTotal();\n }", "public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean smt) {\n/* 122 */ int standID = getStandID(stack);\n/* 123 */ if (standID == 0) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 128 */ int standAct = getStandACT(stack);\n/* 129 */ int standExp = getStandEXP(stack);\n/* */ \n/* 131 */ String standName = getStandNAME(stack);\n/* 132 */ EntityOneStand standEnt = ItemStandArrow.getStand(standID, player.worldObj);\n/* 133 */ String standEntName = standEnt.getCommandSenderName();\n/* 134 */ if (standName.equals(\"\")) {\n/* */ \n/* 136 */ standName = getEntityStandName(standEnt);\n/* */ }\n/* */ else {\n/* */ \n/* 140 */ stack.setStackDisplayName(standEntName);\n/* */ } \n/* 142 */ String standActPre = StatCollector.translateToLocal(\"stands.jojobadv.Act.txt\");\n/* 143 */ String standExpPre = StatCollector.translateToLocal(\"stands.jojobadv.Exp.txt\");\n/* */ \n/* 145 */ list.add(standName);\n/* 146 */ list.add(standActPre + \" \" + standAct + \"!\");\n/* 147 */ list.add(standExpPre + \" \" + standExp);\n/* */ }", "private void DrawFruit(game_service game) {\r\n\r\n\t\tfru=new ArrayList<Fruit>();\r\n\t\tList<String> f= game.getFruits();\r\n\t\tString FJ=f.toString(); \r\n\r\n\t\ttry {\r\n\t\t\tJSONArray j =new JSONArray(FJ);\r\n\t\t\tint i=0; \r\n\t\t\tint c=0;\r\n\t\t\twhile(i<j.length()) {\r\n\t\t\t\tString help=\"\";\r\n\t\t\t\tJSONObject n=(JSONObject) j.get(i);\r\n\t\t\t\tJSONObject jf = n.getJSONObject(\"Fruit\");\r\n\t\t\t\tString s=jf.getString(\"pos\");\r\n\t\t\t\tString p[]=new String[3];\r\n\t\t\t\tfor (int k = 0; k < s.length(); k++) {\r\n\t\t\t\t\tif(s.charAt(k)!=',') {\r\n\t\t\t\t\t\thelp=help+s.charAt(k);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(c<3&&s.charAt(k)==',') {\r\n\t\t\t\t\t\tp[c]=help; \r\n\t\t\t\t\t\tc++;\r\n\t\t\t\t\t\thelp=\"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tp[c]=help; \r\n\t\t\t\tc=0;\r\n\t\t\t\tdouble x=Double.parseDouble(p[0]);\r\n\t\t\t\tdouble y=Double.parseDouble(p[1]);\r\n\t\t\t\tdouble z=Double.parseDouble(p[2]);\r\n\t\t\t\tPoint3D p1=new Point3D(x,y,z);\r\n\t\t\t\tdouble value=jf.getDouble(\"value\");\r\n\t\t\t\tint type=jf.getInt(\"type\");\r\n\t\t\t\tFruit fr=new Fruit(value,p1,type,findEdgeFruit(p1, type));\r\n\t\t\t\tfru.add(fr);\r\n\t\t\t\ti++;\r\n\t\t\t\tif(KMLbool) {\r\n\r\n\t\t\t\t\tString objType = \"\";\r\n\t\t\t\t\tif(fr.type == 1)\r\n\t\t\t\t\t\tobjType=\"Apple\";\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tobjType=\"Banana\";\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tKML_Logger.write(KmlName, fr.p.x(), fr.p.y(), objType, game.timeToEnd());\r\n\r\n\t\t\t\t\t} catch (FileNotFoundException e) {\r\n\r\n\t\t\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception error) {\r\n\t\t\terror.printStackTrace();\r\n\r\n\t\t\tSystem.out.println(\"catch\");\r\n\r\n\t\t}\r\n\t\tfor (Fruit f1: fru) {\r\n\t\t\tString fruit_icon = \"\"; \r\n\t\t\tif(f1.type==1)\r\n\t\t\t\tfruit_icon=\"./apple.png\";\r\n\t\t\tif(f1.type==-1)\r\n\t\t\t\tfruit_icon=\"./banana.png\";\r\n\r\n\r\n\t\t\tStdDraw.picture(f1.p.x(), f1.p.y(), fruit_icon);\r\n\t\t}\r\n\t}", "public ArrayList<Stock> addDefaultStocks() {\n Stock amzn = new Stock(\"Amazon\", \"AMZN\", new Dollar(2474.00), 100); \n Stock fb = new Stock(\"Facebook\", \"FB\", new Dollar(204.71), 100); \n Stock msft = new Stock(\"Microsoft\", \"MSFT\", new Dollar(174.57), 100); \n Stock googl = new Stock(\"Alphabet\", \"GOOGL\", new Dollar(1317.32), 100); \n Stock baba = new Stock(\"Alibaba\", \"BABA\", new Dollar(194.48), 100); \n Stock fis = new Stock(\"Fidelity\", \"FIS\", new Dollar(26.01), 100); \n Stock crm = new Stock(\"Salesforce\", \"CRM\", new Dollar(156.37), 100); \n Stock ma = new Stock(\"Mastercard\", \"MA\", new Dollar(268.74), 100); \n Stock v = new Stock(\"Visa\", \"V\", new Dollar(175.57), 100); \n Stock nflx = new Stock(\"Netflix\", \"NFLX\", new Dollar(415.27), 100); \n\n stocks.add(amzn); \n stocks.add(fb); \n stocks.add(msft); \n stocks.add(googl); \n stocks.add(baba); \n stocks.add(fis);\n stocks.add(crm); \n stocks.add(ma); \n stocks.add(v); \n stocks.add(nflx); \n\n return stocks; \n }", "@SuppressLint(\"SetTextI18n\")\n public void openDrops() {\n\n usingDropsScreen = true;\n myActivity.setContentView(R.layout.dropping);\n dropsButtonToGame = myActivity.findViewById(R.id.button9);\n final Button confirmButton = myActivity.findViewById(R.id.button11);\n ImageButton pawnButton = myActivity.findViewById(R.id.imageButton4);\n ImageButton rookButton = myActivity.findViewById(R.id.imageButton5);\n ImageButton bishopButton = myActivity.findViewById(R.id.imageButton);\n ImageButton sgButton = myActivity.findViewById(R.id.imageButton6);\n ImageButton ggButton = myActivity.findViewById(R.id.imageButton2);\n ImageButton knightButton = myActivity.findViewById(R.id.imageButton3);\n ImageButton lanceButton = myActivity.findViewById(R.id.imageButton7);\n\n final ArrayList<Piece> myDrops = state.getDrops0();\n final ArrayList<Piece> oppDrops = state.getDrops1();\n int myRCount = 0;\n int myBCount = 0;\n int myLCount = 0;\n int myKCount = 0;\n int myGGCount = 0;\n int mySGCount = 0;\n int myPCount = 0;\n\n int oppRCount = 0;\n int oppBCount = 0;\n int oppLCount = 0;\n int oppKCount = 0;\n int oppGGCount = 0;\n int oppSGCount = 0;\n int oppPCount = 0;\n\n final TextView mySelected = myActivity.findViewById(R.id.textView46);\n TextView myPawns = myActivity.findViewById(R.id.textView47);\n TextView myRooks = myActivity.findViewById(R.id.textView48);\n TextView myLances = myActivity.findViewById(R.id.textView60);\n TextView myKnights = myActivity.findViewById(R.id.textView52);\n TextView myBishops = myActivity.findViewById(R.id.textView49);\n TextView myGGs = myActivity.findViewById(R.id.textView51);\n TextView mySGs = myActivity.findViewById(R.id.textView50);\n\n TextView oppPawns = myActivity.findViewById(R.id.textView54);\n TextView oppRooks = myActivity.findViewById(R.id.textView55);\n TextView oppLances = myActivity.findViewById(R.id.textView61);\n TextView oppKnights = myActivity.findViewById(R.id.textView57);\n TextView oppBishops = myActivity.findViewById(R.id.textView56);\n TextView oppGGs = myActivity.findViewById(R.id.textView59);\n TextView oppSGs = myActivity.findViewById(R.id.textView58);\n\n\n //disable all buttons to start\n pawnButton.setEnabled(false);\n rookButton.setEnabled(false);\n bishopButton.setEnabled(false);\n sgButton.setEnabled(false);\n ggButton.setEnabled(false);\n lanceButton.setEnabled(false);\n knightButton.setEnabled(false);\n\n //count how many pieces of each type the opponent has\n for (Piece p : oppDrops) {\n if (p.getType() == Piece.PieceType.BISHOP ||\n p.getType() == Piece.PieceType.P_BISHOP) {\n oppBCount++;\n }\n if (p.getType() == Piece.PieceType.ROOK ||\n p.getType() == Piece.PieceType.P_ROOK) {\n oppRCount++;\n }\n if (p.getType() == Piece.PieceType.PAWN ||\n p.getType() == Piece.PieceType.P_PAWN) {\n oppPCount++;\n }\n if (p.getType() == Piece.PieceType.LANCE ||\n p.getType() == Piece.PieceType.P_LANCE) {\n oppLCount++;\n }\n if (p.getType() == Piece.PieceType.GOLDGENERAL) {\n oppGGCount++;\n }\n if (p.getType() == Piece.PieceType.SILVERGENERAL ||\n p.getType() == Piece.PieceType.P_SILVER) {\n oppSGCount++;\n }\n if (p.getType() == Piece.PieceType.KNIGHT ||\n p.getType() == Piece.PieceType.P_KNIGHT) {\n oppKCount++;\n }\n }\n\n //only enable the button for each piece if I have one to drop\n //also, count how many of each piece I have\n for (Piece p : myDrops) {\n if (p.getType() == Piece.PieceType.BISHOP ||\n p.getType() == Piece.PieceType.P_BISHOP) {\n myBCount++;\n bishopButton.setEnabled(true);\n }\n if (p.getType() == Piece.PieceType.ROOK ||\n p.getType() == Piece.PieceType.P_ROOK) {\n myRCount++;\n rookButton.setEnabled(true);\n }\n if (p.getType() == Piece.PieceType.PAWN ||\n p.getType() == Piece.PieceType.P_PAWN) {\n myPCount++;\n pawnButton.setEnabled(true);\n }\n if (p.getType() == Piece.PieceType.LANCE ||\n p.getType() == Piece.PieceType.P_LANCE) {\n myLCount++;\n lanceButton.setEnabled(true);\n }\n if (p.getType() == Piece.PieceType.GOLDGENERAL) {\n myGGCount++;\n ggButton.setEnabled(true);\n }\n if (p.getType() == Piece.PieceType.SILVERGENERAL ||\n p.getType() == Piece.PieceType.P_SILVER) {\n mySGCount++;\n sgButton.setEnabled(true);\n }\n if (p.getType() == Piece.PieceType.KNIGHT ||\n p.getType() == Piece.PieceType.P_KNIGHT) {\n myKCount++;\n knightButton.setEnabled(true);\n }\n }\n\n //display how many of each piece each player has captured\n myLances.setText(\"Lances:\" + \" \" + myLCount);\n myRooks.setText(\"Rooks:\" + \" \" + myRCount);\n myPawns.setText(\"Pawns:\" + \" \" + myPCount);\n myBishops.setText(\"Bishops:\" + \" \" + myBCount);\n myGGs.setText(\"Gold Generals:\" + \" \" + myGGCount);\n mySGs.setText(\"Silver Generals:\" + \" \" + mySGCount);\n myKnights.setText(\"Knights:\" + \" \" + myKCount);\n\n oppLances.setText(\"Lances:\" + \" \" + oppLCount);\n oppRooks.setText(\"Rooks:\" + \" \" + oppRCount);\n oppPawns.setText(\"Pawns:\" + \" \" + oppPCount);\n oppBishops.setText(\"Bishops:\" + \" \" + oppBCount);\n oppGGs.setText(\"Gold Generals:\" + \" \" + oppGGCount);\n oppSGs.setText(\"Silver Generals:\" + \" \" + oppSGCount);\n oppKnights.setText(\"Knights:\" + \" \" + oppKCount);\n\n\n //show what piece is selected if I have that piece, and enable confirm button\n pawnButton.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n for (Piece p : myDrops) {\n if (p.getType() == Piece.PieceType.PAWN) {\n toDrop = p;\n }\n }\n mySelected.setText(\"Selected: Pawn\");\n confirmButton.setEnabled(true);\n }\n }\n );\n rookButton.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n for (Piece p : myDrops) {\n if (p.getType() == Piece.PieceType.ROOK) {\n toDrop = p;\n }\n }\n mySelected.setText(\"Selected: Rook\");\n confirmButton.setEnabled(true);\n }\n }\n\n\n );\n bishopButton.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n for (Piece p : myDrops) {\n if (p.getType() == Piece.PieceType.BISHOP) {\n toDrop = p;\n }\n }\n mySelected.setText(\"Selected: Bishop\");\n confirmButton.setEnabled(true);\n }\n }\n\n\n );\n sgButton.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n for (Piece p : myDrops) {\n if (p.getType() == Piece.PieceType.SILVERGENERAL) {\n toDrop = p;\n }\n }\n mySelected.setText(\"Selected: Silver General\");\n confirmButton.setEnabled(true);\n }\n }\n );\n ggButton.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n for (Piece p : myDrops) {\n if (p.getType() == Piece.PieceType.GOLDGENERAL) {\n toDrop = p;\n }\n }\n mySelected.setText(\"Selected: Gold General\");\n confirmButton.setEnabled(true);\n }\n }\n );\n\n lanceButton.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n for (Piece p : myDrops) {\n if (p.getType() == Piece.PieceType.LANCE) {\n toDrop = p;\n }\n }\n mySelected.setText(\"Selected: Lance\");\n confirmButton.setEnabled(true);\n }\n }\n );\n\n knightButton.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n for (Piece p : myDrops) {\n if (p.getType() == Piece.PieceType.KNIGHT) {\n toDrop = p;\n }\n }\n mySelected.setText(\"Selected: Knight\");\n confirmButton.setEnabled(true);\n }\n }\n );\n\n if(toDrop == null){\n confirmButton.setEnabled(false);\n }\n\n dropsButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n mySelected.setText(\"Selected:\");\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingDropsScreen = false;\n toDrop = null;\n if (state != null) {\n receiveInfo(state);\n }\n }\n }\n );\n\n confirmButton.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n mySelected.setText(\"Selected:\");\n amDropping = true;\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingDropsScreen = false;\n ArrayList<Piece> updated = state.getDrops0();\n updated.remove(toDrop);\n state.setDrops0(updated);\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.macronutrient_list);\n //TextView input = (TextView) findViewById(R.id.textView1);\n getSupportActionBar().setBackgroundDrawable(ResourcesCompat.getDrawable(getResources(),R.drawable.background_color, null));\n Intent i = getIntent();\n Bundle b = i.getExtras();\n\n\n\n item = b.getString(\"item_id\");\n sendItemRequest(item);\n\n drinkName = (TextView) findViewById(R.id.drink);\n brandName = (TextView) findViewById(R.id.brandName);\n // TextView numServings = (TextView) findViewById(R.id.numServings);\n cal = (TextView) findViewById((R.id.calories));\n drinkName.setText(getIntent().getStringExtra(\"item_name\"));\n cal.setText(getIntent().getStringExtra(\"nf_calories\"));\n cal.append(\"\\n\" + \"calories\");\n\n brandName.setText(getIntent().getStringExtra(\"brand_name\"));\n // numServings.setText(getIntent().getStringExtra(\"nf_serving_size_qty\"));\n\n }", "@Override\n public String toString(){\n return \"\" + item.name + \" \" + item.price + \" Coins\";\n }", "public ArrayList<GameItemSingle> getMathGameData(){\n\n ArrayList<GameItemSingle> data=new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \"+DATABASE_TABLE_SINGLE_PAGE + \" WHERE _type LIKE \" + \" '%math_games%'\"+ \" ;\",null);\n StringBuffer stringBuffer = new StringBuffer();\n GameItemSingle singlePageItem = null;\n while (cursor.moveToNext()) {\n\n singlePageItem= new GameItemSingle();\n String id = cursor.getString(cursor.getColumnIndexOrThrow(\"id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title_rendered\"));\n String content = cursor.getString(cursor.getColumnIndexOrThrow(\"content_rendered\"));\n String date = cursor.getString(cursor.getColumnIndexOrThrow(\"date\"));\n String app_icon= cursor.getString(cursor.getColumnIndexOrThrow(\"app_icon_image\"));\n singlePageItem.setTitle_rendered(title);\n singlePageItem.setContent_rendered(content);\n singlePageItem.set_date(date);\n singlePageItem.setApp_icon(app_icon);\n singlePageItem.set_id(id);\n\n stringBuffer.append(singlePageItem);\n data.add(singlePageItem);\n }\n\n\n return data;\n }", "public SpeisekammerCustomListAdapter(Activity context, String[] itemname, String[] amount, String[] mamount, String[] type){\n\n super(context, R.layout.speisekammerlistelement, itemname);\n\n this.context = context;\n this.itemname = itemname;\n this.amount = amount;\n this.mamount = mamount;\n this.type = type;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_shopping_cart);\n\n //get Array List of menu items\n final ArrayList<MenuItem> parcelCart = getIntent().getParcelableArrayListExtra(\"paramName\");\n storeId = Integer.valueOf(getIntent().getStringExtra(\"storeId\"));\n\n //convert arrayList<MenuItem> into arrayList<String>\n ArrayList<String> shoppingCart = getCart(parcelCart);\n\n //get total quantity. when I created the listview I forgot to display this.\n tax = getSubtotal(parcelCart) * taxRate;\n total = tax + getSubtotal(parcelCart);\n shoppingCart.add(\"Checkout: $\" + dec.format(total));\n\n //put into listview\n //ArrayAdapter<String> itemsAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, shoppingCart);\n final ListView listView = (ListView)findViewById(R.id.shopping_cart);\n\n list = new ArrayList<HashMap<String,String>>();\n //put in data for multi-column.\n HashMap<String, String> temp=new HashMap<String, String>();\n //put in a header\n temp.put(\"0\", \" Quantity\");\n temp.put(\"1\", \"Item\");\n temp.put(\"2\", \" Total\");\n list.add(temp);\n for(int i = 0; i < parcelCart.size(); i++) {\n //put in data per row by column\n temp=new HashMap<String, String>();\n temp.put(\"0\", \" \" + String.valueOf(parcelCart.get(i).getQuantity()));\n temp.put(\"1\", parcelCart.get(i).getName());\n double price = parcelCart.get(i).getQuantity() * parcelCart.get(i).getPrice();\n temp.put(\"2\", \" $\" + dec.format(price));\n list.add(temp);\n }\n //put in a footer for price.\n temp = new HashMap<String, String>();\n temp.put(\"0\", \" Your Order:\");\n temp.put(\"1\", \"\");\n temp.put(\"2\", \" $\" + dec.format(getSubtotal(parcelCart)));\n list.add(temp);\n\n\n //for the columns we want to use\n int[]rIds = {R.id.column1, R.id.column2, R.id.column3 };\n MulticolumnListAdapter adapter=new MulticolumnListAdapter(this, list, 3, rIds );\n\n //create header\n View header = (View)getLayoutInflater().inflate(R.layout.header, null);\n TextView headerText = (TextView) header.findViewById(R.id.list_header);\n headerText.setText(\" Your Cart\");\n listView.addHeaderView(header, null, false);\n\n listView.setAdapter(adapter);\n\n Button b = (Button)findViewById(R.id.bottombutton);\n b.setText(\"Check Out!\");\n\n b.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //these lines of code work if you wanna send something across. we might package it as a JSON object and send though?\n// Intent intent = new Intent(ShoppingCartActivity.this, ShoppingCartActivity.class);\n// intent.putParcelableArrayListExtra(\"paramName\", parcelCart);\n// startActivity(intent);\n\n String order = sendOrder(parcelCart);\n\n String orderPost = \"http://project-order-food.appspot.com/send_order\";\n final PostTask sendOrderTask = new PostTask(); // need to make a new httptask for each request\n try {\n // try the getTask with actual location from gps\n sendOrderTask.execute(orderPost, order).get(30, TimeUnit.SECONDS);\n Log.d(\"httppost\", order);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n Log.d(\"Button\", \"clicked\");\n Log.d(\"sendorder\", sendOrder(parcelCart));\n Toast toast = Toast.makeText(getApplication().getBaseContext(), \"Order Placed!\", Toast.LENGTH_LONG);\n toast.show();\n }\n });\n }", "@Override\n public void onClick(View view) {\n rbItemCategory = (RadioButton)v.findViewById(rgItemCategory.getCheckedRadioButtonId());\n\n String itemName = etAddItemName.getText().toString();\n String itemDesc = etAddItemDesc.getText().toString();\n String itemCategory = rbItemCategory.getText().toString();\n String itemPrice;\n\n //get current Date\n Date cal = Calendar.getInstance().getTime();\n java.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n currentDate = df.format(cal);\n\n if(itemCategory.equals(\"Want To Sell\"))\n itemCategory = \"WTS\";\n else if(itemCategory.equals(\"Want To Buy\"))\n itemCategory = \"WTB\";\n else if (itemCategory.equals(\"Want To Trade\"))\n itemCategory = \"WTT\";\n\n if(itemCategory.equals(\"WTT\"))\n itemPrice = \"0\";\n else\n itemPrice = etItemPrice.getText().toString();\n\n SharedPreferences preferences = getActivity().getSharedPreferences(\"tarcommUser\", Context.MODE_PRIVATE);\n\n if(TextUtils.isEmpty(itemName))\n etAddItemName.setError(\"This field is required.\");\n if(TextUtils.isEmpty(itemDesc))\n etAddItemDesc.setError(\"This field is required.\");\n if(TextUtils.isEmpty(itemPrice))\n itemPrice = \"0\";\n\n if(!TextUtils.isEmpty(itemName) && !TextUtils.isEmpty(itemDesc)&& imgViewMarketItem.getDrawable() != null) {\n Item item = new Item();\n item.setItemCategory(itemCategory);\n item.setItemName(itemName);\n item.setItemDescription(itemDesc);\n item.setItemPrice(itemPrice);\n item.setEmail(preferences.getString(\"email\", \"\"));\n item.setSellerName(preferences.getString(\"loggedInUser\", \"\"));\n item.setSellerContact(preferences.getString(\"contactNo\", \"\"));\n item.setItemLastModified(currentDate);\n uploadImage(item);\n\n progressDialog = new ProgressDialog(getActivity());\n try {\n makeServiceCall(getActivity().getApplicationContext(), \"https://tarcomm.000webhostapp.com/createItem.php\", item);\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getActivity().getApplicationContext(), \"Error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n } else\n Toast.makeText(getActivity().getApplicationContext(), \"Please add an image or fill all the mandatory field\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View view) {\n int tempQty = Integer.parseInt(itemQty.getText().toString());\n tempQty = tempQty + 1;\n itemQty.setText(String.valueOf(tempQty));\n\n //get quantity\n int fillQuantity = Integer.parseInt(itemQty.getText().toString());\n //Create SaleItem\n SaleItem tempSaleItem = new SaleItem(fillName, fillQuantity, fillPrice, fillIngArr);\n //Update SaleItems Array\n saleItems.set(position, tempSaleItem);\n updateTotal();\n }", "@Override\n public void onDataChange(DataSnapshot snapshot) {\n\n\n MemInfo.Store_Info store_info = snapshot.getValue(MemInfo.Store_Info.class);\n myAdapter.clear();\n for (int i = 0; i < store_info.getStore_Size(); i++) {\n myAdapter.addItem(store_info.getStore_menus().get(i).getMenu_img()\n , store_info.getStore_menus().get(i).getMenu_name()\n , store_info.getStore_menus().get(i).getMenu_price());\n }\n myAdapter.notifyDataSetChanged();\n\n }", "private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }", "@Override\n public void onItemClick(View v, int pos) {\n holder.img.buildDrawingCache();\n Bitmap bitmap = holder.img.getDrawingCache();\n\n\n Intent i = new Intent(context, DetailedActivity.class);\n\n i.putExtra(\"image\", bitmap);\n i.putExtra(\"title\", title[position]);\n i.putExtra(\"desc\", description[position]);\n context.startActivity(i);\n }", "public static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "public Item(String name, String image, String flavour, int price) {\n\t\tthis.name = name;\n\t\tthis.image = image;\n\t\tthis.flavour = flavour;\n\t\tthis.price = price;\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\n \"create table itemstable \" +\n \"(id integer primary key, itemcost text,itemkg text, itemQuantity text)\"\n );\n\n }" ]
[ "0.66310626", "0.6581639", "0.6367955", "0.6224861", "0.6163382", "0.6082683", "0.6059808", "0.6018835", "0.5996975", "0.5982862", "0.5953828", "0.59523284", "0.59150827", "0.58299315", "0.5829695", "0.580866", "0.58068097", "0.5796784", "0.5783679", "0.57824636", "0.57823396", "0.57734644", "0.57731", "0.5751062", "0.574658", "0.5735526", "0.5728733", "0.5694367", "0.56850296", "0.56792414", "0.5674006", "0.5662578", "0.564542", "0.56411433", "0.56264126", "0.5620852", "0.56097126", "0.5598438", "0.55984145", "0.5595858", "0.55884403", "0.5586029", "0.5585004", "0.55810183", "0.55670637", "0.55598015", "0.5559399", "0.55494523", "0.5535808", "0.5534349", "0.5534033", "0.5532232", "0.5526687", "0.5509736", "0.5504332", "0.55008864", "0.54924995", "0.5491329", "0.54893166", "0.54849076", "0.5484598", "0.54809535", "0.5480157", "0.5478656", "0.5473377", "0.5471866", "0.54646564", "0.54560405", "0.5453223", "0.5437547", "0.54262143", "0.54240996", "0.54228395", "0.54033935", "0.5397968", "0.5393183", "0.53909165", "0.53902805", "0.5387974", "0.53875977", "0.53845346", "0.538129", "0.53707397", "0.536542", "0.5362462", "0.53598815", "0.5357734", "0.5352561", "0.53524905", "0.5345465", "0.53324664", "0.5331358", "0.5331132", "0.532729", "0.5325065", "0.5321534", "0.53162605", "0.53152543", "0.5313616", "0.53135294", "0.5307696" ]
0.0
-1
TODO implementar el tomar una foto;
public void toTakeAPicture(View view) { requestCameraPermissions(); Intent launchCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(launchCamera, Constants.CAM_REQUEST); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tvoid postarFoto() {\n\n\t}", "fotos(){}", "public abstract String getFotoPath();", "private BufferedImage sacaFoto(String fo){\n File input = null;\n BufferedImage image = null;\n try{\n input = new File(fo);\n image = ImageIO.read(input);\n }catch(IOException ioe){\n System.out.println(\"Hubo un error en la lectura de la imagen\");\n System.exit(1);\n }\n return image;\n }", "public void setFoto(java.lang.String foto) {\n this.foto = foto;\n }", "private void guardarFoto() {\n if (foto != null && is != null) {\n\n Image foto_Nueva;\n foto_Nueva = foto.getScaledInstance(frmPersona.getLblFoto().getWidth(), frmPersona.getLblFoto().getHeight(), Image.SCALE_SMOOTH);\n frmPersona.getLblFoto().setIcon(new ImageIcon(foto_Nueva));\n cancelarFoto();\n ctrFrmPersona.pasarFoto(is);\n } else {\n JOptionPane.showMessageDialog(vtnWebCam, \"Aun no se a tomado una foto.\");\n }\n\n }", "public java.lang.String getFoto() {\n return foto;\n }", "public byte[] getFoto() {\n\t\treturn foto;\n\t}", "private void SubirFotoUsuario(byte[] bDatos, String nombre)\n {\n // Si no hay datos, salimos\n if (bDatos == null)\treturn ;\n\n // Establecemos los parametros\n RequestParams params = new RequestParams();\n params.put(\"archivo\", new ByteArrayInputStream(bDatos), \"imagen.jpg\");\n params.put(\"directorio\", \"Usuarios\");\n params.put(\"nombre\", nombre);\n\n // Realizamos la petición\n cliente.post(getActivity(), Helpers.URLApi(\"subirimagen\"), params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Abrimos la ventana de los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n else\n {\n try {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n catch (Exception ex) { }\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.failuploadphoto));\n }\n });\n }", "public File getFoto() {\r\n\t\treturn temp;\r\n\t}", "private void getArquivo()\n {\n /*** Obtem o conteudo do pacote através do diretorio ***/\n File file = new File(caminho_origem);\n if (file.isFile())\n {\n try\n {\n /*** Lê o pacote e põe em um array de bytes ***/\n DataInputStream diStream = new DataInputStream(new FileInputStream(file));\n long len = (int) file.length();\n if (len > Utils.tamanho_maximo_arquivo)\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_muito_grande);\n System.exit(0);\n }\n Float numero_pacotes_ = ((float)len / Utils.tamanho_util_pacote);\n int numero_pacotes = numero_pacotes_.intValue();\n int ultimo_pacote = (int) len - (Utils.tamanho_util_pacote * numero_pacotes);\n int read = 0;\n /***\n 1500\n fileBytes[1500]\n p[512]\n p[512]\n p[476]len - (512 * numero_pacotes.intValue())\n ***/\n byte[] fileBytes = new byte[(int)len];\n while (read < fileBytes.length)\n {\n fileBytes[read] = diStream.readByte();\n read++;\n }\n int i = 0;\n int pacotes_feitos = 0;\n while ( pacotes_feitos < numero_pacotes)\n {\n byte[] mini_pacote = new byte[Utils.tamanho_util_pacote];\n for (int k = 0; k < Utils.tamanho_util_pacote; k++)\n {\n mini_pacote[k] = fileBytes[i];\n i++;\n }\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(mini_pacote);\n this.pacotes.add(pacote_);\n pacotes_feitos++;\n }\n byte[] ultimo_mini_pacote = new byte[ultimo_pacote];\n int ultimo_indice = ultimo_mini_pacote.length;\n for (int j = 0; j < ultimo_mini_pacote.length; j++)\n {\n ultimo_mini_pacote[j] = fileBytes[i];\n i++;\n }\n byte[] ultimo_mini_pacote2 = new byte[512];\n System.arraycopy(ultimo_mini_pacote, 0, ultimo_mini_pacote2, 0, ultimo_mini_pacote.length);\n for(int h = ultimo_indice; h < 512; h++ ) ultimo_mini_pacote2[h] = \" \".getBytes()[0];\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(ultimo_mini_pacote2);\n this.pacotes.add(pacote_);\n this.janela = new HashMap<>();\n for (int iterator = 0; iterator < this.pacotes.size(); iterator++) janela.put(iterator, new Estado());\n } catch (Exception e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.erro_na_leitura);\n System.exit(0);\n }\n } else\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_inexistente);\n System.exit(0);\n }\n }", "public void crearRutaImgPublicacion(){\n \n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n //Obtener el codigo del usuario de la sesion actual\n //este es utilizado para ubicar la carpeta que le eprtenece\n String codUsuario=String.valueOf(new SessionLogica().obtenerUsuarioSession().getCodUsuario());\n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"post\"+File.separatorChar+codUsuario+File.separatorChar+\"all\"+File.separatorChar;\n //Asignacion de la ruta creada\n this.rutaImgPublicacion=ruta;\n }", "private void salvaFoto(){\n\n try {\n\n File f = new File(Environment.getExternalStorageDirectory() +getResources().getString(R.string.folder_package)+ \"/\" +id_Familiar+ \".jpg\");\n\n if(f.exists()){ boolean deleted = f.delete();}\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, qualidade_image_profile, bytes);\n\n try {\n f.createNewFile();\n FileOutputStream fo = new FileOutputStream(f);\n fo.write(bytes.toByteArray());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n catch (Exception E){\n Log.e(\"error\",\"Erro ao carregar imagem\");\n }\n }", "public static byte [] convertirFoto(String ruta){\n byte[] icono;\n try {\n File rut=new File(ruta);\n icono = new byte[(int)rut.length()];\n InputStream input = new FileInputStream(ruta);\n input.read(icono);\n } catch (Exception ex) {\n return null;\n }\n return icono;\n }", "public void creaRutaImgPerfil(){\n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta de uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n \n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"users\"+File.separatorChar;\n \n //Asignacion de la ruta creada\n this.rutaImgPerfil=ruta;\n }", "public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }", "public String getAnoFilmagem();", "@Override\n public void descargarFoto(Uri uri) {\n descargaTerminada();\n }", "public static void Auslesen()\r\n\t{\n\t\tLargeObjectManager lobj;\r\n\t\ttry {\r\n\t\t\tconn= DriverManager.getConnection(DB_URL,USER,PASS);\r\n\t\t\tlobj = ((org.postgresql.PGConnection)conn).getLargeObjectAPI();\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"SELECT bild FROM bilder WHERE bild = ?\");\r\n\t\t\tps.setString(1, \"bild2.jpg\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t // Open the large object for reading\r\n\t\t\t\tString name = rs.getString(1);\r\n\t\t\t int oid = rs.getInt(2);\r\n\t\t\t LargeObject obj = lobj.open(oid, LargeObjectManager.READ);\r\n\r\n\t\t\t // Read the data\r\n\t\t\t byte buf[] = new byte[obj.size()];\r\n\t\t\t obj.read(buf, 0, obj.size());\r\n\t\t\t // Do something with the data read here\r\n\t\t\t \r\n\t\t\t String pfad = \"C:/Temp\";\r\n\t\t\t\tFile file = createFile(pfad, \"bild2.jpg\");\r\n\t\t\t\tFiles.copy(obj.getInputStream(), file.toPath());\r\n\t\t\t\r\n\t\t\t \r\n\t\t\t // Close the object\r\n\t\t\t obj.close();\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "private void afficherImage() {\n\n //get the link of the storage reference of the user\n StorageReference st = stm.child(\"users/\" + auth.getCurrentUser().getUid());\n try {\n File localFile = File.createTempFile(\"image\", \"png\");\n st.getFile(localFile).addOnSuccessListener(taskSnapshot -> st.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n //load the picture in the activity\n Picasso.with(getActivity()).load(uri).into(image);\n }\n }));\n } catch (IOException e) {\n Log.e(getClass().getName(), e.toString());\n }\n\n\n }", "public void seleccionarFotoPerfil(View v) {\n //Crea un Intent\n Intent intent = new Intent();\n //con intent.setType(\"image/*\") indicamos que en la nueva actividad solo se mostraran imagenes\n intent.setType(\"image/*\");\n //Muestra contenido que el usuario puede escoger, y que devolvera una URI resultante\n intent.setAction(Intent.ACTION_GET_CONTENT);\n //Inicia una nueva actividad que mostrara el seleccionador de imagenes\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "private void ObtenerImagenUsuario(String nombre)\n {\n // Realizamos la obtención de la imagen\n ImageLoader.getInstance().loadImage(Helpers.URLImagenes(\"Usuarios/\" + nombre + \".jpg\"), new SimpleImageLoadingListener() {\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n super.onLoadingComplete(imageUri, view, loadedImage);\n\n try {\n // Procesamos los bytes de la imagen recibida\n Bitmap imagen = loadedImage;\n\n try {\n // Guardamos la imagen\n FileOutputStream fOut = new FileOutputStream(Helpers.ImagenFotoPerfil(getActivity()));\n imagen.compress(Bitmap.CompressFormat.JPEG, 100, fOut);\n fOut.flush();\n fOut.close();\n } catch (IOException ioe) {\n }\n }\n catch (Exception ex) { }\n\n // Limpiamos la opción de espera\n m_Espera.dismiss();\n\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Cargamos los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n\n @Override\n public void onLoadingFailed(String imageUri, View view, FailReason failReason) {\n super.onLoadingFailed(imageUri, view, failReason);\n\n // Limpiamos la opción de espera\n m_Espera.dismiss();\n\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Cargamos los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n });\n }", "private void prepararImagenYStorage() {\n mImageBitmap = null;\n\n //this.capturarFotoButton = (Button) findViewById(R.id.capturarFotoButton);\n// setBtnListenerOrDisable(\n// this.capturarFotoButton,\n// mTakePicSOnClickListener,\n// MediaStore.ACTION_IMAGE_CAPTURE\n// );\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {\n mAlbumStorageDirFactory = new FroyoAlbumDirFactory();\n } else {\n mAlbumStorageDirFactory = new BaseAlbumDirFactory();\n }\n }", "private void GetPictureFacebook(String faceBookId, final String nombre)\n {\n try\n {\n String url = \"http://graph.facebook.com/\" + faceBookId + \"/picture?type=large\";\n\n // Realizamos la obtención de la imagen\n cliente.get(url, new BinaryHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, byte[] binaryData)\n {\n try {\n // Procesamos los bytes de la imagen recibida\n Bitmap imagen = BitmapFactory.decodeByteArray(binaryData, 0, binaryData.length);\n\n // Obtenemos la ruta donde guardaremos la imagen\n String szRuta = Helpers.ImagenFotoPerfil(getActivity());\n\n // Si existe el archivo lo eliminamos\n if (new File(szRuta).exists()) new File(szRuta).delete();\n\n try {\n // Guardamos la imagen\n FileOutputStream fOut = new FileOutputStream(szRuta);\n imagen.compress(Bitmap.CompressFormat.JPEG, 100, fOut);\n fOut.flush();\n fOut.close();\n\n // Ahora subimos la imagen\n SubirFotoUsuario(Helpers.BitmapToByte(imagen), nombre);\n }\n catch (IOException ioe)\n {\n Log.e(getString(R.string.error), ioe.getMessage());\n }\n } catch (Exception ex) {\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] binaryData, Throwable error) {\n }\n });\n }\n catch (Exception ex)\n {\n }\n }", "private File crearAchivoDeImagen() throws IOException {\n String fecha = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String nombreImagen = \"respaldo_\" + fecha + \"_\";\n File directorio = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File imagen = File.createTempFile(nombreImagen, \".jpg\", directorio);\n\n imagePath = imagen.getAbsolutePath();\n Log.d(\"Retrofit\",imagePath);\n return imagen;\n }", "public Part getFotoPerfil(){\n return fotoPerfil;\n }", "public void upload(FileUploadEvent event){\n UploadedFile file = event.getFile();\n if(file != null){\n try {\n imagePic = new OracleSerialBlob(file.getContents());\n Long size = imagePic.length();\n putProfPic(imagePic);\n //setPhoto_profile(new ByteArrayContent(imagePic.getBytes(1, size.intValue())));\n } catch (SQLException ex) {\n LOG.error(ex);\n GBMessage.putErrorMessage(\"Error al subir el archivo\");\n } catch (IOException ex) {\n Logger.getLogger(StaffBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n GBMessage.putInfoMessage(\"Carga correcta\");\n }\n }", "private void setPhotoAttcher() {\n\n }", "private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n File file = new File(externalContext.getRealPath(\"\")+\"\\\\resources\\\\images\\\\user_default.png\");\n imagePic = new OracleSerialBlob(FileUtils.getBytes(file));\n Long size = imagePic.length();\n photo_profile = new ByteArrayContent(imagePic.getBytes(1, size.intValue()));\n }else{\n imagePic = gbPhoto;\n Long size = gbPhoto.length();\n photo_profile = new ByteArrayContent(gbPhoto.getBytes(1, size.intValue()));\n }\n }", "public void cargarImagenes() {\n try {\n\n variedad = sp.getString(\"variedad\", \"\");\n gDia = sp.getFloat(\"gDia\", 0);\n dia = sp.getInt(\"dia\", 0);\n idVariedad = sp.getLong(\"IdVariedad\", 0);\n idFinca = sp.getLong(\"IdFinca\",0);\n\n\n\n imageAdmin iA = new imageAdmin();\n List<fenologiaTab> fi = forGradoloc(dia, gDia, idVariedad);\n\n path = getExternalFilesDir(null) + File.separator;\n String path2 = \"/storage/emulated/0/Pictures/fenologias/\"+idFinca+\"/\";\n\n iA.getImage(path2,jpgView1, idVariedad, fi.get(0).getImagen());\n datos(txt1, fi.get(0).getDiametro_boton(), fi.get(0).getLargo_boton(), fi.get(0).getGrados_dia(), fi.get(0).getImagen());\n\n iA.getImage(path2,jpgView2, idVariedad, fi.get(1).getImagen());\n datos(txt2, fi.get(1).getDiametro_boton(), fi.get(1).getLargo_boton(), fi.get(1).getGrados_dia(), fi.get(1).getImagen());\n\n iA.getImage(path2,jpgView3, idVariedad, fi.get(2).getImagen());\n datos(txt3, fi.get(2).getDiametro_boton(), fi.get(2).getLargo_boton(), fi.get(2).getGrados_dia(), fi.get(2).getImagen());\n\n iA.getImage(path2,jpgView4, idVariedad, fi.get(3).getImagen());\n datos(txt4, fi.get(3).getDiametro_boton(), fi.get(3).getLargo_boton(), fi.get(3).getGrados_dia(), fi.get(3).getImagen());\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error \\n\" + e, Toast.LENGTH_LONG).show();\n }\n }", "private File setUpPhotoFile() throws IOException {\n\n File f = createImageFile();\n mCurrentPhotoPath = f.getAbsolutePath();\n\n return f;\n }", "public void camara(){\n Intent fotoPick = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n String fecha = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\").format(new Date());\n Uri uriSavedImage=Uri.fromFile(new File(getExternalFilesDir(Environment.DIRECTORY_DCIM),\"inmueble_\"+id+\"_\"+fecha+\".jpg\"));\n fotoPick.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);\n startActivityForResult(fotoPick,TAKE_PICTURE);\n\n }", "@PreAuthorize(\"hasAnyRole('ROLE_ADMIN','ROLE_CONTRIBUTOR')\")\r\n\t@CrossOrigin(origins=\"http://localhost:4200\")\r\n\t@RequestMapping(value=\"/image/upload/{idMangas:[0-9]+}\", method=RequestMethod.POST, produces=MediaType.APPLICATION_JSON_VALUE)\r\n\t@ResponseBody\r\n\tpublic Manga upload(@RequestParam(\"file\") MultipartFile file, @PathVariable(\"idMangas\") int idMangas){\n\t\tlog.info(\"File name: \" + file.getOriginalFilename());\r\n\t\tlog.info(\"File name: \" + file.getContentType());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tImage img = new Image(0, file.getOriginalFilename(), file.getSize(), file.getContentType(), \"\", \"\");\r\n\t\t\timageDao.saveImageFile(img, file.getInputStream());\r\n\t\t\t// on save ensuite en bdd l image\r\n\t\t\timageDao.save(img);\r\n\t\t\t// puis on lie limage a mongas recup ds lurl\r\n\t\t\tManga m = mangasDao.findOne(idMangas);\r\n\t\t\tm.setImg(img);\r\n\t\t\treturn mangasDao.save(m);\r\n\t\t\t// return m;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new HttpClientErrorException(HttpStatus.INTERNAL_SERVER_ERROR, \"erreur lors de la sauvegarde\");\r\n\t\t}\r\n\t}", "File resolveImage(Box box);", "@Override\n public void onFotoObtenida(byte[] foto, PeticionQuedada pQuedada)\n {\n\n Log.i(\"ADAPTADOR\", \"+++++++++ PetCon FOTO\" + pQuedada.toString() + \" ++++++++\");\n\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n Bitmap bitmap = BitmapFactory.decodeByteArray(foto, 0, foto.length, options);\n //se crea una peticion de quedada recibida con la peticion obteneda + la foto y se añade a la lista\n peticionQuedadaRecibida = new PeticionQuedadaRecibida(pQuedada.getId(), pQuedada.getAutor_peticion_nombre(), pQuedada.getAutor(), pQuedada.getAutor_uid(), pQuedada.getLugar(), pQuedada.getFecha(), pQuedada.getHora(), pQuedada.getDeporte(), pQuedada.getInfo(), pQuedada.getPlazas(), pQuedada.getLongitud(),\n pQuedada.getLatitud(), pQuedada.getNum_plazas_solicitadas(), pQuedada.getEstado(), pQuedada.getAutor_peticion());\n peticionQuedadaRecibida.setFoto(bitmap);\n peticionQuedadaRecibida.setId_peticion(pQuedada.getId_peticion());\n\n lista_peticionesRecibidas.add(peticionQuedadaRecibida);\n Log.i(\"ADAPTADOR\", \"+++++++++ QUEDADA AÑADIDA A LISTA ++++++++\\n\" + peticionQuedadaRecibida.toString());\n //cuando se añaden todas las peticionesse setea el adaptador\n if (lista_peticionesRecibidas.size() == lista_peticiones.size()) {\n //se activan los controladores del item correspondiente\n Log.i(\"ADAPTADOR\", \"+++++++++ SETEANDO ADAPTADOR ++++++++\\n\" + lista_peticionesRecibidas.toString());\n adaptador = new PeticionesRecibidasAdapter(lista_peticionesRecibidas);\n adaptador.setCustomButtonListner(this);\n adaptador.setCustomImageButtonListener(this);\n listView.setAdapter(adaptador);\n\n LinearLayoutManager llm = new LinearLayoutManager(getContext());\n llm.setOrientation(LinearLayoutManager.HORIZONTAL);\n listView.setLayoutManager(llm);\n\n progressDialog.dismiss();\n }\n\n\n }", "public Coloca_imagen(){\n \n \n }", "private void aumentarPilha() {\n this.pilhaMovimentos++;\n }", "@Override\n public void onSuccess(byte[] bytes) {\n storageRef.child(\"profilepics/\" + authUser.getUid()+ \".jpg\")\n .putBytes(bytes)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Log.d(\"control\", \"foto subida\");\n }\n });\n }", "public String guardarImgPost(){\n \n File archivo=null;//Objeto para el manejo de os archivos\n InputStream in =null;//Objeto para el manejo del stream de datos del archivo\n //Se obtiene el codigo de usuario de la sesion actual\n String codUsuario=codUsuario=String.valueOf(new SessionLogica().obtenerUsuarioSession().getCodUsuario());\n //Se obtiene un codigo producto de la combinacion del codigo del usuario y de un numero aleatorio\n String codGenerado=new Utiles().generar(codUsuario);\n String extension=\"\";\n int i=0;\n //Extension del archivo ha subir\n extension=\".\"+FilenameUtils.getExtension(this.getObjImagen().getImagen().getFileName());\n \n \n try {\n //Pasa el buffer de datos en un array de bytes , finalmente lee cada uno de los bytes\n in=this.getObjImagen().getImagen().getInputstream();\n byte[] data=new byte[in.available()];\n in.read(data);\n \n //Crea un archivo en la ruta de publicacion\n archivo=new File(this.rutaImgPublicacion+codGenerado+extension);\n FileOutputStream out=new FileOutputStream(archivo);\n //Escribe los datos en el nuevo archivo creado\n out.write(data);\n \n System.out.println(\"Ruta de Path Absolute\");\n System.out.println(archivo.getAbsolutePath());\n \n //Cierra todas las conexiones\n in.close();\n out.flush();\n out.close();\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n return \"none.jpg\";\n }\n //Retorna el nombre de la iamgen almacenada\n return codGenerado+extension;\n }", "public void montarTela(){\n ControllerListener listener = new BaseControllerListener(){\n @Override\n public void onFinalImageSet(String id, Object imageInfo, Animatable animatable) {\n super.onFinalImageSet(id, imageInfo, animatable);\n }\n\n @Override\n public void onFailure(String id, Throwable throwable) {\n super.onFailure(id, throwable);\n }\n\n @Override\n public void onIntermediateImageFailed(String id, Throwable throwable) {\n super.onIntermediateImageFailed(id, throwable);\n }\n\n @Override\n public void onIntermediateImageSet(String id, Object imageInfo) {\n super.onIntermediateImageSet(id, imageInfo);\n }\n\n @Override\n public void onRelease(String id) {\n super.onRelease(id);\n }\n\n @Override\n public void onSubmit(String id, Object callerContext) {\n super.onSubmit(id, callerContext);\n }\n };\n\n String urlImagem = DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\");\n\n Uri uri = null;\n DraweeController dc = null;\n\n if(urlImagem.contains(\"https\")){\n uri = Uri.parse(DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n } else {\n uri = Uri.parse(\"https://tocaredev.azurewebsites.net\"+DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n }\n ivFotoPerfil.setController(dc);\n\n tvUsername.setText(DetalhesPaciente.paciente.getNome() + \" \" + DetalhesPaciente.paciente.getSobrenome());\n\n int idade = Util.retornaIdade(DetalhesPaciente.paciente.getDataNascimento());\n\n tvDataNascimento.setText(DetalhesPaciente.paciente.getDataNascimento() + \" (\" + idade + \")\");\n \n etAnamnese.setText(DetalhesPaciente.paciente.getProntuario().getAnamnese());\n etExameFisico.setText(DetalhesPaciente.paciente.getProntuario().getExameFisico());\n etPlanoTerapeutico.setText(DetalhesPaciente.paciente.getProntuario().getPlanoTerapeutico());\n etHipoteseDiagnostica.setText(DetalhesPaciente.paciente.getProntuario().getHipoteseDiagnostica());\n \n }", "public void subir_file()\n {\n FileChooser fc = new FileChooser();\n\n fc.getExtensionFilters().addAll(new FileChooser.ExtensionFilter(\"PDF Files\",\"*.pdf\")\n , new FileChooser.ExtensionFilter(\"Jpg Images\",\"*.jpg\",\"*.JPEG\",\"*.JPG\",\"*.jpeg\",\"*.PNG\",\"*.png\"));\n\n File fileSelected = fc.showOpenDialog(null);\n\n if (fileSelected!= null){\n txt_ruta.setText(fileSelected.getPath());\n\n if(txt_ruta.getText().contains(\".pdf\"))\n {\n System.out.println(\"si es pdf\");\n Image image = new Image(\"/sample/Clases/pdf.png\");\n image_esquema.setImage(image);\n\n }\n else\n {\n File file = new File(txt_ruta.getText());\n javafx.scene.image.Image image = new Image(file.toURI().toString());\n image_esquema.setImage(image);\n }\n\n }\n else{\n System.out.println(\"no se seleccinoó\");\n }\n }", "public UserEntity(){\n putFile(\"coverPhoto\");\n putFile(\"profilePhoto\");\n }", "public StreamedContent getPhoto(Patient p) {\n FacesContext context = FacesContext.getCurrentInstance();\n if (context.getRenderResponse()) {\n return new DefaultStreamedContent();\n } else if (p == null) {\n return new DefaultStreamedContent();\n } else {\n if (p.getId() != null && p.getBaImage() != null) {\n //////System.out.println(\"giving image\");\n InputStream targetStream = new ByteArrayInputStream(p.getBaImage());\n StreamedContent str = DefaultStreamedContent.builder().contentType(p.getFileType()).name(p.getFileName()).stream(() -> targetStream).build();\n return str;\n// return new DefaultStreamedContent(new ByteArrayInputStream(p.getBaImage()), p.getFileType(), p.getFileName());\n } else {\n return new DefaultStreamedContent();\n }\n }\n\n }", "@Override\n public void onClick(View view) {\n File file = new File(pathFoto);\n final Intent intent = new Intent(Intent.ACTION_VIEW).setDataAndType(FileProvider.getUriForFile(getApplicationContext(), \"com.B3B.farmbros.android.fileprovider\", file), \"image/*\").addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivity(intent);\n }", "@Secured(\"ROLE_ADMIN\")\n @PostMapping(value= \"/saveimagen\")\n public ResponseEntity<?> upload(@RequestParam(\"archivo\") MultipartFile archivo ,@RequestParam(\"id\") Long id ){\n\t\ttry {\n\t\t\tProfesional profesional = profesionalService.findOne(id);\n\t\t\tSystem.out.print(profesional.toString());\n \tif(!archivo.isEmpty()) {\n \t\tString nombreArchivo = UUID.randomUUID().toString()+\"_\"+ archivo.getOriginalFilename().replace(\" \",\"\");\n \t\tPath rutaArchivo = Paths.get(\"home/alvaro.castillo1501/uploads\").resolve(nombreArchivo).toAbsolutePath();\n \t\tFiles.copy(archivo.getInputStream(), rutaArchivo);\n \t\tString nombreFotoAnterior = profesional.getFoto();\n if(nombreFotoAnterior != null && nombreFotoAnterior.length() >0) {\n \tPath rutaFotoAnterior = Paths.get(\"home/alvaro.castillo1501/uploads\").resolve(nombreFotoAnterior).toAbsolutePath();\n \tFile archivoFotoAnterior = rutaFotoAnterior.toFile();\n \tif(archivoFotoAnterior.exists() && archivoFotoAnterior.canRead()) {\n \t\tarchivoFotoAnterior.delete();\n \t}\n }\n \t\tprofesional.setFoto(nombreArchivo);\n \t\tprofesionalService.save(profesional);\n \t}\n }catch(DataAccessException e) {\n return new ResponseEntity<Profesional>(HttpStatus.INTERNAL_SERVER_ERROR);\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n return new ResponseEntity<Profesional>(HttpStatus.OK);\n }", "public void upload(FileUploadEvent event) {\r\n\t\tUploadedFile uploadFile = event.getFile();\r\n\t\t// Recuperer le contenu de l'image en byte array (pixels)\r\n\t\tbyte[] contents = uploadFile.getContents();\r\n\t\tSystem.out.println(\"---------------- \" + contents);\r\n\t\tproduit.setPhoto(contents);\r\n\t\t// Transforme byte array en string (format basé64)\r\n\t\timage = \"data:image/png;base64,\" + Base64.encodeBase64String(produit.getPhoto());\r\n\t\t\r\n\t}", "public void copiaImg() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString tipo = caminhoImagem.replaceAll(\".*\\\\.\", \"\");\r\n\t\t\tSystem.out.println(tipo);\r\n\t\t\tString l = caminhoImagem;\r\n\t\t\tString i = \"../MASProject/imagens/\" + idObra.getText() + \".\" + tipo;\r\n\t\t\tcaminhoImagem = i;\r\n\t\t\t@SuppressWarnings(\"resource\")\r\n\t\t\tFileInputStream fisDe = new FileInputStream(l);\r\n\t\t\t@SuppressWarnings(\"resource\")\r\n\t\t\tFileOutputStream fisPara = new FileOutputStream(i);\r\n\t\t\tFileChannel fcPara = fisDe.getChannel();\r\n\t\t\tFileChannel fcDe = fisPara.getChannel();\r\n\t\t\tif (fcPara.transferTo(0, fcPara.size(), fcDe) == 0L) {\r\n\t\t\t\tfcPara.close();\r\n\t\t\t\tfcDe.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e);\r\n\t\t}\r\n\t}", "public ImageIcon getFoto(){\r\n return (ImageIcon)beneficiario[5];\r\n }", "public void uploadPhotoProfile(FileEntryEvent ev){\n\tArrayList<Photo> listePhotos=new ArrayList<Photo>();\r\n\tlistePhotos=mbb.getMembre().getListePhotos();\r\n\tint idPhotoProfile=0;\r\n\t\r\n\tfor(Photo photo : listePhotos)\r\n\t{\r\n\t\tif(photo.getIsProfil())\r\n\t\t\tidPhotoProfile=photo.getId();\r\n\t}\r\n\t\r\n\tint photoProfileSupprime=PhotoManager.deletePhoto(idPhotoProfile);\r\n\tSystem.out.println(photoProfileSupprime);\r\n\tif(photoProfileSupprime>0)\r\n\t{\r\n\t\t\r\n\t//mettre la main sur le fileEntry\r\n\tFileEntry fiE = (FileEntry)ev.getSource();\r\n\t//récupérer ses results\r\n\tFileEntryResults fr = fiE.getResults();\r\n\t\r\n\t// Create an instance of SimpleDateFormat used for formatting \r\n\t\t\t// the string representation of date (month/day/year)\r\n\t\t\tDateFormat df = new SimpleDateFormat(\"ddMMyyyyHHmmss\");\r\n\r\n\t\t\t// Get the date today using Calendar object.\r\n\t\t\tDate today = Calendar.getInstance().getTime(); \r\n\t\t\t// Using DateFormat format method we can create a string \r\n\t\t\t// representation of a date with the defined format.\r\n\t\t\tString reportDate = df.format(today);\r\n\t\t\t\r\n\t\r\n\t//boucler sur les FileInfo\r\n\tfor(FileEntryResults.FileInfo fi: fr.getFiles()){\r\n\t\t//s'assurer que le fichier est enregistrer\r\n\t\tif(fi.isSaved()){\r\n\t\t\tSystem.out.println(\"le nom ========= \"+reportDate+fi.getFileName());\r\n\t\t\t//recu le fichier\r\n\t\t\tFile f = fi.getFile();\r\n\t\t\t\r\n\t\t\t//TODO verifier que c'est le bon type de fichier\r\n\t\t\t//renommer\r\n\t\t\ttry {\r\n\t\t\t\tString cheminApp=FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/\");\r\n\t\t\t\tString newch=cheminApp;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tboolean ren=f.renameTo(new File(newch+\"photos/\"+reportDate+fi.getFileName()));\r\n\t\t\t\t\r\n\t\t\t\tif (ren) {\r\n\t\t\t\t\tthis.chemin=\"photos/\"+reportDate+fi.getFileName();\r\n\t\t\t\t\tSystem.out.println(newch);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"pas possible. \"+newch);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//ajouter un message \r\n\t\t\tFacesContext.getCurrentInstance().addMessage(fiE.getClientId(),new FacesMessage(\"le fichier a été uploadé\"));\r\n\t\t\r\n\t\t\tPhoto photo= new Photo();\r\n\t\t\tphoto.setMemberID(mbb.getMembre().getMembreId());\r\n\t\t\tphoto.setChemin(chemin);\r\n\t\t\tphoto.setIsProfil(true);\r\n\r\n\t\t\tint ajoute=PhotoManager.addPhoto(photo);\r\n\t\t\tSystem.out.println(\"photo profile ajoute\");\r\n\t\t\tif(ajoute>0){\r\n\t\t\t\tmbb.getMembre().setListePhotos(PhotoManager.getPhotosByMemberId(mbb.getMembre().getMembreId()));//maj liste photos\r\n\t\t\t\tArrayList<Photo> photos=new ArrayList<Photo>();\r\n\t\t\t\tphotos=PhotoManager.getProfilPhotosByMemberId(mbb.getMembre().getMembreId());\r\n\t\t\t\tmbb.getMembre().setProfilImagePath(photos.get(0).getChemin()); //maj chemin photo profil\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}\t\r\n\t}", "private boolean insertarImagenCrear(JLabel foto, List<Integer> listaFoto, int key) {\n\n listaFoto = new ArrayList<>();\n\n JFileChooser chooser = new JFileChooser();\n chooser.showOpenDialog(null);\n\n String ruta = \"\";\n try {\n ruta += chooser.getSelectedFile().getPath();\n } catch (Exception e) {\n }\n\n if (!ruta.isEmpty() && (ruta.contains(\".jpg\") || ruta.contains(\".png\"))) {\n try {\n FileInputStream fis = new FileInputStream(new File(ruta));\n\n int r = fis.read();\n while (r != -1) {\n listaFoto.add(r);\n r = fis.read();\n }\n\n contenedorLista.put(key, listaFoto);\n\n ImageIcon image = new ImageIcon(ruta);\n Icon icono = new ImageIcon(image.getImage().getScaledInstance(foto1.getWidth() + 20, foto1.getHeight(), Image.SCALE_DEFAULT));\n foto.setIcon(icono);\n\n fis.close();\n return true;\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(SubirFotos.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(SubirFotos.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n JOptionPane.showMessageDialog(this, \"El formato que desea subir no es permitido.\");\n }\n\n return false;\n }", "public static void main(String[] args) throws IOException {\n HttpPageExtractor httpPageExtractor = new HttpPageExtractor();\n Page page = httpPageExtractor.extractPage(\"http://www.obrazki.org/upload/ob_0_33793200_1306404375.JPEG\");\n // new BufferedWriter(new FileWriter(new File(\"C:\\\\Users\\\\Jaras\\\\Desktop\\\\Temporary\\\\obrazek.jpeg\")))\n //Files.write(Paths.get(\"C:\\\\Users\\\\Jaras\\\\Desktop\\\\Temporary\\\\obraze.png\"), page.getBody().getBytes());\n try (InputStream in = URI.create(\"https://demotywatory.pl/uploads/201008/1282322197_by_MACTEP_600.jpg\").toURL().openStream()) {\n Files.copy(in, Paths.get(\"C:\\\\Users\\\\Jaras\\\\Desktop\\\\Temporary\\\\obrazek1.png\"));\n }\n }", "public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }", "private void transiccionFoto() {\n\t\tFadeTransition ft = new FadeTransition(Duration.seconds(5), fotoLogin);\n\t\tft.setFromValue(0);\n\t\tft.setToValue(1);\n\t\tft.play();\n\t}", "public Image getOne();", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat ( \"yyyyMMdd_HHmmss\" ).format ( new Date () );\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir ( Environment.DIRECTORY_PICTURES );\n File image = File.createTempFile (\n imageFileName , /* prefix */\n \".jpg\" , /* suffix */\n storageDir /* directory */\n );\n\n // luu file: su dung ACTION_VIEW\n pathToFile = image.getAbsolutePath ();\n return image;\n }", "@Test\r\n\tpublic void test1() {\n\t\tFile jpegFile = new File(\"C:\\\\Users\\\\lefto\\\\Downloads\\\\flickr\\\\test2\\\\20170814-150511-6_36561788895_o_EDIT.jpg\");\r\n\t\tMetadata metadata;\r\n\t\ttry {\r\n\t\t\tmetadata = ImageMetadataReader.readMetadata(jpegFile);\r\n\t\t\tfor (Directory directory : metadata.getDirectories()) {\r\n\t\t\t\tfor (Tag tag : directory.getTags()) {\r\n\t\t\t\t\tSystem.out.println(tag);\r\n//\t\t\t\t\tSystem.out.println(tag.getDirectoryName() + \", \" + tag.getTagName() + \", \" + tag.getDescription());\r\n//\t\t\t\t\tif (tag.getTagType() == ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL)\r\n//\t\t\t\t\t\tSystem.out.println(tag);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ImageProcessingException | IOException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "public Archivo() {\n fos = null;\n oos = null;\n fis = null;\n ois = null;\n }", "void loadPhoto(String filename) throws IOException;", "public interface FaroProfileImageDo {\n URL getPublicUrl();\n ImageProvider getImageProvider();\n boolean isThumbnail();\n}", "public void setAnoFilmagem(String anoFilmagem);", "@GET\n @Path(\"/mostrarOrdenadasFS\")\n @Produces({\"application/json\"})\n public List<Fotografia> fotoUsuarioOrdenadaFS(){\n int idUser = 1;\n return fotografiaEJB.FotoUsuarioOrdenadasFS(idUser);\n }", "public Photo(String fileName){\n\tthis.fileName=fileName;\n}", "public boolean SetImgPagina (int Cod, File imgfile, int numero_pagina){\n try {\n\n \n Connection connect = model.connectionDataBase.ConnectionDB.Connect();\n\n FileInputStream fin = new FileInputStream(imgfile);\n\n \n PreparedStatement pre = connect.prepareStatement(\"INSERT INTO pagine_opera\" + \"(immagine_pagina, cod_opera, numero_pagina, approvata) VALUES (?,?,?,?)\");\n\n pre.setInt(2,Cod);\n pre.setInt(3, numero_pagina);\n pre.setString(4, \"no\");\n\n pre.setBinaryStream(1,(InputStream)fin,(int)imgfile.length());\n pre.executeUpdate();\n\n \n pre.close();\n connect.close();\n\n return true;\n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n\n return false;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if(resultCode == RESULT_OK){\n Bitmap imagem = null;\n try {\n switch (requestCode){\n case SELECAO_GALERIA:\n Uri localImage = data.getData();\n imagem = MediaStore.Images.Media.getBitmap(getContentResolver(), localImage);\n break;\n }\n if(imagem != null){\n //configuração da imagem em Bitmap\n imageView.setImageBitmap(imagem);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n imagem.compress(Bitmap.CompressFormat.JPEG, 70, baos);\n byte[] dadosImagem = baos.toByteArray();\n\n //referência para pasta no Storage\n final StorageReference imagemRef = storageReference\n .child(\"imagens\")\n .child(\"servicos\")\n .child(idUserLogado)\n .child(imagem + \"jpeg\");\n\n //upload dos bytes da imagem\n UploadTask uploadTask = imagemRef.putBytes(dadosImagem);\n uploadTask.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(NovoProdutoEmpresaActivity.this,\n \"Erro ao fazer o upload da imagem\", Toast.LENGTH_SHORT).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(NovoProdutoEmpresaActivity.this,\n \"Sucesso ao fazer o upload da imagem\", Toast.LENGTH_SHORT).show();\n }\n });\n\n //recupera o link de download da imagem\n Task<Uri> urlTask = uploadTask.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()){\n throw task.getException();\n }\n return imagemRef.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if(task.isSuccessful()){\n Uri downloadUri = task.getResult();\n\n //salva a url na string\n urlImagemSelecionada = downloadUri.toString();\n }\n }\n });\n\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }", "private String saveNewPhoto(byte[] photo,String sufix){\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\" + sufix + \".jpg\";\n \n \n File potlachBase = new File(\"src/main/webapp/photos\"); //Shit made\n potlachBase.mkdirs();\n\n File potlachImage = new File(potlachBase,imageFileName);\n\n\n OutputStream out = null;\n try {\n potlachImage.createNewFile();\n InputStream in = new ByteArrayInputStream(photo);\n out = new FileOutputStream(potlachImage);\n\n // Transfer bytes from in to out\n byte[] buf = new byte[1024];\n int len;\n while ((len = in.read(buf)) > 0) {\n out.write(buf, 0, len);\n }\n in.close();\n out.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return \"/photos/\"+imageFileName;\n\n\n\n\n }", "@Override\n public void onClick(View view) {\n Intent takeFoto = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if(takeFoto.resolveActivity(getPackageManager()) != null){\n File photoFile = null;\n try{\n photoFile = createImageFile();\n } catch (IOException ex) {\n Log.d(\"FALLO\",\"TOMAR FOTO\");\n }\n if(photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(getApplicationContext(), \"com.B3B.farmbros.android.fileprovider\", photoFile);\n takeFoto.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(takeFoto, REQUEST_IMAGE_SAVE);\n }\n }\n }", "public String fotoToNick() {\r\n if (fotoFile == null) {\r\n foto = \"avatar.png\";\r\n } else {\r\n String nombreString = fotoFile.getName();\r\n String[] extensionStrings = nombreString.split(\"\\\\.\");\r\n foto = nick + \".\" + (extensionStrings[extensionStrings.length - 1]);\r\n }\r\n return foto;\r\n }", "public static void main(String[] args) {\n try {\n File image = new File(\"petite_image.png\");\n ImageSerializer serializer = new ImageSerializerBase64Impl();\n\n // Sérialization\n String encodedImage = (String) serializer.serialize(image);\n System.out.println(splitDisplay(encodedImage,76));\n\n // Désérialisation\n byte[] deserializedImage = (byte[]) serializer.deserialize(encodedImage);\n\n // Vérifications\n // 1/ Automatique\n assert (Arrays.equals(deserializedImage, Files.readAllBytes(image.toPath())));\n System.out.println(\"Cette sérialisation est bien réversible :)\");\n // 2/ Manuelle\n File extractedImage = new File(\"petite_image_extraite.png\");\n new FileOutputStream(extractedImage).write(deserializedImage);\n System.out.println(\"Je peux vérifier moi-même en ouvrant mon navigateur de fichiers et en ouvrant l'image extraite dans le répertoire de ce Test\");\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void queryAndSetPicture() {\n StorageReference storageRef = mStorage.getReference().child(user.getId());\n final long ONE_MEGABYTE = 1024 * 1024;\n storageRef.getBytes(ONE_MEGABYTE).addOnSuccessListener(new OnSuccessListener<byte[]>() {\n @Override\n public void onSuccess(byte[] bytes) {\n // Data for \"images/island.jpg\" is returns, use this as needed\n mImageByteArray = bytes;\n mImageBitmap = BitmapFactory.decodeByteArray(mImageByteArray, 0, mImageByteArray.length);\n mUserimage.setImageBitmap(mImageBitmap);\n mUserimage.setBackgroundColor(80000000);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n // Handle any errors\n// mUserimage.setBackgroundColor(80000000);\n }\n });\n\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n fotoReferencia.getDownloadUrl()\n .addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n Mensaje mensajeFoto = new Mensaje\n (nombreUsuario,\n \"Ha enviado una foto\",\n FirebaseAuth.getInstance().getCurrentUser()\n .getPhotoUrl().toString(),\n \"2\",\n DateFormat.getTimeInstance().format\n (Timestamp.now().toDate()),\n uri.toString(),\n idUsuario,\n idVeterinario);\n db.collection(\"chat\")\n .document(idChat)\n .collection(\"mensajes\")\n .add(mensajeFoto);\n }\n });\n }", "String avatarImage();", "public void crearImagenes() {\n try {\n fondoJuego1 = new Imagenes(\"/fondoJuego1.png\",39,-150,-151);\n fondoJuego2 = new Imagenes(\"/fondoJuego2.png\",40,150,149);\n regresar = new Imagenes(\"/regresar.png\",43,90,80);\n highLight = new Imagenes(\"/cursorSubmenus.png\",43,90,80);\n juegoNuevo = new Imagenes(\"/juegoNuevo.png\",44,90,80);\n continuar = new Imagenes(\"/continuar.png\",45,90,80);\n tituloJuegoNuevo = new Imagenes(\"/tituloJuegoNuevo.png\",200,100,165);\n tituloContinuar = new Imagenes(\"/tituloContinuar.png\",201,100,40);\n tituloRegresar = new Imagenes(\"/tituloRegresar.png\",202,20,100);\n\t} catch(IOException e){\n e.printStackTrace();\n }\n }", "@Override\n protected Integer doInBackground(Object... params) {\n Integer result=0;\n Foto foto = (Foto) params[0];\n /* Validamos la info antes de insertar*/\n if(foto.IdCategoria == null){foto.IdCategoria = 0;}\n if(foto.IdSondeo == null){foto.IdSondeo = 0;}\n if(foto.nOpcion==null){foto.nOpcion = 0;}\n if(foto.Marcaid == null){foto.Marcaid =0;}\n if(foto.SKU == null){foto.SKU =0L;}\n if(foto.idExhibicionConfig == null){foto.idExhibicionConfig = 0;}\n \n result = mx.smartteam.data.Foto.Insert(myContext, foto);\n if (result != null) {\n OpcionCollection opciones = (OpcionCollection) params[1];\n for (Opcion opcion : opciones) {\n try {\n mx.smartteam.business.Foto.Opcion.Insert(myContext, result, opcion);\n } catch (Exception ex) {\n Logger.getLogger(FotoActivity.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n delpicture(ruta);\n return result;\n }", "public Moto( String nome , float valor , int ano ){\n super( nome , valor ); //define ser uma subclasse\n this.marca = \"Honda\";\n this.ano = ano;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n\n //Obtiene la URI de la imagen\n Uri uri = data.getData();\n\n //Declara un InputStream\n InputStream inputStream = null;\n try {\n //Inicializa el InputStream utilizando como fuente de datos la URI de la imagen\n inputStream = getContentResolver().openInputStream(uri);\n\n //Obtiene una referencia al almacen de Firebase\n StorageReference storageReference = FirebaseStorage.getInstance().getReference();\n //Situa la referencia en la ruta donde se almacena la imagen de perfil del usuario\n storageReference = storageReference.child(\"usuarios\").child(usuario.getId()).child(\"perfil.png\");\n //Crea un objeto UploadTask, utilizado para subir la imagen al almacen de Firebase\n UploadTask uploadTask;\n //Inicializa el UploadTask haciendo una llamada al metodo putStream del objeto StorageReference\n //y pasandole por parametro el InputStream\n uploadTask = storageReference.putStream(inputStream);\n //Añade escuchadores al UploadTask que recibiran los eventos de operacion exitosa u operacion\n //fallida\n uploadTask.addOnFailureListener(new OnFailureListener() {\n /**\n * onFailure: se ejecuta si la operacion fallo\n * @param e\n */\n @Override\n public void onFailure(@NonNull Exception e) {\n //Muestra un Snackbar informando al usuaario del error\n Snackbar.make(ivFotoPerfil,\"Error al subir la imagen al servidor: \"\n + e.getMessage(),\n Snackbar.LENGTH_LONG).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n /**\n * onSuccess: se ejecuta si la operacion se realizo exitosamente\n * @param taskSnapshot\n */\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n //Etiqueta para evitar que el IDE se queje de que el metodo getDownloadUrl\n //solo deberia ser visible por tests o en un ambito private\n @SuppressWarnings(\"VisibleForTests\")\n //Obtiene del TaskSnapShot la URI de la imagen\n Uri uri = taskSnapshot.getDownloadUrl();\n //Establece la URL de la imagen de usuario en el objeto Usuario con la nueva URL\n usuario.setImagenUrl(uri.toString());\n\n //Obtiene una referencia a la base de datos\n DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference();\n //Almacena en la base de datos el objeto Usuario actualizado\n databaseReference.child(\"usuarios\").child(usuario.getId()).setValue(usuario);\n\n //Carga la nueva imagen en el ImageView\n Glide.with(getApplicationContext())\n .load(uri)\n .apply(new RequestOptions().placeholder(R.drawable.iconouser).centerCrop())\n .into(ivFotoPerfil);\n }\n });\n } catch (FileNotFoundException e) {\n //Si no se encontro la imagen, se muestra un Snackbar informando del error al usuario\n //y termina la ejecucion del metodo mediante return\n Snackbar.make(ivFotoPerfil,\"No se ha podido cargar la imagen: \"\n + e.getMessage(),\n Snackbar.LENGTH_LONG).show();\n\n }\n\n }\n }", "@Override\n public Image getImage(Photo photo) {\n return null;\n }", "void addPhoto(User user, Photo photo);", "public void descargarArchivo()throws SQLException, IOException {\n //conexion con el resultset\n st = cn.createStatement();\n\n // consulta de descarga el getId es la variable que utilizo para ubicarme en la base de datos\n ResultSet rs = st.executeQuery(\"select anexo_justi, nombre FROM anexoitem where iditem=\"+rt.getId());\ntry {\n \nrs.next();\n// pone en la variable el nombre del archivo de la base de datos\nnombre= rs.getString(\"nombre\");\n// inserta la ruta completa\nFile file = new File(rt.getPath()+nombre);\n// salida del archivo de flujo\nFileOutputStream output = new FileOutputStream(file);\nBlob archivo = rs.getBlob(1);\nInputStream inStream = archivo.getBinaryStream();\n// almacenamiento del tamaño y descarga byte a byte\nint length= -1;\nint size = (int) archivo.length();\nbyte[] buffer = new byte[size];\nwhile ((length = inStream.read(buffer)) != -1) {\noutput.write(buffer, 0, length);\nJOptionPane.showMessageDialog(null,\"El archivo se descargo correctamente\");\n// output.flush();\n\n}\n// inStream.close();\noutput.close();\n} catch (Exception ioe) {\nthrow new IOException(ioe.getMessage());\n}\n}", "void citire(FileReader f);", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "public void pintaFecha(){\n \tImage image;\r\n \ttry {\r\n\t \r\n \t\tString imageUrl = PropiedadesJLet.getInstance().getProperty(\"path.img.logoinvoice\") + \"FondoLeppardPico1.png\";\r\n\t\r\n\t\t\timage = Image.getInstance(imageUrl);\r\n\t\t image.setAbsolutePosition(inmargde-10, 725);\r\n\t\t image.scaleAbsolute(50,20);\r\n\t\t image.setAlignment(Image.LEFT | Image.TEXTWRAP);//Code 2\r\n\t\t\tdocumento.add(image);\r\n \r\n\t\t\tFRAparen.absTextBoldColor(writer,\"Fecha \",inmargde,730,10,new BaseColor(255,255,255));\r\n\t\t\tFRAparen.absText(writer,FRAparen.fechaNormal(fhfactur),inmargde + 45,730,10);\r\n\t\t\t\r\n\t\t\timage = Image.getInstance(imageUrl);\r\n\t\t image.setAbsolutePosition(inmargde-10, 700);\r\n\t\t image.scaleAbsolute(100,20);\r\n\t\t image.setAlignment(Image.LEFT | Image.TEXTWRAP);//Code 2\r\n\t\t\tdocumento.add(image);\r\n\t\t\t\r\n\t\t\tif (cabecNFC.equals(\"COND\") || cabecNFC.equals(\"R\")){\r\n\t\t\t\tFRAparen.absTextBoldColor(writer,cabecNFC +\" \"+ numerNFC +\" \",inmargde,705,10,new BaseColor(255,255,255));\r\n\t\t\t} else {\r\n\t\t\t\tFRAparen.absTextBoldColor(writer,\"NFC \"+ cabecNFC +\" \"+ numerNFC +\" \",inmargde,705,10,new BaseColor(255,255,255));\r\n\t\t\t}\r\n\t\t\t\r\n \t} catch (Exception e) {\r\n \t\tSystem.err.println(this.getClass().getName() +\" ERROR pintaFecha() - \"+ e.getMessage());\r\n \t}\r\n \t\r\n }", "public interface FileService {\n\n void saveDistinct(File file, MultipartFile fileData);\n\n String saveHeadImage(User user, MultipartFile file) throws Exception;\n\n\n}", "@GET\n @Path(\"/mostrarOrdenadasFT\")\n @Produces({\"application/json\"})\n public List<Fotografia> fotoUsuarioOrdenadaFT(){\n int idUser = 1;\n return fotografiaEJB.FotoUsuarioOrdenadasFT(idUser);\n }", "void agregarVotoPlayLIst(Voto voto) throws ExceptionDao;", "public void descargarArchivoVeri()throws SQLException, IOException {\n //conexion con el resultset\n st = cn.createStatement();\n\n // consulta de descarga el getId es la variable que utilizo para ubicarme en la base de datos\n ResultSet rs = st.executeQuery(\"select anexo_veri, nombre FROM anexoverificacion where idverificacion=\"+rt.getId());\ntry {\n \nrs.next();\n// pone en la variable el nombre del archivo de la base de datos\nnombre= rs.getString(\"nombre\");\n// inserta la ruta completa\nFile file = new File(rt.getPath()+nombre);\n// salida del archivo de flujo\nFileOutputStream output = new FileOutputStream(file);\nBlob archivo = rs.getBlob(1);\nInputStream inStream = archivo.getBinaryStream();\n// almacenamiento del tamaño y descarga byte a byte\nint length= -1;\nint size = (int) archivo.length();\nbyte[] buffer = new byte[size];\nwhile ((length = inStream.read(buffer)) != -1) {\noutput.write(buffer, 0, length);\nJOptionPane.showMessageDialog(null,\"El archivo se descargo correctamente\");\n// output.flush();\n\n}\n// inStream.close();\noutput.close();\n} catch (Exception ioe) {\nthrow new IOException(ioe.getMessage());\n}\n}", "@Override\n public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n //O sea que, la accion que ejecuta el usuario es igual a seleccionar una imagen de la galeria\n // Y \"&&\" que la seleccion de la imagen se hizo bien\n if (requestCode == CODIGO_GALERIA && resultCode == RESULT_OK);\n try {\n //Esto nos va transformar la URI en este archivo que esta aqui colocado.\n ArchivoImagen = UtilidadFile.from(this,data.getData());\n //Para que la imagen cargue en uno de los recuadros de la interfaz grafica se hara\n //esta implementacion en la cual recibe la ruta de la imagen.\n imgpost1.setImageBitmap(BitmapFactory.decodeFile(ArchivoImagen.getAbsolutePath()));\n }catch (Exception ex){\n Log.d(\"ERROR\", \"Ha ocurrido un error \"+ ex.getMessage());\n }\n }", "public static String getBiblioImagenUsuario() {\n\t\treturn \"imagenUsuario\";\n\t}", "private void guardar() {\n\t\t//JFileChooser fglobal = principal.getFglobal();\n\t\tprincipal.getFglobal().setDialogTitle(ic.buscar(38)); // Tag 38\n\n\t\t\tprincipal.getFglobal().setDialogType(JFileChooser.SAVE_DIALOG);\n\n\t\tAccesorio pep = new Accesorio(principal.getFglobal(),t, principal.getIC());\n\t\tprincipal.getFglobal().setAccessory(pep);\n\t\tpep.setProfundidad(true);\n\t\t\n principal.getFglobal().resetChoosableFileFilters();\n \n ExampleFileFilter filtroT = new ExampleFileFilter (\n new String [] {\"tiff\",\n \"tif\",\n },\n ic.buscar(3)); // Tag 3\n \n\n \n\t\t\t\n ExampleFileFilter filtroJ = new ExampleFileFilter (\n new String [] {\"jpeg\",\n \"jpg\"\n },\n ic.buscar(4)); // Tag 4\n principal.getFglobal().addChoosableFileFilter(filtroT);\n principal.getFglobal().addChoosableFileFilter(filtroJ);\n\t\t\n\t\t\n\t\t\n\t\tint retval = principal.getFglobal().showDialog(t, null);\n\t\tif (retval == JFileChooser.APPROVE_OPTION) \n\t\t{\t\t\n\t\t\tFile guardar = principal.getFglobal().getSelectedFile();\n \n\t\t\tif (\tprincipal.getFglobal().getFileFilter().getDescription().equals(filtroJ.getDescription()) )\n\t\t\t{// Guardar como JPEG\n \n\t\t\t\tJAI.create(\"filestore\",imagen_original,guardar.getPath(),\"JPEG\", new JPEGEncodeParam());\n\t\t\t}\n\t\t\telse if (principal.getFglobal().getFileFilter().getDescription().equals(filtroT.getDescription()))\n\t\t\t{// Guardar como TIFF\n\t\t\t\tint profundidad = pep.getEP().getMarcada();\n\t\t\t\t// Cubre todas las posibilidades (¿esto guarda los metadatos?)\n\t\t\t\tTiledImage tiled = null;\n\t\t\t\tif (profundidad != ElegirProfundidad.OCHO)\n\t\t\t\t{\n\t\t\t\t\ttiled = \n ElegirProfundidad.crearProfundidadReducida(\n ipixel_o, \n profundidad, \n imagen_original.getWidth(), \n imagen_original.getHeight());\n\t\t\t\t}\n\n\t\t\t\t//imgGuardar = djai.getSource();\n\t\t\t\tParameterBlock pb = new ParameterBlock();\n\t\t\t\tif (profundidad != ElegirProfundidad.OCHO)\n\t\t\t\t{\n\t\t\t\t\tpb.addSource(tiled);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpb.addSource(imagen_original);\n\t\t\t\t}\n\t\t\t\tpb.add(guardar);\n\t\t\t\tpb.add(\"TIFF\");\n\t\t\t\tpb.add(false); //UseProperties\n\t\t\t\tpb.add(false); //Transcode\n\t\t\t\tpb.add(true); //VerifyOutput\n\t\t\t\tpb.add(false); //AllowPixelReplacement\n\t\t\t\tpb.add(null); //TileSize\n\t\t\t\tpb.add(streamData);\n\t\t\t\tpb.add(imageData);\n\t \t\t\tJAI.create(\"imagewrite\", pb);\n\t\t\t\t\n\t\t\t\t//JAI.create(\"imagewrite\",tiled,guardar.getPath(),\"TIFF\");\n\t\t\t}\n\t\t\telse\n\t\t\t{// No tiene extensión o es una extensión extraña\n\t\t\t\tJAI.create(\"imagewrite\",imagen_original,guardar.getPath()+\".tif\",\"TIFF\");\n\t\t\t}\n\t\t\t\n\t\t}\t\t\t \n\t\telse \n\t\t{\n\t\t\tdibujarMensajesError(retval);\n\t\t} \n\t\t\n\t\t\n\t}", "String getImage();", "public String getLinkOfFoto()\n{\n\tJFileChooser fileChooser = new JFileChooser(\".\");\n\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"(png, gif, jpg, jpeg)\", \"png\", \"jpeg\", \"gif\", \"jpg\");\n\tfileChooser.setAcceptAllFileFilterUsed(false);\n\tfileChooser.setFileFilter(filter);\n\tString path=\"\";\n\n fileChooser.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n }\n });\n \n int status = fileChooser.showOpenDialog(null);\n\n\n\n if (status == JFileChooser.APPROVE_OPTION) {\n File selectedFile = fileChooser.getSelectedFile();\n path = selectedFile.getAbsolutePath();\n } else if (status == JFileChooser.CANCEL_OPTION) {\n \treturn \"\";\n }\n return path;\n}", "@Override\n public String getPicPhoto() {\n return pic_filekey;\n }", "private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}", "public String getThumbnail();", "private void abrirGaleria() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n //startActivityForResult recibe dos parametros, el intent que se inicializo anteriormente\n //y tambien un numero request que puede ser un numero entero que dice que va a ejecutar el usuario\n startActivityForResult(intent,CODIGO_GALERIA);\n }", "public Photo() {\n\t\tthis(UUID.randomUUID().toString() + \".jpg\");\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "private DocumentVO createThumbImage(DocumentVO documentVO)\r\n\t\tthrows IOException{\r\n\t\tDocumentVO thumbDoc = new DocumentVO();\r\n\t\tthumbDoc = mapDocument(documentVO);\r\n\t\tString fileName = thumbDoc.getFileName();\r\n\t\tint extStart = fileName.lastIndexOf(Constants.DOT);\r\n\t\tString fileExtn = fileName.substring(extStart+1);\r\n\t\tString fileNameWithOutExtn = fileName.substring(0, extStart);\r\n\t\tStringBuilder newFileName = new StringBuilder(fileNameWithOutExtn);\r\n\t\tnewFileName.append(Constants.ThumbNail.THUMBNAIL_SUFFIX);\t\t\t\r\n\t\tnewFileName.append(Constants.DOT);\r\n\t\tnewFileName.append(fileExtn);\r\n\t\tthumbDoc.setFileName(newFileName.toString());\r\n\t\tif(null != thumbDoc.getBlobBytes()){\r\n\t\t\tthumbDoc.setBlobBytes(DocumentUtils.resizeoImage(\r\n\t\t\t\t\tthumbDoc.getBlobBytes(),Constants.ThumbNail.THUMB_IMAGE_WIDTH,\r\n\t\t\t\t\tConstants.ThumbNail.THUMB_IMAGE_HEIGHT));\r\n\t\t}\r\n\t\telse if(null != thumbDoc.getDocument()){\r\n\t\t\tbyte[] imageBytes = FileUtils.readFileToByteArray(thumbDoc.getDocument());\r\n\t\t\tthumbDoc.setBlobBytes(DocumentUtils.resizeoImage(\r\n\t\t\t\t\timageBytes,Constants.ThumbNail.THUMB_IMAGE_WIDTH,\r\n\t\t\t\t\tConstants.ThumbNail.THUMB_IMAGE_HEIGHT));\r\n\t\t}\t\t\r\n\t\tthumbDoc.setDocSize(new Long(thumbDoc.getBlobBytes().length));\r\n\t\tthumbDoc.setDocument(null);\r\n\t\treturn thumbDoc;\r\n\t}", "public void ocultarMensaje(String msje, String fo, String nueFo){\n String mensaje, binario;\n Color color;\n int r,g,b;\n try{\n mensaje = lecturaArchivo(msje);\n binario = preparaMensaje(mensaje);\n BufferedImage image = sacaFoto(fo);\n int k = 0;\n for(int i = 0; i < image.getHeight(); i++)\n for(int j = 0; j < image.getWidth(); j++){\n color = new Color(image.getRGB(j, i));\n if(k <= binario.length()){\n String red = toBinary((byte) color.getRed());\n String green = toBinary((byte) color.getGreen());\n String blue = toBinary((byte) color.getBlue());\n red = reemplazarLSB(red, binario);\n green = reemplazarLSB(green, binario);\n blue = reemplazarLSB(blue, binario);\n r = Integer.parseInt(red ,2);\n g = Integer.parseInt(green ,2);\n b = Integer.parseInt(blue ,2);\n }else{\n r = color.getRed();\n g = color.getGreen();\n b = color.getBlue();\n }\n image.setRGB(j, i, new Color(r,g,b).getRGB());\n k+=3;\n }\n File output = new File(nueFo);\n ImageIO.write(image, \"png\", output);\n }catch(IOException ioe){\n System.out.println(\"Hubo un error en la escritura de la imagen\");\n System.exit(1);\n }\n }", "public void setFotoPerfil(Part foto){\n if(foto == null){\n throw new IllegalArgumentException(\"Foto de perfil de usuario igual a null\");\n }\n fotoPerfil = foto;\n }", "private DocumentVO createThumbImage(DocumentVO documentVO)\r\n\t\t\tthrows IOException{\r\n\t\tDocumentVO thumbDoc = new DocumentVO();\r\n\t\tthumbDoc = mapDocument(documentVO);\r\n\t\tString fileName = thumbDoc.getFileName();\r\n\t\tint extStart = fileName.lastIndexOf(Constants.DOT);\r\n\t\tString fileExtn = fileName.substring(extStart+1);\r\n\t\tString fileNameWithOutExtn = fileName.substring(0, extStart);\r\n\t\tStringBuilder newFileName = new StringBuilder(fileNameWithOutExtn);\r\n\t\tnewFileName.append(Constants.ThumbNail.THUMBNAIL_SUFFIX);\t\t\t\r\n\t\tnewFileName.append(Constants.DOT);\r\n\t\tnewFileName.append(fileExtn);\r\n\t\tthumbDoc.setFileName(newFileName.toString());\r\n\t\tif(null != thumbDoc.getBlobBytes()){\r\n\t\t\tthumbDoc.setBlobBytes(DocumentUtils.resizeoImage(\r\n\t\t\t\t\tthumbDoc.getBlobBytes(),Constants.ThumbNail.THUMB_IMAGE_WIDTH,\r\n\t\t\t\t\tConstants.ThumbNail.THUMB_IMAGE_HEIGHT));\r\n\t\t}\r\n\t\telse if(null != thumbDoc.getDocument()){\r\n\t\t\tbyte[] imageBytes = FileUtils.readFileToByteArray(thumbDoc.getDocument());\r\n\t\t\tthumbDoc.setBlobBytes(DocumentUtils.resizeoImage(\r\n\t\t\t\t\timageBytes,Constants.ThumbNail.THUMB_IMAGE_WIDTH,\r\n\t\t\t\t\tConstants.ThumbNail.THUMB_IMAGE_HEIGHT));\r\n\t\t}\t\t\r\n\t\tthumbDoc.setDocSize(new Long(thumbDoc.getBlobBytes().length));\r\n\t\tthumbDoc.setDocument(null);\r\n\t\treturn thumbDoc;\r\n\t}", "void escribeImagenEnBBDD(Connection con)\n {\n try\n {\n File fichero = new File(\"c:\\\\paella.jpg\"); // no es muy elegante pero esto es solo un ejemplo\n FileInputStream streamEntrada = new FileInputStream(fichero);\n PreparedStatement pstmt = con.prepareStatement(\"insert into imagenesbbdd (nombre,imagen) values (?,?)\",Statement.RETURN_GENERATED_KEYS);\n pstmt.setString(1, \"paella.jpg\");\n pstmt.setBinaryStream(2, streamEntrada, (int)fichero.length());\n pstmt.executeUpdate();\n\n // recuperamos el indice del elemento generado\n ResultSet rs = pstmt.getGeneratedKeys();\n rs.next();\n\n depura(\"El id recuperado es: \" + rs.getInt(1));\n\n rs.close();\n pstmt.close();\n streamEntrada.close();\n\n }\n catch(Exception e)\n {\n depura(\"Error al escribir el Stream \" + e.getMessage());\n }\n }" ]
[ "0.70834243", "0.6990997", "0.6899527", "0.68788064", "0.66509145", "0.64934415", "0.6302587", "0.62834674", "0.6280162", "0.62615854", "0.62583476", "0.62441254", "0.62322325", "0.61793077", "0.61464405", "0.60268193", "0.6015668", "0.6011957", "0.5978236", "0.59565467", "0.59358656", "0.59249383", "0.5915168", "0.5884693", "0.58622", "0.58490825", "0.58443856", "0.58210856", "0.58184695", "0.57733095", "0.57583493", "0.5754342", "0.57412034", "0.57199544", "0.5710863", "0.5685729", "0.5678392", "0.5669815", "0.56681114", "0.5646904", "0.5644928", "0.5639113", "0.5637889", "0.5626707", "0.56143224", "0.56010276", "0.5585717", "0.55810213", "0.5576627", "0.5574948", "0.5559898", "0.55588955", "0.5558875", "0.55550617", "0.5548441", "0.55363005", "0.55313367", "0.5524169", "0.5522907", "0.55175406", "0.5514053", "0.54918873", "0.5489167", "0.5488501", "0.54874015", "0.5484389", "0.5483268", "0.5481159", "0.5480428", "0.5478042", "0.5477914", "0.5476428", "0.544622", "0.54450834", "0.5434805", "0.54321194", "0.5430913", "0.54307437", "0.5426712", "0.54243535", "0.5423556", "0.541906", "0.5418663", "0.54182845", "0.5413175", "0.540533", "0.5398955", "0.5388251", "0.5385469", "0.5384195", "0.5383654", "0.5382365", "0.5382337", "0.53801656", "0.53706515", "0.53701323", "0.53690577", "0.53665227", "0.5359121", "0.53566146", "0.53557056" ]
0.0
-1
Creates new form LoginWindow2
public LoginWindow2() { initComponents(); setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/photo/bus-icon-17.png"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Login() \n {\n super();\n create();\n this.setVisible(true);\n initComponents();\n }", "private void genLoginGui(){\n loginFrame = new JFrame(\"Log in\");\n\n // login panel, inputs name\n loginPanel = new JPanel();\n loginPanel.setLayout(new FlowLayout());\n nameLabel = new JLabel(\"Name\");\n nameTextFiled = new JTextField();\n nameTextFiled.setPreferredSize(new Dimension(100, 20));\n nameTextFiled.addActionListener(clientAction);\n nameTextFiled.setActionCommand(\"ENTERROOM\");\n\n btnEnterRoom = new JButton(\"Enter Room\");\n btnEnterRoom.addActionListener(clientAction);\n btnEnterRoom.setActionCommand(\"ENTERROOM\");\n\n loginPanel.add(nameLabel);\n loginPanel.add(nameTextFiled);\n loginPanel.add(btnEnterRoom);\n\n loginFrame.add(loginPanel, BorderLayout.CENTER);\n\n loginFrame.setSize(700, 500);\n loginFrame.setLocation(0, 200);\n loginFrame.add(loginPanel);\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n }", "public void loginBuilder(){\n loginFrame = new JFrame(\"Coronos Login\");\n loginFrame.setLayout(new GridLayout(3, 1));\n\n jpUserName = new JPanel(new FlowLayout());\n jtfUserNameField = new JTextField(10);\n userNameLabel = new JLabel(\"Username:\");\n userNameLabel.setLabelFor(jtfUserNameField);\n jpUserName.add(userNameLabel);\n jpUserName.add(jtfUserNameField);\n loginFrame.add(jpUserName);\n \n jpPassWord = new JPanel(new FlowLayout());\n passWordField = new JPasswordField(10);\n passWordLabel = new JLabel(\"Password:\");\n passWordField.addActionListener(this);\n passWordField.setActionCommand(\"Login\");\n passWordLabel.setLabelFor(passWordField);\n jpPassWord.add(passWordLabel);\n jpPassWord.add(passWordField);\n loginFrame.add(jpPassWord);\n \n jpOptions = new JPanel(new FlowLayout());\n loginButton = new JButton(\"Login\");\n loginButton.addActionListener(this);\n showPassword = new JButton(\"Reveal Password\");\n showPassword.addActionListener(this);\n jpOptions.add(loginButton);\n jpOptions.add(showPassword);\n loginFrame.add(jpOptions);\n \n loginFrame.setLocationRelativeTo(null);\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n loginFrame.pack();\n }", "public LoginWindow()\n {\n super(\"Login\");\n\n myLoginPanel = new LoginPanel(this);\n this.setResizable(false);\n this.setContentPane(makePanel());\n this.pack();\n this.setVisible(true);\n }", "public LoginW() {\n this.setUndecorated(true);\n initComponents();\n origin = pnlBackG.getBackground();\n lblErrorLogin.setVisible(false);\n this.setLocationRelativeTo(null);\n Fondo();\n }", "public LoginGUI1(String judul, int posX, int posY, int width,\n\t\t\tint height, JFrame parent) {\n\t\tsetBounds(100, 100, 450, 300);\n\t\tgetContentPane().setLayout(null);\n\t\t\n\t\tJLabel label = new JLabel(\"\");\n\t\tlabel.setBounds(41, 60, 46, 14);\n\t\tgetContentPane().add(label);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"ID :\");\n\t\tlblNewLabel.setBounds(51, 125, 46, 14);\n\t\tgetContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Password :\");\n\t\tlblNewLabel_1.setBounds(51, 164, 60, 14);\n\t\tgetContentPane().add(lblNewLabel_1);\n\t\t\n\t\ttxtUser = new JTextField();\n\t\ttxtUser.setBounds(168, 122, 86, 20);\n\t\tgetContentPane().add(txtUser);\n\t\ttxtUser.setColumns(10);\n\t\t\n\t\tJButton btnLogin = new JButton(\"Login\");\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString usr=txtUser.getText();\n\t\t\t\t//String pass=Users.generateMD5(txtPass.getText());\n\t\t\t\t//String pDef=Users.generateMD5(\"lh091011\");\n\t\t\t\tString pass=(txtPass.getText());\n\t\t\t\tString pDef=(\"lh091011\");\n\t\t\t\t\n\t\t\t\tint jml=ut.viewAll().size();\n\t\t\t\tUsers lg=ut.cariById(txtUser.getText());\n\t\t\t\tif(jml==0 && usr.equals(\"adm\") && pass.equals(pDef)){\n\t\t\t\t\t((MainGUI)getParent()).setLogin(\"adm\",\"A\");\n\t\t\t\t\tdispose();\n\t\t\t\t}else if(usr.equals(lg.getId()) && pass.equals(lg.getPass())){\n\t\t\t\t\t((MainGUI)getParent()).setLogin(lg.getId(),lg.getJenis());\n\t\t\t\t\tdispose();\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Username dan Password salah\", \"Toko Obat\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(55, 207, 89, 23);\n\t\tgetContentPane().add(btnLogin);\n\t\t\n\t\tJButton btnExit = new JButton(\"Exit\");\n\t\tbtnExit.setBounds(165, 207, 89, 23);\n\t\tgetContentPane().add(btnExit);\n\t\t\n\t\ttxtPass = new JPasswordField();\n\t\ttxtPass.setBounds(168, 161, 86, 20);\n\t\tgetContentPane().add(txtPass);\n\t\t\n\t\tJLabel lblSilahkanLoginDisini = new JLabel(\"Silahkan Login Disini\");\n\t\tlblSilahkanLoginDisini.setFont(new Font(\"Sylfaen\", Font.PLAIN, 13));\n\t\tlblSilahkanLoginDisini.setBounds(103, 85, 126, 14);\n\t\tgetContentPane().add(lblSilahkanLoginDisini);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Aplikasi Penjualan Toko Obat Herbal\");\n\t\tlblNewLabel_2.setFont(new Font(\"Traditional Arabic\", Font.PLAIN, 15));\n\t\tlblNewLabel_2.setBounds(41, 60, 237, 14);\n\t\tgetContentPane().add(lblNewLabel_2);\n\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenu2 = new javax.swing.JMenu();\n Password = new javax.swing.JPasswordField();\n Username = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n Login = new javax.swing.JButton();\n CreateAccount = new javax.swing.JButton();\n exit = new javax.swing.JButton();\n LoginError = new javax.swing.JLabel();\n filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767));\n\n jButton1.setText(\"jButton1\");\n\n jMenu1.setText(\"File\");\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n jMenuBar1.add(jMenu2);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Inventory Login\");\n setBackground(new java.awt.Color(0, 0, 0));\n setBounds(new java.awt.Rectangle(240, 240, 240, 240));\n setForeground(java.awt.Color.white);\n setName(\"TEST\"); // NOI18N\n setUndecorated(true);\n setOpacity(0.95F);\n setType(java.awt.Window.Type.POPUP);\n\n Password.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n PasswordActionPerformed(evt);\n }\n });\n\n Username.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n UsernameActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Password:\");\n\n jLabel2.setText(\"Username:\");\n\n Login.setText(\"Login\");\n Login.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n LoginActionPerformed(evt);\n }\n });\n\n CreateAccount.setText(\"Create Account\");\n CreateAccount.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CreateAccountActionPerformed(evt);\n }\n });\n\n exit.setText(\"Exit\");\n exit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitActionPerformed(evt);\n }\n });\n\n LoginError.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n LoginError.setForeground(new java.awt.Color(255, 0, 0));\n LoginError.setLabelFor(LoginError);\n LoginError.setText(\"Not a valid login\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(83, 83, 83)\n .addComponent(Login, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(CreateAccount)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(exit, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 66, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LoginError, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Password, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)\n .addComponent(Username)))\n .addGap(127, 127, 127))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(224, 224, 224))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(49, 49, 49)\n .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Username, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Password, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(LoginError)\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Login)\n .addComponent(CreateAccount)\n .addComponent(exit))\n .addContainerGap(34, Short.MAX_VALUE))\n );\n\n jLabel2.getAccessibleContext().setAccessibleName(\"userName\");\n\n pack();\n }", "public Login() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "public Login(){\n\t\tthis.setTitle(\"DSI | Sokoban\");\n\t\tvalido = false;\n\t\tthis.getContentPane().setLayout(new FlowLayout());\n\t\tcrearLabels();\n\t\tcrearBotones();\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setPreferredSize(new Dimension(250, 200));\n\t\tthis.pack();\n\t\tthis.setResizable(false);\n\t\tthis.setVisible(true);\n\t\tthis.setLocationRelativeTo(null);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Panel1Login = new javax.swing.JPanel();\n Panel2Login = new javax.swing.JPanel();\n lblUsuario = new javax.swing.JLabel();\n lblContrasena = new javax.swing.JLabel();\n btnIngresar = new javax.swing.JButton();\n txtCedulaLogin = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n txtContrasenaLogin = new javax.swing.JPasswordField();\n jLabel4 = new javax.swing.JLabel();\n btnRegistrarse = new javax.swing.JButton();\n btnModoNocturno = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n Panel1Login.setBackground(new java.awt.Color(102, 0, 51));\n\n Panel2Login.setBackground(new java.awt.Color(204, 0, 51));\n Panel2Login.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n lblUsuario.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n lblUsuario.setForeground(new java.awt.Color(255, 255, 255));\n lblUsuario.setText(\"Nombre Usuario:\");\n Panel2Login.add(lblUsuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 90, -1, -1));\n\n lblContrasena.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n lblContrasena.setForeground(new java.awt.Color(255, 255, 255));\n lblContrasena.setText(\"Contraseña:\");\n Panel2Login.add(lblContrasena, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 160, -1, -1));\n\n btnIngresar.setBackground(new java.awt.Color(255, 0, 51));\n btnIngresar.setForeground(new java.awt.Color(255, 255, 255));\n btnIngresar.setText(\"Ingresar\");\n btnIngresar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnIngresarActionPerformed(evt);\n }\n });\n Panel2Login.add(btnIngresar, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 190, -1, -1));\n\n txtCedulaLogin.setBackground(new java.awt.Color(204, 0, 51));\n txtCedulaLogin.setForeground(new java.awt.Color(255, 255, 255));\n txtCedulaLogin.setBorder(null);\n Panel2Login.add(txtCedulaLogin, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 80, 240, 30));\n\n jSeparator1.setForeground(new java.awt.Color(255, 255, 255));\n Panel2Login.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 180, 230, 20));\n\n jSeparator2.setForeground(new java.awt.Color(255, 255, 255));\n Panel2Login.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 110, 230, 20));\n\n txtContrasenaLogin.setBackground(new java.awt.Color(204, 0, 51));\n txtContrasenaLogin.setForeground(new java.awt.Color(255, 255, 255));\n txtContrasenaLogin.setBorder(null);\n txtContrasenaLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtContrasenaLoginActionPerformed(evt);\n }\n });\n Panel2Login.add(txtContrasenaLogin, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 150, 230, 30));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Vista/Iconos/icons8-usuario-masculino-en-círculo-45.png\"))); // NOI18N\n Panel2Login.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 20, -1, -1));\n\n btnRegistrarse.setBackground(new java.awt.Color(255, 0, 51));\n btnRegistrarse.setForeground(new java.awt.Color(255, 255, 255));\n btnRegistrarse.setText(\"Registrarse\");\n Panel2Login.add(btnRegistrarse, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 230, -1, -1));\n\n btnModoNocturno.setText(\"Modo Nocturno\");\n\n javax.swing.GroupLayout Panel1LoginLayout = new javax.swing.GroupLayout(Panel1Login);\n Panel1Login.setLayout(Panel1LoginLayout);\n Panel1LoginLayout.setHorizontalGroup(\n Panel1LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Panel1LoginLayout.createSequentialGroup()\n .addGap(177, 177, 177)\n .addComponent(Panel2Login, javax.swing.GroupLayout.PREFERRED_SIZE, 498, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(150, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, Panel1LoginLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnModoNocturno)\n .addGap(36, 36, 36))\n );\n Panel1LoginLayout.setVerticalGroup(\n Panel1LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(Panel1LoginLayout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(btnModoNocturno)\n .addGap(45, 45, 45)\n .addComponent(Panel2Login, javax.swing.GroupLayout.PREFERRED_SIZE, 279, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(106, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Panel1Login, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Panel1Login, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public LoginPanel() {\n initComponents();\n JFrame loginFrame=new JFrame(\"LOGIN\");\n loginFrame.add(this);\n loginFrame.pack();\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n login.addActionListener(new ActionListener(){\n @Override\n public void actionPerformed(ActionEvent e) {\n \n try {\n \n int response=NetIO.Login.loginReq(UNAME.getText(), PASS.getText());\n if(response==0)\n {\n new DayPlanner();\n loginFrame.setVisible(false);\n }\n else if(response==-1)\n {\n error.setText(\"SERVER ERROR\");\n }\n else if(response==1)\n {\n error.setText(\"INVALID USERNAME OR PASSWORD\");\n }\n } catch (Exception ex) {\n Logger.getLogger(LoginPanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n });\n reg.addActionListener(new ActionListener(){\n @Override\n public void actionPerformed(ActionEvent e) {\n RegisterPanel.open();\n }\n });\n \n }", "public LoginUI() {\n\t\tparentFrame = Main.getMainFrame();\n\t\tparentFrame.setVisible(true);\n\n\t\tsetLayout(new BorderLayout(5, 5));\n\t\tadd(initFields(), BorderLayout.NORTH);\n\t\tadd(initButtons(), BorderLayout.CENTER);\n\t}", "public T01Login() {\n initComponents();\n btnMenu.setVisible(false);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n loginPanel = new javax.swing.JPanel();\n usernameLabel = new javax.swing.JLabel();\n usernameTextField = new javax.swing.JTextField();\n passwordLabel = new javax.swing.JLabel();\n passwordField = new javax.swing.JPasswordField();\n loginButton = new javax.swing.JButton();\n exitButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ke.go.moh.oec.reception.gui.App.class).getContext().getResourceMap(LoginDialog.class);\n setTitle(resourceMap.getString(\"Form.title\")); // NOI18N\n setName(\"Form\"); // NOI18N\n setResizable(false);\n\n loginPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n loginPanel.setName(\"loginPanel\"); // NOI18N\n\n usernameLabel.setText(resourceMap.getString(\"usernameLabel.text\")); // NOI18N\n usernameLabel.setName(\"usernameLabel\"); // NOI18N\n\n usernameTextField.setText(resourceMap.getString(\"usernameTextField.text\")); // NOI18N\n usernameTextField.setName(\"usernameTextField\"); // NOI18N\n\n passwordLabel.setText(resourceMap.getString(\"passwordLabel.text\")); // NOI18N\n passwordLabel.setName(\"passwordLabel\"); // NOI18N\n\n passwordField.setText(resourceMap.getString(\"passwordField.text\")); // NOI18N\n passwordField.setName(\"passwordField\"); // NOI18N\n\n javax.swing.GroupLayout loginPanelLayout = new javax.swing.GroupLayout(loginPanel);\n loginPanel.setLayout(loginPanelLayout);\n loginPanelLayout.setHorizontalGroup(\n loginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(loginPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(loginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(passwordLabel)\n .addComponent(usernameLabel))\n .addGap(18, 18, 18)\n .addGroup(loginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(usernameTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)\n .addComponent(passwordField, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE))\n .addContainerGap())\n );\n loginPanelLayout.setVerticalGroup(\n loginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(loginPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(loginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(usernameLabel)\n .addComponent(usernameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(loginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(passwordLabel)\n .addComponent(passwordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(ke.go.moh.oec.reception.gui.App.class).getContext().getActionMap(LoginDialog.class, this);\n loginButton.setAction(actionMap.get(\"login\")); // NOI18N\n loginButton.setText(resourceMap.getString(\"loginButton.text\")); // NOI18N\n loginButton.setName(\"loginButton\"); // NOI18N\n\n exitButton.setAction(actionMap.get(\"quit\")); // NOI18N\n exitButton.setText(resourceMap.getString(\"exitButton.text\")); // NOI18N\n exitButton.setName(\"exitButton\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(loginPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(loginButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(exitButton)))\n .addContainerGap())\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {exitButton, loginButton});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(loginPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(exitButton)\n .addComponent(loginButton))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t public void run() {\r\n\t\t\t try {\r\n\t\t\t NewLogin window = new NewLogin();\r\n\t\t\t window.setVisible(true);\r\n\t\t\t } catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t });\r\n\t\t\t\t\r\n \t\r\n\t\t\t\t\r\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jTextField2 = new javax.swing.JPasswordField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Blood Bank - Login\");\n setUndecorated(true);\n setResizable(false);\n\n jPanel2.setBackground(new java.awt.Color(153, 0, 0));\n jPanel2.setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"LOGIN\");\n jPanel2.add(jLabel1);\n jLabel1.setBounds(160, 0, 80, 30);\n\n jPanel1.setBackground(new java.awt.Color(204, 204, 204));\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n jPanel1.setLayout(null);\n\n jTextField1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jPanel1.add(jTextField1);\n jTextField1.setBounds(170, 20, 180, 30);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"Username:\");\n jPanel1.add(jLabel2);\n jLabel2.setBounds(60, 20, 90, 30);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"Password:\");\n jPanel1.add(jLabel3);\n jLabel3.setBounds(60, 60, 90, 30);\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton1.setText(\"Exit\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton1);\n jButton1.setBounds(270, 100, 80, 40);\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton2.setText(\"Login\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton2);\n jButton2.setBounds(170, 100, 80, 40);\n\n jTextField2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jPanel1.add(jTextField2);\n jTextField2.setBounds(170, 60, 180, 30);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public Form getLoginForm() {\n if (LoginForm == null) {//GEN-END:|14-getter|0|14-preInit\n // write pre-init user code here\n LoginForm = new Form(\"Welcome\", new Item[]{getTextField()});//GEN-BEGIN:|14-getter|1|14-postInit\n LoginForm.addCommand(getExitCommand());\n LoginForm.addCommand(getOkCommand());\n LoginForm.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit\n // write post-init user code here\n }//GEN-BEGIN:|14-getter|2|\n return LoginForm;\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(410, 210, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(262, 83, 86, 20);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel lbl1 = new JLabel(\"UserName\");\r\n\t\tlbl1.setBounds(103, 86, 60, 14);\r\n\t\tframe.getContentPane().add(lbl1);\r\n\t\tJLabel err = new JLabel(\"\");\r\n\t\terr.setBounds(71, 23, 277, 14);\r\n\t\tframe.getContentPane().add(err);\r\n\t\t\r\n\t\tJLabel lNewLabel_1 = new JLabel(\"Password\");\r\n\t\tlNewLabel_1.setBounds(103, 139, 92, 14);\r\n\t\tframe.getContentPane().add(lNewLabel_1);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Login\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString uname = textField.getText();\r\n\t\t\t\t\tString password = new String(passwordField.getPassword());\r\n\t\t\t\t\tint num = ConnectDB.Login(uname,password);\r\n\t\t\t\t\r\n\t\t\t\tif(num==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tDialogMessage.showInfoDialog(\"Employee Login\");\r\n\t\t\t\t\tMenu m = new Menu();\r\n\t\t\t\t\tm.Newscreen();\r\n\t\t\t\t\tframe.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse if(num==2)\r\n\t\t\t\t{\r\n\t\t\t\t\tDialogMessage.showInfoDialog(\"Employee Login\");\r\n\t\t\t\t\tMenu m = new Menu();\r\n\t\t\t\t\tm.Newscreen();\r\n\t\t\t\t\tframe.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tDialogMessage.showWarningDialog(\"ERROR\");\r\n\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t} catch (NoSuchAlgorithmException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(106, 196, 89, 23);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Exit\");\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setBounds(262, 196, 89, 23);\r\n\t\tframe.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tpasswordField = new JPasswordField();\r\n\t\tpasswordField.setBounds(262, 136, 86, 20);\r\n\t\tframe.getContentPane().add(passwordField);\r\n\t\t\r\n\t\r\n\t}", "public login() {\n initComponents();\n setLocationRelativeTo(null);\n this.setDefaultCloseOperation(login.DO_NOTHING_ON_CLOSE);\n }", "private void createAdminPanel() {\n username = new JTextField(8);\n password = new JPasswordField(8);\n JPanel loginArea = adminLoginPanels();\n JPanel buttons = adminLoginButtons();\n loginFrame = new JFrame();\n loginFrame.setLayout(new BorderLayout());\n loginFrame.getRootPane().setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n loginLabel = new JLabel(\"Please log in as administrator\", SwingConstants.CENTER);\n loginFrame.getContentPane().add(loginLabel, BorderLayout.NORTH);\n loginFrame.getContentPane().add(loginArea, BorderLayout.CENTER);\n loginFrame.getContentPane().add(buttons, BorderLayout.SOUTH);\n loginFrame.setVisible(true);\n loginFrame.pack();\n }", "public Login() {\n initComponents();\n this.setLocationRelativeTo(null);\n AWTUtilities.setWindowOpaque(this, false);\n }", "public Login() {\n\t\tinitComponents();\n\t\tthis.setTitle(\"学生成绩管理系统-登录\");\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n tLogin = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n tsenha = new javax.swing.JPasswordField();\n bLogin = new javax.swing.JButton();\n bLogin1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Login\"));\n\n jLabel1.setText(\"Login:\");\n\n jLabel2.setText(\"Senha: \");\n\n bLogin.setText(\"Entrar\");\n bLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bLoginActionPerformed(evt);\n }\n });\n\n bLogin1.setText(\"Sair\");\n bLogin1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bLogin1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(tLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tsenha)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(bLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bLogin1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(tLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tsenha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bLogin)\n .addComponent(bLogin1)))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jPasswordField1 = new javax.swing.JPasswordField();\n jLabel3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jCheckBox1 = new javax.swing.JCheckBox();\n jLabel4 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel13 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"MST - User Login\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setText(\"User Name\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 100, 80, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n jLabel2.setText(\"Create a New Account\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 170, 120, -1));\n\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n jPanel1.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 100, 140, -1));\n jPanel1.add(jPasswordField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 130, 140, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"User Login\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 40, 117, 28));\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton1.setText(\"Login\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 170, 100, -1));\n\n jCheckBox1.setText(\"Show Password\");\n jCheckBox1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jCheckBox1ItemStateChanged(evt);\n }\n });\n jCheckBox1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox1MouseClicked(evt);\n }\n });\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n jPanel1.add(jCheckBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 170, -1, -1));\n\n jLabel4.setText(\"Password\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 130, 80, -1));\n jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 220, 410, 10));\n jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 30, 410, 10));\n\n jLabel13.setText(\"Enter the password!\");\n jPanel1.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 130, 110, 20));\n\n jLabel10.setText(\"Enter the name!\");\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 100, 100, 20));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n jLabel6.setText(\"Create a New Account\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 170, 120, -1));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 440, 250));\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n txtusername = new javax.swing.JTextField();\n jpassword = new javax.swing.JPasswordField();\n btnlogin = new javax.swing.JButton();\n btnreg = new javax.swing.JButton();\n btnexit = new javax.swing.JButton();\n lbusername = new javax.swing.JLabel();\n lbpassword = new javax.swing.JLabel();\n lbcpassword = new javax.swing.JLabel();\n jcpassword = new javax.swing.JPasswordField();\n lbeno = new javax.swing.JLabel();\n txteno = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(665, 385));\n setPreferredSize(new java.awt.Dimension(665, 385));\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(240, 87, 2));\n jPanel1.setLayout(null);\n\n jPanel2.setBackground(new java.awt.Color(240, 159, 37));\n jPanel2.setPreferredSize(new java.awt.Dimension(670, 340));\n jPanel2.setLayout(null);\n jPanel2.add(txtusername);\n txtusername.setBounds(290, 60, 200, 30);\n jPanel2.add(jpassword);\n jpassword.setBounds(290, 100, 200, 30);\n\n btnlogin.setBackground(new java.awt.Color(102, 255, 102));\n btnlogin.setFont(new java.awt.Font(\"Wide Latin\", 0, 14)); // NOI18N\n btnlogin.setText(\"LOGIN\");\n jPanel2.add(btnlogin);\n btnlogin.setBounds(170, 200, 140, 40);\n\n btnreg.setBackground(new java.awt.Color(102, 255, 204));\n btnreg.setFont(new java.awt.Font(\"Wide Latin\", 0, 14)); // NOI18N\n btnreg.setText(\"REGISTER\");\n btnreg.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnregActionPerformed(evt);\n }\n });\n jPanel2.add(btnreg);\n btnreg.setBounds(330, 200, 210, 40);\n\n btnexit.setBackground(new java.awt.Color(255, 255, 255));\n btnexit.setFont(new java.awt.Font(\"Wide Latin\", 0, 14)); // NOI18N\n btnexit.setForeground(new java.awt.Color(0, 51, 204));\n btnexit.setText(\"EXIT\");\n btnexit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnexitActionPerformed(evt);\n }\n });\n jPanel2.add(btnexit);\n btnexit.setBounds(490, 250, 160, 30);\n\n lbusername.setFont(new java.awt.Font(\"Wide Latin\", 0, 12)); // NOI18N\n lbusername.setText(\"USERNAME\");\n jPanel2.add(lbusername);\n lbusername.setBounds(140, 70, 150, 13);\n\n lbpassword.setFont(new java.awt.Font(\"Wide Latin\", 0, 12)); // NOI18N\n lbpassword.setText(\"PASSWORD\");\n jPanel2.add(lbpassword);\n lbpassword.setBounds(140, 110, 140, 13);\n\n lbcpassword.setFont(new java.awt.Font(\"Wide Latin\", 0, 10)); // NOI18N\n lbcpassword.setText(\"CONFIRM PASSWORD\");\n jPanel2.add(lbcpassword);\n lbcpassword.setBounds(70, 140, 270, 20);\n jPanel2.add(jcpassword);\n jcpassword.setBounds(290, 140, 200, 30);\n\n lbeno.setFont(new java.awt.Font(\"Wide Latin\", 0, 10)); // NOI18N\n lbeno.setText(\"EMPLOYEMENT NO\");\n jPanel2.add(lbeno);\n lbeno.setBounds(90, 30, 200, 20);\n jPanel2.add(txteno);\n txteno.setBounds(290, 20, 200, 30);\n jPanel2.add(jLabel2);\n jLabel2.setBounds(190, 20, 280, 290);\n\n jPanel1.add(jPanel2);\n jPanel2.setBounds(0, 60, 670, 340);\n\n jLabel1.setFont(new java.awt.Font(\"Wide Latin\", 0, 14)); // NOI18N\n jLabel1.setText(\"LUXURY HOTEL LOGIN/ACCOUNT CREATION \");\n jPanel1.add(jLabel1);\n jLabel1.setBounds(10, 20, 640, 30);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 671, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public LoginFrame() {\n\t\tsetJFrame();\n\t\t\n\t\tbuildGUI();\n\t}", "public void createLoginPopUp(JButton loginButton) {\n\t\tJPanel loginPanel = new JPanel();\n\n\t\tHintTextField usernameEntry = new HintTextField(\"Username\");\n\t\tusernameEntry.setPreferredSize(new Dimension(150, 25));\n\n\t\tHintPasswordField passwordEntry = new HintPasswordField(\"Password\");\n\t\tpasswordEntry.setPreferredSize(new Dimension(150, 25));\n\n\t\tBox vBox = Box.createVerticalBox(); // Align components in one column\n\t\tvBox.add(usernameEntry);\n\t\tvBox.add(passwordEntry);\n\n\t\tloginPanel.add(vBox);\n\t\tObject options[] = { \"Login\", \"Cancel\" };\n\n\t\tint selection = JOptionPane.showOptionDialog(null, loginPanel, \"BTS Login\", JOptionPane.OK_CANCEL_OPTION,\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\n\t\tif (selection == JOptionPane.OK_OPTION) {\n\t\t\tString username = usernameEntry.getText();\n\t\t\tString password = String.valueOf(passwordEntry.getPassword());\n\t\t\t// Call Login method in uicontroller and take action based on result\n\t\t\tEmployee logged_in_result = uiController_.login(username + \":\" + password);\n\t\t\tif (logged_in_result == null) {\n\t\t\t\t// Show login failed message\n\t\t\t\tJOptionPane.showMessageDialog(uiController_.getFrame(), \"Unrecognized Login Credentials\",\n\t\t\t\t\t\t\"Invalid Login\", JOptionPane.WARNING_MESSAGE);\n\t\t\t} else if (logged_in_result instanceof Manager) {\n\t\t\t\t// Get components\n\t\t\t\t((DefaultComboBoxModel<String>) pageSelector.getModel()).addElement(\"Assignment\");\n\t\t\t\tJPanel viewHolder = (JPanel) (uiController_.getFrame().getContentPane().getComponent(0));\n\t\t\t\tCardLayout layout = (CardLayout) viewHolder.getLayout();\n\t\t\t\tloginButton.setVisible(false);\n\n\t\t\t\t// Create new ManagerPanel if it doesn't exist\n\t\t\t\tif (!uiController_.checkPanelExists(\"ManagerPanel\", viewHolder)) {\n\t\t\t\t\tviewHolder.add(new ManagerPanel(uiController_).getPanel_(), \"ManagerPanel\");\n\t\t\t\t}\n\n\t\t\t\t// Change view to manager panel\n\t\t\t\tlayout.show(viewHolder, \"ManagerPanel\");\n\t\t\t} else if (logged_in_result instanceof Developer) {\n\t\t\t\t((DefaultComboBoxModel<String>) pageSelector.getModel()).addElement(\"Assignment\");\n\t\t\t\tpageSelector.addActionListener(new ActionListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tif (pageSelector.getSelectedItem().equals(\"Assignment\")) {\n\t\t\t\t\t\t\t// Switch to Ordinary panel\n\t\t\t\t\t\t\tJPanel viewHolder = (JPanel) (uiController_.getFrame().getContentPane().getComponent(0));\n\t\t\t\t\t\t\tCardLayout layout = (CardLayout) viewHolder.getLayout();\n\t\t\t\t\t\t\tlayout.show(viewHolder, \"DeveloperPanel\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t\t// Get components\n\t\t\t\tJPanel viewHolder = (JPanel) (uiController_.getFrame().getContentPane().getComponent(0));\n\t\t\t\tCardLayout layout = (CardLayout) viewHolder.getLayout();\n\t\t\t\tloginButton.setVisible(false);\n\t\t\t\t// Create new DeveloperPanel if it doesn't exist\n\t\t\t\tif (!uiController_.checkPanelExists(\"DeveloperPanel\", viewHolder)) {\n\t\t\t\t\tviewHolder.add(new DeveloperPanel(uiController_).getPanel_(), \"DeveloperPanel\");\n\t\t\t\t}\n\n\t\t\t\t// Change view to developer panel\n\t\t\t\tlayout.show(viewHolder, \"DeveloperPanel\");\n\t\t\t}\n\t\t}\n\t}", "private Widget createLoginPanel(final IViewContext<ICommonClientServiceAsync> viewContext)\n {\n DockPanel loginPanel = new DockPanel();\n // WORKAROUND The mechanism behind the autofill support does not work in testing\n if (!GWTUtils.isTesting())\n {\n final LoginPanelAutofill loginWidget = LoginPanelAutofill.get(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n } else\n {\n final LoginWidget loginWidget = new LoginWidget(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n }\n return loginPanel;\n }", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed\n JOptionPane.showMessageDialog(this.controllingFrame,\"Loggout efetuado\",\"INFORMAÇÃO\",JOptionPane.INFORMATION_MESSAGE);\n dispose();\n Login a = new Login(this.d);\n a.execLogin();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n username = new javax.swing.JTextField();\n password = new javax.swing.JPasswordField();\n login = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(204, 204, 255));\n\n jLabel2.setText(\"Username\");\n\n jLabel3.setText(\"Password\");\n\n username.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n usernameActionPerformed(evt);\n }\n });\n\n password.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n passwordActionPerformed(evt);\n }\n });\n\n login.setText(\"Login\");\n login.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n loginActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(jLabel2))\n .addGap(37, 37, 37)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(login)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(username)\n .addComponent(password, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE)))\n .addContainerGap(94, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(username, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(login)\n .addContainerGap(78, Short.MAX_VALUE))\n );\n\n jLabel1.setFont(new java.awt.Font(\"Bradley Hand ITC\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 0, 0));\n jLabel1.setText(\"Please Login Yourself\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(118, 118, 118)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(92, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(219, 219, 219))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addComponent(jLabel1)\n .addGap(26, 26, 26)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(48, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Background = new keeptoo.KGradientPanel();\n topPanel = new keeptoo.KGradientPanel();\n LoginText = new javax.swing.JLabel();\n Username = new javax.swing.JLabel();\n Password = new javax.swing.JLabel();\n UserLogin = new javax.swing.JTextField();\n PassLogin = new javax.swing.JPasswordField();\n cancelButton = new javax.swing.JButton();\n loginButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n Background.setkEndColor(new java.awt.Color(135, 211, 124));\n Background.setkStartColor(new java.awt.Color(27, 188, 155));\n\n topPanel.setkEndColor(new java.awt.Color(44, 62, 80));\n topPanel.setkGradientFocus(50);\n topPanel.setkStartColor(new java.awt.Color(34, 49, 63));\n\n LoginText.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n LoginText.setForeground(new java.awt.Color(236, 236, 236));\n LoginText.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n LoginText.setText(\"Login as Student\");\n\n javax.swing.GroupLayout topPanelLayout = new javax.swing.GroupLayout(topPanel);\n topPanel.setLayout(topPanelLayout);\n topPanelLayout.setHorizontalGroup(\n topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(topPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LoginText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap()))\n );\n topPanelLayout.setVerticalGroup(\n topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 58, Short.MAX_VALUE)\n .addGroup(topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(topPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LoginText, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE)\n .addContainerGap()))\n );\n\n Username.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n Username.setForeground(new java.awt.Color(238, 238, 238));\n Username.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Username.setIcon(new javax.swing.ImageIcon(\"D:\\\\Facultate\\\\Java\\\\Librarie\\\\Icons\\\\icons8-name-filled-30.png\")); // NOI18N\n Username.setText(\"Username:\");\n\n Password.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n Password.setForeground(new java.awt.Color(238, 238, 238));\n Password.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Password.setIcon(new javax.swing.ImageIcon(\"D:\\\\Facultate\\\\Java\\\\Librarie\\\\Icons\\\\icons8-lock-30.png\")); // NOI18N\n Password.setText(\"Password:\");\n\n UserLogin.setBackground(new java.awt.Color(218, 223, 225));\n UserLogin.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n UserLogin.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n PassLogin.setBackground(new java.awt.Color(218, 223, 225));\n PassLogin.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n PassLogin.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n cancelButton.setBackground(new java.awt.Color(210, 215, 211));\n cancelButton.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n cancelButton.setText(\"Cancel\");\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelButtonActionPerformed(evt);\n }\n });\n\n loginButton.setBackground(new java.awt.Color(210, 215, 211));\n loginButton.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n loginButton.setText(\"Login\");\n loginButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n loginButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout BackgroundLayout = new javax.swing.GroupLayout(Background);\n Background.setLayout(BackgroundLayout);\n BackgroundLayout.setHorizontalGroup(\n BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(topPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BackgroundLayout.createSequentialGroup()\n .addContainerGap(93, Short.MAX_VALUE)\n .addGroup(BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(BackgroundLayout.createSequentialGroup()\n .addComponent(cancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(loginButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(BackgroundLayout.createSequentialGroup()\n .addGroup(BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Username, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Password, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(UserLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(PassLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(87, 87, 87))\n );\n BackgroundLayout.setVerticalGroup(\n BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(BackgroundLayout.createSequentialGroup()\n .addComponent(topPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(98, 98, 98)\n .addGroup(BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(UserLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Username, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(PassLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Password, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(BackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(loginButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(94, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Background, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Background, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public loginForm() {\n initComponents();\n \n }", "private JButton getLoginButton() {\n\t\tif (LoginButton == null) {\n\t\t\tLoginButton = new JButton();\n\t\t\tLoginButton.setBounds(new Rectangle(140, 230, 80, 25));\n\t\t\tLoginButton.setText(\"Login\");\n\t\t\tLoginButton.addActionListener(new ActionListener () {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(NameTextField.getText().compareTo(\"admin\")==0)\n\t\t\t\t\t{\n//\t\t\t\t\t\tSystem.out.println(\"clicked\");\n\t\t\t\t\t\tif(String.valueOf(PasswordField.getPassword()).equals(\"mds\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tMainFrame m = new MainFrame();\n//\t\t\t\t\t\t\tm.setBounds(0,0,900,600);\n\t\t\t\t\t\t\tm.setVisible(true);\n\t\t\t\t\t\t\tcloseWindow();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tshowMessageDialog(\"Invalid Username or Password\");\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn LoginButton;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n uname1 = new javax.swing.JTextField();\n password1 = new javax.swing.JPasswordField();\n jButton4 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"LogIn\");\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel5.setFont(new java.awt.Font(\"074-CAI978\", 1, 18)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Username :\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 250, 120, 30));\n\n jLabel6.setFont(new java.awt.Font(\"074-CAI978\", 1, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Password :\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 340, 120, 30));\n\n uname1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n getContentPane().add(uname1, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 250, 200, 30));\n\n password1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n getContentPane().add(password1, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 340, 200, 30));\n\n jButton4.setBackground(new java.awt.Color(51, 51, 255));\n jButton4.setFont(new java.awt.Font(\"074-CAI978\", 1, 18)); // NOI18N\n jButton4.setForeground(new java.awt.Color(255, 255, 255));\n jButton4.setText(\"Log In\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 500, -1, 40));\n\n jButton3.setBackground(new java.awt.Color(51, 51, 255));\n jButton3.setFont(new java.awt.Font(\"074-CAI978\", 1, 18)); // NOI18N\n jButton3.setForeground(new java.awt.Color(255, 255, 255));\n jButton3.setText(\"Sign Up\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 500, -1, 40));\n\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/connectdb/icon/bb.jpeg\"))); // NOI18N\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(-670, 0, 1160, 690));\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(-110, 0, 600, 690));\n\n pack();\n setLocationRelativeTo(null);\n }", "public Login() {\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\tsetTitle(\"Login\");\r\n\t\tsetResizable(false);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetSize(300,380);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\ttxtName = new JTextField();\r\n\t\ttxtName.setBounds(48, 66, 197, 20);\r\n\t\tcontentPane.add(txtName);\r\n\t\ttxtName.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Name\");\r\n\t\tlblNewLabel.setFont(new Font(\"Times New Roman\", Font.BOLD, 11));\r\n\t\tlblNewLabel.setBounds(124, 41, 46, 14);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\t\t\r\n\t\ttxtIp = new JTextField();\r\n\t\ttxtIp.setBounds(48, 174, 197, 20);\r\n\t\tcontentPane.add(txtIp);\r\n\t\ttxtIp.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblIpAddress = new JLabel(\"IP Address\");\r\n\t\tlblIpAddress.setFont(new Font(\"Times New Roman\", Font.BOLD, 11));\r\n\t\tlblIpAddress.setBounds(102, 134, 74, 14);\r\n\t\tcontentPane.add(lblIpAddress);\r\n\t\t\r\n\t\tJButton btnLogin = new JButton(\"Login\");\r\n\t\tbtnLogin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\t name = txtName.getText();\r\n\t\t\t\t ip=txtIp.getText();\r\n\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tlogin();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLogin.setBounds(102, 248, 89, 23);\r\n\t\tcontentPane.add(btnLogin);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtUsername = new javax.swing.JTextField();\n txtPassword = new javax.swing.JPasswordField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"E-Church Login\");\n setBackground(new java.awt.Color(169, 226, 39));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jLabel1.setText(\"Username:\");\n\n jLabel2.setText(\"Password:\");\n\n jButton1.setText(\"Login\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Cancel\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(72, 72, 72)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPassword, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)\n .addComponent(txtUsername, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 118, Short.MAX_VALUE)\n .addComponent(jButton2)))\n .addContainerGap(84, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUsername, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap(19, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jPasswordField1 = new javax.swing.JPasswordField();\n jCheckBox1 = new javax.swing.JCheckBox();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Login Page\");\n\n jPanel1.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jLabel1.setBackground(new java.awt.Color(0, 0, 0));\n jLabel1.setFont(new java.awt.Font(\"Segoe UI Historic\", 0, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 204, 204));\n jLabel1.setText(\"Username\");\n\n jLabel2.setBackground(new java.awt.Color(0, 0, 0));\n jLabel2.setFont(new java.awt.Font(\"Segoe UI Historic\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(204, 204, 204));\n jLabel2.setText(\"Password\");\n\n jPasswordField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jPasswordField1ActionPerformed(evt);\n }\n });\n\n jCheckBox1.setBackground(new java.awt.Color(0, 0, 0));\n jCheckBox1.setForeground(new java.awt.Color(204, 204, 204));\n jCheckBox1.setText(\"Show Password\");\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n\n jButton1.setBackground(new java.awt.Color(0, 0, 0));\n jButton1.setFont(new java.awt.Font(\"Segoe UI Black\", 0, 18)); // NOI18N\n jButton1.setForeground(new java.awt.Color(204, 204, 204));\n jButton1.setText(\"LOGIN\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setBackground(new java.awt.Color(0, 0, 0));\n jButton2.setFont(new java.awt.Font(\"Segoe UI Black\", 0, 12)); // NOI18N\n jButton2.setForeground(new java.awt.Color(204, 204, 204));\n jButton2.setText(\"Register\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(74, 74, 74)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jCheckBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(67, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public login() {\n initComponents();\n }", "public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }", "public LoginGUI() {\n \n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n userID_input = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n password_input = new javax.swing.JPasswordField();\n login_btn = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(51, 51, 51));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 72)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"LOGIN\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(178, 178, 178)\n .addComponent(jLabel1)\n .addContainerGap(182, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(307, 307, 307)\n .addComponent(jLabel1)\n .addContainerGap(326, Short.MAX_VALUE))\n );\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel2.setText(\"User ID\");\n\n userID_input.setBackground(new java.awt.Color(51, 51, 51));\n userID_input.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n userID_input.setForeground(new java.awt.Color(255, 255, 255));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel3.setText(\"Password\");\n\n password_input.setBackground(new java.awt.Color(51, 51, 51));\n password_input.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n password_input.setForeground(new java.awt.Color(255, 255, 255));\n password_input.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n password_inputActionPerformed(evt);\n }\n });\n\n login_btn.setBackground(new java.awt.Color(51, 51, 51));\n login_btn.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n login_btn.setForeground(new java.awt.Color(255, 255, 255));\n login_btn.setText(\"Login\");\n login_btn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n login_btnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(54, 54, 54)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(login_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(password_input, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(userID_input, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(56, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(177, 177, 177)\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(userID_input, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(50, 50, 50)\n .addComponent(jLabel3)\n .addGap(30, 30, 30)\n .addComponent(password_input, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(35, 35, 35)\n .addComponent(login_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(202, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pnl_Login = new javax.swing.JPanel();\n lbl_Login_Username = new javax.swing.JLabel();\n lbl_Login_Passwprd = new javax.swing.JLabel();\n btn_Login = new javax.swing.JButton();\n btn_Exit = new javax.swing.JButton();\n txt_userName = new javax.swing.JTextField();\n lbl_Login_Title = new javax.swing.JLabel();\n password_password = new javax.swing.JPasswordField();\n btn_Login_Register = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n menu_Login = new javax.swing.JMenuBar();\n menu_Login_File = new javax.swing.JMenu();\n menu_Login_seperator1 = new javax.swing.JPopupMenu.Separator();\n menu_Exit = new javax.swing.JMenuItem();\n menu_Help = new javax.swing.JMenu();\n menu_About = new javax.swing.JMenuItem();\n menu_Help_Howto = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Gametrakker - Login Page\");\n setResizable(false);\n\n pnl_Login.setBackground(new java.awt.Color(0, 41, 60));\n\n lbl_Login_Username.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lbl_Login_Username.setForeground(new java.awt.Color(246, 42, 0));\n lbl_Login_Username.setText(\"Username\");\n\n lbl_Login_Passwprd.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lbl_Login_Passwprd.setForeground(new java.awt.Color(246, 42, 0));\n lbl_Login_Passwprd.setText(\"Password\");\n\n btn_Login.setBackground(new java.awt.Color(246, 42, 0));\n btn_Login.setFont(new java.awt.Font(\"Tahoma\", 3, 22)); // NOI18N\n btn_Login.setForeground(new java.awt.Color(241, 243, 206));\n btn_Login.setText(\"Login\");\n btn_Login.setName(\"\"); // NOI18N\n btn_Login.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_LoginActionPerformed(evt);\n }\n });\n\n btn_Exit.setBackground(new java.awt.Color(246, 42, 0));\n btn_Exit.setFont(new java.awt.Font(\"Tahoma\", 3, 22)); // NOI18N\n btn_Exit.setForeground(new java.awt.Color(241, 243, 206));\n btn_Exit.setText(\"Exit\");\n btn_Exit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_ExitActionPerformed(evt);\n }\n });\n\n txt_userName.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n txt_userName.setText(\"uName\");\n\n lbl_Login_Title.setFont(new java.awt.Font(\"Dialog\", 1, 48)); // NOI18N\n lbl_Login_Title.setForeground(new java.awt.Color(246, 42, 0));\n lbl_Login_Title.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbl_Login_Title.setText(\"Login\");\n\n password_password.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n password_password.setText(\"jPasswordField1\");\n password_password.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n password_passwordKeyPressed(evt);\n }\n });\n\n btn_Login_Register.setBackground(new java.awt.Color(246, 42, 0));\n btn_Login_Register.setFont(new java.awt.Font(\"Tahoma\", 3, 22)); // NOI18N\n btn_Login_Register.setForeground(new java.awt.Color(241, 243, 206));\n btn_Login_Register.setText(\"Register\");\n btn_Login_Register.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_Login_RegisterActionPerformed(evt);\n }\n });\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/radarlogo2.png\"))); // NOI18N\n jLabel2.setText(\"jLabel2\");\n\n javax.swing.GroupLayout pnl_LoginLayout = new javax.swing.GroupLayout(pnl_Login);\n pnl_Login.setLayout(pnl_LoginLayout);\n pnl_LoginLayout.setHorizontalGroup(\n pnl_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnl_LoginLayout.createSequentialGroup()\n .addGroup(pnl_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnl_LoginLayout.createSequentialGroup()\n .addGap(2, 37, Short.MAX_VALUE)\n .addGroup(pnl_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnl_LoginLayout.createSequentialGroup()\n .addComponent(lbl_Login_Username, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txt_userName, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(pnl_LoginLayout.createSequentialGroup()\n .addComponent(lbl_Login_Passwprd, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(password_password, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnl_LoginLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(pnl_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(pnl_LoginLayout.createSequentialGroup()\n .addComponent(btn_Login, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addComponent(btn_Login_Register, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btn_Exit, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lbl_Login_Title, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(23, 23, 23)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 451, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n pnl_LoginLayout.setVerticalGroup(\n pnl_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnl_LoginLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lbl_Login_Title, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(39, 39, 39)\n .addGroup(pnl_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lbl_Login_Username, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(pnl_LoginLayout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(txt_userName, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(39, 39, 39)\n .addGroup(pnl_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lbl_Login_Passwprd, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(pnl_LoginLayout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(password_password, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(pnl_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_Login, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(pnl_LoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btn_Exit, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_Login_Register, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(46, 46, 46))\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jLabel1.setBackground(new java.awt.Color(0, 41, 60));\n\n menu_Login_File.setText(\"File\");\n menu_Login_File.add(menu_Login_seperator1);\n\n menu_Exit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));\n menu_Exit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/trash, bin1.png\"))); // NOI18N\n menu_Exit.setText(\"Exit\");\n menu_Exit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menu_ExitActionPerformed(evt);\n }\n });\n menu_Login_File.add(menu_Exit);\n\n menu_Login.add(menu_Login_File);\n\n menu_Help.setText(\"Help\");\n\n menu_About.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q, java.awt.event.InputEvent.CTRL_MASK));\n menu_About.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/radarlogoIcon.png\"))); // NOI18N\n menu_About.setText(\"About\");\n menu_About.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menu_AboutActionPerformed(evt);\n }\n });\n menu_Help.add(menu_About);\n\n menu_Help_Howto.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/messages2small.png\"))); // NOI18N\n menu_Help_Howto.setText(\"Help\");\n menu_Help_Howto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menu_Help_HowtoActionPerformed(evt);\n }\n });\n menu_Help.add(menu_Help_Howto);\n\n menu_Login.add(menu_Help);\n\n setJMenuBar(menu_Login);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(pnl_Login, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(pnl_Login, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public LoginWindow(Modelo miModelo) {\n initComponents();\n miControlador = new ControladorLoginWindow(this, miModelo);\n this.miModelo=miModelo;\n this.setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtuser = new javax.swing.JTextField();\n txtpass = new javax.swing.JPasswordField();\n btllogin = new javax.swing.JButton();\n btexit = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jDesktopPane1 = new javax.swing.JDesktopPane();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Login - Camte Laundry Kiloan\");\n setIconImages(null);\n\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n jLabel1.setText(\"User ID\");\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n jLabel2.setText(\"Password\");\n\n txtuser.setMargin(new java.awt.Insets(4, 4, 4, 4));\n txtuser.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtuserActionPerformed(evt);\n }\n });\n txtuser.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtuserKeyReleased(evt);\n }\n });\n\n txtpass.setMargin(new java.awt.Insets(4, 4, 4, 4));\n txtpass.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtpassKeyReleased(evt);\n }\n });\n\n btllogin.setFont(new java.awt.Font(\"DFGothic-EB\", 0, 14)); // NOI18N\n btllogin.setText(\"LOGIN\");\n btllogin.setMargin(new java.awt.Insets(4, 16, 4, 16));\n btllogin.setMaximumSize(new java.awt.Dimension(67, 23));\n btllogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btlloginActionPerformed(evt);\n }\n });\n\n btexit.setFont(new java.awt.Font(\"DFGothic-EB\", 0, 14)); // NOI18N\n btexit.setText(\"EXIT\");\n btexit.setMargin(new java.awt.Insets(4, 16, 4, 16));\n btexit.setName(\"\"); // NOI18N\n btexit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btexitActionPerformed(evt);\n }\n });\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/laundryproject/images/laundrydesignicon.jpg\"))); // NOI18N\n jLabel4.setMaximumSize(new java.awt.Dimension(512, 512));\n jLabel4.setMinimumSize(new java.awt.Dimension(512, 512));\n\n jDesktopPane1.setBackground(new java.awt.Color(51, 51, 51));\n\n jLabel3.setBackground(new java.awt.Color(153, 255, 255));\n jLabel3.setFont(new java.awt.Font(\"Bell Gothic Std Black\", 0, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"LOGIN ADMIN\");\n\n jDesktopPane1.setLayer(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);\n jDesktopPane1.setLayout(jDesktopPane1Layout);\n jDesktopPane1Layout.setHorizontalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDesktopPane1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(162, 162, 162))\n );\n jDesktopPane1Layout.setVerticalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDesktopPane1Layout.createSequentialGroup()\n .addContainerGap(21, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(21, 21, 21))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDesktopPane1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)))\n .addComponent(btllogin, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addComponent(btexit, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtpass, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtuser, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(69, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jDesktopPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtuser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtpass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)))\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btllogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btexit))\n .addContainerGap(25, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n login_admin_username = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n Login = new java.awt.Button();\n Login1 = new java.awt.Button();\n jLabel6 = new javax.swing.JLabel();\n login_admin_password = new javax.swing.JPasswordField();\n Login2 = new java.awt.Button();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setUndecorated(true);\n\n jPanel1.setBackground(new java.awt.Color(236, 104, 16));\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));\n\n login_admin_username.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n login_admin_usernameActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/gambar/icons8_Contacts_25px.png\"))); // NOI18N\n jLabel3.setText(\"Username\");\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/gambar/icons8_Lock_25px.png\"))); // NOI18N\n jLabel4.setText(\"Password\");\n\n Login.setBackground(new java.awt.Color(0, 153, 51));\n Login.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 12)); // NOI18N\n Login.setForeground(new java.awt.Color(255, 255, 255));\n Login.setLabel(\"Login\");\n Login.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n LoginActionPerformed(evt);\n }\n });\n\n Login1.setBackground(new java.awt.Color(51, 51, 255));\n Login1.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 12)); // NOI18N\n Login1.setForeground(new java.awt.Color(255, 255, 255));\n Login1.setLabel(\"Login Petugas\");\n Login1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Login1ActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 1, 24)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"LOGIN\");\n\n login_admin_password.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n login_admin_passwordActionPerformed(evt);\n }\n });\n\n Login2.setBackground(new java.awt.Color(255, 0, 0));\n Login2.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n Login2.setForeground(new java.awt.Color(255, 255, 255));\n Login2.setLabel(\"X\");\n Login2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Login2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel6))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Login, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(login_admin_username)\n .addComponent(login_admin_password, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(20, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(Login1, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Login2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(jLabel6))\n .addComponent(Login2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(Login1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(login_admin_username, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(login_admin_password, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(16, 16, 16)\n .addComponent(Login, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n pass = new javax.swing.JPasswordField();\n jLabel3 = new javax.swing.JLabel();\n user = new javax.swing.JTextField();\n combo = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Login Here\");\n setBounds(new java.awt.Rectangle(0, 0, 0, 0));\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel2.setFont(new java.awt.Font(\"Segoe UI\", 3, 12)); // NOI18N\n jLabel2.setText(\"Password\");\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 3, 12)); // NOI18N\n jLabel3.setText(\"User level\");\n\n user.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n\n combo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Admin\", \"Others\" }));\n combo.setSelectedIndex(-1);\n\n jButton1.setBackground(new java.awt.Color(0, 204, 51));\n jButton1.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n jButton1.setForeground(new java.awt.Color(255, 255, 255));\n jButton1.setText(\"Login\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 3, 12)); // NOI18N\n jLabel1.setText(\"Username\");\n\n jButton2.setBackground(new java.awt.Color(0, 204, 51));\n jButton2.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n jButton2.setForeground(new java.awt.Color(255, 255, 255));\n jButton2.setText(\"Visitor\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Segoe UI\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(0, 204, 51));\n jLabel4.setText(\"Login in to your account here\");\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Steve/images/user4.jpg\"))); // NOI18N\n\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Steve/images/pass4.jpg\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(combo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pass, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)\n .addComponent(user, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(10, 10, 10))))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(38, 38, 38)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(user, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(40, 40, 40)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(pass, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n setSize(new java.awt.Dimension(446, 359));\n setLocationRelativeTo(null);\n }", "@AutoGenerated\r\n\tprivate Panel buildPnlLogin() {\n\t\tpnlLogin = new Panel();\r\n\t\tpnlLogin.setImmediate(false);\r\n\t\tpnlLogin.setWidth(\"-1px\");\r\n\t\tpnlLogin.setHeight(\"500px\");\r\n\t\t\r\n\t\t// layoutLogin\r\n\t\tlayoutLogin = buildLayoutLogin();\r\n\t\tpnlLogin.setContent(layoutLogin);\r\n\t\t\r\n\t\treturn pnlLogin;\r\n\t}", "private void salirBotonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_salirBotonActionPerformed\n login.setVisible(true);\n dispose();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Logueo = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n BarraUsuario = new javax.swing.JPanel();\n imagenuser = new javax.swing.JLabel();\n textfielduser = new javax.swing.JTextField();\n BarraClave = new javax.swing.JPanel();\n imagenclave = new javax.swing.JLabel();\n passwordfieldclave = new javax.swing.JPasswordField();\n BotonSalir = new javax.swing.JPanel();\n imagenX = new javax.swing.JLabel();\n BotonEntrar = new javax.swing.JPanel();\n botonIniciarSesion = new javax.swing.JLabel();\n BotonRegistrarse = new javax.swing.JPanel();\n botonRegistrarse = new javax.swing.JLabel();\n LOGO = new javax.swing.JLabel();\n clavesave = new javax.swing.JLabel();\n usersave = new javax.swing.JLabel();\n BotonSalir1 = new javax.swing.JPanel();\n imagenX1 = new javax.swing.JLabel();\n ganzerrainfo = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Login - Gazerra\");\n setLocationByPlatform(true);\n setUndecorated(true);\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Logueo.setBackground(new java.awt.Color(48, 52, 69));\n Logueo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel2.setBackground(new java.awt.Color(247, 125, 52));\n jPanel2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jPanel2MouseDragged(evt);\n }\n });\n jPanel2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel2MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 350, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 10, Short.MAX_VALUE)\n );\n\n Logueo.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 350, 10));\n\n BarraUsuario.setBackground(new java.awt.Color(255, 255, 255));\n\n imagenuser.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n imagenuser.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/login/imagenes/icons8_User_Male_35px.png\"))); // NOI18N\n\n textfielduser.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n textfielduser.setForeground(new java.awt.Color(163, 163, 163));\n textfielduser.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n textfielduser.setText(\"Usuario\");\n textfielduser.setBorder(null);\n textfielduser.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\n textfielduser.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n textfielduserFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n textfielduserFocusLost(evt);\n }\n });\n\n javax.swing.GroupLayout BarraUsuarioLayout = new javax.swing.GroupLayout(BarraUsuario);\n BarraUsuario.setLayout(BarraUsuarioLayout);\n BarraUsuarioLayout.setHorizontalGroup(\n BarraUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(BarraUsuarioLayout.createSequentialGroup()\n .addComponent(imagenuser, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(textfielduser, javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE))\n );\n BarraUsuarioLayout.setVerticalGroup(\n BarraUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(imagenuser, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(textfielduser, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n Logueo.add(BarraUsuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 290, 50));\n\n BarraClave.setBackground(new java.awt.Color(255, 255, 255));\n\n imagenclave.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n imagenclave.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/login/imagenes/icons8_Lock_35px_4.png\"))); // NOI18N\n imagenclave.setAutoscrolls(true);\n\n passwordfieldclave.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n passwordfieldclave.setForeground(new java.awt.Color(163, 163, 163));\n passwordfieldclave.setText(\"Contraseña\");\n passwordfieldclave.setBorder(null);\n passwordfieldclave.setEchoChar('\\u2022');\n passwordfieldclave.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n passwordfieldclaveFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n passwordfieldclaveFocusLost(evt);\n }\n });\n\n javax.swing.GroupLayout BarraClaveLayout = new javax.swing.GroupLayout(BarraClave);\n BarraClave.setLayout(BarraClaveLayout);\n BarraClaveLayout.setHorizontalGroup(\n BarraClaveLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(BarraClaveLayout.createSequentialGroup()\n .addComponent(imagenclave, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(passwordfieldclave, javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE))\n );\n BarraClaveLayout.setVerticalGroup(\n BarraClaveLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(imagenclave, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(passwordfieldclave, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n Logueo.add(BarraClave, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 310, 290, 50));\n\n BotonSalir.setBackground(new java.awt.Color(247, 125, 52));\n BotonSalir.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n BotonSalir.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n BotonSalirMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n BotonSalirMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n BotonSalirMouseExited(evt);\n }\n });\n\n imagenX.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n imagenX.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/login/imagenes/icons8_Delete_17px.png\"))); // NOI18N\n imagenX.setFocusable(false);\n\n javax.swing.GroupLayout BotonSalirLayout = new javax.swing.GroupLayout(BotonSalir);\n BotonSalir.setLayout(BotonSalirLayout);\n BotonSalirLayout.setHorizontalGroup(\n BotonSalirLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(imagenX, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)\n );\n BotonSalirLayout.setVerticalGroup(\n BotonSalirLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(imagenX, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)\n );\n\n Logueo.add(BotonSalir, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 10, 20, 20));\n\n BotonEntrar.setBackground(new java.awt.Color(247, 125, 52));\n BotonEntrar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n BotonEntrar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n BotonEntrarMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n BotonEntrarMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n BotonEntrarMouseExited(evt);\n }\n });\n\n botonIniciarSesion.setFont(new java.awt.Font(\"Roboto Light\", 0, 18)); // NOI18N\n botonIniciarSesion.setForeground(new java.awt.Color(255, 255, 255));\n botonIniciarSesion.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n botonIniciarSesion.setText(\"Iniciar sesión\");\n botonIniciarSesion.setFocusable(false);\n\n javax.swing.GroupLayout BotonEntrarLayout = new javax.swing.GroupLayout(BotonEntrar);\n BotonEntrar.setLayout(BotonEntrarLayout);\n BotonEntrarLayout.setHorizontalGroup(\n BotonEntrarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(botonIniciarSesion, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)\n );\n BotonEntrarLayout.setVerticalGroup(\n BotonEntrarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(botonIniciarSesion, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)\n );\n\n Logueo.add(BotonEntrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 390, 140, 40));\n\n BotonRegistrarse.setBackground(new java.awt.Color(0, 183, 46));\n BotonRegistrarse.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n BotonRegistrarse.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n BotonRegistrarseMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n BotonRegistrarseMouseExited(evt);\n }\n });\n\n botonRegistrarse.setFont(new java.awt.Font(\"Roboto Light\", 0, 18)); // NOI18N\n botonRegistrarse.setForeground(new java.awt.Color(255, 255, 255));\n botonRegistrarse.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n botonRegistrarse.setText(\"Registrarse\");\n botonRegistrarse.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n botonRegistrarseMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n botonRegistrarseMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n botonRegistrarseMouseExited(evt);\n }\n });\n\n javax.swing.GroupLayout BotonRegistrarseLayout = new javax.swing.GroupLayout(BotonRegistrarse);\n BotonRegistrarse.setLayout(BotonRegistrarseLayout);\n BotonRegistrarseLayout.setHorizontalGroup(\n BotonRegistrarseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(botonRegistrarse, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)\n );\n BotonRegistrarseLayout.setVerticalGroup(\n BotonRegistrarseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(botonRegistrarse, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)\n );\n\n Logueo.add(BotonRegistrarse, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 390, -1, -1));\n\n LOGO.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/login/imagenes/logo_127px.png\"))); // NOI18N\n Logueo.add(LOGO, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 40, -1, -1));\n\n clavesave.setForeground(new java.awt.Color(48, 52, 69));\n Logueo.add(clavesave, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 480, -1, -1));\n\n usersave.setForeground(new java.awt.Color(48, 52, 69));\n Logueo.add(usersave, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 460, -1, -1));\n\n BotonSalir1.setBackground(new java.awt.Color(247, 125, 52));\n BotonSalir1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n BotonSalir1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n BotonSalir1MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n BotonSalir1MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n BotonSalir1MouseExited(evt);\n }\n });\n BotonSalir1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n imagenX1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n imagenX1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/login/imagenes/icons8_Horizontal_Line_17px_1.png\"))); // NOI18N\n imagenX1.setFocusable(false);\n BotonSalir1.add(imagenX1, new org.netbeans.lib.awtextra.AbsoluteConstraints(2, 0, -1, 20));\n\n Logueo.add(BotonSalir1, new org.netbeans.lib.awtextra.AbsoluteConstraints(308, 10, 22, 20));\n\n ganzerrainfo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n ganzerrainfo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/login/imagenes/ganzerra_marcadeagua.png\"))); // NOI18N\n ganzerrainfo.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n ganzerrainfo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n ganzerrainfoMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n ganzerrainfoMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n ganzerrainfoMouseExited(evt);\n }\n });\n Logueo.add(ganzerrainfo, new org.netbeans.lib.awtextra.AbsoluteConstraints(87, 180, 170, 60));\n\n getContentPane().add(Logueo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 350, 500));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtUsername = new javax.swing.JTextField();\n txtPassword = new javax.swing.JPasswordField();\n btnLogIn = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jLabel1.setText(\"Username\");\n\n jLabel2.setText(\"Password\");\n\n btnLogIn.setText(\"Log In\");\n btnLogIn.setPreferredSize(new java.awt.Dimension(73, 26));\n btnLogIn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLogInActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Cancel\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtUsername, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtPassword)))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnLogIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtUsername, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnLogIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n unTF = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n loginBtn = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n pwPF = new javax.swing.JPasswordField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Badiangan\");\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(69, 73, 84));\n\n jPanel2.setBackground(new java.awt.Color(69, 73, 84));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Login\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 12), new java.awt.Color(255, 255, 255))); // NOI18N\n jPanel2.setForeground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\"Username\");\n\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"Password\");\n\n loginBtn.setBackground(new java.awt.Color(51, 255, 255));\n loginBtn.setText(\"Login\");\n\n jButton2.setBackground(new java.awt.Color(51, 255, 255));\n jButton2.setText(\"Exit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(loginBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(95, 95, 95))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(unTF)\n .addComponent(pwPF, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(78, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(unTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pwPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(36, 36, 36)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(loginBtn)\n .addComponent(jButton2))\n .addContainerGap(29, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setSize(new java.awt.Dimension(397, 263));\n setLocationRelativeTo(null);\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblLogin = new JLabel(\"Login:\");\r\n\t\tlblLogin.setBounds(89, 80, 61, 14);\r\n\t\tframe.getContentPane().add(lblLogin);\r\n\t\t\r\n\t\tJLabel lblSenha = new JLabel(\"Senha:\");\r\n\t\tlblSenha.setBounds(89, 123, 48, 14);\r\n\t\tframe.getContentPane().add(lblSenha);\r\n\t\t\r\n\t\tlogin = new JTextField();\r\n\t\tlogin.setBounds(232, 77, 96, 20);\r\n\t\tframe.getContentPane().add(login);\r\n\t\tlogin.setColumns(10);\r\n\t\t\r\n\t\tsenha = new JTextField();\r\n\t\tsenha.setBounds(232, 120, 96, 20);\r\n\t\tframe.getContentPane().add(senha);\r\n\t\tsenha.setColumns(10);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Entrar\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString l=login.getText();\r\n\t\t\t\tString s=senha.getText();\r\n\t\t\t\tif(l.equals(\"admin\") && s.equals(\"admin\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Acesso liberado\");\r\n\t\t\t\t Menu menu = new Menu();\r\n\t\t\t\t menu.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Acesso negado\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(171, 192, 89, 23);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJLabel lblLogin_1 = new JLabel(\"Login\");\r\n\t\tlblLogin_1.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblLogin_1.setBounds(192, 30, 48, 23);\r\n\t\tframe.getContentPane().add(lblLogin_1);\r\n\t}", "private void initialize() {\n\t\tfrmLogin = new JFrame();\n\t\tfrmLogin.setTitle(\"Login\");\n\t\tfrmLogin.setBounds(100, 100, 727, 493);\n\t\tfrmLogin.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmLogin.getContentPane().setLayout(null);\n\n\t\tJLabel lblNombreDeUsuario = new JLabel(\"Nombre de Usuario\");\n\t\tlblNombreDeUsuario.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tlblNombreDeUsuario.setBounds(26, 52, 160, 20);\n\t\tfrmLogin.getContentPane().add(lblNombreDeUsuario);\n\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(246, 50, 255, 26);\n\t\tfrmLogin.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\n\t\tJLabel lblContrasea = new JLabel(\"Contrase\\u00F1a\");\n\t\tlblContrasea.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tlblContrasea.setBounds(26, 115, 160, 20);\n\t\tfrmLogin.getContentPane().add(lblContrasea);\n\n\t\tpasswordField = new JPasswordField();\n\t\tpasswordField.setBounds(246, 113, 255, 26);\n\t\tfrmLogin.getContentPane().add(passwordField);\n\n\t\tJRadioButton rdbtnEntrarComoRegistrado = new JRadioButton(\"Entrar como registrado\");\n\t\tbuttonGroup.add(rdbtnEntrarComoRegistrado);\n\n\t\trdbtnEntrarComoRegistrado.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\trdbtnEntrarComoRegistrado.setBounds(100, 187, 255, 29);\n\t\tfrmLogin.getContentPane().add(rdbtnEntrarComoRegistrado);\n\n\t\tJRadioButton rdbtnEntrarComoInvitado = new JRadioButton(\"Entrar como invitado\");\n\t\tbuttonGroup.add(rdbtnEntrarComoInvitado);\n\n\t\trdbtnEntrarComoInvitado.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\trdbtnEntrarComoInvitado.setBounds(100, 253, 255, 29);\n\t\tfrmLogin.getContentPane().add(rdbtnEntrarComoInvitado);\n\n\t\tJCheckBox chckbxAceptaCondicionesPara = new JCheckBox(\"Acepta condiciones para entrar\");\n\n\t\tchckbxAceptaCondicionesPara.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tchckbxAceptaCondicionesPara.setBounds(26, 311, 448, 29);\n\t\tfrmLogin.getContentPane().add(chckbxAceptaCondicionesPara);\n\n\t\tJButton btnEntrar = new JButton(\"Entrar\");\n\t\tbtnEntrar.setEnabled(false);\n\t\tbtnEntrar.setBounds(209, 392, 115, 29);\n\t\tfrmLogin.getContentPane().add(btnEntrar);\n\n\t\tJButton btnSalir = new JButton(\"Salir\");\n\n\t\tbtnSalir.setBounds(497, 392, 115, 29);\n\t\tfrmLogin.getContentPane().add(btnSalir);\n\t\tbtnSalir.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint r = JOptionPane.showConfirmDialog(null, \"desea salir\", \"salir\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif (r == 0)\n\t\t\t\t\tSystem.exit(0);\n\n\t\t\t}\n\t\t});\n\t\trdbtnEntrarComoRegistrado.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (rdbtnEntrarComoRegistrado.isSelected())\n\t\t\t\t\tbtnEntrar.setEnabled(true);\n\t\t\t\telse {\n\t\t\t\t\tbtnEntrar.setEnabled(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\trdbtnEntrarComoInvitado.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (rdbtnEntrarComoInvitado.isSelected())\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"acepta las condiciones\", \"acepta\",\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t});\n\t\tchckbxAceptaCondicionesPara.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (chckbxAceptaCondicionesPara.isSelected())\n\t\t\t\t\tbtnEntrar.setEnabled(true);\n\t\t\t\telse {\n\t\t\t\t\tbtnEntrar.setEnabled(false);\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnEntrar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (rdbtnEntrarComoRegistrado.isSelected()) {\n\t\t\t\t\tif (!textField.getText().equals(passwordField.getText()) || textField.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Login incorrecto\", \"login mal \",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Login correcto\", \"login ok \",\n\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\t\tproducto.getFrmCompra().setVisible(true);\n\t\t\t\t\t\tfrmLogin.setVisible(false);\n\t\t\t\t\t\tproducto.getTextField().setText(textField.getText());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(rdbtnEntrarComoInvitado.isSelected()) {\n\t\t\t\t\tif(chckbxAceptaCondicionesPara.isSelected()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"todo ok\", \"ok\",\n\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\t\n\t\t\t\t\t\tproducto.getFrmCompra().setVisible(true);\n\t\t\t\t\t\tfrmLogin.setVisible(false);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"acepta condicones\", \"mal \",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "public LoginFrame() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Windows\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n this.getContentPane().setBackground(new Color(91, 173, 236));\n initComponents();\n setDefaultFocus();\n \n }", "public login() {\n initComponents();\n \n \n }", "public login() {\n initComponents();\n setTitle(\"COLLAGE MANAGEMENT SYSTEM\");\n }", "public Login() {\n \n initComponents();\n \n this.setLocationRelativeTo(null);\n connect = new DataConnect();\n LoginError.setVisible(false);\n this.setResizable(false);\n Username.setDocument(new JtextLimit(8));\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.JPanel jPanel1 = new javax.swing.JPanel();\n javax.swing.JLabel loginLabel = new javax.swing.JLabel();\n javax.swing.JLabel passwordLabel = new javax.swing.JLabel();\n loginField = new javax.swing.JTextField();\n passwordField = new javax.swing.JPasswordField();\n javax.swing.JButton enterButton = new javax.swing.JButton();\n javax.swing.JButton registerButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n loginLabel.setText(\"Login\");\n\n passwordLabel.setText(\"Password\");\n\n enterButton.setText(\"Enter\");\n enterButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n enterButtonActionPerformed(evt);\n }\n });\n\n registerButton.setText(\"Register\");\n registerButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n registerButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(passwordLabel)\n .addComponent(loginLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(loginField)\n .addComponent(passwordField)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(enterButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(registerButton)\n .addGap(0, 198, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(loginLabel)\n .addComponent(loginField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(passwordLabel)\n .addComponent(passwordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(enterButton)\n .addComponent(registerButton))\n .addContainerGap(207, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public LoginSARH() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 450, 300);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBackground(Color.DARK_GRAY);\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblUsuario = new JLabel(\"USUARIO\");\n\t\tlblUsuario.setBounds(51, 105, 46, 14);\n\t\tcontentPane.add(lblUsuario);\n\t\t\n\t\tJLabel lblContrasea = new JLabel(\"CONTRASE\\u00D1A\");\n\t\tlblContrasea.setBounds(51, 152, 101, 14);\n\t\tcontentPane.add(lblContrasea);\n\t\t\n\t\ttxtUsuario = new JTextField();\n\t\ttxtUsuario.setBounds(169, 102, 143, 20);\n\t\tcontentPane.add(txtUsuario);\n\t\ttxtUsuario.setColumns(10);\n\t\t\n\t\ttxtPassword = new JPasswordField();\n\t\ttxtPassword.setBounds(169, 149, 143, 20);\n\t\tcontentPane.add(txtPassword);\n\t\t\n\t\tbtnIngresar = new JButton(\"INGRESAR\");\n\t\tbtnIngresar.addActionListener(this);\n\t\tbtnIngresar.setBounds(335, 122, 89, 23);\n\t\tcontentPane.add(btnIngresar);\n\t\t\n\t\tJLabel lblLogin = new JLabel(\"LOGIN\");\n\t\tlblLogin.setBounds(106, 38, 46, 14);\n\t\tcontentPane.add(lblLogin);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTxt_nome = new javax.swing.JTextField();\n Password = new javax.swing.JPasswordField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"Logando\");\n setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);\n setResizable(false);\n addHierarchyBoundsListener(new java.awt.event.HierarchyBoundsListener() {\n public void ancestorMoved(java.awt.event.HierarchyEvent evt) {\n formAncestorMoved(evt);\n }\n public void ancestorResized(java.awt.event.HierarchyEvent evt) {\n }\n });\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/login.png\"))); // NOI18N\n\n jLabel1.setText(\"Nome\");\n\n jLabel2.setText(\"Senha\");\n\n jTxt_nome.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jTxt_nomeKeyPressed(evt);\n }\n });\n\n Password.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n PasswordKeyPressed(evt);\n }\n });\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/Destranca.png\"))); // NOI18N\n jButton1.setText(\"Confirmar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/exit.png\"))); // NOI18N\n jButton2.setText(\"Cancelar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(19, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTxt_nome, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)\n .addComponent(Password))))\n .addContainerGap())\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton1, jButton2});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jTxt_nome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addComponent(jLabel2)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(18, 18, 18))\n .addGroup(layout.createSequentialGroup()\n .addGap(61, 61, 61)\n .addComponent(Password, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jButton1, jButton2});\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n bannerLabel = new javax.swing.JLabel();\n loginLabel = new javax.swing.JLabel();\n firstNameLabel = new javax.swing.JLabel();\n firstNameTField = new javax.swing.JTextField();\n lastNameLabel = new javax.swing.JLabel();\n lastNameTField = new javax.swing.JTextField();\n usernameLabel = new javax.swing.JLabel();\n usernameTField = new javax.swing.JTextField();\n passwordLabel = new javax.swing.JLabel();\n passwordField = new javax.swing.JPasswordField();\n passwordcheckLabel = new javax.swing.JLabel();\n passwordcheckField = new javax.swing.JPasswordField();\n createButton = new javax.swing.JButton();\n cancelButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n bannerLabel.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n bannerLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bannerLabel.setText(\"Create new account\");\n\n loginLabel.setText(\"You already have an account? Click here to log in!\");\n loginLabel.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n loginLabel.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n loginLabelMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n loginLabelMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n loginLabelMouseExited(evt);\n }\n });\n\n firstNameLabel.setText(\"First Name\");\n\n lastNameLabel.setText(\"Last Name\");\n\n usernameLabel.setText(\"Username\");\n\n usernameTField.setText(\"Username\");\n\n passwordLabel.setText(\"Password\");\n\n passwordField.setText(\"Password\");\n\n passwordcheckLabel.setText(\"Re-enter password\");\n\n passwordcheckField.setText(\"password\");\n\n createButton.setText(\"Create account\");\n createButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n createButtonActionPerformed(evt);\n }\n });\n\n cancelButton.setText(\"Cancel\");\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(110, 110, 110)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(createButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 101, Short.MAX_VALUE)\n .addComponent(cancelButton))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(loginLabel)\n .addGap(5, 5, 5))\n .addComponent(bannerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 284, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(firstNameLabel)\n .addComponent(usernameLabel)\n .addComponent(lastNameLabel)\n .addComponent(passwordLabel)\n .addComponent(passwordcheckLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(usernameTField, javax.swing.GroupLayout.DEFAULT_SIZE, 255, Short.MAX_VALUE)\n .addComponent(lastNameTField)\n .addComponent(passwordField)\n .addComponent(passwordcheckField)\n .addComponent(firstNameTField))))\n .addContainerGap(107, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(bannerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(77, 77, 77)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(firstNameLabel)\n .addComponent(firstNameTField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lastNameLabel)\n .addComponent(lastNameTField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(usernameLabel)\n .addComponent(usernameTField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(passwordLabel)\n .addComponent(passwordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(passwordcheckLabel)\n .addComponent(passwordcheckField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(createButton)\n .addComponent(cancelButton))\n .addGap(39, 39, 39)\n .addComponent(loginLabel)\n .addGap(100, 100, 100))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n leftSide = new javax.swing.JPanel();\n loginBG = new javax.swing.JPanel();\n appLogo = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n tfUserName = new javax.swing.JTextField();\n plUser = new javax.swing.JPanel();\n lbUserIcon = new javax.swing.JLabel();\n plPassword = new javax.swing.JPanel();\n lbUserIcon1 = new javax.swing.JLabel();\n tfPassword = new javax.swing.JPasswordField();\n lbTitle = new javax.swing.JLabel();\n lbTypeUsername = new javax.swing.JLabel();\n lbTypePassword = new javax.swing.JLabel();\n btnLogin = new javax.swing.JButton();\n btnRegister = new javax.swing.JButton();\n lblUserNameError = new javax.swing.JLabel();\n lblPasswordError = new javax.swing.JLabel();\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentShown(java.awt.event.ComponentEvent evt) {\n formComponentShown(evt);\n }\n });\n\n leftSide.setBackground(new java.awt.Color(236, 97, 97));\n\n loginBG.setBackground(new java.awt.Color(255, 255, 255));\n\n appLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/assets/logo.png\"))); // NOI18N\n\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(236, 97, 97));\n jLabel1.setText(\"MOVIES CMS\");\n\n javax.swing.GroupLayout loginBGLayout = new javax.swing.GroupLayout(loginBG);\n loginBG.setLayout(loginBGLayout);\n loginBGLayout.setHorizontalGroup(\n loginBGLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(loginBGLayout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(loginBGLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(appLogo))\n .addContainerGap(34, Short.MAX_VALUE))\n );\n loginBGLayout.setVerticalGroup(\n loginBGLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(loginBGLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(appLogo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1)\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout leftSideLayout = new javax.swing.GroupLayout(leftSide);\n leftSide.setLayout(leftSideLayout);\n leftSideLayout.setHorizontalGroup(\n leftSideLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(leftSideLayout.createSequentialGroup()\n .addGap(131, 131, 131)\n .addComponent(loginBG, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(138, Short.MAX_VALUE))\n );\n leftSideLayout.setVerticalGroup(\n leftSideLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(leftSideLayout.createSequentialGroup()\n .addGap(187, 187, 187)\n .addComponent(loginBG, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n tfUserName.setBackground(new java.awt.Color(238, 238, 238));\n tfUserName.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(236, 97, 97), 2, true));\n\n plUser.setBackground(new java.awt.Color(236, 97, 97));\n plUser.setAlignmentX(0.0F);\n plUser.setAlignmentY(0.0F);\n\n lbUserIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/assets/user.png\"))); // NOI18N\n\n javax.swing.GroupLayout plUserLayout = new javax.swing.GroupLayout(plUser);\n plUser.setLayout(plUserLayout);\n plUserLayout.setHorizontalGroup(\n plUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(plUserLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lbUserIcon)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n plUserLayout.setVerticalGroup(\n plUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(plUserLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lbUserIcon)\n .addContainerGap(11, Short.MAX_VALUE))\n );\n\n plPassword.setBackground(new java.awt.Color(236, 97, 97));\n plPassword.setAlignmentX(0.0F);\n plPassword.setAlignmentY(0.0F);\n\n lbUserIcon1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/assets/password.png\"))); // NOI18N\n\n javax.swing.GroupLayout plPasswordLayout = new javax.swing.GroupLayout(plPassword);\n plPassword.setLayout(plPasswordLayout);\n plPasswordLayout.setHorizontalGroup(\n plPasswordLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(plPasswordLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lbUserIcon1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n plPasswordLayout.setVerticalGroup(\n plPasswordLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(plPasswordLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lbUserIcon1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n tfPassword.setBackground(new java.awt.Color(238, 238, 238));\n tfPassword.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(236, 97, 97), 2));\n\n lbTitle.setFont(new java.awt.Font(\"Calibri\", 1, 24)); // NOI18N\n lbTitle.setText(\"PRIJAVA U SUSTAV \");\n\n lbTypeUsername.setText(\"Korisničko ime:\");\n\n lbTypePassword.setText(\"Lozinka:\");\n\n btnLogin.setBackground(new java.awt.Color(236, 97, 97));\n btnLogin.setForeground(new java.awt.Color(255, 255, 255));\n btnLogin.setText(\"Prijava\");\n btnLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLoginActionPerformed(evt);\n }\n });\n\n btnRegister.setForeground(new java.awt.Color(236, 97, 97));\n btnRegister.setText(\"Registracija\");\n btnRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegisterActionPerformed(evt);\n }\n });\n\n lblUserNameError.setForeground(new java.awt.Color(255, 0, 0));\n\n lblPasswordError.setForeground(new java.awt.Color(255, 0, 0));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(leftSide, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(65, 65, 65)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(plPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tfPassword)\n .addComponent(btnLogin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnRegister, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblPasswordError, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(plUser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tfUserName, javax.swing.GroupLayout.PREFERRED_SIZE, 331, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblUserNameError, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(46, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(lbTypePassword)\n .addGap(204, 204, 204))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(lbTypeUsername)\n .addGap(180, 180, 180))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(lbTitle)\n .addGap(134, 134, 134))))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(leftSide, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(70, 70, 70)\n .addComponent(lbTitle)\n .addGap(79, 79, 79)\n .addComponent(lbTypeUsername)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(lblUserNameError, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(plUser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tfUserName))\n .addGap(20, 20, 20)\n .addComponent(lbTypePassword)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(plPassword, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tfPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblPasswordError, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGap(54, 54, 54)\n .addComponent(btnLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(149, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n usernameLabel = new javax.swing.JLabel();\n passwordLabel = new javax.swing.JLabel();\n userTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n loginButtonL = new javax.swing.JButton();\n exitButtonL = new javax.swing.JButton();\n adviceLabelL = new javax.swing.JLabel();\n passTextField = new javax.swing.JPasswordField();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n usernameLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n usernameLabel.setText(\"USUARIO\");\n getContentPane().add(usernameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 130, 60, 20));\n\n passwordLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n passwordLabel.setText(\"CONTRASEÑA\");\n getContentPane().add(passwordLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 170, -1, 20));\n\n userTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n userTextFieldActionPerformed(evt);\n }\n });\n userTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n userTextFieldKeyReleased(evt);\n }\n });\n getContentPane().add(userTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 130, 190, -1));\n getContentPane().add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 110, 320, 10));\n\n loginButtonL.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n loginButtonL.setText(\"Entrar\");\n loginButtonL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n loginButtonLActionPerformed(evt);\n }\n });\n loginButtonL.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n loginButtonLKeyReleased(evt);\n }\n });\n getContentPane().add(loginButtonL, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 240, 90, 40));\n\n exitButtonL.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n exitButtonL.setText(\"Salir\");\n exitButtonL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitButtonLActionPerformed(evt);\n }\n });\n getContentPane().add(exitButtonL, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 240, 90, 40));\n getContentPane().add(adviceLabelL, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 200, 190, 20));\n\n passTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n passTextFieldActionPerformed(evt);\n }\n });\n passTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n passTextFieldKeyReleased(evt);\n }\n });\n getContentPane().add(passTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 170, 190, -1));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/logoVertiente.png\"))); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 10, 110, 100));\n\n pack();\n }", "public LogInForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Login() {\n initComponents();\n this.setTitle(\"Login\");\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n btnCadastrar = new javax.swing.JButton();\n lblSenha = new javax.swing.JLabel();\n lblRepitaSenha = new javax.swing.JLabel();\n txtLogin = new javax.swing.JTextField();\n txtSenha = new javax.swing.JPasswordField();\n txtRepitaSenha = new javax.swing.JPasswordField();\n lblDadosLogin = new javax.swing.JLabel();\n lblLogin = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n btnCadastrar.setFont(new java.awt.Font(\"Ubuntu\", 1, 15)); // NOI18N\n btnCadastrar.setText(\"Cadastrar\");\n btnCadastrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCadastrarActionPerformed(evt);\n }\n });\n\n lblSenha.setFont(new java.awt.Font(\"Ubuntu\", 1, 15)); // NOI18N\n lblSenha.setText(\"Senha (*):\");\n\n lblRepitaSenha.setFont(new java.awt.Font(\"Ubuntu\", 1, 15)); // NOI18N\n lblRepitaSenha.setText(\"Repita a senha (*): \");\n\n txtLogin.setEnabled(false);\n\n lblDadosLogin.setFont(new java.awt.Font(\"Ubuntu\", 1, 18)); // NOI18N\n lblDadosLogin.setText(\"Preenchar os dados de login\");\n lblDadosLogin.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\n lblLogin.setFont(new java.awt.Font(\"Ubuntu\", 1, 15)); // NOI18N\n lblLogin.setText(\"Login (*):\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(lblDadosLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(204, 204, 204)\n .addComponent(btnCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(lblLogin, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblSenha, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lblRepitaSenha))\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtRepitaSenha)\n .addComponent(txtLogin)\n .addComponent(txtSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(126, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(lblDadosLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(47, 47, 47)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblRepitaSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtRepitaSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 94, Short.MAX_VALUE)\n .addComponent(btnCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtusername = new javax.swing.JTextField();\n passwordField = new javax.swing.JPasswordField();\n btnExit = new javax.swing.JButton();\n btnLogin = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 48)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Hospital Manager\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(68, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(59, 59, 59))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 72, Short.MAX_VALUE)\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 560, 80));\n\n jPanel2.setBackground(new java.awt.Color(204, 204, 204));\n jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel2.setText(\"Password:\");\n jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 160, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel3.setText(\"Login\");\n jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 20, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel4.setText(\"Username:\");\n jPanel2.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 90, -1, -1));\n\n txtusername.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n txtusername.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtusernameActionPerformed(evt);\n }\n });\n jPanel2.add(txtusername, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 90, 240, 40));\n jPanel2.add(passwordField, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 160, 240, 40));\n\n btnExit.setText(\"Exit\");\n btnExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExitActionPerformed(evt);\n }\n });\n jPanel2.add(btnExit, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 220, -1, -1));\n\n btnLogin.setText(\"Login\");\n btnLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLoginActionPerformed(evt);\n }\n });\n jPanel2.add(btnLogin, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 220, -1, -1));\n\n btnCancel.setText(\"Cancel\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelActionPerformed(evt);\n }\n });\n jPanel2.add(btnCancel, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 220, -1, -1));\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 90, 560, 270));\n\n pack();\n }", "private void initialize() {\n\t\tfrmLogin = new JFrame();\n\t\tfrmLogin.setTitle(\"Login\");\n\t\tfrmLogin.setResizable(false);\n\t\tfrmLogin.setBounds(100, 100, 502, 197);\n\t\tfrmLogin.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmLogin.getContentPane().setLayout(null);\n\t\t\n\t\ttxtUsr = new JTextField();\n\t\ttxtUsr.setBounds(215, 18, 262, 27);\n\t\tfrmLogin.getContentPane().add(txtUsr);\n\t\ttxtUsr.setColumns(10);\n\t\t\n\t\tJButton btnLogin = new JButton(\"\");\n\t\tImage img_ = new ImageIcon(this.getClass().getResource(\"/ok.png\")).getImage();\n\t\tbtnLogin.setIcon(new ImageIcon(img_));\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry{\n\t\t\t\t\tString query = \"select * from usuario where usuarioLogin=? and usuarioSenha=? \";\n\t\t\t\t\tPreparedStatement pst= conn.prepareStatement(query);\n\t\t\t\t\tpst.setString(1, txtUsr.getText());\n\t\t\t\t\tpst.setString(2, txtPasswd.getText());\n\t\t\t\t\t\n\t\t\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\t\tint count = 0;\n\t\t\t\t\twhile(rs.next())\n\t\t\t\t\t{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tif(count == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//JOptionPane.showMessageDialog(null, \"User Name or Passwd is correct\");\n\t\t\t\t\t\tfrmLogin.dispose();\n\t\t\t\t\t\tEmployeeinfo emplinfo = new Employeeinfo();\n\t\t\t\t\t\templinfo.setVisible(true);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(count >1)\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Duplicated User and Passwd\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"User Name or Passwd is not correct, Try Again!\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\trs.close();\n\t\t\t\t\tpst.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(159, 118, 24, 23);\n\t\tfrmLogin.getContentPane().add(btnLogin);\n\t\t\n\t\tJLabel lblUsurio = new JLabel(\"Usu\\u00E1rio\");\n\t\tlblUsurio.setBounds(159, 24, 46, 14);\n\t\tfrmLogin.getContentPane().add(lblUsurio);\n\t\t\n\t\tJLabel lblSenha = new JLabel(\"Senha\");\n\t\tlblSenha.setBounds(159, 55, 46, 14);\n\t\tfrmLogin.getContentPane().add(lblSenha);\n\t\t\n\t\ttxtPasswd = new JPasswordField();\n\t\ttxtPasswd.setEchoChar('*');\n\t\ttxtPasswd.setBounds(215, 49, 262, 27);\n\t\tfrmLogin.getContentPane().add(txtPasswd);\n\t\t\n\t\tlblNewLabel = new JLabel(\"\");\n\t\tImage img = new ImageIcon(this.getClass().getResource(\"/Login.png\")).getImage();\n\t\tlblNewLabel.setIcon(new ImageIcon(img));\n\t\tlblNewLabel.setBounds(21, 17, 128, 124);\n\t\tfrmLogin.getContentPane().add(lblNewLabel);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n tfNome = new javax.swing.JTextField();\n pfSenha = new javax.swing.JPasswordField();\n btnLogin = new javax.swing.JButton();\n lbStatus = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Login\");\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\" Nome de Utilizador:\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"Senha:\");\n\n tfNome.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tfNome.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n tfNomeFocusGained(evt);\n }\n });\n tfNome.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tfNomeKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n tfNomeKeyReleased(evt);\n }\n });\n\n pfSenha.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n pfSenha.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n pfSenhaFocusGained(evt);\n }\n });\n pfSenha.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n pfSenhaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n pfSenhaKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n pfSenhaKeyTyped(evt);\n }\n });\n\n btnLogin.setText(\"Login\");\n btnLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLoginActionPerformed(evt);\n }\n });\n\n lbStatus.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n lbStatus.setForeground(new java.awt.Color(204, 51, 0));\n lbStatus.setText(\"Username ou Senha Inválidos\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(lbStatus, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tfNome)\n .addComponent(pfSenha, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE))\n .addComponent(btnLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(87, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(tfNome, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pfSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lbStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)\n .addComponent(btnLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n setSize(new java.awt.Dimension(484, 232));\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jtSenha = new javax.swing.JPasswordField();\n jtLogin = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 3, 14)); // NOI18N\n jLabel1.setText(\"Login:\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 40, 50, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 3, 14)); // NOI18N\n jLabel2.setText(\"Senha:\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 90, 60, -1));\n jPanel1.add(jtSenha, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 90, 140, -1));\n jPanel1.add(jtLogin, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 40, 140, -1));\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 3, 11)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icones/tick.png\"))); // NOI18N\n jButton1.setText(\"Entrar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 150, -1, -1));\n\n jButton2.setBackground(new java.awt.Color(255, 255, 255));\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 3, 11)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icones/sair.png\"))); // NOI18N\n jButton2.setText(\"Sair\");\n jPanel1.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 150, 90, -1));\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icones/logo.png\"))); // NOI18N\n jLabel3.setToolTipText(\"\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(-70, 20, 330, 170));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icones/oi_1.jpg\"))); // NOI18N\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 500, 210));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 481, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "public LoginFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n LoginPanel.setVisible(true);\n SSNPanel.setVisible(false);\n\n }", "public LoginFrame() {\n\t\tloginFrame = new JFrame(\"회원가입\");\n\t\tloginFrame.setBounds(500, 490, 440, 290);\n\t\tloginFrame.setLayout(null);\n\n\t\tidLabel = new JLabel(\"ID : \");\n\t\tidLabel.setBounds(80, 50, 50, 30);\n\t\tloginFrame.add(idLabel);\n\n\t\tuserId = new TextField(10);\n\t\tuserId.setBounds(150, 50, 200, 30);\n\t\tloginFrame.add(userId);\n\n\t\tpasswdLabel = new JLabel(\"PW : \");\n\t\tpasswdLabel.setBounds(80, 80, 50, 30);\n\t\tloginFrame.add(passwdLabel);\n\n\t\tuserPw = new TextField(10);\n\t\tuserPw.setBounds(150, 80, 200, 30);\n\t\tuserPw.setEchoChar('*');\n\t\tloginFrame.add(userPw);\n\n\t\tloginBt = new JButton(\"로그인\");\n\t\tloginBt.setBounds(70, 120, 80, 50); // 버튼 위치 설정\n\t\tloginFrame.add(loginBt);\n\n\t\tfindIdBt = new JButton(\"아이디 / 비밀번호찾기\");\n\t\tfindIdBt.setBounds(170, 120, 180, 50); // 버튼 위치 설정\n\t\tloginFrame.add(findIdBt);\n\n\t\tjoinBt = new JButton(\"회원가입\");\n\t\tjoinBt.setBounds(70, 180, 280, 30);\n\t\tloginFrame.add(joinBt);\n\n//\t\tmap.put(\"aaa\", \"11\");\n//\t\tmap.put(\"bbb\", \"22\");\n//\t\tmap.put(\"ccc\", \"33\");\n//\t\tmap.put(\"ddd\", \"44\");\n//\t\tmap.put(\"eee\", \"55\");\n\t\t\n\t\t\n\t\tinsertTestUsers();\n\n\t\tloginFrame.setVisible(true);\n\n\t\tloginBt.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tString id = userId.getText();\n\t\t\t\tString pw = userPw.getText();\n\t\t\t\tuserPw.setText(\"\");\n\n\t\t\t\tDialog dialog = new Dialog(loginFrame, \"불일치!\", true);\n\n\t\t\t\ttry {\n\t\t\t\t\tConnection conn = getConnection();\n\t\t\t\t\tPreparedStatement ps = conn.prepareStatement(\"SELECT * FROM User WHERE userId = ?\");\n\t\t\t\t\tps.setString(1, id);\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\tif (!rs.next()) {\n//\t\t\t\t\tif (!map.containsKey(id)) {\n\t\t\t\t\t\tdialog.setBounds(100, 100, 200, 150);\n\t\t\t\t\t\tdialog.add(new Label(\"아이디가 존재하지 않습니다.\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\tdialog.addWindowListener(new WindowListener());\n\t\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t\t\t\n\t\t\t\t\t\tuserId.setText(\"\");\n\t\t\t\t\t\tuserId.requestFocus();\n\t\t\t\t\t} else if (!rs.getString(\"password\").equals(pw)) {\n//\t\t\t\t\t} else if (!map.get(id).equals(pw)) {\n\t\t\t\t\t\tdialog.setBounds(100, 100, 200, 150);\n\t\t\t\t\t\tdialog.add(new Label(\"암호가 일치하지 않습니다.\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\tdialog.addWindowListener(new WindowListener());\n\t\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t\t\tuserPw.requestFocus();\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// setVisible(false);\n\t\t\t\t\t\tloginFrame.dispose();\n\t\t\t\t\t\tnew Client();\n\t\t\t\t\t}\n\t\t\t\t\tps.close();\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (Exception exeption) {\n\t\t\t\t\texeption.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tjoinBt.addActionListener(new Register());\n\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jPasswordField1 = new javax.swing.JPasswordField();\n jButton1 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(900, 800));\n getContentPane().setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI Black\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 255, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"ADMINISTRATOR LOGIN\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(200, 10, 250, 70);\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(204, 255, 255));\n jLabel2.setText(\"LOGIN ID\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(190, 90, 90, 26);\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(204, 255, 255));\n jLabel3.setText(\"PASSCODE\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(190, 150, 100, 28);\n getContentPane().add(jTextField1);\n jTextField1.setBounds(350, 90, 100, 30);\n getContentPane().add(jPasswordField1);\n jPasswordField1.setBounds(350, 150, 100, 30);\n\n jButton1.setText(\"LOGIN\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1);\n jButton1.setBounds(280, 253, 120, 40);\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/f2d05338_z.jpg\"))); // NOI18N\n jLabel4.setText(\"jLabel4\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(0, 0, 630, 370);\n\n pack();\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tloginPage = new LoginGUI();\n\t\t\t\t\t} catch (ClassNotFoundException | IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tloginPage.setVisible(true);\n\t\t\t\t\t\n\t\t\t\t\tdispose();\n\t\t\t\t}", "public FormLogin() {\n initComponents();\n open_db();\n setLocationRelativeTo(this);\n }", "private void createAccountButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_createAccountButtonActionPerformed\n na.setVisible(true);\n boolean isLoggedInNew = uL.isLoggedIn();\n boolean isLoggedIn = na.isLoggedIn();\n if (isLoggedInNew || isLoggedIn) {\n dm.messageMustLogOut();\n na.dispose();\n }\n }", "private LoginMenu() {\n\n\t\t\n\t\t/**\n\t\t * Fenêtre positionnée comme tableau de ligne/colonne avec un espace en hauteur\n\t\t * et largeur\n\t\t **/\n\n\t\tmenuLogin = new JPanel(new GridLayout(2, 1, 0, 0));\n\t\tmenuLogin.setBackground(new Color(200, 100, 100));\n\n\t\t/**\n\t\t * Ajout du login et mot de passe via un tableau\n\t\t **/\n\n\t\tmenuLogin.add(InitialisationDuMenu());\n\t\tmenuLogin.add(InitDesBouttons());\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jButtonLogin = new javax.swing.JButton();\n jTextUsername = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabelError = new javax.swing.JLabel();\n jPasswordField = new javax.swing.JPasswordField();\n jButtonRegister = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Login\");\n setName(\"Login\"); // NOI18N\n setResizable(false);\n\n jButtonLogin.setText(\"Log in\");\n jButtonLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonLoginActionPerformed(evt);\n }\n });\n\n jTextUsername.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextUsernameActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel1.setText(\"Username:\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel2.setText(\"Password:\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Please enter your username and password\");\n\n jLabelError.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabelError.setForeground(new java.awt.Color(255, 0, 0));\n jLabelError.setVisible(false);\n\n jButtonRegister.setText(\"Register\");\n jButtonRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRegisterActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 331, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPasswordField, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextUsername, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 255, Short.MAX_VALUE))\n .addComponent(jLabelError, javax.swing.GroupLayout.PREFERRED_SIZE, 274, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(129, 129, 129)\n .addComponent(jButtonLogin)\n .addGap(18, 18, 18)\n .addComponent(jButtonRegister)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jLabel3)\n .addGap(19, 19, 19)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextUsername, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelError, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonLogin)\n .addComponent(jButtonRegister))\n .addGap(34, 34, 34))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 335, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "public LoginPage() {\n initComponents();\n Point center = GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint();\n int windowWidth = this.getWidth();\n int windowHeight = this.getHeight();\n this.setBounds(center.x - windowWidth / 2, center.y - windowHeight / 2, windowWidth,\n windowHeight);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setVisible(true);\n }", "public Login() {\n initComponents();\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtUsername = new javax.swing.JTextField();\n txtPassword = new javax.swing.JPasswordField();\n btnLogin = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n btnRecoverPassword = new javax.swing.JButton();\n lblMessage = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Login\"));\n\n jLabel1.setText(\"Username\");\n\n jLabel2.setText(\"Password\");\n\n txtPassword.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPasswordActionPerformed(evt);\n }\n });\n\n btnLogin.setText(\"Login\");\n btnLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLoginActionPerformed(evt);\n }\n });\n\n btnCancel.setText(\"Cancel\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelActionPerformed(evt);\n }\n });\n\n btnRecoverPassword.setText(\"Recover Password\");\n btnRecoverPassword.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRecoverPasswordActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(btnLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnRecoverPassword))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPassword, javax.swing.GroupLayout.DEFAULT_SIZE, 252, Short.MAX_VALUE)\n .addComponent(txtUsername, javax.swing.GroupLayout.DEFAULT_SIZE, 252, Short.MAX_VALUE))))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(55, Short.MAX_VALUE)\n .addComponent(lblMessage, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(45, 45, 45))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblMessage, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtUsername, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnLogin)\n .addComponent(btnCancel)\n .addComponent(btnRecoverPassword))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblInloggning = new javax.swing.JLabel();\n pfPassword = new javax.swing.JPasswordField();\n tfUsername = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n btnLogIn = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(1000, 500));\n setSize(new java.awt.Dimension(600, 400));\n getContentPane().setLayout(null);\n\n lblInloggning.setBackground(java.awt.SystemColor.activeCaption);\n lblInloggning.setFont(new java.awt.Font(\"Malgun Gothic\", 1, 36)); // NOI18N\n lblInloggning.setForeground(new java.awt.Color(0, 0, 0));\n lblInloggning.setText(\"Inloggning\");\n getContentPane().add(lblInloggning);\n lblInloggning.setBounds(380, 50, 188, 49);\n\n pfPassword.setText(\"jPasswordField1\");\n pfPassword.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n pfPasswordFocusGained(evt);\n }\n });\n pfPassword.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n pfPasswordKeyPressed(evt);\n }\n });\n getContentPane().add(pfPassword);\n pfPassword.setBounds(370, 260, 225, 28);\n\n tfUsername.setBackground(new java.awt.Color(255, 255, 255));\n tfUsername.setFont(new java.awt.Font(\"Malgun Gothic\", 1, 12)); // NOI18N\n getContentPane().add(tfUsername);\n tfUsername.setBounds(370, 170, 225, 29);\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Malgun Gothic\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 0, 0));\n jLabel1.setText(\"Användarnamn\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(400, 130, 175, 33);\n\n btnLogIn.setBackground(new java.awt.Color(34, 151, 214));\n btnLogIn.setFont(new java.awt.Font(\"Malgun Gothic\", 1, 12)); // NOI18N\n btnLogIn.setText(\"Logga in\");\n btnLogIn.setToolTipText(\"Logga in\");\n btnLogIn.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnLogIn.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnLogInMouseClicked(evt);\n }\n });\n getContentPane().add(btnLogIn);\n btnLogIn.setBounds(440, 320, 120, 40);\n\n jLabel2.setBackground(new java.awt.Color(0, 153, 153));\n jLabel2.setFont(new java.awt.Font(\"Malgun Gothic\", 1, 24)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 0, 0));\n jLabel2.setLabelFor(pfPassword);\n jLabel2.setText(\"Lösenord\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(430, 220, 105, 33);\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/informatikb_system/Icons/orebro_370x370.jpg\"))); // NOI18N\n getContentPane().add(jLabel4);\n jLabel4.setBounds(0, 0, 370, 370);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jlblUser = new javax.swing.JLabel();\n jlblPassword = new javax.swing.JLabel();\n jtxtUser = new javax.swing.JTextField();\n jtbnLogin = new javax.swing.JButton();\n jtxtPassword = new javax.swing.JPasswordField();\n jbtnExit = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jcmbCompany = new javax.swing.JComboBox();\n kbatchdate = new org.kazao.calendar.KazaoCalendarDate();\n jlblbatchdate = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Login\");\n setBackground(new java.awt.Color(0, 0, 0));\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setForeground(java.awt.Color.white);\n setMinimumSize(new java.awt.Dimension(100, 100));\n setModal(true);\n setUndecorated(true);\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n });\n getContentPane().setLayout(null);\n\n jlblUser.setFont(new java.awt.Font(\"Dialog\", 1, 10)); // NOI18N\n jlblUser.setText(\"Username\");\n getContentPane().add(jlblUser);\n jlblUser.setBounds(20, 20, 90, 13);\n\n jlblPassword.setFont(new java.awt.Font(\"Dialog\", 1, 10)); // NOI18N\n jlblPassword.setText(\"Password\");\n getContentPane().add(jlblPassword);\n jlblPassword.setBounds(20, 50, 90, 20);\n\n jtxtUser.setFont(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n jtxtUser.setToolTipText(\"Username\");\n jtxtUser.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jtxtUserKeyPressed(evt);\n }\n });\n getContentPane().add(jtxtUser);\n jtxtUser.setBounds(110, 20, 100, 23);\n\n jtbnLogin.setFont(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n jtbnLogin.setText(\"Login\");\n jtbnLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtbnLoginActionPerformed(evt);\n }\n });\n getContentPane().add(jtbnLogin);\n jtbnLogin.setBounds(50, 140, 88, 25);\n\n jtxtPassword.setFont(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n jtxtPassword.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jtxtPasswordKeyPressed(evt);\n }\n });\n getContentPane().add(jtxtPassword);\n jtxtPassword.setBounds(110, 50, 100, 23);\n\n jbtnExit.setFont(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n jbtnExit.setText(\"Exit\");\n jbtnExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtnExitActionPerformed(evt);\n }\n });\n getContentPane().add(jbtnExit);\n jbtnExit.setBounds(150, 140, 90, 25);\n\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 10)); // NOI18N\n jLabel1.setText(\"Company\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(20, 80, 80, 13);\n\n jcmbCompany.setFont(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n jcmbCompany.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jcmbCompanyKeyPressed(evt);\n }\n });\n getContentPane().add(jcmbCompany);\n jcmbCompany.setBounds(110, 80, 120, 23);\n\n kbatchdate.setFont(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n kbatchdate.setFontDate(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n kbatchdate.setOpaque(false);\n getContentPane().add(kbatchdate);\n kbatchdate.setBounds(110, 110, 100, 20);\n\n jlblbatchdate.setFont(new java.awt.Font(\"Dialog\", 1, 10)); // NOI18N\n jlblbatchdate.setText(\"Session Date\");\n getContentPane().add(jlblbatchdate);\n jlblbatchdate.setBounds(20, 110, 140, 13);\n\n setSize(new java.awt.Dimension(303, 184));\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jCheckBox1 = new javax.swing.JCheckBox();\n jTextField2 = new javax.swing.JPasswordField();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowStateListener(new java.awt.event.WindowStateListener() {\n public void windowStateChanged(java.awt.event.WindowEvent evt) {\n jb(evt);\n }\n });\n getContentPane().setLayout(null);\n\n jButton1.setText(\"Employee Login\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1);\n jButton1.setBounds(160, 193, 130, 40);\n\n jButton2.setText(\"Manager Login\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2);\n jButton2.setBounds(160, 250, 130, 40);\n\n jLabel2.setFont(new java.awt.Font(\"Verdana\", 1, 36)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Login Form\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(100, 50, 230, 40);\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Username\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(80, 110, 80, 17);\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Password\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(80, 150, 70, 17);\n getContentPane().add(jTextField1);\n jTextField1.setBounds(210, 100, 140, 30);\n\n jCheckBox1.setForeground(new java.awt.Color(255, 255, 255));\n jCheckBox1.setText(\"Show Password\");\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox1);\n jCheckBox1.setBounds(210, 180, 130, 23);\n getContentPane().add(jTextField2);\n jTextField2.setBounds(210, 150, 140, 30);\n getContentPane().add(jLabel1);\n jLabel1.setBounds(0, 0, 400, 300);\n\n pack();\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnew LoginForm();\n\t\t\t\t\tf.dispose();\n\t\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n name = new javax.swing.JTextField();\n pass = new javax.swing.JPasswordField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Username\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"Password\");\n\n pass.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n passActionPerformed(evt);\n }\n });\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/Apply.png\"))); // NOI18N\n jButton1.setText(\"Login\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/Delete.png\"))); // NOI18N\n jButton2.setText(\"Exit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(0, 204, 255));\n\n jLabel3.setBackground(new java.awt.Color(255, 0, 0));\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Đăng nhập hệ thống\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(98, 98, 98))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel3)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(55, 55, 55)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(35, 35, 35)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pass, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(61, Short.MAX_VALUE))\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(pass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtUserName = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jPasswordField1 = new javax.swing.JPasswordField();\n btnLogin = new javax.swing.JButton();\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel1.setText(\"Sales Agent Login\");\n\n jLabel2.setText(\"User Name: \");\n\n jLabel3.setText(\"Password:\");\n\n btnLogin.setText(\"Login>>\");\n btnLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLoginActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(407, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(403, 403, 403))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(157, 157, 157)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(90, 90, 90)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtUserName)\n .addComponent(jPasswordField1, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(488, 488, 488)\n .addComponent(btnLogin)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(153, 153, 153)\n .addComponent(jLabel1)\n .addGap(204, 204, 204)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(txtUserName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(77, 77, 77)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(115, 115, 115)\n .addComponent(btnLogin)\n .addContainerGap(343, Short.MAX_VALUE))\n );\n }", "public void loginFrame() {\n\n //---------------------------------------------------Creating window and setting window Size\n window = new JFrame();\n window.setSize(876, 497);\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n window.setResizable(false);\n\n //---------------------------------------------------Creating panel to place textfields and labels in\n window.add(border);\n border.setLayout(null);\n\n border.add(lblIconTwo);\n scalingImgTwo();\n //---------------------------------------------------Login panel\n outline = new JPanel();\n lblIconTwo.add(outline);\n outline.setBounds(125, 60, 294, 355);\n outline.setLayout(null);\n\n outline.add(lblIcon);\n\n iconImg();\n lblIconTwo.add(backgroundIconTwo);\n scalingImg();\n //---------------------------------------------------Secondary panel\n border.add(imgPanel);\n\n //layout and size\n imgPanel.setLayout(null);\n imgPanel.setBounds(353, 22, 480, 420);\n imgPanel.setBackground(new Color(0x03a9f4));\n imgPanel.setBorder(BorderFactory.createLineBorder(new Color(0xffffff), 3));\n\n imgPanel.setVisible(false);\n //---------------------------------------------------JLabel\n JLabel lblUser = new JLabel(\"Garage Entrance\");\n lblUser.setFont(new Font(\"SourceSansPro\", Font.BOLD | Font.ITALIC, 25));\n lblUser.setForeground(Color.BLACK);\n lblUser.setBounds(40, 5, 300, 60);\n outline.add(lblUser);\n\n //---------------------------------------------------positioning Username label and textfield\n lblUsername.setBounds(47, 135, 150, 40);\n outline.add(lblUsername);\n txtUsername.setBounds(47, 170, 200, 30);\n outline.add(txtUsername);\n\n lblLastname.setBounds(47, 195, 200, 40);\n outline.add(lblLastname);\n txtLastname.setBounds(47, 230, 200, 30);\n outline.add(txtLastname);\n //---------------------------------------------------positioning login button and adding action listener\n btnLogin.setBounds(82, 268, 130, 33);\n outline.add(btnLogin);\n btnLogin.addActionListener(this);\n\n //---------------------------------------------------positioning Submit button \n btnReturn.setBounds(82, 305, 130, 33);\n outline.add(btnReturn);\n\n window.setLocationRelativeTo(null);\n window.setVisible(true);\n\n //--------------------------------------------------returns the user to the main page\n btnReturn.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent ae) {\n window.setVisible(false);\n Main rg = new Main();\n window.setVisible(false);\n rg.startProgram();\n\n }\n });\n //------------------------------------------------------------------------------Design\n //---------------------------------------------------Design JFrame\n //form title bar \n window.setTitle(\"Login\");\n ImageIcon img = new ImageIcon(\"images\\\\anu.jpg\");\n window.setIconImage(img.getImage());//changes the icon of the frame\n window.getRootPane().setDefaultButton(btnLogin);\n //---------------------------------------------------Design JPanels\n //Panel Colour\n border.setBackground(new Color(0x005ba3));\n outline.setBackground(new Color(0xffffff));\n\n outline.setBorder(BorderFactory.createLineBorder(new Color(0x03a9f4), 4));\n //---------------------------------------------------Design JLabel\n lblUsername.setFont(new Font(\"SourceSansPro\", Font.BOLD, 15));\n lblUsername.setForeground(Color.BLACK);\n txtUsername.setBorder(BorderFactory.createLineBorder(new Color(0x03a9f4), 3));\n txtUsername.setBackground(new Color(0x424242));\n txtUsername.setForeground(Color.WHITE);\n txtUsername.setCaretColor(Color.WHITE);\n txtUsername.setCaretColor(Color.WHITE);\n lblLastname.setFont(new Font(\"SourceSansPro\", Font.BOLD, 15));\n lblLastname.setForeground(Color.BLACK);\n txtLastname.setBorder(BorderFactory.createLineBorder(new Color(0x03a9f4), 3));\n txtLastname.setBackground(new Color(0x424242));\n txtLastname.setForeground(Color.WHITE);\n txtLastname.setCaretColor(Color.WHITE);\n txtLastname.setCaretColor(Color.WHITE);\n\n //---------------------------------------------------Design JButton\n btnLogin.setBorder(BorderFactory.createLineBorder(new Color(0x03a9f4), 3));\n btnReturn.setBorder(BorderFactory.createLineBorder(new Color(0x03a9f4), 3));\n btnLogin.setBackground(new Color(0x424242));\n btnLogin.setForeground(Color.WHITE);\n btnReturn.setBackground(new Color(0x424242));\n btnReturn.setForeground(Color.WHITE);\n\n btnLogin.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n btnReturn.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\n lblWMsg.setBounds(570, 85, 150, 33);\n lblWMsg.setForeground(Color.WHITE);\n lblWMsg.setFont(new Font(\"SourceSansPro\", Font.BOLD, 29));\n\n lblMsg.setBounds(490, 110, 350, 33);\n lblMsg.setForeground(Color.WHITE);\n lblMsg.setFont(new Font(\"SourceSansPro\", Font.BOLD, 15));\n\n lblIconTwo.add(lblWMsg);\n lblIconTwo.add(lblMsg);\n //Hover colour change when the cursor hovers over the Login Jbutton\n btnLogin.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseEntered(MouseEvent e) {\n btnLogin.setBackground(new Color(0x005ba3));\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n btnLogin.setBackground(new Color(0x424242));\n }\n });\n btnReturn.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseEntered(MouseEvent e) {\n btnReturn.setBackground(new Color(0x005ba3));\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n btnReturn.setBackground(new Color(0x424242));\n }\n });\n\n }", "public void switchToLogin() {\r\n\t\tlayout.show(this, \"loginPane\");\r\n\t\tloginPane.resetPassFields();\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }" ]
[ "0.73108405", "0.7250427", "0.7228806", "0.7111948", "0.69893456", "0.6951272", "0.6926374", "0.69098336", "0.6900821", "0.6839584", "0.68127686", "0.680591", "0.6773726", "0.6772685", "0.67710567", "0.6762868", "0.67583513", "0.6748397", "0.6741646", "0.67412096", "0.67375046", "0.6709632", "0.6701702", "0.67003584", "0.6688306", "0.66841286", "0.66597056", "0.6655471", "0.66526544", "0.6640804", "0.66389763", "0.66326016", "0.66250944", "0.66151816", "0.66097546", "0.6607943", "0.66077995", "0.6606155", "0.65964633", "0.6595593", "0.65908635", "0.6582029", "0.6564908", "0.6561636", "0.65605867", "0.6558979", "0.65325665", "0.6525175", "0.65084237", "0.65060955", "0.650236", "0.6502001", "0.64981264", "0.64912015", "0.64880455", "0.6486328", "0.64804965", "0.6472961", "0.64694947", "0.6467856", "0.64676774", "0.6463143", "0.6460293", "0.6458964", "0.64557797", "0.6454734", "0.64496565", "0.6447174", "0.6445617", "0.6442411", "0.64420086", "0.6437321", "0.64369696", "0.6433265", "0.6429548", "0.64277035", "0.642042", "0.6418812", "0.6414471", "0.6406351", "0.63961524", "0.6391619", "0.6390057", "0.638537", "0.63801754", "0.63790154", "0.63785636", "0.63740087", "0.63739735", "0.63707453", "0.63706386", "0.63706386", "0.63706386", "0.63706386", "0.63706386", "0.63706386", "0.63706386", "0.63706386", "0.63706386", "0.63706386", "0.63706386" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel2 = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); userLogin_btn = new javax.swing.JButton(); AuthLogin_btn = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); create_btn = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton6 = new javax.swing.JButton(); jButton8 = new javax.swing.JButton(); AuthorityLogin_btn = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Welcome to CityBus E-ticketing"); setName("welcome_frame"); // NOI18N setResizable(false); jPanel2.setBackground(new java.awt.Color(255, 255, 255)); jPanel1.setBackground(new java.awt.Color(102, 0, 153)); jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/photo/bus-icon-17.png"))); // NOI18N jLabel2.setFont(new java.awt.Font("Calibri", 1, 24)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel2.setText("City Bus E-ticketing"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(102, 102, 102) .addComponent(jLabel3)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(21, 21, 21) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(88, 88, 88) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel2) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); userLogin_btn.setBackground(new java.awt.Color(255, 255, 255)); userLogin_btn.setText("User"); userLogin_btn.setToolTipText(""); userLogin_btn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { userLogin_btnActionPerformed(evt); } }); AuthLogin_btn.setBackground(new java.awt.Color(255, 255, 255)); AuthLogin_btn.setText("Employee"); AuthLogin_btn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AuthLogin_btnActionPerformed(evt); } }); jLabel4.setBackground(new java.awt.Color(255, 255, 255)); jLabel4.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N jLabel4.setForeground(new java.awt.Color(153, 0, 204)); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel4.setText("Login As.."); create_btn.setBackground(new java.awt.Color(255, 255, 255)); create_btn.setText("Create Account"); create_btn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { create_btnActionPerformed(evt); } }); jLabel5.setBackground(new java.awt.Color(255, 255, 255)); jLabel5.setFont(new java.awt.Font("Calibri", 1, 18)); // NOI18N jLabel5.setForeground(new java.awt.Color(153, 0, 204)); jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel5.setText("New User?.."); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/photo/profile-icon-29.png"))); // NOI18N jButton1.setBackground(new java.awt.Color(102, 0, 153)); jButton1.setForeground(new java.awt.Color(255, 255, 255)); jButton1.setText("About "); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setBackground(new java.awt.Color(102, 0, 153)); jButton2.setForeground(new java.awt.Color(255, 255, 255)); jButton2.setText("Help"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jButton6.setBackground(new java.awt.Color(102, 0, 153)); jButton6.setForeground(new java.awt.Color(255, 255, 255)); jButton6.setText("Contact"); jButton6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton6ActionPerformed(evt); } }); jButton8.setBackground(new java.awt.Color(102, 0, 153)); jButton8.setForeground(new java.awt.Color(255, 255, 255)); jButton8.setText("Close"); jButton8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton8ActionPerformed(evt); } }); AuthorityLogin_btn.setBackground(new java.awt.Color(255, 255, 255)); AuthorityLogin_btn.setText("Authority"); AuthorityLogin_btn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { AuthorityLogin_btnActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE) .addComponent(jButton1) .addGap(10, 10, 10) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(10, 10, 10) .addComponent(jButton6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27)) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(82, 82, 82) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(create_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(41, 41, 41)))) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(80, 80, 80) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(userLogin_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(AuthLogin_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(32, 32, 32) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(AuthorityLogin_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(42, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(100, 100, 100) .addComponent(jLabel1) .addGap(0, 0, Short.MAX_VALUE)))) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(1, 1, 1) .addComponent(create_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(userLogin_btn) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(AuthLogin_btn) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(AuthorityLogin_btn) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1) .addComponent(jButton2) .addComponent(jButton6) .addComponent(jButton8)) .addContainerGap()) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7320782", "0.72918797", "0.72918797", "0.72918797", "0.728645", "0.72498447", "0.7214492", "0.720934", "0.7197145", "0.71912014", "0.71852076", "0.7160113", "0.71487373", "0.70943654", "0.70820624", "0.7058153", "0.69883204", "0.6978216", "0.69558746", "0.6955715", "0.69455403", "0.6944223", "0.6936588", "0.6933016", "0.6929512", "0.6925853", "0.6925524", "0.6912182", "0.6912122", "0.6895022", "0.6894088", "0.68921435", "0.68919635", "0.6889464", "0.6884104", "0.6883508", "0.6882322", "0.6879773", "0.6876671", "0.68755716", "0.6872437", "0.6860746", "0.68575454", "0.6857284", "0.68563104", "0.6854648", "0.68544936", "0.68532896", "0.68532896", "0.68444484", "0.68380433", "0.6837678", "0.68299913", "0.6828643", "0.6828147", "0.6825278", "0.6823024", "0.68182456", "0.68178964", "0.681216", "0.6809752", "0.6809671", "0.6809534", "0.6808423", "0.6803337", "0.6794699", "0.67944574", "0.6793996", "0.6792107", "0.67904186", "0.67898226", "0.67888504", "0.6782858", "0.67673683", "0.67670184", "0.6765726", "0.6757476", "0.67573047", "0.6753978", "0.6752576", "0.674217", "0.67403704", "0.6738196", "0.67374873", "0.67351323", "0.6728453", "0.67277855", "0.6722282", "0.6716617", "0.67165154", "0.67154175", "0.6709239", "0.67077744", "0.6703873", "0.67028135", "0.6702373", "0.6700207", "0.67000616", "0.6695769", "0.6691885", "0.6690232" ]
0.0
-1
//Configure Log4J org.apache.log4j.PropertyConfigurator.configure( System.getProperty("log4jConfigFile", "log4j.properties"));
public static void main(String[] args) throws Exception { if (System.getSecurityManager() == null) { System.setSecurityManager(new java.rmi.RMISecurityManager()); } try { QuartzServer server = new QuartzServer(); if (args.length == 0) { server.serve( new org.quartz.impl.StdSchedulerFactory(), false); } else if (args.length == 1 && args[0].equalsIgnoreCase("console")) { server.serve(new org.quartz.impl.StdSchedulerFactory(), true); } else { System.err.println("\nUsage: QuartzServer [console]"); } } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void getLoggerConfiguration() {\n\t\tPropertyConfigurator.configure(System.getProperty(\"user.dir\")+ \"\\\\Config\\\\log4j.properties\");\n\t}", "public void init(String log4JPropertiesPath) throws IOException{\n\t\t\n\t\t//LoggerServices.build().disableApacheCommonsLogging();\n\t\t\n\t\t//By default, if no other configuration is given, log4j will search your classpath for a 'log4j.properties' file\n\t\t//here we locate the one that will be used if it exists on classpath....\n\t\tURL propertyFileURL = Thread.currentThread().getContextClassLoader().getResource(\"log4j.properties\"); \n\t\t\n\t\tFile log4JPropertiesFile = new File(log4JPropertiesPath);\n\t\t\n\t if (log4JPropertiesFile.exists()) {\n\t PropertyConfigurator.configure(log4JPropertiesPath); \n\t logger.info(\"loaded log4j.properties : \" + log4JPropertiesFile.getCanonicalPath().replaceAll(\"\\\\\\\\\", \"/\"));\n\t }else{ \n\t \tif(propertyFileURL != null){\n\t \t\tString warning = \t\"\\n\\n*******************************************************************************************************\\n\" + \n\t \t\t\t\t\t\t\t\"*******************************************************************************************************\\n\" +\t\t\n\t \t\t\t\t\t\t\t\"*******************************************************************************************************\\n\" +\t\n\t \t\t\t\t\t\t\t\"\\n\" + \n\t \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\"\\tlog4j.properties file not found: \" + log4JPropertiesFile + \"\\n\\tloading log4j.properties found on classPath: \" + propertyFileURL + \"\\n\" +\n\t \t\t\n\t\t\t\t\t\t\t\t\t\"\\n\" + \n\t\t\t\t\t\t\t\t\t\"*******************************************************************************************************\\n\" + \n\t\t\t\t\t\t\t\t\t\"*******************************************************************************************************\\n\" +\t\t\n\t\t\t\t\t\t\t\t\t\"*******************************************************************************************************\\n\\n\" ;\n\t \t\t\n\t \t\tlogger.warn(warning);\n\t \t}else{\n\t \t\tBasicConfigurator.configure();\n\t \t\tlogger.error(\"log4j.properties file not found: \" + log4JPropertiesPath + \", and none found on classpath...loaded BasicConfigurator (System.err output)\");\n\t \t}\n\t }\n\t logger.info(\"current working dir: \" + new File(\".\").getCanonicalPath().replaceAll(\"\\\\\\\\\", \"/\"));\n\t}", "public void configLog()\n\t{\n\t\tlogConfigurator.setFileName(Environment.getExternalStorageDirectory() + File.separator + dataFileName);\n\t\t// Set the root log level\n\t\t//writerConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\t///writerConfigurator.setMaxFileSize(1024 * 1024 * 500);\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 1024);\n\t\t// Set log level of a specific logger\n\t\t//writerConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setImmediateFlush(true);\n\t\t//writerConfigurator.configure();\n\t\tlogConfigurator.configure();\n\n\t\t//gLogger = Logger.getLogger(this.getClass());\n\t\t//gWriter = \n\t\tgLogger = Logger.getLogger(\"vdian\");\n\t}", "@BeforeClass\n public static void setUpClass() {\n final Properties p = new Properties();\n p.put(\"log4j.appender.Remote\", \"org.apache.log4j.net.SocketAppender\");\n p.put(\"log4j.appender.Remote.remoteHost\", \"localhost\");\n p.put(\"log4j.appender.Remote.port\", \"4445\");\n p.put(\"log4j.appender.Remote.locationInfo\", \"true\");\n p.put(\"log4j.rootLogger\", \"ALL,Remote\");\n PropertyConfigurator.configure(p);\n }", "private void initLogConfig() {\n\t\t logConfigurator = new LogConfigurator();\n\t\t// Setting append log coudn't cover by a new log.\n\t\tlogConfigurator.setUseFileAppender(true);\n\t\t// Define a file path for output log.\n\t\tString filename = StorageUtils.getLogFile();\n\t\tLog.i(\"info\", filename);\n\t\t// Setting log output\n\t\tlogConfigurator.setFileName(filename);\n\t\t// Setting log's level\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setFilePattern(\"%d %-5p [%c{2}]-[%L] %m%n\");\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 5);\n\t\t// Set up to use the cache first and then output to a file for a period\n\t\t// of time\n\t\tlogConfigurator.setImmediateFlush(false);\n\t\tlogConfigurator.setUseLogCatAppender(true);\n\t\t// logConfigurator.setResetConfiguration(true);\n\t\tlogConfigurator.configure();\n\t}", "private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }", "@BeforeClass\npublic static void setLogger() {\n System.setProperty(\"log4j.configurationFile\",\"./src/test/resources/log4j2-testing.xml\");\n log = LogManager.getLogger(LocalArtistIndexTest.class);\n}", "private static void initializeLog(Properties config)\n {\n // log.file.level = [ ALL | DEBUG | INFO | WARN | ERROR | FATAL ]\n\n try\n {\n PatternLayout layout;\n\n String pattern = config.getProperty(\"log.file.layout\");\n if (null == pattern)\n {\n layout = new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN);\n }\n else\n {\n layout = new PatternLayout(pattern);\n }\n // System.out.println(\"Log4j pattern = \" + pattern);\n // System.out.println(\"Log4j layout = \" + layout);\n\n String fileName = basedir + File.separator + config.getProperty(\"log.dir\") +\n File.separator + config.getProperty(\"log.file\");\n // System.out.println(\"Log4j fileName = \" + fileName);\n\n RollingFileAppender appender = new RollingFileAppender(layout, fileName, true);\n appender.setMaxFileSize(config.getProperty(\"log.file.max.size\"));\n int maxBackup = 14; // default if property not available\n try\n {\n maxBackup = Integer.parseInt(config.getProperty(\"log.file.max.backup\"));\n }\n catch (NumberFormatException e) { }\n appender.setMaxBackupIndex(maxBackup);\n // System.out.println(\"Log4j maxBackup = \" + maxBackup);\n\n Logger log = Logger.getRootLogger();\n log.addAppender(appender);\n log.setLevel(Level.toLevel(config.getProperty(\"log.file.priority\")));\n }\n catch (IOException e)\n {\n System.err.println(\"FAILURE: Error opening log file\");\n System.err.println(e.getMessage());\n System.exit(BAD_RUN);\n }\n }", "@Before\r\n public void setUp() throws Exception {\r\n PropertyConfigurator.configure(\"test_files/log4j.properties\");\r\n\r\n LogManager.setLogFactory(new Log4jLogFactory());\r\n log = LogManager.getLog(this.getClass().getName());\r\n\r\n paramNames = new String[] {\"p1\", \"p2\"};\r\n paramValues = new Object[] {123, \"abc\"};\r\n\r\n value = new Object[] {\"result\"};\r\n exception = new Exception(\"Exception for testing.\");\r\n }", "private void configureLogging() throws FileNotFoundException, IOException {\r\n\t\t// Set configuration file for log4j2\r\n\t\tConfigurationSource source = new ConfigurationSource(new FileInputStream(CONFIG_LOG_LOCATION));\r\n\t\tConfigurator.initialize(null, source);\r\n\t\tlog = LogManager.getLogger(SBIWebServer.class);\r\n\t}", "public void findLog4jPropertiesFile(){\n\t ClassLoader cl = Thread.currentThread().getContextClassLoader(); \n\t \n\t while(cl != null) \n\t { \n\t URL loc = cl.getResource(\"log4j.xml\"); \n\t if(loc!=null) {\n\t \t logger.debug(Log4jServices.class.getName() + \": Search and destroy --> \" + loc); \n\t }\n\t cl = cl.getParent(); \n\t } \n\t}", "public static void main(String[] args) {\n\t\tPropertyConfigurator.configure(\"log4j.properties\");//log all messages in properties file \r\n\t\t\r\n\t\tlogger.debug(\"Sample debug Message\");\r\n\t\tlogger.info(\"Sample infor message\");\r\n\t\tlogger.warn(\"Sample warn message\");\r\n\t\tlogger.error(\"Sample error message\");\r\n\t\tlogger.fatal(\"Sample fatal message\");\r\n\t\t\r\n\t\t\r\n\t\t/*Basic Configurator*/\r\n\t\t//The output contains the time elapsed from the start of the program in milliseconds,the threadName, type of logger level , class location and log messages.\r\n\t\t\r\n\t\t/*PropertyConfigurator*/\r\n\t\t//The rootLogger is the one that resides on the top of the logger hierarchy\r\n\t\t//We set its level to warn and added the console appender CAA. We use a layer called PatternLayout for console appender CAA. The pattern layer uses conversion pattern to format the message like \r\n\t\t//%r--> print elapsed time in milliseconds\r\n\t\t//[%t]--> print the thread name\r\n\t\t//%p--> priority of the logging event\r\n\t\t//%c--> prints the className\r\n\t\t//%x--> used to output the nested diagnostic content associated with the thread that generated the logging event.\r\n\t\t//%m--> used to output the application supplied message associated with the logging event\r\n\t\t//%n--> outputs the platform dependent line separator character\r\n\t\t//%d --> used to output the date of logging event like %d{HH:mm:ss,sss}\r\n\t\t\r\n\t\t\r\n\t}", "public String getLog4jFilePath(){\r\n\t\t return rb.getProperty(\"log4jFilepath\");\r\n\t}", "public static synchronized void initializeLogger() {\n\t\t\n\t try {\n\t\t String workingDir = System.getProperty(\"user.dir\");\n\t\t String fileName = workingDir + File.separator + \"config\" + File.separator + \"logging.properties\";\n\t\t \n\t\t FileInputStream fileInputStream = new FileInputStream(fileName);\n\t\t LogManager.getLogManager().readConfiguration(fileInputStream);\n\t\t \n\t } catch (IOException ex) {\n\t\t System.err.println(\"Failed to load logging.properlies, please check the file and the path:\" + ex.getMessage()); \n\t ex.printStackTrace();\n\t System.exit(0);\n\t }\n\t}", "public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void loadLog4jContext() throws FileNotFoundException {\n LoggerContext context = (LoggerContext) LogManager.getContext(false);\n final File log4jConfig = searchForLog4jConfig();\n context.setConfigLocation(log4jConfig.toURI());\n }", "private void log4jConfig(String actionName) {\n\t\tString LOG4J_ROLLING_FILE_NAME_TOKEN = \"Launcher\";\n\t Logger rootLogger = LogManager.getRootLogger();\n\t RollingFileAppender fileAppender = (RollingFileAppender)rootLogger.getAppender(\"fileAppender\");\n\n\t // <param name=\"FileNamePattern\" value=\"/var/log/Launcher.log.%d{yyyy-MM-dd}.gz\"/>\n\t String currentLogFile = fileAppender.getFile();\n\t String newLogPattern = currentLogFile.replace(LOG4J_ROLLING_FILE_NAME_TOKEN, actionName);\n\t fileAppender.setFile(newLogPattern);\n\t \n\t fileAppender.activateOptions();\n\t}", "@Bean\r\n\tpublic ServletContextInitializer initializer() {\r\n\t return new ServletContextInitializer() {\r\n\r\n\t\t\tpublic void onStartup(ServletContext servletContext) throws ServletException {\r\n\t\t\t\tservletContext.setInitParameter(\"log4jConfigLocation\", \"classes/log4j.properties\");\r\n\t\t\t\tservletContext.addListener(\"org.springframework.web.util.Log4jConfigListener\");\r\n\t\t\t\tservletContext.addListener(\"org.springframework.web.util.IntrospectorCleanupListener\");\r\n\t\t\t}\r\n\t \t\r\n\t };\r\n\t}", "private static void initLogger() {\n if (initialized) {\n return;\n }\n\n initialized = true;\n\n System.out.println(\"\");\n System.out.println(\"=> Begin System Logging Configuration\");\n URL fileUrl = null;\n String filePath = null;\n\n try {\n final Region region = EnvironmentConfiguration.getRegion();\n filePath = \"log4j-\" + region.getCode() + \".xml\";\n System.out.println(\"=> searching for log configuration file : \" + filePath);\n fileUrl = LogFactory.class.getResource(\"/\" + filePath);\n DOMConfigurator.configure(fileUrl);\n System.out.println(\"=> found log configuration file : \" + fileUrl);\n System.out.println(\"=> System Logging has been initialized\");\n }\n catch (final NoClassDefFoundError ncdf) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(LogFactory.class.getName()\n + \"::loadProps() - Unable to find needed classes. Logging disabled. \" + ncdf);\n }\n catch (final Exception e) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(\n LogFactory.class.getName() + \"::loadProps() - Unable to initialize logger from file=\"\n + filePath + \". Logging disabled.\");\n }\n System.out.println(\"=> End System Logging Configuration\");\n System.out.println(\"\");\n }", "private void configure() {\r\n LogManager manager = LogManager.getLogManager();\r\n String className = this.getClass().getName();\r\n String level = manager.getProperty(className + \".level\");\r\n String filter = manager.getProperty(className + \".filter\");\r\n String formatter = manager.getProperty(className + \".formatter\");\r\n\r\n //accessing super class methods to set the parameters\r\n\r\n\r\n }", "@BeforeClass\n\tpublic void setup() {\n\t\tlogger = Logger.getLogger(\"AveroRestAPI\");\n\t\tPropertyConfigurator.configure(\"Log4j.properties\");\n\t\tlogger.setLevel(Level.DEBUG);\n\n\t}", "private void configureLogging() throws FileNotFoundException, IOException {\n\t\tConfigurationSource source = new ConfigurationSource(new FileInputStream(CONFIG_LOG_LOCATION));\r\n\t\tConfigurator.initialize(null, source);\r\n\t\tlog = LogManager.getLogger(SekaiClient.class);\r\n\t}", "public void configLogger() {\n Logger.addLogAdapter(new AndroidLogAdapter());\n }", "private void init() {\r\n this.log = this.getLog(LOGGER_MAIN);\r\n\r\n if (!(this.log instanceof org.apache.commons.logging.impl.Log4JLogger)) {\r\n throw new IllegalStateException(\r\n \"LogUtil : apache Log4J library or log4j.xml file are not present in classpath !\");\r\n }\r\n\r\n // TODO : check if logger has an appender (use parent hierarchy if needed)\r\n if (this.log.isWarnEnabled()) {\r\n this.log.warn(\"LogUtil : logging enabled now.\");\r\n }\r\n\r\n this.logBase = this.getLog(LOGGER_BASE);\r\n this.logDev = this.getLog(LOGGER_DEV);\r\n }", "private static void defineLogger() {\n HTMLLayout layout = new HTMLLayout();\n DailyRollingFileAppender appender = null;\n try {\n appender = new DailyRollingFileAppender(layout, \"/Server_Log/log\", \"yyyy-MM-dd\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n logger.addAppender(appender);\n logger.setLevel(Level.DEBUG);\n }", "public static void initLoad() throws Exception {\n\n String configPath = System.getProperty(\"config.dir\") + File.separatorChar + \"config.cfg\";\n System.out.println(System.getProperty(\"config.dir\"));\n \n Utils.LoadConfig(configPath); \n /*\n \n // log init load \n String dataPath = System.getProperty(\"logsDir\");\n if(!dataPath.endsWith(String.valueOf(File.separatorChar))){\n dataPath = dataPath + File.separatorChar;\n }\n String logDir = dataPath + \"logs\" + File.separatorChar;\n System.out.println(\"logdir:\" + logDir);\n System.setProperty(\"log.dir\", logDir);\n System.setProperty(\"log.info.file\", \"info_sync.log\");\n System.setProperty(\"log.debug.file\", \"error_sync.log\");\n PropertyConfigurator.configure(System.getProperty(\"config.dir\") + File.separatorChar + \"log4j.properties\");\n */\n }", "private static void configureLogging(String currentDirectory) {\n System.out.println(\"Looking for watchdog.properties within current working directory : \" + currentDirectory);\n try {\n LogManager manager = LogManager.getLogManager();\n manager.readConfiguration(new FileInputStream(WATCHDOG_LOGGING_PROPERTIES));\n try {\n fileHandler = new FileHandler(WatchDogConfiguration.watchdogLogfilePath, true); //file\n SimpleFormatter simple = new SimpleFormatter();\n fileHandler.setFormatter(simple);\n logger.addHandler(fileHandler);//adding Handler for file\n } catch (IOException e) {\n System.err.println(\"Exception during configuration of logging.\");\n }\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n logger.info(String.format(\"Monitoring: %s\", WatchDogConfiguration.watchdogDirectoryMonitored));\n logger.info(String.format(\"Processed: %s\", WatchDogConfiguration.watchdogDirectoryProcessed));\n logger.info(String.format(\"Logfile: %s\", WatchDogConfiguration.watchdogLogfilePath));\n }", "public static void log4jExample() {\n\t\tnewLogger.warn(\"This is the info level\");\n\t\t\n\t}", "public static void configure(String propertyFileName)\n {\n PropertyConfigurator.configure(propertyFileName);\n }", "public static void main(String[] args) { \n\t\t \n\t\t String path =ResourceHelper.getResourcePath(\"src/main/resources/configfile/log4j.properties\"); \n\t\t System.out.println(path);\n\t }", "private void configureLogLevels()\r\n { \r\n String level = properties.getProperty(\"LogLevel\");\r\n \r\n switch(level)\r\n {\r\n case \"INFO\": INFO = Level.INFO; \r\n DEBUG = Level.FINE; \r\n WARNING = Level.FINE;\r\n break;\r\n case \"DEBUG\": INFO = Level.INFO;\r\n DEBUG = Level.INFO; \r\n WARNING = Level.INFO;\r\n break;\r\n case \"WARNING\": INFO = Level.FINE; \r\n DEBUG = Level.FINE; \r\n WARNING = Level.INFO; \r\n break;\r\n default: INFO = Level.INFO; \r\n DEBUG = Level.FINE; \r\n WARNING = Level.WARNING;\r\n break;\r\n }\r\n }", "public void setup (SProperties config) throws IOException {\n\tString sysLogging =\n\t System.getProperty (\"java.util.logging.config.file\");\n\tif (sysLogging != null) {\n\t System.out.println (\"Logging configure by system property\");\n\t} else {\n\t Logger eh = getLogger (config, \"error\", null, \"rabbit\",\n\t\t\t\t \"org.khelekore.rnio\");\n\t eh.info (\"Log level set to: \" + eh.getLevel ());\n\t}\n\taccessLog = getLogger (config, \"access\", new AccessFormatter (),\n\t\t\t \"rabbit_access\");\n }", "private static final Logger getLog4JLogger(final Log l) {\r\n return ((org.apache.commons.logging.impl.Log4JLogger) l).getLogger();\r\n }", "@Test\n public void testSetFilePath() {\n YConnectLogger.setFilePath(getResourcePath(\"/log4j.xml\"));\n YConnectLogger.debug(\"Some Object\",\n \"should put a message with the class name.\");\n }", "private Logger configureLogging() {\r\n\t Logger rootLogger = Logger.getLogger(\"\");\r\n\t rootLogger.setLevel(Level.FINEST);\r\n\r\n\t // By default there is one handler: the console\r\n\t Handler[] defaultHandlers = Logger.getLogger(\"\").getHandlers();\r\n\t defaultHandlers[0].setLevel(Level.CONFIG);\r\n\r\n\t // Add our logger\r\n\t Logger ourLogger = Logger.getLogger(serviceLocator.getAPP_NAME());\r\n\t ourLogger.setLevel(Level.FINEST);\r\n\t \r\n\t // Add a file handler, putting the rotating files in the tmp directory \r\n\t // \"%u\" a unique number to resolve conflicts, \"%g\" the generation number to distinguish rotated logs \r\n\t try {\r\n\t Handler logHandler = new FileHandler(\"/%h\"+serviceLocator.getAPP_NAME() + \"_%u\" + \"_%g\" + \".log\",\r\n\t 1000000, 3);\r\n\t logHandler.setLevel(Level.FINEST);\r\n\t ourLogger.addHandler(logHandler);\r\n\t logHandler.setFormatter(new Formatter() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String format(LogRecord record) {\r\n\t\t\t\t\t\tString result=\"\";\r\n\t\t\t\t\t\tif(record.getLevel().intValue() >= Level.WARNING.intValue()){\r\n\t\t\t\t\t\t\tresult += \"ATTENTION!: \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd-MMM-yyyy HH:mm:ss\");\r\n\t\t\t\t\t\tDate d = new Date(record.getMillis());\r\n\t\t\t\t\t\tresult += df.format(d)+\" \";\r\n\t\t\t\t\t\tresult += \"[\"+record.getLevel()+\"] \";\r\n\t\t\t\t\t\tresult += this.formatMessage(record);\r\n\t\t\t\t\t\tresult += \"\\r\\n\";\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t } catch (Exception e) { // If we are unable to create log files\r\n\t throw new RuntimeException(\"Unable to initialize log files: \"\r\n\t + e.toString());\r\n\t }\r\n\r\n\t return ourLogger;\r\n\t }", "void initializeLogging();", "public static void setupLoggers() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n\n // add SLF4JBridgeHandler to j.u.l's root logger\n SLF4JBridgeHandler.install();\n }", "void setLoggerConfigFileName(String fileName);", "void initializeLogging(String loggingProperties);", "public static void configureLog(final String logfile) {\n\t\tLoggerContext context = (LoggerContext) LoggerFactory\n\t\t\t\t.getILoggerFactory();\n\n\t\ttry {\n\t\t\tJoranConfigurator configurator = new JoranConfigurator();\n\t\t\tconfigurator.setContext(context);\n\t\t\t// Call context.reset() to clear any previous configuration, e.g.\n\t\t\t// default\n\t\t\t// configuration. For multi-step configuration, omit calling\n\t\t\t// context.reset().\n\t\t\tcontext.reset();\n\t\t\tconfigurator.doConfigure(logfile);\n\t\t} catch (JoranException je) {\n\t\t\tStatusPrinter.printInCaseOfErrorsOrWarnings(context);\n\t\t}\n\t}", "public static Logger getLogger(String name) {\n\t\tif (name != null && name.length() > 0) {\n\t\t\tPropertyConfigurator.configure(\"log4j.properties\");\n\t\t\t// BasicConfigurator.configure();\n\t\t} else {\n\t\t\tBasicConfigurator.configure();\n\t\t}\n\n\t\t// get a logger instance named \"com.foo\"\n\t\t// Logger logger = Logger.getLogger(\"com.foo\");\n\t\t// ApacheLogTest.class.getResource(\"log4j.properties\");\n\t\tLogger logger = Logger.getLogger(name);\n\n\t\t// Now set its level. Normally you do not need to set the\n\t\t// level of a logger programmatically. This is usually done\n\t\t// in configuration files.\n\t\tlogger.setLevel(Level.ALL);\n\n\t\t// Logger barlogger = Logger.getLogger(\"com.foo.Bar\");\n\n\t\t// The logger instance barlogger, named \"com.foo.Bar\",\n\t\t// will inherit its level from the logger named\n\t\t// \"com.foo\" Thus, the following request is enabled\n\t\t// because INFO >= INFO.\n\t\t// barlogger.info(\"Located nearest gas station.\");\n\n\t\t// This request is disabled, because DEBUG < INFO.\n\t\t// barlogger.debug(\"Exiting gas station search\");\n\n\t\t// ///////////// Appenders ////////////////////////\n\n\t\t// Log4j allows logging requests to print to multiple destinations. In\n\t\t// log4j speak, an output destination is called an appender.\n\n\t\t// Currently, appenders exist for the console, files, GUI components,\n\t\t// remote socket servers, JMS, NT Event Loggers, and remote UNIX Syslog\n\t\t// daemons. It is also possible to log asynchronously.\n\n\t\t// ///////////// Layouts ////////////////////////\n\n\t\t// More often than not, users wish to customize not only the output\n\t\t// destination but also the output format. This is accomplished by\n\t\t// associating a layout with an appender. The layout is responsible for\n\t\t// formatting the logging request according to the user's wishes,\n\t\t// whereas an appender takes care of sending the formatted output to its\n\t\t// destination\n\t\treturn logger;\n\t}", "private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandler);\n\n\t\ttry {\n\t\t\t// Create a new Handler for file.\n\t\t\tFileHandler fHandler = new FileHandler(\"HQlogger.log\");\n\t\t\tfHandler.setFormatter(new SimpleFormatter());\n\t\t\t// set level of logging\n\t\t\tfHandler.setLevel(Level.FINEST);\n\t\t\tlogger.addHandler(fHandler);\n\t\t}catch(IOException e) {\n\t\t\tlogger.log(Level.SEVERE, \"File logger not working! \", e);\n\t\t}\n\t}", "@Test\n public void testReset() {\n final VectorAppender appender = new VectorAppender();\n appender.setName(\"A1\");\n Logger.getRootLogger().addAppender(appender);\n final Properties properties = new Properties();\n properties.put(\"log4j.reset\", \"true\");\n PropertyConfigurator.configure(properties);\n assertNull(Logger.getRootLogger().getAppender(\"A1\"));\n LogManager.resetConfiguration();\n }", "private void config() {\n\t}", "private static void prepareLoggingSystemEnviroment() {\n\t\t// property configuration relies on this parameter\n\t\tSystem.setProperty(\"log.directory\", getLogFolder());\n\t\t//create the log directory if not yet existing:\n\t\t//removed code as log4j is now capable of doing that automatically\n\t}", "private static void logProperties(final MicroConfig config) {\n StringWriter sw = new StringWriter();\n config.list(new PrintWriter(sw));\n String props = sw.toString().replace('\\n', ',').replace('\\r', ' ');\n logger.debug(\"Config \"+props);\n }", "@BeforeClass\n\tpublic static void start() throws IOException\n\t{\n\t\tng.configure(\"log4j.properties\");\n\t\tFileInputStream st= new FileInputStream(\"config.properties\");\n\t\tmp.load(st);\n\t\tlg.info(\"============= visiting url ==============\");\n\t\tdr.get(mp.getProperty(\"url\"));\n\t\t\n\t\t\n\t}", "public void fulshLog() {\n\t\tif (logConfigurator!=null) {\n\t\t\tlogConfigurator.setImmediateFlush(true);\n\t\t\tlogConfigurator.setImmediateFlush(false);\n\t\t\tlogConfigurator.configure();\n\t\t}\n\t}", "private void initLogger(BundleContext bc) {\n\t\tBasicConfigurator.configure();\r\n\t\tlogger = Logger.getLogger(Activator.class);\r\n\t\tLogger.getLogger(\"org.directwebremoting\").setLevel(Level.WARN);\r\n\t}", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "private void setupLogging() {\n\t\t// Ensure all JDK log messages are deferred until a target is registered\n\t\tLogger rootLogger = Logger.getLogger(\"\");\n\t\tHandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE);\n\n\t\t// Set a suitable priority level on Spring Framework log messages\n\t\tLogger sfwLogger = Logger.getLogger(\"org.springframework\");\n\t\tsfwLogger.setLevel(Level.WARNING);\n\n\t\t// Set a suitable priority level on Roo log messages\n\t\t// (see ROO-539 and HandlerUtils.getLogger(Class))\n\t\tLogger rooLogger = Logger.getLogger(\"org.springframework.shell\");\n\t\trooLogger.setLevel(Level.FINE);\n\t}", "public Slf4jLogService() {\n this(System.getProperties());\n }", "public boolean isLog4JAvailable() {\n return isLogLibraryAvailable(\"Log4J\", LOGGING_IMPL_LOG4J_LOGGER);\n }", "private static void logConfigLocation(HiveConf conf) throws LogUtils.LogInitializationException\n {\n if (conf.getHiveDefaultLocation() != null) {\n l4j.warn(\"DEPRECATED: Ignoring hive-default.xml found on the CLASSPATH at \"\n + conf.getHiveDefaultLocation().getPath());\n }\n // Look for hive-site.xml on the CLASSPATH and log its location if found.\n if (conf.getHiveSiteLocation() == null) {\n l4j.warn(\"hive-site.xml not found on CLASSPATH\");\n } else {\n l4j.debug(\"Using hive-site.xml found on CLASSPATH at \"\n + conf.getHiveSiteLocation().getPath());\n }\n }", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "private void initLogger() {\n\t\ttry {\n\t\t\tjava.util.logging.Logger rootLogger = java.util.logging.Logger.getLogger(\"\");\n\t\t\trootLogger.setUseParentHandlers(false);\n\t\t\tHandler csvFileHandler = new FileHandler(\"logger/log.csv\", 100000, 1, true);\n\t\t\tlogformater = new LogFormatter();\n\t\t\trootLogger.addHandler(csvFileHandler);\n\t\t\tcsvFileHandler.setFormatter(logformater);\n\t\t\tlogger.setLevel(Level.ALL);\n\t\t} catch (IOException ie) {\n\t\t\tSystem.out.println(\"Logger initialization failed\");\n\t\t\tie.printStackTrace();\n\t\t}\n\t}", "public static void processConfig() {\r\n\t\tLOG.info(\"Loading Properties from {} \", propertiesPath);\r\n\t\tLOG.info(\"Opening configuration file ({})\", propertiesPath);\r\n\t\ttry {\r\n\t\t\treadPropertiesFile();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOG.error(\r\n\t\t\t\t\t\"Monitoring system encountered an error while processing config file, Exiting\",\r\n\t\t\t\t\te);\r\n\t\t}\r\n\t}", "public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }", "private void initLoggers() {\n _logger = LoggerFactory.getInstance().createLogger();\n _build_logger = LoggerFactory.getInstance().createAntLogger();\n }", "public void init(){\n\t\ttry {\r\n\t\t\tpropertiesMemento = new PropertiesMemento();\r\n\t\t\tpropertiesMemento.load();\r\n\t\t\tpropertiesMemento.setScreenLocationProperties(this);\r\n\t\t} catch (Exception e) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"Can't load the stored properties, carrying on.\", \"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t} \r\n\t\t\r\n\t\t// Logger set-up\r\n\t\tlogger = Logger.getLogger(YorkBrowser.class);\r\n\t\ttry {\r\n\t\t\tFileAppender appender;\r\n\t\t\tFile logFile = new File(propertiesMemento.getAppDir() + \"logfile.txt\");\r\n\t\t\tlogFile.delete();\r\n\t\t\t// \"r\" milliseconds, \"t\" thread, \"c\" category - the class name? etc., \"p\" priority - DEBUG etc., \"m\" message, \"n\" separator \r\n\t\t\tFileAppender textAppender = new FileAppender(new PatternLayout(\"%r %-5p %c{1} - %m%n\"), logFile.getAbsolutePath());\r\n\t\t\tBasicConfigurator.configure(textAppender);\r\n\r\n\t\t\tFile xmlLogFile = new File(propertiesMemento.getAppDir() + \"logfile.xml\");\r\n\t\t\txmlLogFile.delete();\r\n\t\t\tappender = new FileAppender(new XMLLayout(), xmlLogFile.getAbsolutePath());\r\n\t\t\tBasicConfigurator.configure(appender);\r\n\r\n\t\t\tBasicConfigurator.configure(new ConsoleAppender(new PatternLayout(\"%r %-5p %c{1} \\t - %m%n\")));\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot configure the logger\");\r\n\t\t}\r\n\t\t\r\n\t\tif(\"on\".equals(propertiesMemento.get(\"logging\"))){\r\n\t\t\tlogger.debug(\"Logging turned on from properties file\");\r\n\t\t\tlogger.setLevel(Level.DEBUG);\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\tlogger.debug(\"turned logging off\");\r\n\t\t\t// Turn off at the root level\r\n\t\t\tlogger.getParent().setLevel(Level.OFF);\r\n\t\t}\r\n\t\tlogger.info(\"Log file starts\");\r\n\t\t\r\n\t\tlogger.debug(\"OS:\" + System.getProperty(\"os.name\"));\r\n\t\t\r\n \r\n // Set the look and feel\r\n\t\t// Install the Windows look and feel if on windows\r\n\t\tif(System.getProperty(\"os.name\").indexOf(\"Windows\") != -1){\r\n\t\t\ttry {\r\n\t\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\r\n\t\t\t} \r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tlogger.warn(\"Exception loading the look and feel\");\r\n\t\t\t} \r\n\t\t}\r\n\t\t\r\n\t\t// Create directories structure if required\r\n\t\ttry{\r\n\t\t\tYorkUtils.setupDirectoryStructure(propertiesMemento.getDataDir());\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tlogger.error(\"Exception when checking/setting directories\", e);\r\n\t\t}\r\n\t\t \r\n // Add some listeners\r\n addWindowListener(this);\r\n \r\n setTitle(\"ZygoMeme York\");\r\n \r\n // Set icon\r\n setIconImage(new ImageIcon(propertiesMemento.getImageDir() + \"graphLogo32.png\").getImage());\r\n \r\n // Set up the layout of the window\r\n JPanel rootPanel = new JPanel();\r\n rootPanel.setLayout(new BorderLayout());\r\n \r\n getContentPane().add(rootPanel);\r\n \r\n // Create the menu bar\r\n JPanel topPanel = menuCreator.createMenu(eventHandler, getProperties());\r\n \r\n // Create the toolbar\r\n topPanel.add(createToolBar());\r\n \r\n rootPanel.add(topPanel, BorderLayout.NORTH); \r\n \r\n // Add the tabbed pane\r\n tabbedPane = new JTabbedPane();\r\n tabbedPane.addChangeListener(this);\r\n addKeyListener(this);\r\n tabbedPane.addKeyListener(this);\r\n rootPanel.add(tabbedPane, BorderLayout.CENTER);\r\n \r\n // Add the status bar\r\n JPanel statusBar = new JPanel();\r\n statusBar.setLayout(new BoxLayout(statusBar, BoxLayout.X_AXIS));\r\n rootPanel.add(statusBar, BorderLayout.SOUTH);\r\n setStatusBarText(\"Ready\"); \r\n statusBar.add(statusLabel);\r\n \r\n // Set up the size and position and make visible\r\n\t\tsetSize(new Dimension(width, height));\r\n\t\tsetLocation(xPos, yPos);\r\n\t\t\r\n\t\t// Open any saved tabs\r\n\t\topenSavedTabs();\r\n\t\t\t\t\r\n\t\tprogressMonitor = new ProgressMonitor(this, \"Running Model\", \"\", 0, 1000);\r\n\r\n setVisible(true);\r\n \r\n // TODO Make this selectable in user preferences\r\n checkForUpdates();\r\n\t}", "public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void setupFileLogging();", "protected void initLogger() {\n initLogger(\"DEBUG\");\n }", "public void setConfiguration(Properties props);", "@BeforeSuite\n public void initiateData() throws FileNotFoundException, IOException {\n jsonTestData = new JsonClass();\n userDirectory = System.getProperty(\"user.dir\");\n String log4jConfigFile = userDirectory + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator\n + \"log4j.properties\";\n ConfigurationSource source = new ConfigurationSource(new FileInputStream(log4jConfigFile));\n Configurator.initialize(null, source);\n logger = Logger.getLogger(getClass());\n }", "public static void configureLog(String logFolder, Class resourceClass, String resourceName){\r\n File f = new File(logFolder);\r\n File flog;\r\n flog = new File(f, LOG4J_CONFIG_FILE);\r\n if(!f.exists()){\r\n if(!f.mkdirs())\r\n throw new RuntimeException(\"Couldn't create \" + f);\r\n }\r\n if (!flog.exists()){\r\n String lf = logFolder.replace(\"\\\\\", \"/\");\r\n String props = TFUtils.readResource(resourceClass, resourceName).replaceAll(FOLDER_TAG, lf);\r\n TFUtils.printlnToFile(flog, props);\r\n }\r\n PropertyConfigurator.configure(flog.getAbsolutePath());\r\n }", "@Test\n\t/**\n\t * This is in effect:\n\t * \n\t * log4j.rootLogger=DEBUG\n\t */\n\tpublic void testDebugAbove(){\n\t\tlogger.trace(\"Trace\");\n\t\t//Above Debug are all logged\n\t\tlogger.debug(\"Debug\");\n\t\tlogger.info(\"Info\");\n\t\tlogger.warn(\"Warning\");\n\t\tlogger.error(\"Error\");\n\t}", "public static void initializeLogger(Level level) {\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\r\n\t\tURL url = loader.getResource(\"resources/log4j.xml\");\r\n\t\tPropertyConfigurator.configure(url);\r\n\t\tLogger logger = Logger.getLogger(BaseActivator.class);\r\n\t\tlogger.setLevel(level);\r\n\t\tlogger.info(\"Starting Logger: Level = \" + logger.getLevel().getClass());\r\n\t\tBaseActivator.setLoggerIsInitialized(true);\r\n\t}", "public void disabled_og4j_testSetLogLevel() throws Exception {\n assertEquals(\"Default Level is ERROR\", LOGGER.getLevel(), Level.ERROR);\n Helper.setLog4JLogLevel(Level.DEBUG);\n assertEquals(\"Default Level is DEBUG\", LOGGER.getLevel(), Level.DEBUG);\n }", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "public void enableLogging();", "public void intiSettings()throws Exception{\r\n\r\n\t\tinputStream = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\config.properties\");\r\n\t\tconfig.load(inputStream);\r\n\t\t\r\n\t\tprop.put(\"bootstrap.servers\", config.getProperty(\"bootstrap.servers\"));\r\n\t\tprop.put(\"key.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\t\tprop.put(\"value.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\r\n\t\ttopicName = config.getProperty(\"TopicName\");\r\n\t\ttopicName = createTopic(topicName);\r\n\t\t\r\n\t\tmessageList = Arrays.asList(config.getProperty(\"messages\").split(\"\\\\|\"));\r\n\t}", "protected static Logger initLogger() {\n \n \n File logFile = new File(\"workshop2_slf4j.log\");\n logFile.delete();\n return LoggerFactory.getLogger(Slf4j.class.getName());\n }", "@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\",\n justification = \"Return value for file delete is not important here.\")\n private void initLogWriter() throws org.apache.geode.admin.AdminException {\n loggingSession.createSession(this);\n\n final LogConfig logConfig = agentConfig.createLogConfig();\n\n // LOG: create logWriterAppender here\n loggingSession.startSession();\n\n // LOG: look in AgentConfigImpl for existing LogWriter to use\n InternalLogWriter existingLogWriter = agentConfig.getInternalLogWriter();\n if (existingLogWriter != null) {\n logWriter = existingLogWriter;\n } else {\n // LOG: create LogWriterLogger\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n // Set this log writer in AgentConfigImpl\n agentConfig.setInternalLogWriter(logWriter);\n }\n\n // LOG: create logWriter here\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n\n // Set this log writer in AgentConfig\n agentConfig.setInternalLogWriter(logWriter);\n\n // LOG:CONFIG: changed next three statements from config to info\n logger.info(LogMarker.CONFIG_MARKER,\n String.format(\"Agent config property file name: %s\",\n AgentConfigImpl.retrievePropertyFile()));\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.getPropertyFileDescription());\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.toPropertiesAsString());\n }", "static public void setup() throws IOException {\n Logger logger = Logger.getLogger(\"\");\n\n logger.setLevel(Level.INFO);\n Calendar cal = Calendar.getInstance();\n //SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dateStr = sdf.format(cal.getTime());\n fileTxt = new FileHandler(\"log_\" + dateStr + \".txt\");\n fileHTML = new FileHandler(\"log_\" + dateStr + \".html\");\n\n // Create txt Formatter\n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n // Create HTML Formatter\n formatterHTML = new LogHTMLFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tPropertyConfigurator.configure(\"log4j.properties\");\n\t\tTradeTest tradeTest = new TradeTest();\n\t\ttradeTest.run();\n\t}", "private void setProperties( JobConf conf ) throws IOException {\n \t\tConfig index_conf = ConfigFactory.load();\n\t\tconf.set( CONFIG_PROPERTIES, index_conf.toString());\n \n \t\t// Also set mapred speculative execution off:\n \t\tconf.set( \"mapred.reduce.tasks.speculative.execution\", \"false\" );\n \n \t\t// Reducer count dependent on concurrent HTTP connections to Solr server.\n \t\ttry {\n \t\t\tnumReducers = index_conf.getInt( \"warc.hadoop.num_reducers\" );\n \t\t} catch( NumberFormatException n ) {\n \t\t\tnumReducers = 10;\n \t\t}\n \t}", "public FileAppender()\n {\n //LogManager.getLogManager().reset();\n logger = Logger.getLogger(\"MyLog\");\n\n final Properties loggerProps = new Properties();\n try {\n loggerProps.load(FileAppender.class.getResourceAsStream(\"/logger.properties\"));\n final String filePath = loggerProps.getProperty(Utility.LOGGER_APPENDER_FILE_PATH);\n final FileHandler fh = new FileHandler(filePath);\n logger.addHandler(fh);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n }", "public static void loadLogFile() throws Exception {\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"accuracytests\" + File.separator + \"Logging.xml\");\n cm.add(\"Config.xml\");\n }", "protected GerentePoolLog(Class ownerClass)\n {\n\t\tArquivoConfiguracaoGPP arqConf = ArquivoConfiguracaoGPP.getInstance();\n\t\t//Define o nome e a porta do servidor q serao utilizados no LOG\n\t\thostName = arqConf.getEnderecoOrbGPP() + \":\" + arqConf.getPortaOrbGPP();\n\n\t\t/* Configura o LOG4J com as propriedades definidas no arquivo\n\t\t * de configuracao do GPP\n\t\t */\n\t\t\n\t\tPropertyConfigurator.configure(arqConf.getConfiguracaoesLog4j());\n\t\t//Inicia a instancia do Logger do LOG4J\n\t\tlogger = Logger.getLogger(ownerClass);\n\t\tlog(0,Definicoes.DEBUG,\"GerentePoolLog\",\"Construtor\",\"Iniciando escrita de Log do sistema GPP...\");\n }", "private static void loadConfig() throws IOException { \t\t\n final InputStream input = Main.class.getResourceAsStream(\"/configuration.properties\");\n final Properties prop = new Properties();\n \n prop.load(input);\n System.out.println(\"Configuration loaded:\"); \n\n // PostgreSQL server access config\n dbmsUrl = prop.getProperty(\"dbms_url\");\n System.out.println(\"- dbms_url: \" + dbmsUrl);\n\n dbmsUser = prop.getProperty(\"dbms_user\");\n System.out.println(\"- dbms_user: \" + dbmsUser);\n\n userPw = prop.getProperty(\"user_pw\"); \n System.out.println(\"- user_pw: \" + userPw);\n\n\n // Benchmarks config\n noTransactions = Integer.parseInt(prop.getProperty(\"no_transactions\"));\n System.out.println(\"- no_transactions: \" + noTransactions);\n\n noStatementsPerTransaction = Integer.parseInt(prop.getProperty(\"no_statements_per_transaction\")); \n System.out.println(\"- no_statements_per_transaction: \" + noStatementsPerTransaction);\n\n noSelectStatements = Integer.parseInt(prop.getProperty(\"no_select_statements\")); \n System.out.println(\"- no_select_statements: \" + noSelectStatements + \"\\n\");\n\n input.close();\n }", "public static void main( String[] args ) throws InterruptedException\n {\n \tString tmp;\n System.out.println( \"Hello World! v5: 2 second sleep, 1 mil logs\" );\n //System.out.println(Thread.currentThread().getContextClassLoader().getResource(\"log4j.properties\"));\n ClassLoader loader = App.class.getClassLoader();\n // System.out.println(loader.getResource(\"App.class\"));\n \n tmp = System.getenv(\"LOOP_ITERATIONS\");\n if (tmp != null) {\n \ttry {\n \t\tLOOP_ITERATIONS = Integer.parseInt(tmp);\n \t}\n \tcatch (NumberFormatException e) {\n \t\te.printStackTrace();\n \t}\n }\n \n tmp = System.getenv(\"LOG_PADDING\");\n if (tmp != null) {\n \ttry {\n \t\tLOG_PADDING = Integer.parseInt(tmp);\n \t}\n \tcatch (NumberFormatException e) {\n \t\te.printStackTrace();\n \t}\n }\n \n String padding = createPadding(LOG_PADDING);\n \n logger.debug(\"Hello this is a debug message\");\n logger.info(\"Hello this is an info message\");\n \n double[] metrics = new double[LOOP_ITERATIONS];\n double total = 0;\n long total_ms = 0;\n \n \n for (int i=0; i < LOOP_ITERATIONS; i++) {\n \n\t long startTime = System.currentTimeMillis();\n\t\n\t \n\t for (int k=0; k < INNER_LOOP_ITERATIONS; k++) {\n\t \tlogger.debug(\"Hello \" + i + \" \" + padding);\n\t logger.info(\"Hello \" + i + \" \" + padding);\n\t }\n\t \n\t long endTime = System.currentTimeMillis();\n\t \n\t long elapsedms = (endTime - startTime);\n\t total_ms += elapsedms;\n\t \n\t \n\t long seconds = (endTime - startTime)/1000;\n\t long milli = (endTime - startTime) % 1000;\n\t double logspermillisecond = (INNER_LOOP_ITERATIONS * 2)/elapsedms;\n\t total += logspermillisecond;\n\t metrics[i] = logspermillisecond;\n\t \n\t System.out.println(\"Iteration: \" + i);\n\t System.out.println(\"Sent: \" + (INNER_LOOP_ITERATIONS * 2) + \" logs\");\n\t System.out.println(\"Log size: \" + LOG_PADDING + \" bytes\");\n\t System.out.println(\"Runtime: \" + seconds + \".\" + milli + \"s\\nRate: \" + logspermillisecond + \" logs/ms\");\n\t System.out.println(\"Total execution time: \" + (endTime - startTime) + \"ms\");\n\t System.out.println(\"_____________\");\n\t java.util.concurrent.TimeUnit.SECONDS.sleep(2);\n }\n System.out.println(\"AVERAGE RATE: \" + (total / LOOP_ITERATIONS) + \" logs/ms\");\n System.out.println(\"AVERAGE RATE good math: \" + ((LOOP_ITERATIONS * INNER_LOOP_ITERATIONS * 2)/ total_ms) + \" logs/ms\");\n \n double stdev = calculateStandardDeviation(metrics);\n System.out.println(\"STDEV: \" + stdev + \" logs/ms\");\n \n }", "public void enableSDKLog() {\r\n\t\tString path = null;\r\n\t\tpath = Environment.getExternalStorageDirectory().toString() + \"/IcatchWifiCamera_SDK_Log\";\r\n\t\tEnvironment.getExternalStorageDirectory();\r\n\t\tICatchWificamLog.getInstance().setFileLogPath(path);\r\n\t\tLog.d(\"AppStart\", \"path: \" + path);\r\n\t\tif (path != null) {\r\n\t\t\tFile file = new File(path);\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.mkdirs();\r\n\t\t\t}\r\n\t\t}\r\n\t\tICatchWificamLog.getInstance().setSystemLogOutput(true);\r\n\t\tICatchWificamLog.getInstance().setFileLogOutput(true);\r\n\t\tICatchWificamLog.getInstance().setRtpLog(true);\r\n\t\tICatchWificamLog.getInstance().setPtpLog(true);\r\n\t\tICatchWificamLog.getInstance().setRtpLogLevel(ICatchLogLevel.ICH_LOG_LEVEL_INFO);\r\n\t\tICatchWificamLog.getInstance().setPtpLogLevel(ICatchLogLevel.ICH_LOG_LEVEL_INFO);\r\n\t}", "void setLogFile(File log);", "void configure(Properties properties);", "void configure();", "public static void main(String[] args) {\n Runner.class.getClassLoader().getResource(\"log4j.properties\");\n\n // Log in console\n logger.info(\"Log4j console appender configuration is successful !!\");\n\t\t\n\t\tint N = 5;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlogger.info(\"Choisir une valeur y/n >> \");\n\t\tString choice = sc.nextLine();\n\t\t\n\t\tif(choice.equals(\"y\")) {\n\t\t\tlogger.info(\"Entrez la valeur: \");\n\t\t\tN = sc.nextInt();\n\t\t}\n\n\t\tlogger.info(\"\\n\");\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tlogger.info(Fibonacci.fib(i));\n\t\t}\n\t}", "public void config(String msg) {\n log(Level.CONFIG, msg, null);\n }", "@Test\n public void testJarURL() throws IOException {\n final File dir = new File(\"output\");\n dir.mkdirs();\n final File file = new File(\"output/properties.jar\");\n try (final ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(file))) {\n zos.putNextEntry(new ZipEntry(LogManager.DEFAULT_CONFIGURATION_FILE));\n zos.write(\"log4j.rootLogger=debug\".getBytes());\n zos.closeEntry();\n }\n final URL url = new URL(\"jar:\" + file.toURI().toURL() + \"!/\" + LogManager.DEFAULT_CONFIGURATION_FILE);\n PropertyConfigurator.configure(url);\n assertTrue(file.delete());\n assertFalse(file.exists());\n }", "@BeforeClass\r\n\tpublic void setup() {\r\n\r\n\t\tdriver = new FirefoxDriver();\r\n\t\t\r\n\t\tlogger=Logger.getLogger(\"pnetpractice\");\r\n\t\tPropertyConfigurator.configure(\"log4j.properties\");\r\n\t\t\r\n\t\t\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t//driver.get(Baseurl);\r\n\t}", "public void config(String msg) {\n log(CONFIG, msg);\n }", "@Test\n public void configure()\n {\n String message = \"This message should be logged\";\n \n LoggingBean loggingBean = new LoggingBean();\n loggingBean.log(message);\n assertTrue(SYSTEM_OUT_REDIRECT.toString().contains(message));\n }", "static void logBuildInfo() throws IOException {\n\n \tClassPathResource propertiesResource = new ClassPathResource(\"application.properties\");\n \t\n \tURL url = propertiesResource.getURL();\n \tlogger.info(\"config url: \"+url);\n\n \t// \"Build-Timestamp\"\n \tif( url.toString().startsWith(\"jar:\") ) {\n\t\t\tManifest manifest = ((JarURLConnection)url.openConnection()).getManifest();\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\t\t\toutputStream.write(\"#jar manifest \\n\".getBytes());\n\t\t\tmanifest.write(outputStream);\n\t\t\tlogger.info(outputStream.toString());\n\t \t\n\t\t\ttry(InputStream propertiesInputStream = propertiesResource.getInputStream()) {\n\t\t\t\tProperties props = new Properties();\n\t\t\t\tprops.load(propertiesInputStream);\n\t\t\t\tByteArrayOutputStream propertiesOutputStream = new ByteArrayOutputStream();\n\t\t\t\tprops.store(propertiesOutputStream, \"application.properties\");\n\t\t\t\tlogger.info(propertiesOutputStream.toString());\n\t\t\t}\n \t}\n }", "private static synchronized Logger initializeLogger(String path) {\r\n\t\tLogger logger = Logger.getLogger(\"Logging\");\r\n\t\tlogger.removeAllAppenders();\r\n\t\tLogger.getRootLogger().removeAllAppenders();\r\n\t\tFileAppender logAppender = null;\r\n\t\tLayout layout = new PatternLayout(\"%d [%M]: %m%n\");\r\n\t\ttry {\r\n\t\t\tlogAppender = new FileAppender(layout, path);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"Problems creating log file...\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tlogger.addAppender(logAppender);\r\n\t\tConsoleAppender consoleAppender = new ConsoleAppender(layout);\r\n\t\tlogger.addAppender(consoleAppender);\r\n\t\tlogger.setLevel(DEBUG);\r\n\t\treturn logger;\r\n\t}", "@Override\r\n\tpublic Logger getLogger() {\r\n\t\t\r\n\t\treturn LogFileGenerator.getLogger();\r\n\t\t\r\n\t}", "public synchronized static void initConfig() {\n SeLionLogger.getLogger().entering();\n Map<ConfigProperty, String> initialValues = new HashMap<>();\n\n initConfig(initialValues);\n\n SeLionLogger.getLogger().exiting();\n }", "public void printConfig();", "private static Logger getLogger() {\n return LogDomains.getLogger(ClassLoaderUtil.class, LogDomains.UTIL_LOGGER);\n }", "public void loadConfig() {\n\t}", "private void init() {\n LoggerContext ctx = (LoggerContext) LogManager.getContext(false);\n Configuration config = ctx.getConfiguration();\n LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.ROOT_LOGGER_NAME);\n loggerConfig.setLevel(DEBUG ? Level.DEBUG : Level.INFO);\n ctx.updateLoggers();\n\n // Check if Maven repo exists\n File f = new File(globalConfig.getMavenRepoPath());\n if (!f.exists()) {\n // If not then create\n f.mkdir();\n }\n }", "private static void loadProperties(final String[] filenames, final Properties props,\n final Properties logProps) {\n\n for(String filename : filenames) {\n\n File f = new File(filename);\n\n if(!f.exists()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" does not exist\");\n System.exit(1);\n }\n\n if(!f.canRead()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" is not readable\");\n System.exit(1);\n }\n\n FileInputStream fis = null;\n Properties currProps = new Properties();\n\n try {\n fis = new FileInputStream(f);\n currProps.load(fis);\n if(f.getName().startsWith(\"log.\")) {\n logProps.putAll(resolveLogFiles(currProps));\n } else {\n props.putAll(currProps);\n }\n } catch(IOException ioe) {\n System.err.println(\"Start-up error: Problem reading configuration file, '\" + f.getAbsolutePath() + \"'\");\n Util.closeQuietly(fis);\n fis = null;\n System.exit(1);\n } finally {\n Util.closeQuietly(fis);\n }\n }\n }" ]
[ "0.8000291", "0.72849727", "0.6775932", "0.6673975", "0.662765", "0.661524", "0.6597368", "0.63944346", "0.6250047", "0.6227519", "0.62193584", "0.61936706", "0.61893207", "0.6168739", "0.6158823", "0.615173", "0.60764253", "0.606848", "0.6064966", "0.60379905", "0.60248435", "0.59248906", "0.5898039", "0.58849066", "0.5872241", "0.5862767", "0.58400595", "0.5827226", "0.5799107", "0.5792734", "0.57435757", "0.5733318", "0.57285666", "0.563725", "0.56140435", "0.5595984", "0.55936414", "0.5564567", "0.5537036", "0.5500118", "0.54984075", "0.5473027", "0.5470114", "0.5439668", "0.54044586", "0.5404096", "0.54004186", "0.5393974", "0.5389645", "0.53831565", "0.5375304", "0.53519046", "0.532094", "0.5300192", "0.52714735", "0.52576995", "0.5246414", "0.5223003", "0.52133584", "0.5203111", "0.5190897", "0.5189251", "0.51868963", "0.5181259", "0.51703143", "0.5156846", "0.5152665", "0.5141641", "0.5133802", "0.5133251", "0.5129472", "0.5106471", "0.5103919", "0.5092915", "0.50922406", "0.50864553", "0.5086324", "0.5085133", "0.50732404", "0.5062584", "0.5055755", "0.5031878", "0.5031504", "0.50218886", "0.50218856", "0.5019772", "0.5006199", "0.5002061", "0.49865", "0.49693215", "0.4954774", "0.4950941", "0.4948231", "0.494536", "0.49393463", "0.49368924", "0.4933237", "0.49171063", "0.49073896", "0.49016035", "0.48850444" ]
0.0
-1
mLayoutUtil.drawViewRBLayout(rel_login_account, 0, 80, 30, 30, 16, 0);
@Override protected void initLocation() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private View createAccountLayout() {\r\n\t\tLinearLayout accountLayout = new LinearLayout(getContext());\r\n\t\tLayoutParams aclp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT, 3);\r\n\t\taccountLayout.setOrientation(VERTICAL);\r\n\t\taccountLayout.setLayoutParams(aclp);\r\n\t\tTextView t = new TextView(getContext());\r\n\t\tLayoutParams tlp = new LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\r\n\t\tt.setLayoutParams(tlp);\r\n\t\tt.setText(account.getName());\r\n\t\tt.setTextSize(16);\r\n\t\tt.setTypeface(Typeface.DEFAULT_BOLD);\r\n\t\tt.setTextColor(getContext().getResources().getColor(R.color.black));\r\n\t\taccountLayout.addView(t);\r\n\r\n\t\tTextView desc = new TextView(getContext());\r\n\t\tif (account.getLastOperation() != null) {\r\n\t\t\tdesc.setText(\"\" + DateUtil.defaultDateFormat.format(account.getLastOperation()));\r\n\t\t}\r\n\t\taccountLayout.addView(desc);\r\n\t\treturn accountLayout;\r\n\t}", "private void setLayout() {\n\t\ttxtNickname.setId(\"txtNickname\");\n\t\ttxtPort.setId(\"txtPort\");\n\t\ttxtAdress.setId(\"txtAdress\");\n\t\tlblNickTaken.setId(\"lblNickTaken\");\n\n\t\tgrid.setPrefSize(516, 200);\n\t\tbtnLogin.setDisable(true);\n\t\ttxtNickname.setPrefSize(200, 25);\n\t\tlblNickTaken.setPrefSize(250, 10);\n\t\tlblNickTaken.setText(null);\n\t\tlblNickTaken.setTextFill(Color.RED);\n\t\tlblNick.setPrefSize(120, 50);\n\t\ttxtAdress.setText(\"localhost\");\n\t\ttxtPort.setText(\"4455\");\n\t\tlblCardDesign.setPrefSize(175, 25);\n\t\tcomboBoxCardDesign.getSelectionModel().select(0);\n\t\tbtnLogin.setGraphic(imvStart);\n\t}", "@Override\n public void onGlobalLayout() {\n //on all of the container area create a rectangle off same height and width\n Rect r = new Rect();\n //put the size of the layout to the rectangle\n loginActivity.getWindowVisibleDisplayFrame(r);\n //check if the rectangle height shrinks like when keyboard launches\n //for than check on the difference between regular container's height and\n //actual container's\n int heightDiff = loginActivity.getRootView().getHeight() - (r.bottom - r.top);\n if (login != null && password != null) {\n // if more than 100 pixels, its probably a keyboard...\n if (heightDiff > 100) {\n //then set cursor visible for login and password\n login.setCursorVisible(true);\n password.setCursorVisible(true);\n } else {\n //else set both cursors invisible\n //cursor will appear when item is selected only\n //so when keyboard launches\n login.setCursorVisible(false);\n password.setCursorVisible(false);\n }\n }\n }", "@Override\n public void initView() {\n mLoginActivity.setContentView(R.layout.activity_login);\n if(BigwinerApplication.mApp.mUpDataManager != null)\n BigwinerApplication.mApp.mUpDataManager.checkVersin();\n mLoginActivity.mToolBarHelper.hidToolbar2(mLoginActivity);\n ToolBarHelper.setBgColor(mLoginActivity, mLoginActivity.mActionBar, Color.rgb(255, 255, 255));\n mLoginActivity.mRegiester = mLoginActivity.findViewById(R.id.regiest);\n mLoginActivity.areaTxt = mLoginActivity.findViewById(R.id.area_text);\n mLoginActivity.btnArea = mLoginActivity.findViewById(R.id.phone_title);\n mLoginActivity.arename = mLoginActivity.findViewById(R.id.name_title);\n mLoginActivity.phoneNumber = (EditText) mLoginActivity.findViewById(R.id.phone_text);\n mLoginActivity.passWord = (EditText) mLoginActivity.findViewById(R.id.password_text);\n mLoginActivity.showPassword = (ImageView) mLoginActivity.findViewById(R.id.password_show_icon);\n mLoginActivity.phoneLayer = (RelativeLayout) mLoginActivity.findViewById(R.id.phone_number);\n mLoginActivity.passwordLayer = (RelativeLayout) mLoginActivity.findViewById(R.id.password_number);\n mLoginActivity.mForget = (TextView) mLoginActivity.findViewById(R.id.forget);\n mLoginActivity.btnLogin = (TextView) mLoginActivity.findViewById(R.id.login_btn);\n mLoginActivity.mForget.setOnClickListener(mLoginActivity.mForgetListener);\n mLoginActivity.showPassword.setOnClickListener(mLoginActivity.showPasswordListener);\n mLoginActivity.mRegiester.setOnClickListener(mLoginActivity.startRegisterListener);\n mLoginActivity.btnLogin.setOnClickListener(mLoginActivity.doLoginListener);\n mLoginActivity.safe = mLoginActivity.findViewById(R.id.a6);\n SpannableString content = new SpannableString(mLoginActivity.safe.getText().toString());\n content.setSpan(new UnderlineSpan(), 1, mLoginActivity.safe.getText().toString().length()-1, 0);\n mLoginActivity.safe.setText(content);\n mLoginActivity.safe.setOnClickListener(mLoginActivity.safeListener);\n mLoginActivity.btnArea.setOnClickListener(mLoginActivity.areaListener);\n mLoginActivity.areaTxt.setOnClickListener(mLoginActivity.areaListener);\n checkUser();\n }", "private void initView() {\n btnLoginFacebook = (RelativeLayout) findViewById(R.id.btnLoginFacebook);\n btnLoginGoogle = (RelativeLayout) findViewById(R.id.btnLoginGoogle);\n txtRegister = (TextViewFontAwesome) findViewById(R.id.txtRegister);\n txtForgotPassword = (TextViewFontAwesome) findViewById(R.id.txtForgotPassword);\n txtLogin = (TextViewFontAwesome) findViewById(R.id.txtLogin);\n txtUsername = (EditText) findViewById(R.id.txtUsername);\n txtPassword = (EditText) findViewById(R.id.txtPassword);\n txtForgotPassword.setPaintFlags(txtForgotPassword.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);\n }", "@AutoGenerated\r\n\tprivate VerticalLayout buildLayoutLogin() {\n\t\tlayoutLogin = new VerticalLayout();\r\n\t\tlayoutLogin.setImmediate(false);\r\n\t\tlayoutLogin.setWidth(\"100.0%\");\r\n\t\tlayoutLogin.setHeight(\"100.0%\");\r\n\t\tlayoutLogin.setMargin(false);\r\n\t\tlayoutLogin.setSpacing(true);\r\n\t\t\r\n\t\t// pnlLogo\r\n\t\tpnlLogo = buildPnlLogo();\r\n\t\tlayoutLogin.addComponent(pnlLogo);\r\n\t\tlayoutLogin.setComponentAlignment(pnlLogo, new Alignment(24));\r\n\t\t\r\n\t\t// verticalLayout_3\r\n\t\tverticalLayout_3 = buildVerticalLayout_3();\r\n\t\tlayoutLogin.addComponent(verticalLayout_3);\r\n\t\t\r\n\t\t// pnlDatos\r\n\t\tpnlDatos = buildPnlDatos();\r\n\t\tlayoutLogin.addComponent(pnlDatos);\r\n\t\tlayoutLogin.setComponentAlignment(pnlDatos, new Alignment(48));\r\n\t\t\r\n\t\t// pnlCaptcha\r\n\t\tpnlCaptcha = new VerticalLayout();\r\n\t\tpnlCaptcha.setCaption(\"Digite los Valores que aparecen en la Imagen\");\r\n\t\tpnlCaptcha.setImmediate(false);\r\n\t\tpnlCaptcha.setWidth(\"100.0%\");\r\n\t\tpnlCaptcha.setHeight(\"60px\");\r\n\t\tpnlCaptcha.setMargin(false);\r\n\t\tlayoutLogin.addComponent(pnlCaptcha);\r\n\t\tlayoutLogin.setComponentAlignment(pnlCaptcha, new Alignment(20));\r\n\t\t\r\n\t\t// pnlCaptchaButtons\r\n\t\tpnlCaptchaButtons = buildPnlCaptchaButtons();\r\n\t\tlayoutLogin.addComponent(pnlCaptchaButtons);\r\n\t\tlayoutLogin.setComponentAlignment(pnlCaptchaButtons, new Alignment(20));\r\n\t\t\r\n\t\t// pnlBotonera\r\n\t\tpnlBotonera = buildPnlBotonera();\r\n\t\tlayoutLogin.addComponent(pnlBotonera);\r\n\t\tlayoutLogin.setComponentAlignment(pnlBotonera, new Alignment(20));\r\n\t\t\r\n\t\t// verticalLayout_4\r\n\t\tverticalLayout_4 = buildVerticalLayout_4();\r\n\t\tlayoutLogin.addComponent(verticalLayout_4);\r\n\t\tlayoutLogin.setComponentAlignment(verticalLayout_4, new Alignment(6));\r\n\t\t\r\n\t\treturn layoutLogin;\r\n\t}", "public UserAccountViewPanel() {\n initComponents();\n }", "public interface AccountView extends BelatrixConnectView {\n\n void goSubCategoryDetail(Integer categoryId, Integer employeeId);\n void showScore(String score);\n void showLocation(String locationIcon);\n void showLevel(String level);\n void showSkypeId(String skypeID);\n void showEmployeeName(String employeName);\n void showEmail(String role);\n void showProfilePicture(String profilePicture);\n void showRecommendMenu(boolean show);\n void showEditProfileButton(boolean show);\n void goToEditProfile(Employee employee);\n void goToGiveStar(Employee employee);\n void goToExpandPhoto(String url);\n void notifyNavigationRefresh();\n void showInformativeDialog(String information);\n void goBackToLogin();\n void goToEditSkills();\n void showEditSkillsButton(boolean show);\n void onEmployeeLoaded(int employeeId);\n}", "@Override\r\n\tprotected void layout() {\n\t\tsetContentView(R.layout.activity_change_password);\r\n\t\tsetBackButton();\r\n\t\tfindViewById(R.id.regist_sure).setOnClickListener(this);\r\n\t}", "public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{\n_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));\n //BA.debugLineNum = 35;BA.debugLine=\"Tag = mBase.Tag : mBase.Tag = Me\";\n_tag = _mbase.getTag();\n //BA.debugLineNum = 35;BA.debugLine=\"Tag = mBase.Tag : mBase.Tag = Me\";\n_mbase.setTag(this);\n //BA.debugLineNum = 36;BA.debugLine=\"cvs.Initialize(mBase)\";\n_cvs.Initialize(_mbase);\n //BA.debugLineNum = 37;BA.debugLine=\"mMin = Props.Get(\\\"Min\\\")\";\n_mmin = (int)(BA.ObjectToNumber(_props.Get((Object)(\"Min\"))));\n //BA.debugLineNum = 38;BA.debugLine=\"mMax = Props.Get(\\\"Max\\\")\";\n_mmax = (int)(BA.ObjectToNumber(_props.Get((Object)(\"Max\"))));\n //BA.debugLineNum = 39;BA.debugLine=\"pnl = xui.CreatePanel(\\\"pnl\\\")\";\n_pnl = _xui.CreatePanel(ba,\"pnl\");\n //BA.debugLineNum = 40;BA.debugLine=\"xlbl = Lbl\";\n_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));\n //BA.debugLineNum = 41;BA.debugLine=\"mBase.AddView(xlbl, 0, 0, 0, 0)\";\n_mbase.AddView((android.view.View)(_xlbl.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));\n //BA.debugLineNum = 42;BA.debugLine=\"mBase.AddView(pnl, 0, 0, 0, 0)\";\n_mbase.AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));\n //BA.debugLineNum = 43;BA.debugLine=\"ValueColor = xui.PaintOrColorToColor(Props.Get(\\\"V\";\n_valuecolor = _xui.PaintOrColorToColor(_props.Get((Object)(\"ValueColor\")));\n //BA.debugLineNum = 44;BA.debugLine=\"If xui.IsB4A Or xui.IsB4i Then\";\nif (_xui.getIsB4A() || _xui.getIsB4i()) { \n //BA.debugLineNum = 45;BA.debugLine=\"stroke = 8dip\";\n_stroke = __c.DipToCurrent((int) (8));\n }else if(_xui.getIsB4J()) { \n //BA.debugLineNum = 47;BA.debugLine=\"stroke = 6dip\";\n_stroke = __c.DipToCurrent((int) (6));\n };\n //BA.debugLineNum = 49;BA.debugLine=\"Base_Resize(mBase.Width, mBase.Height)\";\n_base_resize(_mbase.getWidth(),_mbase.getHeight());\n //BA.debugLineNum = 50;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public abstract int presentViewLayout();", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "@Override\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tsuper.layout(l, t, r, b);\n\t\t\tLog.e(\"FYF\", getId() + \" ImageView layout\");\n\t\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyAcctViewOverlay() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether the Account list overlay of that particular view is displayed \"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUser_Creation()\n\t\t.VerifyViewNameAcctOverlay(userProfile);\n\n\t}", "public void openLoginMenu()\n {\n login.drawMainMenu();\n }", "@Override\r\n\tprotected void initView(View view) {\n\t\trly_personal_info = (RelativeLayout) view.findViewById(R.id.rly_personal_info);\r\n\t\t\r\n\t}", "private void setLayoutElements() {\n // AuthenticatedUser is async thread.\n // It is getting the details for the\n // authenticated user and use them\n // to set UI elements below.\n AuthenticatedUser getAccount = new AuthenticatedUser(\n this, profilePictureProgressBar, profilePicture, firstName, lastName, email\n );\n\n // Starting the thread.\n getAccount.execute();\n }", "@Override\r\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tLog.v(\"MyView01>layout\",\"f-1\");\r\n\t\t\tsuper.layout(l, t, r, b);\r\n\t\t\tLog.v(\"MyView01>layout\",\"f-2\");\r\n\t\t}", "AccountBarView(Account a, AccountHolder aH) {\n\t\tthis.a = a;\n\t\tthis.aH = aH;\n\t\t\n\t\taccountType = a.getClass().getSimpleName();\n\t\tacctId = EventManager.getUniqueID(a);\n\t\t\n\t\tfirstRun = true;\n\t}", "@Override\n public void layout() {\n // TODO: not implemented\n }", "@Override \n protected void onCreate(Bundle icicle) {\n super.onCreate(icicle); \n //TODO allow view to be created for sign in and authorization forms\n //creates a view from the login.xml file\n this.setContentView(R.layout.login);\n Button button = (Button) this.findViewById(R.id.link_to_register);\n button.setBackgroundColor(Color.TRANSPARENT);\n }", "private void initViews(View v) {\n\t\tuser_head_img = (ImageView) v.findViewById(R.id.user_head_img);\r\n\t\tuser_head_img.setImageResource(R.drawable.icon_user_img);\r\n\t\tString id = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUseId();\r\n\t\tList<ImageBean> bean = dao.select(id);\r\n\t\tif (bean != null && bean.size() > 0) {\r\n\t\t\tImageLoader.getInstance().displayImage(bean.get(0).getUrl(),\r\n\t\t\t\t\tuser_head_img, ImageLoadOptions.getOptions());\r\n\t\t} else {\r\n\t\t\tuser_head_img.setImageResource(R.drawable.icon_user_img);\r\n\t\t}\r\n\t\ttv_account = (TextView) v.findViewById(R.id.tv_account);\r\n\t\tString account = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUserName();\r\n\t\ttv_account.setText(account);\r\n\t\ttv_tel = (TextView) v.findViewById(R.id.tv_tel);\r\n\t\tString tel = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUserTel();\r\n\t\ttv_tel.setText(StringUtils.getTelNum(tel));\r\n\t\ttxt_zcgl = (TextView) v.findViewById(R.id.txt_zcgl);\r\n\t\ttxt_tzgl = (TextView) v.findViewById(R.id.txt_tzgl);\r\n\t\ttxt_jlcx = (TextView) v.findViewById(R.id.txt_jlcx);\r\n\t\ttxt_wdyhk = (TextView) v.findViewById(R.id.txt_wdyhk);\r\n\t\ttxt_wdxx = (TextView) v.findViewById(R.id.txt_wdxx);\r\n\t\ttxt_myredpager = (TextView) v.findViewById(R.id.txt_myredpager);\r\n\t\tlayout_zhaq = (RelativeLayout) v.findViewById(R.id.layout_zhaq);\r\n\t\tlayout_ssmm = (RelativeLayout) v.findViewById(R.id.layout_ssmm);\r\n\t\ttv_safelevel = (TextView) v.findViewById(R.id.tv_safelevel);\r\n\t\tString safelevel = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getSafelevel();\r\n\t\ttv_safelevel.setText(safelevel);\r\n\t\ttv_zhye = (TextView) v.findViewById(R.id.tv_zhye);\r\n\t\tlinearlayout = (LinearLayout) v.findViewById(R.id.linearlayout);\r\n\t\ttv_ssmm = (TextView) v.findViewById(R.id.tv_ssmm);\r\n\t\tboolean isHasGesturePsd = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).isHasGesturePsd();\r\n\t\tif (isHasGesturePsd) {\r\n\t\t\ttv_ssmm.setText(R.string.ssmm_msg);\r\n\t\t} else {\r\n\t\t\ttv_ssmm.setText(R.string.no_setting);\r\n\t\t}\r\n\t}", "@Override\n protected void initViews(View view) {\n mTwitterBtn.setText(\"\");\n mTwitterBtn.setBackgroundResource(R.drawable.twitter_login_btn);\n mTwitterBtn.setCompoundDrawables(null, null, null, null);\n //callDigitLogin();\n }", "@Override\n\t\tpublic void layout (final int l, final int t, final int r, final int b) {\n\t\t}", "@Override\r\n\tpublic void showAccount() {\n\t\t\r\n\t}", "public bankacc() {\n initComponents();uid_LB.setVisible(false);\n getContentPane().setBackground(new Color(51,0,204));\n }", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\r\n\t\tComposite container = (Composite) super.createDialogArea(parent);\r\n\t\tcontainer.setLayout(new FormLayout());\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(container, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Username :\");\r\n\t\t\r\n\t\ttext = new Text(container, SWT.BORDER);\r\n\t\tfd_lblNewLabel.top = new FormAttachment(text, 3, SWT.TOP);\r\n\t\tfd_lblNewLabel.right = new FormAttachment(text, -30);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.top = new FormAttachment(0, 92);\r\n\t\tfd_text.right = new FormAttachment(100, -107);\r\n\t\ttext.setLayoutData(fd_text);\r\n\t\t\r\n\t\tLabel lblPassword = new Label(container, SWT.NONE);\r\n\t\tfd_lblNewLabel.bottom = new FormAttachment(lblPassword, -20);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 151);\r\n\t\tlblPassword.setText(\"Password :\");\r\n\t\tlblPassword.setAlignment(SWT.CENTER);\r\n\t\tFormData fd_lblPassword = new FormData();\r\n\t\tfd_lblPassword.left = new FormAttachment(lblNewLabel, 0, SWT.LEFT);\r\n\t\tfd_lblPassword.bottom = new FormAttachment(100, -75);\r\n\t\tlblPassword.setLayoutData(fd_lblPassword);\r\n\t\t\r\n\t\ttext_1 = new Text(container, SWT.BORDER);\r\n\t\tFormData fd_text_1 = new FormData();\r\n\t\tfd_text_1.top = new FormAttachment(text, 14);\r\n\t\tfd_text_1.left = new FormAttachment(text, 0, SWT.LEFT);\r\n\t\ttext_1.setLayoutData(fd_text_1);\r\n\t\t\r\n\t\tCLabel lblNewLabel_1 = new CLabel(container, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(LoginDialog.class, \"/com/acme/rcp/app/logo.png\"));\r\n\t\tFormData fd_lblNewLabel_1 = new FormData();\r\n\t\tfd_lblNewLabel_1.bottom = new FormAttachment(text, -14);\r\n\t\tfd_lblNewLabel_1.right = new FormAttachment(100, -140);\r\n\t\tlblNewLabel_1.setLayoutData(fd_lblNewLabel_1);\r\n\t\tlblNewLabel_1.setText(\"\");\r\n\r\n\t\treturn container;\r\n\t}", "public Login_Information() {\n initComponents();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width/2 - getWidth()/2, \n size.height/2 - getHeight()/2);\n }", "@Override\r\n\tprotected void onDraw(LRenderSystem rs) {\n\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setTransparentStatus();\n setContentView(R.layout.activity_login);\n ButterKnife.bind(this);\n\n mTabLayout.addTab(mTabLayout.newTab().setText(\"Email\"), true);\n mTabLayout.addTab(mTabLayout.newTab().setText(\"Phone\"));\n int dp20 = ScreenUtil.convertDpToPx(20, this);\n for (int i = 0; i < mTabLayout.getTabCount(); i++) {\n View tab = ((ViewGroup)mTabLayout.getChildAt(0)).getChildAt(i);\n ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) tab.getLayoutParams();\n lp.setMargins(dp20, 0, dp20, 0);\n tab.requestLayout();\n }\n }", "public void setupLayout() {\n // left empty for subclass to override\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my_account, container, false);\n btn_viewall_address = view.findViewById(R.id.btn_viewall_address_account);\n btn_sign_out = view.findViewById(R.id.btn_signout_account);\n profile_image = view.findViewById(R.id.profile_image_myaccount);\n fulname = view.findViewById(R.id.txt_username_account);\n email = view.findViewById(R.id.txt_email_account);\n layoutContainer = view.findViewById(R.id.layoutContainer);\n curent_order_image = view.findViewById(R.id.imv_status_order_myaccount);\n currentOrderStatus = view.findViewById(R.id.txt_current_order_status_account);\n settingAccount = view.findViewById(R.id.floatint_setting_account);\n\n orderedIndicator = view.findViewById(R.id.imv_ordered_indicator_myaccount);\n packedIndicator = view.findViewById(R.id.imv_packed_indocator_myaccount);\n shippedIndicator = view.findViewById(R.id.imv_shipped_indicator_myaccount);\n deliveriedIndicator = view.findViewById(R.id.imv_dilivered_indicator_myaccount);\n\n orderedProgress = view.findViewById(R.id.progress_ordered_packed_myaccount);\n packedProgress = view.findViewById(R.id.progress_packed_shipped_myaccount);\n shippedProgress = view.findViewById(R.id.progress_shipped_delivered_myaccount);\n\n recent_title = view.findViewById(R.id.txt_title_your_recent_order_account);\n layoutRecent = view.findViewById(R.id.liner_order_recent_account);\n\n fulname= view.findViewById(R.id.txt_full_name_address_account);\n address = view.findViewById(R.id.txt_address_account);\n phonenumber = view.findViewById(R.id.txt_phonenumber_account);\n fullname_address = view.findViewById(R.id.txt_full_name_address_account);\n\n\n\n loadingDialog = new Dialog(getContext());\n loadingDialog.setContentView(R.layout.loading_dialog);\n loadingDialog.setCancelable(false);\n loadingDialog.getWindow().setBackgroundDrawable(getContext().getDrawable(R.drawable.slider_main));\n loadingDialog.getWindow().setLayout(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n //loadingDialog.show();\n\n\n\n layoutContainer.getChildAt(1).setVisibility(View.GONE);\n\n loadingDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n\n for(MyOrderItemModel myOrderItemModel: DbQueries.myOrderItemModelList){\n if(!myOrderItemModel.isCancelationOrderRequest()){\n if(!myOrderItemModel.getOrderStatus().equals(\"Delivered\") && !myOrderItemModel.getOrderStatus().equals(\"Cancelled\")){\n layoutContainer.getChildAt(1).setVisibility(View.VISIBLE);\n Glide.with(getContext()).load(myOrderItemModel.getProductImage()).apply(new RequestOptions().placeholder(R.drawable.image_place)).into(curent_order_image);\n currentOrderStatus.setText(myOrderItemModel.getOrderStatus());\n switch (myOrderItemModel.getOrderStatus()){\n case \"Ordered\":\n orderedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n break;\n case \"Packed\":\n orderedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n packedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n orderedProgress.setProgress(100);\n break;\n case \"Shipped\":\n orderedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n packedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n shippedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n orderedProgress.setProgress(100);\n packedProgress.setProgress(100);\n break;\n case \"Out for delivery\":\n orderedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n packedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n shippedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n deliveriedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n orderedProgress.setProgress(100);\n packedProgress.setProgress(100);\n shippedProgress.setProgress(100);\n break;\n }\n // for MyOrderItemModel\n\n }\n }\n }\n\n int i = 0;\n for(MyOrderItemModel orderItemModel: DbQueries.myOrderItemModelList) {\n if(i < 4) {\n if (orderItemModel.getOrderStatus().equals(\"Delivered\")) {\n Glide.with(getContext()).load(orderItemModel.getProductImage()).apply(new RequestOptions().placeholder(R.drawable.image_place)).into((CircleImageView) layoutRecent.getChildAt(i));\n i++;\n }\n }else {\n break;\n }\n }\n if(i == 0){\n recent_title.setText(\"Không có sản phẩm đặt hàng gần đây\");\n }\n if(i < 3){\n for (int x = i; x < 4; x++){\n layoutRecent.getChildAt(x).setVisibility(View.GONE);\n }\n }\n loadingDialog.show();\n loadingDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n loadingDialog.setOnDismissListener(null);\n if(DbQueries.addressModelList.size() == 0 ){\n address.setText(\"Đại Chỉ: Chưa có\");\n fullname_address.setText(\"Họ & Tên: Chưa có\");\n phonenumber.setText(\"Di Động: Chưa có\");\n }else {\n setAddress();\n }\n }\n });\n DbQueries.loadAddress(getContext(), loadingDialog, false);\n }\n });\n DbQueries.loadOrders(getContext(), null, loadingDialog);\n btn_viewall_address.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intentManage = new Intent(getContext(), MyAddressActivity.class);\n intentManage.putExtra(\"Mode\", MANAGE_ADDRESS);\n startActivity(intentManage);\n }\n });\n btn_sign_out.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n FirebaseAuth.getInstance().signOut();\n DbQueries.clearData();\n Intent intentRegis = new Intent(getContext(), RegisterActivity.class);\n startActivity(intentRegis);\n getActivity().finish();\n }\n });\n //loadingDialog.dismiss();\n settingAccount.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent updateUserInfor = new Intent(getContext(), UpdateUserInforActivity.class);\n updateUserInfor.putExtra(\"username\", fullname_address.getText());\n updateUserInfor.putExtra(\"email\", email.getText());\n updateUserInfor.putExtra(\"profile\", DbQueries.profile);\n\n startActivity(updateUserInfor);\n }\n });\n return view;\n }", "public Login() {\n initComponents();\n pnl1.setBackground(new Color(0,0,0,200));\n }", "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"regis\",mostCurrent.activityBA);\n //BA.debugLineNum = 31;BA.debugLine=\"Activity.Title = \\\"Register\\\"\";\nmostCurrent._activity.setTitle(BA.ObjectToCharSequence(\"Register\"));\n //BA.debugLineNum = 33;BA.debugLine=\"ImageView1.Visible = False\";\nmostCurrent._imageview1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 35;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void setDisplay() {\n\t\tDimension d = new Dimension(160,40);\n\t\tsetPreferredSize(d);\n\t\tsetMaximumSize(d);\n\t\tsetMinimumSize(d);\n\t\tsetLayout(new BorderLayout());\n\t\tsetBorder(new EmptyBorder(3,0,3,0));\n\t\tbtnUser = new RoundedButton(new Color(0xEEEEEE), new Color(0xCCCCCC));\n\t\tJPanel pnlInner = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t\t\n\t\tpnlIcon = new JPanel(new BorderLayout());\n\t\tpnlIcon.add(lblUserListIcon, BorderLayout.CENTER);\n//\t\tpnlIcon.setBackground(new Color(0xEEEEEE));\n\t\tpnlIcon.setOpaque(false);\n\t\t\n\t\tpnlIcon.setBorder(new EmptyBorder(0,5, 0, 5));\n\t\t\n\t\tpnlName = new JPanel(new BorderLayout());\n\t\tpnlName.add(lblUserListName, BorderLayout.CENTER);\n//\t\tpnlName.setBackground(new Color(0xEEEEEE));\n\t\tpnlName.setOpaque(false);\n\t\t\n\t\tpnlInner.add(pnlIcon);\n\t\tpnlInner.add(pnlName);\n\t\t\n\t\tsetOpaque(true);\n\t\tsetBackground(Color.WHITE);\n\t\t\n\t\tbtnUser.add(pnlIcon, BorderLayout.WEST);\n\t\tbtnUser.add(pnlName, BorderLayout.CENTER);\n\t\tadd(btnUser, BorderLayout.CENTER);\n\t}", "public void loggedIn(){\n Button view = findViewById(R.id.buttonView);\n view.setVisibility(View.VISIBLE);\n Button logout = findViewById(R.id.buttonLogout);\n logout.setVisibility(View.VISIBLE);\n EditText username = findViewById(R.id.username);\n username.setVisibility(View.INVISIBLE);\n EditText pass = findViewById(R.id.password);\n pass.setVisibility(View.INVISIBLE);\n Button login = findViewById(R.id.buttonLogin);\n login.setVisibility(View.INVISIBLE);\n Button createAcc = findViewById(R.id.buttonCreateAccount);\n createAcc.setVisibility(View.INVISIBLE);\n TextView accountName = findViewById(R.id.accountName);\n accountName.setVisibility(View.VISIBLE);\n accountName.setText(user);\n }", "@Override\n public void showAuthScreen() {\n }", "public String _buildui() throws Exception{\n_screenimg.SetBackgroundImageNew((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),\"hotelappscreen.jpg\").getObject()));\n //BA.debugLineNum = 42;BA.debugLine=\"screenimg.Gravity = Gravity.FILL\";\n_screenimg.setGravity(__c.Gravity.FILL);\n //BA.debugLineNum = 43;BA.debugLine=\"wholescreen.AddView(screenimg,0,10%y,100%x,80%y)\";\n_wholescreen.AddView((android.view.View)(_screenimg.getObject()),(int) (0),__c.PerYToCurrent((float) (10),ba),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (80),ba));\n //BA.debugLineNum = 44;BA.debugLine=\"wholescreen.Color = Colors.ARGB(150,0,0,0)\";\n_wholescreen.setColor(__c.Colors.ARGB((int) (150),(int) (0),(int) (0),(int) (0)));\n //BA.debugLineNum = 47;BA.debugLine=\"infoholder.Color = Colors.ARGB(150,0,0,0)\";\n_infoholder.setColor(__c.Colors.ARGB((int) (150),(int) (0),(int) (0),(int) (0)));\n //BA.debugLineNum = 48;BA.debugLine=\"wholescreen.AddView(infoholder,30%x,100%y,40%x,30\";\n_wholescreen.AddView((android.view.View)(_infoholder.getObject()),__c.PerXToCurrent((float) (30),ba),__c.PerYToCurrent((float) (100),ba),__c.PerXToCurrent((float) (40),ba),__c.PerYToCurrent((float) (30),ba));\n //BA.debugLineNum = 49;BA.debugLine=\"usernamefield.Gravity = Gravity.LEFT\";\n_usernamefield.setGravity(__c.Gravity.LEFT);\n //BA.debugLineNum = 50;BA.debugLine=\"usernamefield.Color = Colors.White\";\n_usernamefield.setColor(__c.Colors.White);\n //BA.debugLineNum = 51;BA.debugLine=\"usernamefield.Hint = \\\"Username\\\"\";\n_usernamefield.setHint(\"Username\");\n //BA.debugLineNum = 53;BA.debugLine=\"usernamefield.Text = \\\"[email protected]\\\"\";\n_usernamefield.setText(BA.ObjectToCharSequence(\"[email protected]\"));\n //BA.debugLineNum = 54;BA.debugLine=\"usernamefield.HintColor = Colors.DarkGray\";\n_usernamefield.setHintColor(__c.Colors.DarkGray);\n //BA.debugLineNum = 55;BA.debugLine=\"usernamefield.SingleLine = True\";\n_usernamefield.setSingleLine(__c.True);\n //BA.debugLineNum = 56;BA.debugLine=\"usernamefield.TextColor = Colors.Black\";\n_usernamefield.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 57;BA.debugLine=\"infoholder.AddView(usernamefield,2.5%x,2.5%y,35%x\";\n_infoholder.AddView((android.view.View)(_usernamefield.getObject()),__c.PerXToCurrent((float) (2.5),ba),__c.PerYToCurrent((float) (2.5),ba),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 59;BA.debugLine=\"passwordfield.Gravity = Gravity.LEFT\";\n_passwordfield.setGravity(__c.Gravity.LEFT);\n //BA.debugLineNum = 60;BA.debugLine=\"passwordfield.Color = Colors.White\";\n_passwordfield.setColor(__c.Colors.White);\n //BA.debugLineNum = 61;BA.debugLine=\"passwordfield.Hint = \\\"Password\\\"\";\n_passwordfield.setHint(\"Password\");\n //BA.debugLineNum = 63;BA.debugLine=\"passwordfield.Text = \\\"a936157z\\\"\";\n_passwordfield.setText(BA.ObjectToCharSequence(\"a936157z\"));\n //BA.debugLineNum = 64;BA.debugLine=\"passwordfield.HintColor = Colors.DarkGray\";\n_passwordfield.setHintColor(__c.Colors.DarkGray);\n //BA.debugLineNum = 65;BA.debugLine=\"passwordfield.SingleLine = True\";\n_passwordfield.setSingleLine(__c.True);\n //BA.debugLineNum = 66;BA.debugLine=\"passwordfield.TextColor = Colors.Black\";\n_passwordfield.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 67;BA.debugLine=\"passwordfield.PasswordMode = True\";\n_passwordfield.setPasswordMode(__c.True);\n //BA.debugLineNum = 68;BA.debugLine=\"infoholder.AddView(passwordfield,2.5%x,(usernamef\";\n_infoholder.AddView((android.view.View)(_passwordfield.getObject()),__c.PerXToCurrent((float) (2.5),ba),(int) ((_usernamefield.getTop()+_usernamefield.getHeight())+__c.DipToCurrent((int) (10))),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 70;BA.debugLine=\"loginbtn.Gravity = Gravity.CENTER\";\n_loginbtn.setGravity(__c.Gravity.CENTER);\n //BA.debugLineNum = 71;BA.debugLine=\"loginbtn.Color = Colors.White\";\n_loginbtn.setColor(__c.Colors.White);\n //BA.debugLineNum = 72;BA.debugLine=\"loginbtn.Text = \\\"Login\\\"\";\n_loginbtn.setText(BA.ObjectToCharSequence(\"Login\"));\n //BA.debugLineNum = 73;BA.debugLine=\"loginbtn.TextSize = 20\";\n_loginbtn.setTextSize((float) (20));\n //BA.debugLineNum = 74;BA.debugLine=\"loginbtn.Textcolor = Colors.Black\";\n_loginbtn.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 75;BA.debugLine=\"HelperFunctions1.Apply_ViewStyle(loginbtn,Colors.\";\n_helperfunctions1._apply_viewstyle(ba,(anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(_loginbtn.getObject())),__c.Colors.Black,__c.Colors.RGB((int) (0),(int) (128),(int) (255)),__c.Colors.White,__c.Colors.RGB((int) (77),(int) (166),(int) (255)),__c.Colors.Gray,__c.Colors.Gray,__c.Colors.Gray,(int) (10));\n //BA.debugLineNum = 76;BA.debugLine=\"infoholder.AddView(loginbtn,2.5%x,(passwordfield.\";\n_infoholder.AddView((android.view.View)(_loginbtn.getObject()),__c.PerXToCurrent((float) (2.5),ba),(int) ((_passwordfield.getTop()+_passwordfield.getHeight())+__c.PerYToCurrent((float) (5),ba)),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 78;BA.debugLine=\"singup.Gravity = Gravity.CENTER\";\n_singup.setGravity(__c.Gravity.CENTER);\n //BA.debugLineNum = 79;BA.debugLine=\"singup.Color = Colors.White\";\n_singup.setColor(__c.Colors.White);\n //BA.debugLineNum = 80;BA.debugLine=\"singup.Text = \\\"Sing up\\\"\";\n_singup.setText(BA.ObjectToCharSequence(\"Sing up\"));\n //BA.debugLineNum = 81;BA.debugLine=\"singup.TextSize = 20\";\n_singup.setTextSize((float) (20));\n //BA.debugLineNum = 82;BA.debugLine=\"singup.Textcolor = Colors.Black\";\n_singup.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 83;BA.debugLine=\"HelperFunctions1.Apply_ViewStyle(singup,Colors.Bl\";\n_helperfunctions1._apply_viewstyle(ba,(anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(_singup.getObject())),__c.Colors.Black,__c.Colors.RGB((int) (0),(int) (128),(int) (255)),__c.Colors.White,__c.Colors.RGB((int) (77),(int) (166),(int) (255)),__c.Colors.Gray,__c.Colors.Gray,__c.Colors.Gray,(int) (10));\n //BA.debugLineNum = 84;BA.debugLine=\"infoholder.AddView(singup,2.5%x,(loginbtn.Top + l\";\n_infoholder.AddView((android.view.View)(_singup.getObject()),__c.PerXToCurrent((float) (2.5),ba),(int) ((_loginbtn.getTop()+_loginbtn.getHeight())+__c.DipToCurrent((int) (5))),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 86;BA.debugLine=\"infoholder.SetLayoutAnimated(1000,30%x,30%y,40%x,\";\n_infoholder.SetLayoutAnimated((int) (1000),__c.PerXToCurrent((float) (30),ba),__c.PerYToCurrent((float) (30),ba),__c.PerXToCurrent((float) (40),ba),__c.PerYToCurrent((float) (30),ba));\n //BA.debugLineNum = 87;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "protected void onLoadLayout(View view) {\n }", "public void onLayout(boolean r10, int r11, int r12, int r13, int r14) {\n /*\n r9 = this;\n r6 = r13 - r11;\n r7 = r14 - r12;\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0 = r0.listView;\n r0 = r0.getChildCount();\n r1 = 1;\n r8 = 0;\n r2 = -1;\n if (r0 <= 0) goto L_0x003f;\n L_0x0013:\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0 = r0.listView;\n r3 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r3 = r3.listView;\n r3 = r3.getChildCount();\n r3 = r3 - r1;\n r0 = r0.getChildAt(r3);\n r3 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r3 = r3.listView;\n r3 = r3.findContainingViewHolder(r0);\n r3 = (org.telegram.p004ui.Components.RecyclerListView.Holder) r3;\n if (r3 == 0) goto L_0x003f;\n L_0x0036:\n r3 = r3.getAdapterPosition();\n r0 = r0.getTop();\n goto L_0x0041;\n L_0x003f:\n r0 = 0;\n r3 = -1;\n L_0x0041:\n if (r3 < 0) goto L_0x0051;\n L_0x0043:\n r4 = r9.lastHeight;\n r5 = r7 - r4;\n if (r5 == 0) goto L_0x0051;\n L_0x0049:\n r0 = r0 + r7;\n r0 = r0 - r4;\n r4 = r9.getPaddingTop();\n r0 = r0 - r4;\n goto L_0x0053;\n L_0x0051:\n r0 = 0;\n r3 = -1;\n L_0x0053:\n super.onLayout(r10, r11, r12, r13, r14);\n if (r3 == r2) goto L_0x0074;\n L_0x0058:\n r2 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r2.ignoreLayout = r1;\n r1 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r1 = r1.layoutManager;\n r1.scrollToPositionWithOffset(r3, r0);\n r1 = 0;\n r0 = r9;\n r2 = r11;\n r3 = r12;\n r4 = r13;\n r5 = r14;\n super.onLayout(r1, r2, r3, r4, r5);\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0.ignoreLayout = r8;\n L_0x0074:\n r9.lastHeight = r7;\n r9.lastWidth = r6;\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0.updateLayout();\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0.checkCameraViewPosition();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.p004ui.Components.ChatAttachAlert$C40922.onLayout(boolean, int, int, int, int):void\");\n }", "public void mo9839a() {\n onLayout(false, 0, 0, 0, 0);\n }", "private void viewRcmButtonHandler() {\n\t\t\n\t\tTitledBorder border = new TitledBorder(\" VIEW RCM\");\n\t\tborder.setTitleFont(new Font(\"TimesNewRoman\", Font.BOLD, 12));\n\t\tdisplayPanel.setBorder(border);\n\t\t\n\t\tdisplayPanel.removeAll();\n\t\tdisplayPanel.add(new ViewRcmPanel(rmos));\n\t\tdisplayPanel.revalidate();\n\t\tdisplayPanel.repaint();\n\t}", "void drawManageUser(String username, String firstname, String lastname);", "private void showLoginScreen()\n {\n logIngEditText.setVisibility(View.VISIBLE);\n passwordEditText.setVisibility(View.VISIBLE);\n loginButton.setVisibility(View.VISIBLE);\n textViewLabel.setVisibility(View.VISIBLE);\n }", "@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"682px\");\r\n\t\tmainLayout.setHeight(\"570px\");\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"682px\");\r\n\t\tsetHeight(\"570px\");\r\n\t\t\r\n\t\t// lblTitle\r\n\t\tlblTitle = new Label();\r\n\t\tlblTitle.setStyleName(\"titleLabel\");\r\n\t\tlblTitle.setImmediate(false);\r\n\t\tlblTitle.setWidth(\"-1px\");\r\n\t\tlblTitle.setHeight(\"-1px\");\r\n\t\tlblTitle.setValue(\"Cambiar contraseña\");\r\n\t\tmainLayout.addComponent(lblTitle, \"top:42.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// oldPassword\r\n\t\ttxtOldPassword = new PasswordField();\r\n\t\ttxtOldPassword.setCaption(\"Contraseña actual\");\r\n\t\ttxtOldPassword.setImmediate(true);\r\n\t\ttxtOldPassword.setWidth(\"240px\");\r\n\t\ttxtOldPassword.setHeight(\"-1px\");\r\n\t\ttxtOldPassword.setTabIndex(1);\r\n\t\ttxtOldPassword.setRequired(true);\r\n\t\tmainLayout.addComponent(txtOldPassword, \"top:120.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// newPassword\r\n\t\ttxtNewPassword = new PasswordField();\r\n\t\ttxtNewPassword.setCaption(\"Contraseña nueva\");\r\n\t\ttxtNewPassword.setImmediate(true);\r\n\t\ttxtNewPassword.setWidth(\"240px\");\r\n\t\ttxtNewPassword.setHeight(\"-1px\");\r\n\t\ttxtNewPassword.setTabIndex(2);\r\n\t\ttxtNewPassword.setRequired(true);\r\n\t\tmainLayout.addComponent(txtNewPassword, \"top:190.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// confirmPassword\r\n\t\ttxtConfirmPassword = new PasswordField();\r\n\t\ttxtConfirmPassword.setCaption(\"Confirmación de la nueva contraseña\");\r\n\t\ttxtConfirmPassword.setImmediate(true);\r\n\t\ttxtConfirmPassword.setWidth(\"240px\");\r\n\t\ttxtConfirmPassword.setHeight(\"-1px\");\r\n\t\ttxtConfirmPassword.setTabIndex(2);\r\n\t\ttxtConfirmPassword.setRequired(true);\r\n\t\tmainLayout.addComponent(txtConfirmPassword, \"top:260.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// btnModify\r\n\t\tbtnModify = new Button();\r\n\t\tbtnModify.setCaption(\"Modificar\");\r\n\t\tbtnModify.setImmediate(true);\r\n\t\tbtnModify.setWidth(\"100px\");\r\n\t\tbtnModify.setHeight(\"-1px\");\r\n\t\tbtnModify.setTabIndex(3);\r\n\t\tmainLayout.addComponent(btnModify, \"top:330.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// btnCancel\r\n\t\tbtnCancel = new Button();\r\n\t\tbtnCancel.setCaption(\"Cancelar\");\r\n\t\tbtnCancel.setImmediate(true);\r\n\t\tbtnCancel.setWidth(\"100px\");\r\n\t\tbtnCancel.setHeight(\"-1px\");\r\n\t\tbtnCancel.setTabIndex(4);\r\n\t\tmainLayout.addComponent(btnCancel, \"top:330.0px;left:140.0px;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private Widget createLoginPanel(final IViewContext<ICommonClientServiceAsync> viewContext)\n {\n DockPanel loginPanel = new DockPanel();\n // WORKAROUND The mechanism behind the autofill support does not work in testing\n if (!GWTUtils.isTesting())\n {\n final LoginPanelAutofill loginWidget = LoginPanelAutofill.get(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n } else\n {\n final LoginWidget loginWidget = new LoginWidget(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n }\n return loginPanel;\n }", "public void LoginButton() {\n\t\t\r\n\t}", "private void drawViewSideMenu() {\n if (checkUserData()) {\n navigationView.getHeaderView(0).setVisibility(View.VISIBLE);\n navigationView.getHeaderView(1).setVisibility(View.GONE);\n navigationView.getMenu().clear();\n navigationView.inflateMenu(R.menu.menu_drawer);\n\n if (customer != null) {\n String name = customer.getFirstname() + \" \" + customer.getLastname();\n String mail = customer.getEmail();\n txt_user_name.setText(name);\n txt_user_email.setText(mail);\n\n saveUserPlayerId(prepareUserPlayerId(customer.getId().toString()));\n syncAddressList(customer.getId());\n }\n } else {\n navigationView.getHeaderView(0).setVisibility(View.GONE);\n navigationView.getHeaderView(1).setVisibility(View.VISIBLE);\n navigationView.getMenu().clear();\n\n btn_sign_up.setOnClickListener(v -> checkToSignup());\n btn_log_in.setOnClickListener(v -> checkToLogin());\n }\n }", "protected abstract void iniciarLayout();", "public interface WalletBalanceView extends BaseView {\n void renderAccountInfo(NewAccountInfo info);\n}", "private void initUIAfterLogin() {\n lnLoggedOutState.setVisibility(View.GONE);\n lnLoggedInState.setVisibility(View.VISIBLE);\n initUserProfileUI();\n }", "void LienaDivisoria(){\r\n \t\r\n VerticalLayout LayoutLineaDivisoria = new VerticalLayout();\r\n LayoutLineaDivisoria.setWidth(\"1024px\");\r\n LayoutLineaDivisoria.setHeight(\"5px\");\r\n LayoutLineaDivisoria.setStyleName(EstiloCSS + \"LayoutLineaDicisoria\");\r\n layout.addComponent(LayoutLineaDivisoria, \"left: 0px; top: 450px;\"); \r\n\r\n }", "public LoginPage() {\n initComponents();\n jPanel2.setBackground(new Color(0,0,0,200));\n }", "public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}", "private void setWithdrawScreen(){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(8, 1, Languages.getMessages().get(chosenLanguage).get(\"withdrawAmount\"));\n\t\tscreenUI.drawText(2, 2, \"[a] 50 PLN\");\n\t\tscreenUI.drawText(2, 3, \"[b] 100 PLN\");\n\t\tscreenUI.drawText(2, 4, \"[c] 200 PLN\");\n\t\tscreenUI.drawText(2, 5, \"[d] \" + Languages.getMessages().get(chosenLanguage).get(\"other\"));\n\t}", "private void createpanel4() {\r\n\t\tpanels[3].setLayout(new FlowLayout(FlowLayout.CENTER, 20, 0));\r\n\r\n\t\texecute = new JButton(\"Login\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\texecute.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\texecute.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\texecute.setForeground(Color.BLACK);\r\n\t\texecute.setBorderPainted(true);\r\n\t\texecute.setContentAreaFilled(false);\r\n\t\texecute.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcancel = new JButton(\"Cancel\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcancel.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcancel.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcancel.setForeground(Color.BLACK);\r\n\t\tcancel.setBorderPainted(true);\r\n\t\tcancel.setContentAreaFilled(false);\r\n\t\tcancel.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcreateAccount = new JButton(\"New Account\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcreateAccount.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcreateAccount.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcreateAccount.setForeground(Color.BLACK);\r\n\t\tcreateAccount.setBorderPainted(true);\r\n\t\tcreateAccount.setContentAreaFilled(false);\r\n\t\tcreateAccount.setFont(customFont.deriveFont(10f));\r\n\r\n\t\tcancel.setPreferredSize(new Dimension(120, 30));\r\n\t\tcreateAccount.setPreferredSize(new Dimension(120, 30));\r\n\t\texecute.setPreferredSize(new Dimension(120, 30));\r\n\r\n\t\tpanels[3].add(execute);\r\n\t\tpanels[3].add(createAccount);\r\n\t\tpanels[3].add(cancel);\r\n\t\tpanels[3].setOpaque(false);\r\n\t\tallComponents.add(panels[3]);\r\n\t\tthis.backPanel.add(allComponents);\r\n\t\tthis.getContentPane().add(backPanel);\r\n\t\tpanels[3].revalidate();\r\n\r\n\t\tcreateAccount.addMouseListener(\r\n\t\t\t\tnew LoginListener(createAccount, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\tcancel.addMouseListener(new LoginListener(cancel, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\texecute.addMouseListener(\r\n\t\t\t\tnew LoginListener(execute, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t}", "private View createIcon() {\r\n\t\tImageView img = new ImageView(getContext());\r\n\t\tLayoutParams imglp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\t\timglp.gravity = Gravity.CENTER_VERTICAL;\r\n\t\timglp.rightMargin = 5;\r\n\t\timg.setLayoutParams(imglp);\r\n\r\n\t\timg.setBackgroundDrawable(getContext().getResources().getDrawable(R.drawable.account));\r\n\t\treturn img;\r\n\t}", "@Override // com.zhihu.android.profile.newprofile.p1859ui.card.ProfileBaseCard\n public int getLayoutId() {\n return R.layout.afh;\n }", "private void initCreateAccountTextView() {\n TextView textViewCreateAccount = (TextView) findViewById(R.id.textViewLogin);\n textViewCreateAccount.setText(fromHtml(\"<font color='#000000'>Sudah Memiliki Akun ? </font><font color='#03A9F4'>Login</font>\"));\n textViewCreateAccount.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(daftar.this, activity_login.class);\n startActivity(intent);\n }\n });\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bank_detail, container, false);\n unbinder = ButterKnife.bind(this,view);\n DaoSession daoSession = ((PasswordKeeper) getActivity().getApplication()).getDaoSession();\n bankDetailsDao = daoSession.getBankDetailsDao();\n QueryBuilder<BankDetails> bankDetailsQueryBuilder = bankDetailsDao.queryBuilder()\n .where(BankDetailsDao.Properties.Id.eq(bankId));\n bankDetails = bankDetailsQueryBuilder.unique();\n if(bankDetails.getTitle()!=null && bankDetails.getTitle().length()>0){\n bankTitle.setTitle(bankDetails.getTitle());\n }\n else{\n bankTitle.setTitle(\"NO TITLE\");\n }\n accountNo.setText(bankDetails.getAccountNo());\n bankName.setText(bankDetails.getBankName());\n ifscName.setText(\"IFSC : \"+bankDetails.getIfsc());\n branchName.setText(bankDetails.getBankBranch());\n if(bankDetails.getOnlineUsername()!=null && bankDetails.getOnlineUsername().length()>0){\n\n onlineLayout = (LinearLayout) Utility.inflateViewtoStub(viewStubCompat1,R.layout.online_detail);\n showOnlineDetails(bankDetails.getOnlineUsername(),bankDetails.getOnlinePassword());\n }\n if(bankDetails.getCards()!=null && bankDetails.getCards().size()>0) {\n for (CardDetails cardDetails : bankDetails.getCards()) {\n if (viewStubCompat1.getLayoutResource() == 0) {\n switch (cardDetails.getCardType()) {\n case DEBIT:\n dcLayout = (LinearLayout) Utility.inflateViewtoStub(viewStubCompat1, R.layout.cc_dc_detail);\n break;\n case CREDIT:\n ccLayout = (LinearLayout) Utility.inflateViewtoStub(viewStubCompat1, R.layout.cc_dc_detail);\n break;\n }\n } else if (viewStubCompat2.getLayoutResource() == 0) {\n switch (cardDetails.getCardType()) {\n case DEBIT:\n dcLayout = (LinearLayout) Utility.inflateViewtoStub(viewStubCompat2, R.layout.cc_dc_detail);\n break;\n case CREDIT:\n ccLayout = (LinearLayout) Utility.inflateViewtoStub(viewStubCompat2, R.layout.cc_dc_detail);\n break;\n }\n } else if (viewStubCompat3.getLayoutResource() == 0) {\n switch (cardDetails.getCardType()) {\n case DEBIT:\n dcLayout = (LinearLayout) Utility.inflateViewtoStub(viewStubCompat3, R.layout.cc_dc_detail);\n break;\n case CREDIT:\n ccLayout = (LinearLayout) Utility.inflateViewtoStub(viewStubCompat3, R.layout.cc_dc_detail);\n break;\n }\n }\n showCCDCDetails(cardDetails);\n }\n }\n\n return view;\n }", "public abstract void doLayout();", "public void initializeLayout(){\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 8);\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 3);\r\n\tsuper.addField(FIELDTYPE_PICX, 5);\r\n\tsuper.addField(FIELDTYPE_PICX, 18);\r\n\tsuper.addField(FIELDTYPE_PICX, 4);\r\n\tsuper.addField(FIELDTYPE_PICX, 110);\r\n\tsuper.addField(FIELDTYPE_PICX, 105);\r\n}", "public LoginView() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public void mo60894a() {\n int i;\n this.f61656f = new SmartAvatarImageView(getContext());\n if (C6399b.m19946v()) {\n ((C13438a) this.f61656f.getHierarchy()).mo32891a((int) R.color.a5q, C13423b.f35599g);\n }\n addView(this.f61656f, getAvatarLayoutParams());\n LayoutParams a = m76775a(getVerifyIconSize());\n this.f61651a = new ImageView(getContext());\n int i2 = R.drawable.amq;\n try {\n this.f61651a.setImageDrawable(getResources().getDrawable(R.drawable.amq));\n } catch (NotFoundException unused) {\n }\n this.f61651a.setVisibility(8);\n LayoutParams a2 = m76775a(getVerifyIconSize());\n this.f61652b = new ImageView(getContext());\n try {\n this.f61652b.setImageDrawable(getResources().getDrawable(R.drawable.amq));\n } catch (NotFoundException unused2) {\n }\n this.f61652b.setVisibility(8);\n this.f61653c = new ImageView(getContext());\n try {\n ImageView imageView = this.f61653c;\n Resources resources = getResources();\n if (C6399b.m19944t()) {\n i = R.drawable.amp;\n } else {\n i = R.drawable.amq;\n }\n imageView.setImageDrawable(resources.getDrawable(i));\n } catch (NotFoundException unused3) {\n }\n this.f61653c.setVisibility(8);\n this.f61654d = new ImageView(getContext());\n try {\n this.f61654d.setImageDrawable(getResources().getDrawable(R.drawable.amm));\n } catch (NotFoundException unused4) {\n }\n this.f61654d.setVisibility(8);\n this.f61655e = new ImageView(getContext());\n try {\n ImageView imageView2 = this.f61655e;\n Resources resources2 = getResources();\n if (C6399b.m19944t()) {\n i2 = R.drawable.amp;\n }\n imageView2.setImageDrawable(resources2.getDrawable(i2));\n } catch (NotFoundException unused5) {\n }\n this.f61655e.setVisibility(8);\n addView(this.f61651a, a);\n addView(this.f61652b, a2);\n addView(this.f61653c, a2);\n addView(this.f61654d, a2);\n addView(this.f61655e, a2);\n }", "@Override\n\tpublic void onModuleLoad() {\n\t\tButton loginButton = new Button(\"Einloggen\");\n\t\tloginButton.addStyleName(\"loginlogoutButton\");\n\t\tloginButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tWindow.Location.assign(loginurl);\n\t\t\t}\n\n\t\t});\n\t\tsignInLink.getElement().setClassName(\"login-area\");\n\t\tsignInLink.setTitle(\"sign out\");\n\t\tloginImage.getElement().setClassName(\"login-image\");\n\t\tloginPanel.add(loginButton);\n\t\tHTML starttext = new HTML(\"<h2>Willkommen bei Hakuna Contacta</h2><div id=\\\"startlogin\\\">So funktionierts:<br>1. Kontakte ausw\\u00E4hlen<br>2. Exportfelder ausw\\u00E4hlen<br>3. Download der Exportdatei<br>(4. Als Quelldatei f\\u00FCr Word Serienbrief verwenden)</div><div id=\\\"gcontacts2word\\\"><img src=\\\"images/gcontacts2word.png\\\"><p class=\\\"whitetext\\\">Exportformate - CSV (Word-Serienbrief), CSV (Komma getrennt), vCARD, xCard (XML) </p></div><div id=\\\"arrow1\\\"><img src=\\\"images/arrow1.png\\\"/></div>\");\n\t\tRootPanel.get(\"content\").add(starttext);\n\n\t\tRootPanel.get(\"loginPanelContainer\").add(loginPanel);\n\t\tRootPanel.get(\"footer\").clear();\n\t\tHTML footerimage = new HTML(\"<img src=\\\"images/1.jpg\\\">\");\n\t\tRootPanel.get(\"footer\").add(footerimage);\n\t\tfinal StringBuilder userEmail = new StringBuilder();\n\t\tgreetingService.login(GWT.getHostPageBaseURL(),\n\t\t\t\tnew AsyncCallback<LoginInfo>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(final Throwable caught) {\n\t\t\t\t\t\tGWT.log(\"login -> onFailure\");\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(final LoginInfo result) {\n\t\t\t\t\t\tif (result.getName() != null\n\t\t\t\t\t\t\t\t&& !result.getName().isEmpty()) {\n\t\t\t\t\t\t\taddGoogleAuthHelper();\n\t\t\t\t\t\t\tloadLogout(result);\n\t\t\t\t\t\t\tButton logoutButton = new Button(\"Ausloggen\");\n\t\t\t\t\t\t\tlogoutButton.addStyleName(\"loginlogoutButton\");\n\t\t\t\t\t\t\tloginPanel.clear();\n\t\t\t\t\t\t\tlogoutButton.addClickHandler(new ClickHandler() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\t\t\t\tthisClientEngine.exitSession();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tloginPanel.add(logoutButton);\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tloadLogin(result);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuserEmail.append(result.getEmailAddress());\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t}", "private void initView() {\n\t\tloginBtn = (Button) findViewById(R.id.login_btn);\n\t\t\n\t\tlogoutBtn = (Button) findViewById(R.id.logout_btn);\n\t\tFeeds=(MyImageView) findViewById(R.id.c_joke);\n\t\tFriends=(MyImageView) findViewById(R.id.c_idea);\n\t\tChat=(MyImageView) findViewById(R.id.c_constellation);\n\t\tVersionInformation=(MyImageView) findViewById(R.id.c_recommend);\n\t\t \n\t\tif (rennClient.isLogin()) {\n\t\t\t\tloginBtn.setVisibility(View.GONE);\n\t\t\t\tlogoutBtn.setVisibility(View.VISIBLE);\n\t\t\t} else {\n\t\t\t\tloginBtn.setVisibility(View.VISIBLE);\n\t\t\t\tlogoutBtn.setVisibility(View.GONE);\n\t\t\t}\n\t\t\n\t\tloginBtn.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\trennClient.logout();\n\t\t\t\trennClient.setLoginListener(new LoginListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLoginSuccess() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"登录成功\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tloginBtn.setVisibility(View.GONE);\n\t\t\t\t\t\tlogoutBtn.setVisibility(View.VISIBLE);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLoginCanceled() {\n\t\t\t\t\t\tloginBtn.setVisibility(View.VISIBLE);\n\t\t\t\t\t\tlogoutBtn.setVisibility(View.GONE);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\trennClient.login(TestRolateAnimActivity.this);\n\t\t\t}\n\t\t});\n\t\tlogoutBtn.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\trennClient.logout();\n\t\t\t\tloginBtn.setVisibility(View.VISIBLE);\n\t\t\t\tlogoutBtn.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n}", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_profile_account, container, false);\n\n TextView statistic_data = (TextView) view.findViewById(R.id.account_link_to_statistic_data);\n statistic_data.setOnClickListener(this);\n\n TextView password_change = (TextView) view.findViewById(R.id.account_link_to_password_change);\n password_change.setOnClickListener(this);\n\n /*TextView notifications_settings = (TextView) view.findViewById(R.id.account_link_to_notifications_settings);\n notifications_settings.setOnClickListener(this);\n\n\n\n TextView help = (TextView) view.findViewById(R.id.account_link_to_help);\n help.setOnClickListener(this);\n\n TextView privacy = (TextView) view.findViewById(R.id.account_link_to_privacy);\n privacy.setOnClickListener(this);\n\n TextView terms_of_service = (TextView) view.findViewById(R.id.account_link_to_terms_of_service_title);\n terms_of_service.setOnClickListener(this);*/\n\n TextView recieved_rates = (TextView)view.findViewById(R.id.account_link_to_recieved_rates);\n recieved_rates.setOnClickListener(this);\n return view;\n }", "@Override\n protected void loadViewLayout() {\n setContentView(R.layout.ui_imgs_graffit);\n }", "@AutoGenerated\r\n\tprivate Panel buildPnlLogin() {\n\t\tpnlLogin = new Panel();\r\n\t\tpnlLogin.setImmediate(false);\r\n\t\tpnlLogin.setWidth(\"-1px\");\r\n\t\tpnlLogin.setHeight(\"500px\");\r\n\t\t\r\n\t\t// layoutLogin\r\n\t\tlayoutLogin = buildLayoutLogin();\r\n\t\tpnlLogin.setContent(layoutLogin);\r\n\t\t\r\n\t\treturn pnlLogin;\r\n\t}", "public void credito() \n {\n LabelCredito.removeAll();\n int witdh = LabelCredito.getWidth();\n int height = LabelCredito.getHeight();\n LabelCredito.setLayout(new BorderLayout());\n titulo.setPreferredSize(new Dimension(witdh, height));\n LabelCredito.add(\"Center\", titulo);\n LabelCredito.updateUI();\n LabelCredito.validate();\n }", "private Component createLogin() {\n CustomLayout custom = new CustomLayout(\"../../sampler/layouts/examplecustomlayout\");\n\n // Create components and bind them to the location tags\n // in the custom layout.\n username = new TextField();\n custom.addComponent(username, \"username\");\n\n password = new PasswordField();\n custom.addComponent(password, \"password\");\n\n Button ok = new Button(\"Login\");\n custom.addComponent(ok, \"okbutton\");\n\n // Add login listener\n ok.addListener(this);\n\n return custom;\n\n }", "private void printLeagueOfLegendsAccount() {\r\n JFrame recordWindow = new JFrame(\"Print out account details\");\r\n// recordWindow.setLocationRelativeTo(null);\r\n// recordWindow.getContentPane().setLayout(new BoxLayout(recordWindow.getContentPane(), BoxLayout.Y_AXIS));\r\n initiateAccountPrintFields(recordWindow);\r\n new Frame(recordWindow);\r\n// recordWindow.pack();\r\n// recordWindow.setVisible(true);\r\n }", "@Override\n\tpublic void doLayout() {\n\t\tthis.transitionsPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t//this.timersButton.setBounds(this.getWidth()-2*50, 0, 50, 50);\n\t\t//this.countersButton.setBounds(this.getWidth()-50, 0, 50, 50);\n\t\t//this.salirButton.setBounds(this.getWidth()-40,0,40, 40);\n\t\tsuper.doLayout();\n\t}", "public void InitLayout() {\n SetBackground(R.drawable.can_dfqc_ac_bg);\n this.mTvA = AddText(121, 173, 203, 25);\n this.mTvP = AddText(121, 212, KeyDef.RKEY_RADIO_6S, 25);\n this.mTvMode = AddText(121, Can.CAN_FLAT_RZC, 203, 25);\n this.mTvC = AddText(121, 295, 139, 25);\n this.mTvWind = AddText(121, KeyDef.RKEY_AVIN, 53, 25);\n initValue();\n }", "ZHDraweeView mo91981h();", "void Header() {\n\t\tJPanel panel = new JPanel(new GridLayout(2,1));\r\n\t\t\r\n\t\tJPanel panel2 = new JPanel(new GridLayout(1,2));\r\n\t\tpanel2.add(lblNoTelepon);\r\n\t\tpanel2.add(txtNoTelepon);\r\n\t\tpanel.add(panel2);\r\n\t\t\r\n\t\tpanel2 = new JPanel(new GridLayout(1,2));\r\n\t\tpanel2.add(lblPassword);\r\n\t\tpanel2.add(pfPassword);\r\n\t\tpanel.add(panel2);\r\n\t\t\r\n\t\tadd(panel, BorderLayout.CENTER);\r\n\t\t\r\n\r\n\t}", "private void login(){\n displayPane(loginP);\n }", "public LoginView() {\n initComponents();\n }", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "private void m119424c() {\n View view = new View(getContext());\n view.setLayoutParams(new FrameLayout.LayoutParams(-1, DisplayUtils.m87172c(getContext())));\n view.setBackgroundColor(C17345i.m87160a(ContextCompat.getColor(getContext(), R.color.BK01), 0.2f));\n ViewGroup viewGroup = (ViewGroup) getView();\n if (f85662a || viewGroup != null) {\n viewGroup.addView(view);\n ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) this.mSystemBar.getLayoutParams();\n marginLayoutParams.topMargin = DisplayUtils.m87171b(getContext(), 36.0f) - DisplayUtils.m87172c(getContext());\n this.mSystemBar.setLayoutParams(marginLayoutParams);\n m119425d();\n return;\n }\n throw new AssertionError();\n }", "@Override // com.beloo.widget.chipslayoutmanager.p295d.AbstractLayouter\n /* renamed from: b */\n public Rect mo21673b(View view) {\n Rect rect = new Rect(this.f10947d - mo21696x(), this.f10945b - mo21697y(), this.f10947d, this.f10945b);\n this.f10947d = rect.left;\n return rect;\n }", "@Override\r\n protected void layout() {\n\r\n Check.setY(this.getHalfHeight() - Check.getHalfHeight());\r\n\r\n float asc = lblName.getFont().getDescent();\r\n\r\n lblName.setY(this.getHeight() - lblName.getHeight() + asc);\r\n lblName.setX(this.getLeftWidth());\r\n }", "public static void login() {\n\t\trender();\n\t}", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "@Override\n public void showLoginView() {\n calledMethods.add(\"showLoginView\");\n }", "private void setLoginMarker() {\n\t\tif (pass.getText().toString().equals(Config.RESET_PASSWORD)) {\n\t\t\tupdateStatusText();\n\t\t\tscrollView.setVisibility(View.VISIBLE);\n\t\t\tsendScroll();\n\t\t} else\n\t\t\tscrollView.setVisibility(View.GONE);\n\n\t\tif (((pass.getText().length() == 4) && ((inTruckMode && (vehicle != null)) || (!inTruckMode && (site != null))))\n\t\t\t\t|| (pass.getText().toString().equals(Config.RESET_PASSWORD))) {\n\t\t\tbtn_connect.setImageResource(R.drawable.green_mark);\n\t\t\tbtn_connect.setClickable(true);\n\t\t} else {\n\t\t\tbtn_connect.setImageResource(R.drawable.white_mark);\n\t\t\tbtn_connect.setClickable(false);\n\t\t}\n\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n view_top.layout((int) mDrange + dip2px(getContext(), 20) - view_top.getMeasuredWidth() / 2, t, (int) mDrange + view_top.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight());\n view_mid.layout((int) mDrange + dip2px(getContext(), 20) - view_mid.getMeasuredWidth() / 2, view_top.getMeasuredHeight(), (int) mDrange + view_mid.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight());\n pb.layout(dip2px(getContext(), 20) + l, view_top.getMeasuredHeight() + view_mid.getMeasuredHeight(), r - dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight() + pb.getMeasuredHeight());\n }", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"240px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"240px\");\n\t\t\n\t\t// usernameField\n\t\tusernameField = new TextField();\n\t\tusernameField.setCaption(\"Nombre Usuario\");\n\t\tusernameField.setImmediate(false);\n\t\tusernameField.setWidth(\"114px\");\n\t\tusernameField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(usernameField, \"top:16.0px;left:6.0px;\");\n\t\t\n\t\t// passwordField\n\t\tpasswordField = new PasswordField();\n\t\tpasswordField.setCaption(\"Contraseña\");\n\t\tpasswordField.setImmediate(false);\n\t\tpasswordField.setWidth(\"114px\");\n\t\tpasswordField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(passwordField, \"top:60.0px;left:6.0px;\");\n\t\t\n\t\t// btnApplyUser\n\t\tbtnApplyUser = new Button();\n\t\tbtnApplyUser.setCaption(\"Aplicar\");\n\t\tbtnApplyUser.setImmediate(true);\n\t\tbtnApplyUser.setWidth(\"-1px\");\n\t\tbtnApplyUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnApplyUser, \"top:16.0px;left:128.0px;\");\n\t\t\n\t\t// btnRemoveUser\n\t\tbtnRemoveUser = new Button();\n\t\tbtnRemoveUser.setCaption(\"Borrar\");\n\t\tbtnRemoveUser.setImmediate(true);\n\t\tbtnRemoveUser.setWidth(\"-1px\");\n\t\tbtnRemoveUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnRemoveUser, \"top:58.0px;left:128.0px;\");\n\t\t\n\t\t// btnCancelUser\n\t\tbtnCancelUser = new Button();\n\t\tbtnCancelUser.setCaption(\"Cancelar\");\n\t\tbtnCancelUser.setImmediate(true);\n\t\tbtnCancelUser.setWidth(\"-1px\");\n\t\tbtnCancelUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnCancelUser, \"top:16.0px;left:200.0px;\");\n\t\t\n\t\t// passwordConfirmField\n\t\tpasswordConfirmField = new PasswordField();\n\t\tpasswordConfirmField.setCaption(\"Confirmar contraseña\");\n\t\tpasswordConfirmField.setImmediate(false);\n\t\tpasswordConfirmField.setWidth(\"114px\");\n\t\tpasswordConfirmField.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(passwordConfirmField, \"top:102.0px;left:6.0px;\");\n\t\t\n\t\t// defaultLocaleField\n\t\tdefaultLocaleField = new LocaleField();\n\t\tdefaultLocaleField.setImmediate(true);\n\t\tdefaultLocaleField.setWidth(\"260px\");\n\t\tdefaultLocaleField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(defaultLocaleField, \"top:50.0px;left:220.0px;\");\n\t\t\n\t\t// activeField\n\t\tactiveField = new CheckBox();\n\t\tactiveField.setCaption(\"Activa\");\n\t\tactiveField.setImmediate(false);\n\t\tactiveField.setWidth(\"-1px\");\n\t\tactiveField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(activeField, \"top:16.0px;left:427.0px;\");\n\t\t\n\t\t// expirationDateField\n\t\texpirationDateField = new PopupDateField();\n\t\texpirationDateField.setCaption(\"Fecha expiración\");\n\t\texpirationDateField.setImmediate(false);\n\t\texpirationDateField.setWidth(\"105px\");\n\t\texpirationDateField.setHeight(\"-1px\");\n\t\texpirationDateField.setResolution(4);\n\t\tmainLayout.addComponent(expirationDateField,\n\t\t\t\t\"top:106.0px;left:375.0px;\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"474px\");\n\t\tcommentField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(commentField, \"top:143.0px;left:6.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.authentication_layout, container, false);\n\t\tbtnLogin = (ButtonRectangle) view.findViewById(R.id.btn_login);\n\t\tbtnLoginAsGuest = (ButtonRectangle) view.findViewById(R.id.btn_login_as_guest);\n\n\t\treturn view;\n\t}", "public void setLocationAndSize()\n {\n\t welcome.setBounds(150,50,200,30);\n\t amountLabel.setBounds(50,100,150,30);\n\t amountText.setBounds(200,100,150,30);\n\t depositButton.setBounds(150,150,100,30);\n \n \n }", "private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.WEST,firstButton,107,SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstButton, -32, SpringLayout.SOUTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, firstField, 37, SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstField, -24, SpringLayout.SOUTH, this);\n\t}", "@Override\n\tprotected int getResourceLayoutId() {\n\t\treturn R.layout.admin;\n\t}", "static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }", "@Override\r\n\tprotected void onDraw() {\n\t\t\r\n\t}", "private LoginMenu() {\n\n\t\t\n\t\t/**\n\t\t * Fenêtre positionnée comme tableau de ligne/colonne avec un espace en hauteur\n\t\t * et largeur\n\t\t **/\n\n\t\tmenuLogin = new JPanel(new GridLayout(2, 1, 0, 0));\n\t\tmenuLogin.setBackground(new Color(200, 100, 100));\n\n\t\t/**\n\t\t * Ajout du login et mot de passe via un tableau\n\t\t **/\n\n\t\tmenuLogin.add(InitialisationDuMenu());\n\t\tmenuLogin.add(InitDesBouttons());\n\t}", "private void setupUserRelativeLayout() {\n userRelativeLayout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n IntentHelper.intentToUserProfileActivity(context, prismUser);\n }\n });\n }", "public Login() {\n initComponents();\n txtAccountStatus.setVisible(false); \n showDate(); // Class para sa Date\n showTime(); // Class para sa Time\n }", "public View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\t\t Bundle savedInstanceState)\n{\n\tview = inflater.inflate(R.layout.profile_activity, container, false);\n\tcontext = view.getContext();\n\n\tloginText = (FloatLabeledEditText)view.findViewById(R.id.user);\n\tpassText = (FloatLabeledEditText)view.findViewById(R.id.etPassword);\n\tnewpass = (FloatLabeledEditText)view.findViewById(R.id.etnewPassword);\n\tconfText = (FloatLabeledEditText)view.findViewById(R.id.etnewPasswordConfirm);\n\n\tbtnLogin=(RobotoTextView)view.findViewById(R.id.login);\n//\tbtnLogin.setOnClickListener(this);\n // new AsynchTaskEx().execute();\n\treturn view;\n}", "public Login() {\n initComponents();\n this.setTitle(\"Apotek\");\n this.setLocation(dmn.width/2-this.getWidth()/2,dmn.height/2-this.getHeight()/2 );\n }", "public String _buildtheme() throws Exception{\n_theme.Initialize(\"pagetheme\");\r\n //BA.debugLineNum = 91;BA.debugLine=\"theme.AddABMTheme(ABMShared.MyTheme)\";\r\n_theme.AddABMTheme(_abmshared._mytheme);\r\n //BA.debugLineNum = 94;BA.debugLine=\"theme.AddLabelTheme(\\\"lightblue\\\")\";\r\n_theme.AddLabelTheme(\"lightblue\");\r\n //BA.debugLineNum = 95;BA.debugLine=\"theme.Label(\\\"lightblue\\\").ForeColor = ABM.COLOR_LI\";\r\n_theme.Label(\"lightblue\").ForeColor = _abm.COLOR_LIGHTBLUE;\r\n //BA.debugLineNum = 96;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}" ]
[ "0.64787763", "0.6229965", "0.60043055", "0.59562886", "0.58719367", "0.5746409", "0.5725568", "0.56916153", "0.5682768", "0.5660138", "0.5610778", "0.56045514", "0.5604129", "0.55874014", "0.5573364", "0.55593735", "0.55581933", "0.5549252", "0.55405056", "0.55360806", "0.55216044", "0.5496741", "0.5493398", "0.5488656", "0.5462579", "0.54525274", "0.54510117", "0.5448625", "0.5429358", "0.5416763", "0.5416667", "0.5401561", "0.5389492", "0.53883284", "0.5383776", "0.5383771", "0.5376184", "0.53691286", "0.5317595", "0.5302239", "0.5287662", "0.5270814", "0.5267794", "0.52664584", "0.526126", "0.52582014", "0.52457774", "0.52448344", "0.5237342", "0.52208257", "0.52171284", "0.5205026", "0.51971966", "0.51935446", "0.51894534", "0.51892036", "0.5187283", "0.5185149", "0.5178183", "0.51775134", "0.5174189", "0.5158967", "0.5156028", "0.51401967", "0.5138397", "0.5136252", "0.5134929", "0.5132161", "0.5131155", "0.51311076", "0.51239616", "0.5123563", "0.5121911", "0.5120533", "0.51163703", "0.5110749", "0.5095119", "0.5094515", "0.5087563", "0.5087166", "0.5077556", "0.5073371", "0.5067403", "0.50673383", "0.50645834", "0.5063671", "0.504618", "0.5041114", "0.504097", "0.503949", "0.5038745", "0.5034656", "0.5027862", "0.5027299", "0.50253487", "0.50243205", "0.5020155", "0.5016654", "0.50108427", "0.5007273", "0.50021017" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); LOG("开始加载url:" + url); if (!firstLoad) { firstLoad = true; // iv_webview_hint.setBackgroundDrawable(mContext.getResources().getDrawable(R.drawable.iv_web_loading)); // iv_webview_hint.setVisibility(View.VISIBLE); setLoading(true); } else { // iv_webview_hint.setVisibility(View.GONE); setLoading(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) { LOG("shouldInterceptRequest:"); return super.shouldInterceptRequest(view, request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
For Android < 3.0
public void openFileChooser(ValueCallback<Uri> uploadMsg) { LOG("MyWebChromeClient openFileChooser <3.0"); openFileChooser(uploadMsg, ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "android.view.View mo12148b();", "public Lollipop() {\r\n\t\t}", "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 61;BA.debugLine=\"utilidades.ResetUserFontScale(Activity)\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv0 /*String*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(mostCurrent._activity.getObject())));\n //BA.debugLineNum = 62;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "protected void onFirstUse() {}", "MultiChoiceModeCallbackWrapper(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.ColorListView.MultiChoiceModeCallbackWrapper.<init>(android.widget.ColorListView):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.MultiChoiceModeCallbackWrapper.<init>(android.widget.ColorListView):void\");\n }", "AndroidFactory getAndroidFactory();", "public static boolean isAndroidL() {\n\t\treturn android.os.Build.VERSION.SDK_INT >= 21;\n\t}", "@Override\n public void onPostInit()\n {\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "private final void m118784a(Context context) {\n setKeyListener(DigitsKeyListener.getInstance(\"1234567890 \"));\n setSingleLine();\n m118789x();\n int i = Build.VERSION.SDK_INT;\n setTextDirection(3);\n mo71915a(this.f152275t);\n mo71925b(new bkhk(this));\n String string = context.getString(C0126R.string.wallet_uic_error_card_number_invalid);\n mo71925b(new bkhl(this, string));\n mo65972a((bkgj) new bkhm(this, string));\n int[] iArr = {C0126R.attr.uicInvalidCardNumberShakeAnimationEnabled, C0126R.attr.uicShowCardDropDownAfterDelay};\n Arrays.sort(iArr);\n TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(iArr);\n this.f152261f = obtainStyledAttributes.getBoolean(Arrays.binarySearch(iArr, (int) C0126R.attr.uicInvalidCardNumberShakeAnimationEnabled), false);\n this.f152262g = obtainStyledAttributes.getBoolean(Arrays.binarySearch(iArr, (int) C0126R.attr.uicShowCardDropDownAfterDelay), false);\n obtainStyledAttributes.recycle();\n }", "private boolean m21857b() {\n return Build.FINGERPRINT.startsWith(\"generic\") || Build.MODEL.contains(\"google_sdk\") || Build.MODEL.toLowerCase().contains(\"droid4x\") || Build.MODEL.contains(\"Emulator\") || Build.MODEL.contains(\"Android SDK built for\") || Build.MANUFACTURER.contains(\"Genymotion\") || Build.HARDWARE.equals(\"goldfish\") || Build.HARDWARE.equals(\"vbox86\") || Build.PRODUCT.equals(\"sdk\") || Build.PRODUCT.equals(\"google_sdk\") || Build.PRODUCT.equals(\"sdk_x86\") || Build.PRODUCT.equals(\"vbox86p\") || Build.BOARD.toLowerCase().contains(\"nox\") || Build.BOOTLOADER.toLowerCase().contains(\"nox\") || Build.HARDWARE.toLowerCase().contains(\"nox\") || Build.PRODUCT.toLowerCase().contains(\"nox\") || Build.SERIAL.toLowerCase().contains(\"nox\") || Build.FINGERPRINT.startsWith(\"unknown\") || Build.FINGERPRINT.contains(\"Andy\") || Build.FINGERPRINT.contains(\"ttVM_Hdragon\") || Build.FINGERPRINT.contains(\"vbox86p\") || Build.HARDWARE.contains(\"ttVM_x86\") || Build.MODEL.equals(\"sdk\") || Build.MODEL.contains(\"Droid4X\") || Build.MODEL.contains(\"TiantianVM\") || Build.MODEL.contains(\"Andy\") || (Build.BRAND.startsWith(\"generic\") && Build.DEVICE.startsWith(\"generic\"));\n }", "private NativeSupport() {\n\t}", "private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n public void onCreateFailure(String s) {\n }", "@Override\n public void onCreateFailure(String s) {\n }", "@Override\r\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\tversion = util.checkVersion(\"http://m.fx678.com/Upgrade.aspx?ver=YINGRUYI_ANDROID_V1.0.1\");\r\n\r\n\t\t\treturn null;\r\n\t\t}", "@Override\n public void onCreate() {\n }", "@Override\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\r\n }", "@Override\n public void onInit()\n {\n\n }", "public static synchronized void initNativeLibs(android.content.Context r6) {\n /*\n r2 = org.telegram.messenger.NativeLoader.class;\n monitor-enter(r2);\n r0 = nativeLoaded;\t Catch:{ all -> 0x00d1 }\n if (r0 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r2);\n return;\n L_0x0009:\n net.hockeyapp.android.C2367a.m11720a(r6);\t Catch:{ all -> 0x00d1 }\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"armeabi-v7a\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00d4;\n L_0x0017:\n r0 = \"armeabi-v7a\";\n L_0x001a:\n r1 = \"os.arch\";\n r1 = java.lang.System.getProperty(r1);\t Catch:{ Throwable -> 0x012b }\n if (r1 == 0) goto L_0x0130;\n L_0x0023:\n r3 = \"686\";\n r1 = r1.contains(r3);\t Catch:{ Throwable -> 0x012b }\n if (r1 == 0) goto L_0x0130;\n L_0x002c:\n r0 = \"x86\";\n r1 = r0;\n L_0x0030:\n r0 = getNativeLibraryDir(r6);\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x005f;\n L_0x0036:\n r3 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r4 = \"libtmessages.27.so\";\n r3.<init>(r0, r4);\t Catch:{ Throwable -> 0x012b }\n r0 = r3.exists();\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x005f;\n L_0x0044:\n r0 = \"load normal lib\";\n org.telegram.messenger.FileLog.m13725d(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = \"tmessages.27\";\n java.lang.System.loadLibrary(r0);\t Catch:{ Error -> 0x005b }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x005b }\n r3 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x005b }\n init(r0, r3);\t Catch:{ Error -> 0x005b }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x005b }\n goto L_0x0007;\n L_0x005b:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n L_0x005f:\n r3 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r0 = r6.getFilesDir();\t Catch:{ Throwable -> 0x012b }\n r4 = \"lib\";\n r3.<init>(r0, r4);\t Catch:{ Throwable -> 0x012b }\n r3.mkdirs();\t Catch:{ Throwable -> 0x012b }\n r4 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r0 = \"libtmessages.27loc.so\";\n r4.<init>(r3, r0);\t Catch:{ Throwable -> 0x012b }\n r0 = r4.exists();\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x009c;\n L_0x007c:\n r0 = \"Load local lib\";\n org.telegram.messenger.FileLog.m13725d(r0);\t Catch:{ Error -> 0x0095 }\n r0 = r4.getAbsolutePath();\t Catch:{ Error -> 0x0095 }\n java.lang.System.load(r0);\t Catch:{ Error -> 0x0095 }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x0095 }\n r5 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x0095 }\n init(r0, r5);\t Catch:{ Error -> 0x0095 }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x0095 }\n goto L_0x0007;\n L_0x0095:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n r4.delete();\t Catch:{ Throwable -> 0x012b }\n L_0x009c:\n r0 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x012b }\n r0.<init>();\t Catch:{ Throwable -> 0x012b }\n r5 = \"Library not found, arch = \";\n r0 = r0.append(r5);\t Catch:{ Throwable -> 0x012b }\n r0 = r0.append(r1);\t Catch:{ Throwable -> 0x012b }\n r0 = r0.toString();\t Catch:{ Throwable -> 0x012b }\n org.telegram.messenger.FileLog.m13726e(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = loadFromZip(r6, r3, r4, r1);\t Catch:{ Throwable -> 0x012b }\n if (r0 != 0) goto L_0x0007;\n L_0x00b9:\n r0 = \"tmessages.27\";\n java.lang.System.loadLibrary(r0);\t Catch:{ Error -> 0x00cb }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x00cb }\n r1 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x00cb }\n init(r0, r1);\t Catch:{ Error -> 0x00cb }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x00cb }\n goto L_0x0007;\n L_0x00cb:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ all -> 0x00d1 }\n goto L_0x0007;\n L_0x00d1:\n r0 = move-exception;\n monitor-exit(r2);\n throw r0;\n L_0x00d4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"armeabi\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00e4;\n L_0x00df:\n r0 = \"armeabi\";\n goto L_0x001a;\n L_0x00e4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"x86\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00f4;\n L_0x00ef:\n r0 = \"x86\";\n goto L_0x001a;\n L_0x00f4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"mips\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x0104;\n L_0x00ff:\n r0 = \"mips\";\n goto L_0x001a;\n L_0x0104:\n r0 = \"armeabi\";\n r1 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0122 }\n r1.<init>();\t Catch:{ Exception -> 0x0122 }\n r3 = \"Unsupported arch: \";\n r1 = r1.append(r3);\t Catch:{ Exception -> 0x0122 }\n r3 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = r1.append(r3);\t Catch:{ Exception -> 0x0122 }\n r1 = r1.toString();\t Catch:{ Exception -> 0x0122 }\n org.telegram.messenger.FileLog.m13726e(r1);\t Catch:{ Exception -> 0x0122 }\n goto L_0x001a;\n L_0x0122:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = \"armeabi\";\n goto L_0x001a;\n L_0x012b:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x00d1 }\n goto L_0x00b9;\n L_0x0130:\n r1 = r0;\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.messenger.NativeLoader.initNativeLibs(android.content.Context):void\");\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:49.373 -0500\", hash_original_method = \"CA274FB7382FEC7F97EB63B9F7E3C908\", hash_generated_method = \"14E7E8847785C3993C70952BF3691E2F\")\n \npublic static com.android.internal.textservice.ITextServicesManager asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.android.internal.textservice.ITextServicesManager))) {\nreturn ((com.android.internal.textservice.ITextServicesManager)iin);\n}\nreturn new com.android.internal.textservice.ITextServicesManager.Stub.Proxy(obj);\n}", "private static String m35239a(Context context) {\n try {\n return context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;\n } catch (NameNotFoundException unused) {\n return null;\n }\n }", "static /* synthetic */ int m0-get0(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.ColorListView.-get0(android.widget.ColorListView):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.-get0(android.widget.ColorListView):int\");\n }", "@Override\n public int getMinSupportedApiLevel() {\n return Build.VERSION_CODES.M;\n }", "public void getPrefrenceforSpinner() {\n SharedPreferences spinnerPrefs;\n if (android.os.Build.VERSION.SDK_INT > Build.VERSION_CODES.M){\n // Do something for M above versions\n spinnerPrefs = this.getSharedPreferences(\"spinnerPrefs\",\n MODE_PRIVATE);\n getPreRefranceFromSaveprefreance(spinnerPrefs); //back user\n\n } else{\n spinnerPrefs = this.getSharedPreferences(\"spinnerPrefs\",\n MODE_WORLD_READABLE);\n getPreRefranceFromSaveprefreance(spinnerPrefs);\n // do something for phones running an SDK before lollipop\n\n }\n\n }", "@Override\n public void onFinish() {\n }", "@Override\n public void onFinish() {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }", "private static android.hardware.camera2.impl.CameraMetadataNative convertResultMetadata(android.hardware.camera2.legacy.LegacyRequest r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertResultMetadata(android.hardware.camera2.legacy.LegacyRequest):android.hardware.camera2.impl.CameraMetadataNative, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertResultMetadata(android.hardware.camera2.legacy.LegacyRequest):android.hardware.camera2.impl.CameraMetadataNative\");\n }", "private static String m4387a() {\n String str;\n String str2 = \"\";\n try {\n Class cls = Class.forName(\"android.os.SystemProperties\");\n Method method = cls.getMethod(\"get\", new Class[]{String.class});\n if (method != null) {\n if (((String) method.invoke(cls.newInstance(), new Object[]{\"telephony.lteOnCdmaDevice\"})).equals(\"1\")) {\n Method method2 = Class.forName(\"com.huawei.android.hwnv.HWNVFuncation\").getMethod(\"getNVIMEI\", new Class[0]);\n if (method2 == null) {\n return str2;\n }\n method2.setAccessible(true);\n str = (String) method2.invoke(null, new Object[0]);\n return str;\n }\n }\n } catch (Throwable th) {\n }\n str = str2;\n return str;\n }", "static int m61445c(Context context) {\n boolean z;\n ActivityManager activityManager = (ActivityManager) m61431a(context, \"activity\");\n if ((context.getApplicationInfo().flags & 1048576) != 0) {\n z = true;\n } else {\n z = false;\n }\n int memoryClass = activityManager.getMemoryClass();\n if (z && VERSION.SDK_INT >= 11) {\n memoryClass = C18809a.m61448a(activityManager);\n }\n return (memoryClass * 1048576) / 7;\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2) {\n arg2.printStackTrace();\n\n Log.d(TAG, \"onError: ======================\");\n }", "@Override\r\n public void onPrepareLoad(Drawable arg0) {\n\r\n }", "@Override\n public void onLowMemory() {\n Log.d(TAG, TAG + \" onLowMemory\");\n }", "@Override\npublic void onStatusChanged(String provider, int status, Bundle extras) {\n\n}", "@Override\n public void onCreate() {\n\n }", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "public interface AndroidKeyMetastate {\n\n int META_ALT_LEFT_ON = 16;\n int META_ALT_ON = 2;\n int META_ALT_RIGHT_ON = 32;\n int META_CAPS_LOCK_ON = 1048576;\n int META_CTRL_LEFT_ON = 8192;\n int META_CTRL_ON = 4096;\n int META_CTRL_RIGHT_ON = 16384;\n int META_FUNCTION_ON = 8;\n int META_META_LEFT_ON = 131072;\n int META_META_ON = 65536;\n int META_META_RIGHT_ON = 262144;\n int META_NUM_LOCK_ON = 2097152;\n int META_SCROLL_LOCK_ON = 4194304;\n int META_SHIFT_LEFT_ON = 64;\n int META_SHIFT_ON = 1;\n int META_SHIFT_RIGHT_ON = 128;\n int META_SYM_ON = 4;\n}", "protected static boolean m3354e() {\n return Build.VERSION.SDK_INT >= 18;\n }", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\r\n public void onFinish() {\n }", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n\n }", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\r\n public void onGpsStatusChanged(int event) {\n\r\n }", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}", "static /* synthetic */ boolean m3-get3(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.widget.ColorListView.-get3(android.widget.ColorListView):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.-get3(android.widget.ColorListView):boolean\");\n }", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }", "@SuppressLint({\"NewApi\"})\n /* renamed from: a */\n public void mo7202a(AttributeSet attrs, int defStyleAttr) {\n AttributeSet attributeSet = attrs;\n int i = defStyleAttr;\n Context context = this.f2970a.getContext();\n C1096p drawableManager = C1096p.m5420a();\n C1112sb a = C1112sb.m5456a(context, attributeSet, C0793R.styleable.AppCompatTextHelper, i, 0);\n int ap = a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_textAppearance, -1);\n if (a.mo8660g(C0793R.styleable.AppCompatTextHelper_android_drawableLeft)) {\n this.f2971b = m4445a(context, drawableManager, a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_drawableLeft, 0));\n }\n if (a.mo8660g(C0793R.styleable.AppCompatTextHelper_android_drawableTop)) {\n this.f2972c = m4445a(context, drawableManager, a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_drawableTop, 0));\n }\n if (a.mo8660g(C0793R.styleable.AppCompatTextHelper_android_drawableRight)) {\n this.f2973d = m4445a(context, drawableManager, a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_drawableRight, 0));\n }\n if (a.mo8660g(C0793R.styleable.AppCompatTextHelper_android_drawableBottom)) {\n this.f2974e = m4445a(context, drawableManager, a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_drawableBottom, 0));\n }\n a.mo8647a();\n boolean hasPwdTm = this.f2970a.getTransformationMethod() instanceof PasswordTransformationMethod;\n boolean allCaps = false;\n boolean allCapsSet = false;\n ColorStateList textColor = null;\n ColorStateList textColorHint = null;\n ColorStateList textColorLink = null;\n if (ap != -1) {\n C1112sb a2 = C1112sb.m5454a(context, ap, C0793R.styleable.TextAppearance);\n if (!hasPwdTm && a2.mo8660g(C0793R.styleable.TextAppearance_textAllCaps)) {\n allCaps = a2.mo8648a(C0793R.styleable.TextAppearance_textAllCaps, false);\n allCapsSet = true;\n }\n m4446a(context, a2);\n if (VERSION.SDK_INT < 23) {\n if (a2.mo8660g(C0793R.styleable.TextAppearance_android_textColor)) {\n textColor = a2.mo8645a(C0793R.styleable.TextAppearance_android_textColor);\n }\n if (a2.mo8660g(C0793R.styleable.TextAppearance_android_textColorHint)) {\n textColorHint = a2.mo8645a(C0793R.styleable.TextAppearance_android_textColorHint);\n }\n if (a2.mo8660g(C0793R.styleable.TextAppearance_android_textColorLink)) {\n textColorLink = a2.mo8645a(C0793R.styleable.TextAppearance_android_textColorLink);\n }\n }\n a2.mo8647a();\n }\n C1112sb a3 = C1112sb.m5456a(context, attributeSet, C0793R.styleable.TextAppearance, i, 0);\n if (!hasPwdTm && a3.mo8660g(C0793R.styleable.TextAppearance_textAllCaps)) {\n allCapsSet = true;\n allCaps = a3.mo8648a(C0793R.styleable.TextAppearance_textAllCaps, false);\n }\n if (VERSION.SDK_INT < 23) {\n if (a3.mo8660g(C0793R.styleable.TextAppearance_android_textColor)) {\n textColor = a3.mo8645a(C0793R.styleable.TextAppearance_android_textColor);\n }\n if (a3.mo8660g(C0793R.styleable.TextAppearance_android_textColorHint)) {\n textColorHint = a3.mo8645a(C0793R.styleable.TextAppearance_android_textColorHint);\n }\n if (a3.mo8660g(C0793R.styleable.TextAppearance_android_textColorLink)) {\n textColorLink = a3.mo8645a(C0793R.styleable.TextAppearance_android_textColorLink);\n }\n }\n m4446a(context, a3);\n a3.mo8647a();\n if (textColor != null) {\n this.f2970a.setTextColor(textColor);\n }\n if (textColorHint != null) {\n this.f2970a.setHintTextColor(textColorHint);\n }\n if (textColorLink != null) {\n this.f2970a.setLinkTextColor(textColorLink);\n }\n if (!hasPwdTm && allCapsSet) {\n mo7203a(allCaps);\n }\n Typeface typeface = this.f2977h;\n if (typeface != null) {\n this.f2970a.setTypeface(typeface, this.f2976g);\n }\n this.f2975f.mo7329a(attributeSet, i);\n if (!C0687b.f2011a) {\n } else if (this.f2975f.mo7335f() != 0) {\n int[] autoSizeTextSizesInPx = this.f2975f.mo7334e();\n if (autoSizeTextSizesInPx.length <= 0) {\n } else if (((float) this.f2970a.getAutoSizeStepGranularity()) != -1.0f) {\n Context context2 = context;\n this.f2970a.setAutoSizeTextTypeUniformWithConfiguration(this.f2975f.mo7332c(), this.f2975f.mo7331b(), this.f2975f.mo7333d(), 0);\n } else {\n this.f2970a.setAutoSizeTextTypeUniformWithPresetSizes(autoSizeTextSizesInPx, 0);\n }\n }\n }", "private static String getSdkString() {\n\t\treturn null;\n\t}", "private static C2499b m9557c(Context context) {\n try {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new C2579j(\"getAndroidId cannot be called on the main thread.\");\n }\n Method a = C2479ad.m9434a(\"com.google.android.gms.common.GooglePlayServicesUtil\", \"isGooglePlayServicesAvailable\", (Class<?>[]) new Class[]{Context.class});\n if (a == null) {\n return null;\n }\n Object a2 = C2479ad.m9423a((Object) null, a, context);\n if (a2 instanceof Integer) {\n if (((Integer) a2).intValue() == 0) {\n Method a3 = C2479ad.m9434a(\"com.google.android.gms.ads.identifier.AdvertisingIdClient\", \"getAdvertisingIdInfo\", (Class<?>[]) new Class[]{Context.class});\n if (a3 == null) {\n return null;\n }\n Object a4 = C2479ad.m9423a((Object) null, a3, context);\n if (a4 == null) {\n return null;\n }\n Method a5 = C2479ad.m9433a(a4.getClass(), \"getId\", (Class<?>[]) new Class[0]);\n Method a6 = C2479ad.m9433a(a4.getClass(), \"isLimitAdTrackingEnabled\", (Class<?>[]) new Class[0]);\n if (a5 != null) {\n if (a6 != null) {\n C2499b bVar = new C2499b();\n bVar.f7871c = (String) C2479ad.m9423a(a4, a5, new Object[0]);\n bVar.f7873e = ((Boolean) C2479ad.m9423a(a4, a6, new Object[0])).booleanValue();\n return bVar;\n }\n }\n return null;\n }\n }\n return null;\n } catch (Exception e) {\n C2479ad.m9447a(\"android_id\", e);\n return null;\n }\n }", "static /* synthetic */ android.os.Handler m19-get1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler\");\n }", "public AndroidFactoryImpl() {\n\t\tsuper();\n\t}", "private void m5296a() {\n C2261g.m9760a(1052673, \"Android \" + VERSION.RELEASE);\n C2261g.m9760a(1052674, Build.BRAND);\n C2261g.m9760a(1052675, Build.MODEL);\n C2261g.m9760a(1056769, getResources().getConfiguration().locale.getCountry());\n C2261g.m9760a(1056770, getResources().getConfiguration().locale.getLanguage());\n C2261g.m9760a(1060865, m5297b());\n }", "public abstract String getAndroidPackage();", "public static boolean hasGingerbread() {\n\t\treturn Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD;\n\t}", "private static boolean m36214j(View view) {\n return VERSION.SDK_INT < 19 || view.getBackground() == null || view.getBackground().getAlpha() == 0;\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "@Override\r\n\tprotected void onPreExecute() {\n\t}", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public IBinder onBind(Intent intent) {\n\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "private Intent m34058e(Context context) {\n Intent intent = new Intent();\n String str = \"com.iqoo.secure\";\n intent.setClassName(str, \"com.iqoo.secure.ui.phoneoptimize.FloatWindowManager\");\n intent.putExtra(C7887a.f26868th, context.getPackageName());\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str, \"com.iqoo.secure.safeguard.SoftPermissionDetailActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "public static boolean m32282a(android.content.Context r6) {\n /*\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 0\n r2 = 20\n if (r0 <= r2) goto L_0x0047\n if (r6 != 0) goto L_0x000a\n goto L_0x0047\n L_0x000a:\n r0 = 0\n android.content.res.Resources r2 = r6.getResources() // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r3 = 2131100696(0x7f060418, float:1.781378E38)\n int r2 = r2.getColor(r3) // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r3 = 2\n int[] r3 = new int[r3] // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r3 = {16842904, 16842901} // fill-array // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r4 = 2131886387(0x7f120133, float:1.9407351E38)\n android.content.res.TypedArray r6 = r6.obtainStyledAttributes(r4, r3) // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n int r0 = r6.getColor(r1, r1) // Catch:{ Throwable -> 0x0043, all -> 0x0036 }\n if (r2 != r0) goto L_0x0030\n if (r6 == 0) goto L_0x002e\n r6.recycle() // Catch:{ Throwable -> 0x002e }\n L_0x002e:\n r6 = 1\n return r6\n L_0x0030:\n if (r6 == 0) goto L_0x0046\n L_0x0032:\n r6.recycle() // Catch:{ Throwable -> 0x0046 }\n goto L_0x0046\n L_0x0036:\n r0 = move-exception\n r5 = r0\n r0 = r6\n r6 = r5\n goto L_0x003c\n L_0x003b:\n r6 = move-exception\n L_0x003c:\n if (r0 == 0) goto L_0x0041\n r0.recycle() // Catch:{ Throwable -> 0x0041 }\n L_0x0041:\n throw r6\n L_0x0042:\n r6 = r0\n L_0x0043:\n if (r6 == 0) goto L_0x0046\n goto L_0x0032\n L_0x0046:\n return r1\n L_0x0047:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.ies.uikit.p578c.C11014a.m32282a(android.content.Context):boolean\");\n }", "@Override\n public void onCreate() {\n super.onCreate();\n setUSDK();\n }", "@Override\n\tpublic void onInitialize() {\n\t}", "static /* synthetic */ boolean m1-get1(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.widget.ColorListView.-get1(android.widget.ColorListView):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.-get1(android.widget.ColorListView):boolean\");\n }", "protected void onCreate() {\n }", "private String m21852a(Context context, String str) {\n try {\n Class loadClass = context.getClassLoader().loadClass(\"android.os.SystemProperties\");\n return (String) loadClass.getMethod(\"get\", new Class[]{String.class}).invoke(loadClass, new Object[]{str});\n } catch (Exception unused) {\n return null;\n }\n }", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"ERROR\",\"error aa gya\");\n }", "private I18nHelper() {\n\t\tfinal String langCode = Locale.getDefault().getISO3Language();\n\t\tthis.androidLang = SupportedLanguage\n\t\t\t\t.getSupportedLanguageFromIso3Code(langCode);\n\t}", "private static boolean m4017c() {\n String property = System.getProperty(\"java.runtime.name\");\n if (property == null) {\n return false;\n }\n return property.toLowerCase(Locale.US).contains(AlibcMiniTradeCommon.PF_ANDROID);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }", "void mo25261a(Context context);", "@TargetApi(Build.VERSION_CODES.M)\n private void checkBTPermissions() {\n if(Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP){\n int permissionCheck = this.checkSelfPermission(\"Manifest.permission.ACCESS_FINE_LOCATION\");\n permissionCheck += this.checkSelfPermission(\"Manifest.permission.ACCESS_COARSE_LOCATION\");\n if (permissionCheck != 0) {\n\n this.requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}, 1001); //Any number\n }\n }else{\n Log.d(TAG, \"checkBTPermissions: No need to check permissions. SDK version < LOLLIPOP.\");\n }\n }", "public final void m5407c() {\n Point point = new Point();\n WindowManager windowManager = this.f4261e.getWindowManager();\n C3250h.m9053a((Object) windowManager, \"activity.windowManager\");\n windowManager.getDefaultDisplay().getSize(point);\n Rect rect = new Rect();\n this.f4257a.getWindowVisibleDisplayFrame(rect);\n Resources resources = this.f4261e.getResources();\n C3250h.m9053a((Object) resources, \"activity.resources\");\n int i = resources.getConfiguration().orientation;\n int d = (point.y + m5408d()) - rect.bottom;\n C1426b.f4264a.mo6892b(d > 0 ? 1 : 0);\n if (d > 0) {\n C1426b.f4264a.mo6891a(d);\n }\n if (d != this.f4259c) {\n m5403a(d, i);\n }\n this.f4259c = d;\n }", "public String mo1081b() {\n return \"com.crashlytics.sdk.android:beta\";\n }", "static /* synthetic */ com.android.internal.telecom.IConnectionServiceAdapter m18-get0(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter\");\n }", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\n\t\t\t\t\t}", "private static int convertLegacyAwbMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int\");\n }", "@Override\n public void onFinished() {\n }", "@Override\n public void onFinished() {\n }", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}", "private static int convertLegacyAfMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAfMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAfMode(java.lang.String):int\");\n }", "@Override\n protected void onPreExecute() {\n }", "private static int getSdkInt() {\n\t\treturn 0;\n\t}", "private void findOsVersion() {\n\t\tisGBOrLower = AppUtility.isAndroidGBOrLower();\n\t\tisICSOrHigher = AppUtility.isAndroidICSOrHigher();\n\t}", "private void m9e() {\n String str;\n ApplicationInfo applicationInfo = getApplicationInfo();\n String str2 = applicationInfo.dataDir + \"/tx_shell\";\n f1b = applicationInfo.sourceDir;\n int i = VERSION.SDK_INT;\n Object obj = null;\n if (i >= 19) {\n if (i > 19) {\n String[] strArr = Build.SUPPORTED_64_BIT_ABIS;\n if (strArr != null && strArr.length > 1) {\n obj = 1;\n }\n } else if (new File(\"/system/lib64\").exists()) {\n obj = 1;\n }\n }\n String str3 = null;\n if (VERSION.SDK_INT < 21) {\n str3 = Build.CPU_ABI;\n }\n if ((str3 == null || str3.length() < 2) && VERSION.SDK_INT >= 21) {\n str3 = Build.SUPPORTED_ABIS[0];\n }\n Object obj2 = 1;\n if (str3.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n } else if (VERSION.SDK_INT >= 21) {\n String[] strArr2 = Build.SUPPORTED_ABIS;\n if (strArr2 != null) {\n for (String str4 : strArr2) {\n if (str4.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n }\n }\n }\n }\n Object obj3 = null;\n if (str3.toLowerCase(Locale.US).contains(\"mips\")) {\n obj3 = 1;\n }\n String str5 = VERSION.SDK_INT > 8 ? applicationInfo.nativeLibraryDir : \"/data/data/\" + mPKName + \"/lib\";\n String str6 = \"\";\n String str7 = \"\";\n String str8 = \"\";\n str8 = \"\";\n if (obj2 != null) {\n str4 = m10f() + \"-\" + m5c();\n } else {\n str4 = \"shellx-\" + m5c();\n str8 = m10f() + \"-\" + m5c();\n }\n str6 = str6 + \"lib\" + str4 + \".so\";\n str8 = str7 + \"lib\" + str8 + \".so\";\n File file = new File(str5 + \"/\" + str6);\n File file2 = new File(str2 + \"/\" + str8);\n if (obj2 == null && VERSION.SDK_INT < 19) {\n if (!file2.exists()) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str8) == 0) {\n if (ZipUtil.extract(f1b, \"lib/armeabi/\" + str8, str2 + \"/\" + str8) == 0) {\n }\n } else if (ZipUtil.extract(f1b, \"lib/armeabi-v7a/\" + str8, str2 + \"/\" + str8) == 0) {\n }\n }\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str2 + \"/\" + str8);\n System.load(str2 + \"/\" + str8);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if (file.exists()) {\n System.loadLibrary(str4);\n } else {\n str5 = \"\";\n str4 = str2 + \"/\" + str6;\n if (ZipUtil.exist(f1b, \"lib/\" + str3 + \"/\" + str6) == 0) {\n str5 = \"lib/\" + str3 + \"/\" + str6;\n } else if (obj != null) {\n if (obj2 == null) {\n if (VERSION.SDK_INT >= 21) {\n String[] strArr3 = Build.SUPPORTED_ABIS;\n r0 = \"\";\n if (strArr3 != null) {\n int i2 = 0;\n while (i2 < strArr3.length) {\n if (ZipUtil.exist(f1b, \"lib/\" + strArr3[i2].toLowerCase(Locale.US) + \"/\" + str8) == 0 || ZipUtil.exist(f1b, \"lib/\" + strArr3[i2].toLowerCase(Locale.US) + \"/\" + str6) == 0) {\n str3 = strArr3[i2].toLowerCase(Locale.US);\n obj = 1;\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else {\n if (str3.compareTo(\"arm64-v8a\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n }\n } else if (str3.compareTo(\"x86\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n }\n } else if (str3.compareTo(\"armeabi-v7a\") == 0 || str3.compareTo(\"armeabi\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str3 = str5;\n }\n if (VERSION.SDK_INT < 21 || r0 == null) {\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str5 = str3;\n } else {\n i2++;\n }\n }\n }\n }\n obj = null;\n str3 = str5;\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n str5 = str3;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str5 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str5 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str5 = \"lib/armeabi-v7a/\" + str6;\n }\n } else if (obj2 != null) {\n Object obj4;\n if (obj3 == null || ZipUtil.exist(f1b, \"lib/mips/\" + str6) != 0) {\n obj4 = null;\n r0 = str5;\n } else {\n obj4 = 1;\n r0 = \"lib/mips/\" + str6;\n }\n if (obj4 == null) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n r0 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n r0 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str5 = r0;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str5 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str5 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str5 = \"lib/armeabi-v7a/\" + str6;\n }\n if (ZipUtil.extract(f1b, str5, str4) == 0) {\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str4);\n System.load(str4);\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n }\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "private boolean m4b(Context context) {\n if (context == null) {\n return false;\n }\n f3d = context;\n mPKName = getBaseContext().getPackageName();\n ApplicationInfo applicationInfo = null;\n try {\n applicationInfo = context.getPackageManager().getApplicationInfo(mPKName, 128);\n } catch (NameNotFoundException e) {\n }\n if (applicationInfo == null) {\n return false;\n }\n mOldAPPName = applicationInfo.metaData.getString(\"TxAppEntry\");\n mSrcPath = f3d.getApplicationInfo().sourceDir;\n try {\n f6g = f3d.getPackageManager().getPackageInfo(mPKName, 0).versionName;\n } catch (Exception e2) {\n }\n mVerFilePath = \"/data/data/\";\n mVerFilePath += mPKName;\n mVerFilePath += \"/tx_shell/\";\n f0a = mVerFilePath;\n File file = new File(mVerFilePath);\n if (!file.exists()) {\n file.mkdir();\n }\n f4e = mVerFilePath + \"libshella.so\";\n f5f = mVerFilePath + \"libshellb.so\";\n mSocPath = mVerFilePath + \"libshellc.so\";\n mVerFilePath += m11g();\n return true;\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private java.lang.String getTypeString() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f0 in method: android.location.GpsClock.getTypeString():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getTypeString():java.lang.String\");\n }", "private void m81851o() {\n SupportSystemBarFragment supportSystemBarFragment = this.f58069a;\n if (supportSystemBarFragment != null && (supportSystemBarFragment.getActivity() instanceof IMainActivity)) {\n ((IMainActivity) this.f58069a.getActivity()).mo79110a(this.f58077i, false);\n }\n }", "public boolean isCompatible(android.renderscript.Element e) { throw new RuntimeException(\"Stub!\"); }", "@Override\n public int targetDevice() {\n return 0;\n }", "@Override\n public void onLowMemory() {\n \tsuper.onLowMemory();\n }" ]
[ "0.5901667", "0.58170867", "0.5707641", "0.5588641", "0.5538828", "0.5508973", "0.5484112", "0.5479452", "0.54759467", "0.5441436", "0.5409972", "0.539688", "0.5374809", "0.53489876", "0.53424126", "0.53424126", "0.533854", "0.5337525", "0.53185487", "0.53184056", "0.53170615", "0.5299984", "0.52961576", "0.528813", "0.5284175", "0.52817607", "0.5278838", "0.5266132", "0.5262759", "0.5250843", "0.5249593", "0.5240578", "0.52283794", "0.52276564", "0.52175105", "0.5217331", "0.5215525", "0.52120227", "0.52100044", "0.52045655", "0.5196727", "0.5195866", "0.5185887", "0.5182601", "0.51808", "0.51808", "0.51795375", "0.517095", "0.517095", "0.5159687", "0.5158674", "0.5157277", "0.5153558", "0.5141137", "0.5139426", "0.51301414", "0.5128728", "0.51267827", "0.5126039", "0.5125967", "0.51225305", "0.511705", "0.5106373", "0.51049846", "0.51008785", "0.5099556", "0.50974005", "0.50955206", "0.50932056", "0.5092542", "0.5091952", "0.50911146", "0.50906146", "0.50880367", "0.50873536", "0.5085844", "0.50833446", "0.5083185", "0.50823015", "0.508091", "0.50713414", "0.5071254", "0.5069819", "0.5061622", "0.5061622", "0.50607437", "0.50607437", "0.50521815", "0.50517064", "0.50488794", "0.50452894", "0.5044257", "0.5043635", "0.5043635", "0.50424594", "0.50377697", "0.50351226", "0.5033047", "0.5032083", "0.50299203", "0.5029508" ]
0.0
-1
For Android > 4.1.1
public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture) { LOG("MyWebChromeClient openFileChooser >4.1"); openFileChooser(uploadMsg, acceptType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "android.view.View mo12148b();", "public Lollipop() {\r\n\t\t}", "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 61;BA.debugLine=\"utilidades.ResetUserFontScale(Activity)\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv0 /*String*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(mostCurrent._activity.getObject())));\n //BA.debugLineNum = 62;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private static String m35239a(Context context) {\n try {\n return context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;\n } catch (NameNotFoundException unused) {\n return null;\n }\n }", "private boolean m21857b() {\n return Build.FINGERPRINT.startsWith(\"generic\") || Build.MODEL.contains(\"google_sdk\") || Build.MODEL.toLowerCase().contains(\"droid4x\") || Build.MODEL.contains(\"Emulator\") || Build.MODEL.contains(\"Android SDK built for\") || Build.MANUFACTURER.contains(\"Genymotion\") || Build.HARDWARE.equals(\"goldfish\") || Build.HARDWARE.equals(\"vbox86\") || Build.PRODUCT.equals(\"sdk\") || Build.PRODUCT.equals(\"google_sdk\") || Build.PRODUCT.equals(\"sdk_x86\") || Build.PRODUCT.equals(\"vbox86p\") || Build.BOARD.toLowerCase().contains(\"nox\") || Build.BOOTLOADER.toLowerCase().contains(\"nox\") || Build.HARDWARE.toLowerCase().contains(\"nox\") || Build.PRODUCT.toLowerCase().contains(\"nox\") || Build.SERIAL.toLowerCase().contains(\"nox\") || Build.FINGERPRINT.startsWith(\"unknown\") || Build.FINGERPRINT.contains(\"Andy\") || Build.FINGERPRINT.contains(\"ttVM_Hdragon\") || Build.FINGERPRINT.contains(\"vbox86p\") || Build.HARDWARE.contains(\"ttVM_x86\") || Build.MODEL.equals(\"sdk\") || Build.MODEL.contains(\"Droid4X\") || Build.MODEL.contains(\"TiantianVM\") || Build.MODEL.contains(\"Andy\") || (Build.BRAND.startsWith(\"generic\") && Build.DEVICE.startsWith(\"generic\"));\n }", "private final void m118784a(Context context) {\n setKeyListener(DigitsKeyListener.getInstance(\"1234567890 \"));\n setSingleLine();\n m118789x();\n int i = Build.VERSION.SDK_INT;\n setTextDirection(3);\n mo71915a(this.f152275t);\n mo71925b(new bkhk(this));\n String string = context.getString(C0126R.string.wallet_uic_error_card_number_invalid);\n mo71925b(new bkhl(this, string));\n mo65972a((bkgj) new bkhm(this, string));\n int[] iArr = {C0126R.attr.uicInvalidCardNumberShakeAnimationEnabled, C0126R.attr.uicShowCardDropDownAfterDelay};\n Arrays.sort(iArr);\n TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(iArr);\n this.f152261f = obtainStyledAttributes.getBoolean(Arrays.binarySearch(iArr, (int) C0126R.attr.uicInvalidCardNumberShakeAnimationEnabled), false);\n this.f152262g = obtainStyledAttributes.getBoolean(Arrays.binarySearch(iArr, (int) C0126R.attr.uicShowCardDropDownAfterDelay), false);\n obtainStyledAttributes.recycle();\n }", "@Override\n public int getMinSupportedApiLevel() {\n return Build.VERSION_CODES.M;\n }", "private static String m4387a() {\n String str;\n String str2 = \"\";\n try {\n Class cls = Class.forName(\"android.os.SystemProperties\");\n Method method = cls.getMethod(\"get\", new Class[]{String.class});\n if (method != null) {\n if (((String) method.invoke(cls.newInstance(), new Object[]{\"telephony.lteOnCdmaDevice\"})).equals(\"1\")) {\n Method method2 = Class.forName(\"com.huawei.android.hwnv.HWNVFuncation\").getMethod(\"getNVIMEI\", new Class[0]);\n if (method2 == null) {\n return str2;\n }\n method2.setAccessible(true);\n str = (String) method2.invoke(null, new Object[0]);\n return str;\n }\n }\n } catch (Throwable th) {\n }\n str = str2;\n return str;\n }", "@Override\r\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\tversion = util.checkVersion(\"http://m.fx678.com/Upgrade.aspx?ver=YINGRUYI_ANDROID_V1.0.1\");\r\n\r\n\t\t\treturn null;\r\n\t\t}", "public static boolean isAndroidL() {\n\t\treturn android.os.Build.VERSION.SDK_INT >= 21;\n\t}", "MultiChoiceModeCallbackWrapper(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.ColorListView.MultiChoiceModeCallbackWrapper.<init>(android.widget.ColorListView):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.MultiChoiceModeCallbackWrapper.<init>(android.widget.ColorListView):void\");\n }", "private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }", "public void getPrefrenceforSpinner() {\n SharedPreferences spinnerPrefs;\n if (android.os.Build.VERSION.SDK_INT > Build.VERSION_CODES.M){\n // Do something for M above versions\n spinnerPrefs = this.getSharedPreferences(\"spinnerPrefs\",\n MODE_PRIVATE);\n getPreRefranceFromSaveprefreance(spinnerPrefs); //back user\n\n } else{\n spinnerPrefs = this.getSharedPreferences(\"spinnerPrefs\",\n MODE_WORLD_READABLE);\n getPreRefranceFromSaveprefreance(spinnerPrefs);\n // do something for phones running an SDK before lollipop\n\n }\n\n }", "private String m5297b() {\n String str = \"\";\n try {\n return getPackageManager().getPackageInfo(getPackageName(), 0).versionName;\n } catch (NameNotFoundException e) {\n e.printStackTrace();\n return str;\n }\n }", "private static C2499b m9557c(Context context) {\n try {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new C2579j(\"getAndroidId cannot be called on the main thread.\");\n }\n Method a = C2479ad.m9434a(\"com.google.android.gms.common.GooglePlayServicesUtil\", \"isGooglePlayServicesAvailable\", (Class<?>[]) new Class[]{Context.class});\n if (a == null) {\n return null;\n }\n Object a2 = C2479ad.m9423a((Object) null, a, context);\n if (a2 instanceof Integer) {\n if (((Integer) a2).intValue() == 0) {\n Method a3 = C2479ad.m9434a(\"com.google.android.gms.ads.identifier.AdvertisingIdClient\", \"getAdvertisingIdInfo\", (Class<?>[]) new Class[]{Context.class});\n if (a3 == null) {\n return null;\n }\n Object a4 = C2479ad.m9423a((Object) null, a3, context);\n if (a4 == null) {\n return null;\n }\n Method a5 = C2479ad.m9433a(a4.getClass(), \"getId\", (Class<?>[]) new Class[0]);\n Method a6 = C2479ad.m9433a(a4.getClass(), \"isLimitAdTrackingEnabled\", (Class<?>[]) new Class[0]);\n if (a5 != null) {\n if (a6 != null) {\n C2499b bVar = new C2499b();\n bVar.f7871c = (String) C2479ad.m9423a(a4, a5, new Object[0]);\n bVar.f7873e = ((Boolean) C2479ad.m9423a(a4, a6, new Object[0])).booleanValue();\n return bVar;\n }\n }\n return null;\n }\n }\n return null;\n } catch (Exception e) {\n C2479ad.m9447a(\"android_id\", e);\n return null;\n }\n }", "AndroidFactory getAndroidFactory();", "static int m61445c(Context context) {\n boolean z;\n ActivityManager activityManager = (ActivityManager) m61431a(context, \"activity\");\n if ((context.getApplicationInfo().flags & 1048576) != 0) {\n z = true;\n } else {\n z = false;\n }\n int memoryClass = activityManager.getMemoryClass();\n if (z && VERSION.SDK_INT >= 11) {\n memoryClass = C18809a.m61448a(activityManager);\n }\n return (memoryClass * 1048576) / 7;\n }", "public static String m21397c(Context context) {\n if (TextUtils.isEmpty(f16892c)) {\n try {\n f16892c = VERSION.SDK_INT >= 17 ? WebSettings.getDefaultUserAgent(context) : m21385a();\n } catch (Throwable unused) {\n f16892c = m21385a();\n }\n }\n return f16892c;\n }", "@Override\n\tprotected void onCreate() {\n\t}", "private boolean m4b(Context context) {\n if (context == null) {\n return false;\n }\n f3d = context;\n mPKName = getBaseContext().getPackageName();\n ApplicationInfo applicationInfo = null;\n try {\n applicationInfo = context.getPackageManager().getApplicationInfo(mPKName, 128);\n } catch (NameNotFoundException e) {\n }\n if (applicationInfo == null) {\n return false;\n }\n mOldAPPName = applicationInfo.metaData.getString(\"TxAppEntry\");\n mSrcPath = f3d.getApplicationInfo().sourceDir;\n try {\n f6g = f3d.getPackageManager().getPackageInfo(mPKName, 0).versionName;\n } catch (Exception e2) {\n }\n mVerFilePath = \"/data/data/\";\n mVerFilePath += mPKName;\n mVerFilePath += \"/tx_shell/\";\n f0a = mVerFilePath;\n File file = new File(mVerFilePath);\n if (!file.exists()) {\n file.mkdir();\n }\n f4e = mVerFilePath + \"libshella.so\";\n f5f = mVerFilePath + \"libshellb.so\";\n mSocPath = mVerFilePath + \"libshellc.so\";\n mVerFilePath += m11g();\n return true;\n }", "protected static boolean m3354e() {\n return Build.VERSION.SDK_INT >= 18;\n }", "public final void m5407c() {\n Point point = new Point();\n WindowManager windowManager = this.f4261e.getWindowManager();\n C3250h.m9053a((Object) windowManager, \"activity.windowManager\");\n windowManager.getDefaultDisplay().getSize(point);\n Rect rect = new Rect();\n this.f4257a.getWindowVisibleDisplayFrame(rect);\n Resources resources = this.f4261e.getResources();\n C3250h.m9053a((Object) resources, \"activity.resources\");\n int i = resources.getConfiguration().orientation;\n int d = (point.y + m5408d()) - rect.bottom;\n C1426b.f4264a.mo6892b(d > 0 ? 1 : 0);\n if (d > 0) {\n C1426b.f4264a.mo6891a(d);\n }\n if (d != this.f4259c) {\n m5403a(d, i);\n }\n this.f4259c = d;\n }", "protected void onFirstUse() {}", "private void m5296a() {\n C2261g.m9760a(1052673, \"Android \" + VERSION.RELEASE);\n C2261g.m9760a(1052674, Build.BRAND);\n C2261g.m9760a(1052675, Build.MODEL);\n C2261g.m9760a(1056769, getResources().getConfiguration().locale.getCountry());\n C2261g.m9760a(1056770, getResources().getConfiguration().locale.getLanguage());\n C2261g.m9760a(1060865, m5297b());\n }", "@Override\n public void onPostInit()\n {\n\n }", "private static String getSdkString() {\n\t\treturn null;\n\t}", "@Override\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\r\n }", "private String m21852a(Context context, String str) {\n try {\n Class loadClass = context.getClassLoader().loadClass(\"android.os.SystemProperties\");\n return (String) loadClass.getMethod(\"get\", new Class[]{String.class}).invoke(loadClass, new Object[]{str});\n } catch (Exception unused) {\n return null;\n }\n }", "static /* synthetic */ int m0-get0(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.ColorListView.-get0(android.widget.ColorListView):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.-get0(android.widget.ColorListView):int\");\n }", "private static android.hardware.camera2.impl.CameraMetadataNative convertResultMetadata(android.hardware.camera2.legacy.LegacyRequest r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertResultMetadata(android.hardware.camera2.legacy.LegacyRequest):android.hardware.camera2.impl.CameraMetadataNative, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertResultMetadata(android.hardware.camera2.legacy.LegacyRequest):android.hardware.camera2.impl.CameraMetadataNative\");\n }", "public static String m573d(Context context) {\r\n if (context == null) {\r\n return null;\r\n }\r\n try {\r\n String b;\r\n SensorManager sensorManager = (SensorManager) context.getSystemService(\"sensor\");\r\n if (sensorManager != null) {\r\n List<Sensor> sensorList = sensorManager.getSensorList(-1);\r\n if (sensorList != null && sensorList.size() > 0) {\r\n StringBuilder stringBuilder = new StringBuilder();\r\n for (Sensor sensor : sensorList) {\r\n stringBuilder.append(sensor.getName());\r\n stringBuilder.append(sensor.getVersion());\r\n stringBuilder.append(sensor.getVendor());\r\n }\r\n b = C0159a.m558b(stringBuilder.toString());\r\n return b;\r\n }\r\n }\r\n b = null;\r\n return b;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "private static int getSdkInt() {\n\t\treturn 0;\n\t}", "private Intent m34058e(Context context) {\n Intent intent = new Intent();\n String str = \"com.iqoo.secure\";\n intent.setClassName(str, \"com.iqoo.secure.ui.phoneoptimize.FloatWindowManager\");\n intent.putExtra(C7887a.f26868th, context.getPackageName());\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str, \"com.iqoo.secure.safeguard.SoftPermissionDetailActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "static /* synthetic */ android.os.Handler m19-get1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler\");\n }", "private static String getUserAgent() {\n return \"FBAndroidSDK\";\n }", "private static boolean m4017c() {\n String property = System.getProperty(\"java.runtime.name\");\n if (property == null) {\n return false;\n }\n return property.toLowerCase(Locale.US).contains(AlibcMiniTradeCommon.PF_ANDROID);\n }", "public abstract String getAndroidPackage();", "private static int convertLegacyAfMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAfMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAfMode(java.lang.String):int\");\n }", "private static int convertLegacyAwbMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int\");\n }", "public String mo1081b() {\n return \"com.crashlytics.sdk.android:beta\";\n }", "private void findOsVersion() {\n\t\tisGBOrLower = AppUtility.isAndroidGBOrLower();\n\t\tisICSOrHigher = AppUtility.isAndroidICSOrHigher();\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "public String androidVersion() {\n\t\t \n\t\t String release = Build.VERSION.RELEASE;\n\t\t int sdkVersion = Build.VERSION.SDK_INT;\n\t\t return \"Android SDK: \" + sdkVersion + \" (\" + release +\")\";\n\t\t \n\t\t}", "static C0928F m4444a(TextView textView) {\n if (VERSION.SDK_INT >= 17) {\n return new C0931G(textView);\n }\n return new C0928F(textView);\n }", "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }", "@Override\n public void onCreate() {\n }", "@Override\n public void onCreateFailure(String s) {\n }", "@Override\n public void onCreateFailure(String s) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }", "java.lang.String getAndroidKtxVersion();", "public interface AndroidKeyMetastate {\n\n int META_ALT_LEFT_ON = 16;\n int META_ALT_ON = 2;\n int META_ALT_RIGHT_ON = 32;\n int META_CAPS_LOCK_ON = 1048576;\n int META_CTRL_LEFT_ON = 8192;\n int META_CTRL_ON = 4096;\n int META_CTRL_RIGHT_ON = 16384;\n int META_FUNCTION_ON = 8;\n int META_META_LEFT_ON = 131072;\n int META_META_ON = 65536;\n int META_META_RIGHT_ON = 262144;\n int META_NUM_LOCK_ON = 2097152;\n int META_SCROLL_LOCK_ON = 4194304;\n int META_SHIFT_LEFT_ON = 64;\n int META_SHIFT_ON = 1;\n int META_SHIFT_RIGHT_ON = 128;\n int META_SYM_ON = 4;\n}", "public boolean mo37b(Context context) {\n try {\n PackageInfo packageInfo = context.getPackageManager().getPackageInfo(\"com.heytap.openid\", 0);\n if (Build.VERSION.SDK_INT >= 28) {\n if (packageInfo == null || packageInfo.getLongVersionCode() < 1) {\n return false;\n }\n return true;\n } else if (packageInfo == null || packageInfo.versionCode < 1) {\n return false;\n } else {\n return true;\n }\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n return false;\n }\n }", "@Override\r\n public void onPrepareLoad(Drawable arg0) {\n\r\n }", "private final boolean m110458as() {\n String str;\n String str2;\n if (this.f89205aX == null || this.f89207aZ == null || this.f89210bb == null || this.f89209ba == null || !C25352e.m83221d(this.f77546j)) {\n return false;\n }\n this.f89212bd = (RelativeLayout) this.itemView.findViewById(R.id.eh4);\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n if (aweme.isAppAd() && DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n return false;\n }\n this.f89204aW = true;\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n String str3 = null;\n if (aweme2.isAppAd()) {\n Context ab = mo75261ab();\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme3.getAwemeRawAd();\n if (awemeRawAd != null) {\n str2 = awemeRawAd.getCreativeIdStr();\n } else {\n str2 = null;\n }\n String str4 = \"bg_download_button\";\n Aweme aweme4 = this.f77546j;\n C7573i.m23582a((Object) aweme4, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme4.getAwemeRawAd();\n if (awemeRawAd2 != null) {\n str3 = awemeRawAd2.getLogExtra();\n }\n C24976t.m82210e(ab, str2, str4, str3);\n } else {\n Context ab2 = mo75261ab();\n Aweme aweme5 = this.f77546j;\n C7573i.m23582a((Object) aweme5, \"mAweme\");\n AwemeRawAd awemeRawAd3 = aweme5.getAwemeRawAd();\n if (awemeRawAd3 != null) {\n str = awemeRawAd3.getCreativeIdStr();\n } else {\n str = null;\n }\n String str5 = \"bg_more_button\";\n Aweme aweme6 = this.f77546j;\n C7573i.m23582a((Object) aweme6, \"mAweme\");\n AwemeRawAd awemeRawAd4 = aweme6.getAwemeRawAd();\n if (awemeRawAd4 != null) {\n str3 = awemeRawAd4.getLogExtra();\n }\n C24976t.m82210e(ab2, str, str5, str3);\n }\n LinearLayout linearLayout = this.f89205aX;\n if (linearLayout != null) {\n linearLayout.setAlpha(0.0f);\n }\n RelativeLayout relativeLayout = this.f89212bd;\n if (relativeLayout != null) {\n relativeLayout.setAlpha(1.0f);\n }\n RelativeLayout relativeLayout2 = this.f89212bd;\n if (relativeLayout2 != null) {\n ViewPropertyAnimator animate = relativeLayout2.animate();\n if (animate != null) {\n ViewPropertyAnimator alpha = animate.alpha(0.0f);\n if (alpha != null) {\n ViewPropertyAnimator duration = alpha.setDuration(150);\n if (duration != null) {\n ViewPropertyAnimator withEndAction = duration.withEndAction(new C34221o(this));\n if (withEndAction != null) {\n withEndAction.start();\n }\n }\n }\n }\n }\n C28418f a = C28418f.m93413a();\n C7573i.m23582a((Object) a, \"FeedSharePlayInfoHelper.inst()\");\n a.f74934d = true;\n C28418f a2 = C28418f.m93413a();\n C7573i.m23582a((Object) a2, \"FeedSharePlayInfoHelper.inst()\");\n a2.f74935e = true;\n return true;\n }", "@SuppressLint({\"NewApi\"})\n /* renamed from: a */\n public void mo7202a(AttributeSet attrs, int defStyleAttr) {\n AttributeSet attributeSet = attrs;\n int i = defStyleAttr;\n Context context = this.f2970a.getContext();\n C1096p drawableManager = C1096p.m5420a();\n C1112sb a = C1112sb.m5456a(context, attributeSet, C0793R.styleable.AppCompatTextHelper, i, 0);\n int ap = a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_textAppearance, -1);\n if (a.mo8660g(C0793R.styleable.AppCompatTextHelper_android_drawableLeft)) {\n this.f2971b = m4445a(context, drawableManager, a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_drawableLeft, 0));\n }\n if (a.mo8660g(C0793R.styleable.AppCompatTextHelper_android_drawableTop)) {\n this.f2972c = m4445a(context, drawableManager, a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_drawableTop, 0));\n }\n if (a.mo8660g(C0793R.styleable.AppCompatTextHelper_android_drawableRight)) {\n this.f2973d = m4445a(context, drawableManager, a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_drawableRight, 0));\n }\n if (a.mo8660g(C0793R.styleable.AppCompatTextHelper_android_drawableBottom)) {\n this.f2974e = m4445a(context, drawableManager, a.mo8659g(C0793R.styleable.AppCompatTextHelper_android_drawableBottom, 0));\n }\n a.mo8647a();\n boolean hasPwdTm = this.f2970a.getTransformationMethod() instanceof PasswordTransformationMethod;\n boolean allCaps = false;\n boolean allCapsSet = false;\n ColorStateList textColor = null;\n ColorStateList textColorHint = null;\n ColorStateList textColorLink = null;\n if (ap != -1) {\n C1112sb a2 = C1112sb.m5454a(context, ap, C0793R.styleable.TextAppearance);\n if (!hasPwdTm && a2.mo8660g(C0793R.styleable.TextAppearance_textAllCaps)) {\n allCaps = a2.mo8648a(C0793R.styleable.TextAppearance_textAllCaps, false);\n allCapsSet = true;\n }\n m4446a(context, a2);\n if (VERSION.SDK_INT < 23) {\n if (a2.mo8660g(C0793R.styleable.TextAppearance_android_textColor)) {\n textColor = a2.mo8645a(C0793R.styleable.TextAppearance_android_textColor);\n }\n if (a2.mo8660g(C0793R.styleable.TextAppearance_android_textColorHint)) {\n textColorHint = a2.mo8645a(C0793R.styleable.TextAppearance_android_textColorHint);\n }\n if (a2.mo8660g(C0793R.styleable.TextAppearance_android_textColorLink)) {\n textColorLink = a2.mo8645a(C0793R.styleable.TextAppearance_android_textColorLink);\n }\n }\n a2.mo8647a();\n }\n C1112sb a3 = C1112sb.m5456a(context, attributeSet, C0793R.styleable.TextAppearance, i, 0);\n if (!hasPwdTm && a3.mo8660g(C0793R.styleable.TextAppearance_textAllCaps)) {\n allCapsSet = true;\n allCaps = a3.mo8648a(C0793R.styleable.TextAppearance_textAllCaps, false);\n }\n if (VERSION.SDK_INT < 23) {\n if (a3.mo8660g(C0793R.styleable.TextAppearance_android_textColor)) {\n textColor = a3.mo8645a(C0793R.styleable.TextAppearance_android_textColor);\n }\n if (a3.mo8660g(C0793R.styleable.TextAppearance_android_textColorHint)) {\n textColorHint = a3.mo8645a(C0793R.styleable.TextAppearance_android_textColorHint);\n }\n if (a3.mo8660g(C0793R.styleable.TextAppearance_android_textColorLink)) {\n textColorLink = a3.mo8645a(C0793R.styleable.TextAppearance_android_textColorLink);\n }\n }\n m4446a(context, a3);\n a3.mo8647a();\n if (textColor != null) {\n this.f2970a.setTextColor(textColor);\n }\n if (textColorHint != null) {\n this.f2970a.setHintTextColor(textColorHint);\n }\n if (textColorLink != null) {\n this.f2970a.setLinkTextColor(textColorLink);\n }\n if (!hasPwdTm && allCapsSet) {\n mo7203a(allCaps);\n }\n Typeface typeface = this.f2977h;\n if (typeface != null) {\n this.f2970a.setTypeface(typeface, this.f2976g);\n }\n this.f2975f.mo7329a(attributeSet, i);\n if (!C0687b.f2011a) {\n } else if (this.f2975f.mo7335f() != 0) {\n int[] autoSizeTextSizesInPx = this.f2975f.mo7334e();\n if (autoSizeTextSizesInPx.length <= 0) {\n } else if (((float) this.f2970a.getAutoSizeStepGranularity()) != -1.0f) {\n Context context2 = context;\n this.f2970a.setAutoSizeTextTypeUniformWithConfiguration(this.f2975f.mo7332c(), this.f2975f.mo7331b(), this.f2975f.mo7333d(), 0);\n } else {\n this.f2970a.setAutoSizeTextTypeUniformWithPresetSizes(autoSizeTextSizesInPx, 0);\n }\n }\n }", "@Override\n public void onEnabled(Context context) {\n\n\n }", "public String getCompatibilityVersion() {\r\n return \"2\";\r\n }", "@Override\npublic void onStatusChanged(String provider, int status, Bundle extras) {\n\n}", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n\n }", "@Override\n public void onFinish() {\n }", "private void getphoneinformaition() {\n\t\ttry {\n\t\t\tsoftVersion = this.getPackageManager().getPackageInfo(\n\t\t\t\t\tthis.getPackageName(), 0).versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\tsoftVersion = \"NULL\";\n\t\t}\n\n\t\tif (Build.BRAND != null) {\n\t\t\tphoneBrand = Build.BRAND;\n\t\t}\n\t\tif (Build.MODEL != null) {\n\t\t\tphoneModel = Build.MODEL;\n\t\t}\n\t\tif (Build.VERSION.RELEASE != null) {\n\t\t\tphoneOs = Build.VERSION.RELEASE;\n\t\t}\n\n\t\ttry {\n\t\t\tDisplayMetrics metric = new DisplayMetrics();\n\t\t\tgetWindowManager().getDefaultDisplay().getMetrics(metric);\n\t\t\tint width = metric.widthPixels; // 屏幕宽度(像素)\n\t\t\tint height = metric.heightPixels; // 屏幕高度(像素)\n\t\t\tString w = String.valueOf(width);\n\t\t\tString h = String.valueOf(height);\n\t\t\tStringBuffer s = new StringBuffer();\n\t\t\ts.append(w);\n\t\t\ts.append(\"*\");\n\t\t\ts.append(h);\n\t\t\tphoneResolution = s.toString();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tphoneResolution = \"NULL\";\n\t\t}\n\n\t\tFileLog.i(TAG, softVersion);\n\t\tFileLog.i(TAG, phoneBrand);\n\t\tFileLog.i(TAG, phoneModel);\n\t\tFileLog.i(TAG, phoneOs);\n\t\tFileLog.i(TAG, phoneResolution);\n\n\t}", "public static boolean m32282a(android.content.Context r6) {\n /*\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 0\n r2 = 20\n if (r0 <= r2) goto L_0x0047\n if (r6 != 0) goto L_0x000a\n goto L_0x0047\n L_0x000a:\n r0 = 0\n android.content.res.Resources r2 = r6.getResources() // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r3 = 2131100696(0x7f060418, float:1.781378E38)\n int r2 = r2.getColor(r3) // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r3 = 2\n int[] r3 = new int[r3] // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r3 = {16842904, 16842901} // fill-array // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r4 = 2131886387(0x7f120133, float:1.9407351E38)\n android.content.res.TypedArray r6 = r6.obtainStyledAttributes(r4, r3) // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n int r0 = r6.getColor(r1, r1) // Catch:{ Throwable -> 0x0043, all -> 0x0036 }\n if (r2 != r0) goto L_0x0030\n if (r6 == 0) goto L_0x002e\n r6.recycle() // Catch:{ Throwable -> 0x002e }\n L_0x002e:\n r6 = 1\n return r6\n L_0x0030:\n if (r6 == 0) goto L_0x0046\n L_0x0032:\n r6.recycle() // Catch:{ Throwable -> 0x0046 }\n goto L_0x0046\n L_0x0036:\n r0 = move-exception\n r5 = r0\n r0 = r6\n r6 = r5\n goto L_0x003c\n L_0x003b:\n r6 = move-exception\n L_0x003c:\n if (r0 == 0) goto L_0x0041\n r0.recycle() // Catch:{ Throwable -> 0x0041 }\n L_0x0041:\n throw r6\n L_0x0042:\n r6 = r0\n L_0x0043:\n if (r6 == 0) goto L_0x0046\n goto L_0x0032\n L_0x0046:\n return r1\n L_0x0047:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.ies.uikit.p578c.C11014a.m32282a(android.content.Context):boolean\");\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:49.373 -0500\", hash_original_method = \"CA274FB7382FEC7F97EB63B9F7E3C908\", hash_generated_method = \"14E7E8847785C3993C70952BF3691E2F\")\n \npublic static com.android.internal.textservice.ITextServicesManager asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.android.internal.textservice.ITextServicesManager))) {\nreturn ((com.android.internal.textservice.ITextServicesManager)iin);\n}\nreturn new com.android.internal.textservice.ITextServicesManager.Stub.Proxy(obj);\n}", "@Override\n public void onFinish() {\n }", "public static boolean hasGingerbread() {\n\t\treturn Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD;\n\t}", "static /* synthetic */ com.android.internal.telecom.IConnectionServiceAdapter m18-get0(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter\");\n }", "boolean hasAndroidKtxVersion();", "public static boolean isHoneycomb()\n {\n return Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB;\n }", "static /* synthetic */ boolean m1-get1(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.widget.ColorListView.-get1(android.widget.ColorListView):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.-get1(android.widget.ColorListView):boolean\");\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n ScannerView = new ZXingScannerView(this);\n setContentView(ScannerView);\n\n int currApi = Build.VERSION.SDK_INT;\n\n if(currApi >= Build.VERSION_CODES.M){\n /*\n if(checkPermission()){\n Toast.makeText(getApplicationContext(),\"Permission Granted\", Toast.LENGTH_LONG).show();\n }\n else{\n requestPermission();\n }*/\n if(!checkPermission()){\n requestPermission();\n }\n }\n }", "public static HashSet<String> m4388a(Context context) {\n int i = 0;\n HashSet<String> hashSet = new HashSet();\n String str = Build.MODEL;\n Build.BRAND.toLowerCase().trim();\n try {\n String deviceId;\n Class cls;\n Field field;\n int parseInt;\n Field field2;\n String trim;\n Class cls2;\n Method method;\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n if (telephonyManager != null) {\n deviceId = (context.getPackageManager().checkPermission(\"android.permission.READ_PHONE_STATE\", context.getPackageName()) == 0 ? 1 : i) != 0 ? telephonyManager.getDeviceId() : null;\n } else {\n deviceId = null;\n }\n if (deviceId != null && deviceId.indexOf(\"0000000000\") >= 0) {\n deviceId = \"\";\n }\n if (!(deviceId == null || deviceId == \"\")) {\n hashSet.add(deviceId + \"|z1\");\n }\n try {\n int parseInt2;\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n cls = Class.forName(\"com.android.internal.telephony.Phone\");\n try {\n field = cls.getField(\"GEMINI_SIM_1\");\n field.setAccessible(true);\n parseInt = Integer.parseInt(field.get(null).toString());\n field2 = cls.getField(\"GEMINI_SIM_2\");\n field2.setAccessible(true);\n parseInt2 = Integer.parseInt(field2.get(null).toString());\n } catch (Throwable th) {\n parseInt = i;\n parseInt2 = 1;\n }\n Method declaredMethod = TelephonyManager.class.getDeclaredMethod(\"getDeviceIdGemini\", new Class[]{Integer.TYPE});\n trim = ((String) declaredMethod.invoke(telephonyManager, new Object[]{Integer.valueOf(parseInt)})).trim();\n deviceId = ((String) declaredMethod.invoke(telephonyManager, new Object[]{Integer.valueOf(parseInt2)})).trim();\n if (!(hashSet.contains(trim) || trim == null || trim.indexOf(\"0000000000\") != -1)) {\n hashSet.add(trim + \"|a1\");\n }\n if (!(hashSet.contains(deviceId) || deviceId == null || deviceId.indexOf(\"0000000000\") != -1)) {\n hashSet.add(deviceId + \"|a2\");\n }\n } catch (Throwable th2) {\n }\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n cls = Class.forName(\"com.android.internal.telephony.Phone\");\n try {\n field = cls.getField(\"GEMINI_SIM_1\");\n field.setAccessible(true);\n parseInt = Integer.parseInt(field.get(null).toString());\n field2 = cls.getField(\"GEMINI_SIM_2\");\n field2.setAccessible(true);\n i = Integer.parseInt(field2.get(null).toString());\n } catch (Throwable th3) {\n parseInt = i;\n i = 1;\n }\n Method method2 = TelephonyManager.class.getMethod(\"getDefault\", new Class[]{Integer.TYPE});\n TelephonyManager telephonyManager2 = (TelephonyManager) method2.invoke(telephonyManager, new Object[]{Integer.valueOf(parseInt)});\n telephonyManager = (TelephonyManager) method2.invoke(telephonyManager, new Object[]{Integer.valueOf(i)});\n trim = telephonyManager2.getDeviceId().trim();\n deviceId = telephonyManager.getDeviceId().trim();\n if (!(hashSet.contains(trim) || trim == null || trim.indexOf(\"0000000000\") != -1)) {\n hashSet.add(trim + \"|b1\");\n }\n if (!(hashSet.contains(deviceId) || deviceId == null || deviceId.indexOf(\"0000000000\") != -1)) {\n hashSet.add(deviceId + \"|b2\");\n }\n } catch (Throwable th4) {\n }\n try {\n cls2 = Class.forName(\"com.android.internal.telephony.PhoneFactory\");\n deviceId = (String) cls2.getMethod(\"getServiceName\", new Class[]{String.class, Integer.TYPE}).invoke(cls2, new Object[]{\"phone\", Integer.valueOf(1)});\n trim = ((TelephonyManager) context.getSystemService(\"phone\")).getDeviceId().trim();\n deviceId = ((TelephonyManager) context.getSystemService(deviceId)).getDeviceId().trim();\n if (!(hashSet.contains(trim) || trim == null || trim.indexOf(\"0000000000\") != -1)) {\n hashSet.add(trim + \"|c1\");\n }\n if (!(hashSet.contains(deviceId) || deviceId == null || deviceId.indexOf(\"0000000000\") != -1)) {\n hashSet.add(deviceId + \"|c2\");\n }\n } catch (Throwable th5) {\n }\n try {\n cls2 = Class.forName(\"android.telephony.MSimTelephonyManager\");\n Object systemService = context.getSystemService(\"phone_msim\");\n method = cls2.getMethod(\"getDeviceId\", new Class[]{Integer.TYPE});\n String trim2 = ((String) method.invoke(systemService, new Object[]{Integer.valueOf(0)})).trim();\n deviceId = ((String) method.invoke(systemService, new Object[]{Integer.valueOf(1)})).trim();\n if (!(hashSet.contains(trim2) || trim2 == null || trim2.indexOf(\"0000000000\") != -1)) {\n hashSet.add(trim2 + \"|d1\");\n }\n if (!(hashSet.contains(deviceId) || deviceId == null || deviceId.indexOf(\"0000000000\") != -1)) {\n hashSet.add(deviceId + \"|d2\");\n }\n } catch (Throwable th6) {\n }\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n method = Class.forName(\"android.telephony.TelephonyManager\").getMethod(\"getDeviceIdDs\", new Class[]{Integer.TYPE});\n if (method != null) {\n trim = (String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(0)});\n deviceId = (String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(1)});\n if (C1618b.m4389a(trim)) {\n hashSet.add(trim + \"|e1\");\n }\n if (C1618b.m4389a(deviceId)) {\n hashSet.add(deviceId + \"|e2\");\n }\n }\n } catch (Throwable th7) {\n }\n try {\n Method method3;\n if (!(str.contains(\"WP-S\") || str.contains(\"D5012T\") || str.contains(\"K-Touch K3\"))) {\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n telephonyManager.getPhoneType();\n method = telephonyManager.getClass().getMethod(\"getDeviceId\", new Class[]{Integer.TYPE});\n if (method != null) {\n hashSet.add(((String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(0)})) + \"|f1\");\n hashSet.add(((String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(1)})) + \"|f2\");\n hashSet.add(((String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(2)})) + \"|f3\");\n }\n } catch (Throwable th8) {\n }\n }\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone2\");\n method3 = context.getSystemService(\"phone2\").getClass().getMethod(\"getImeiInCDMAGSMPhone\", new Class[0]);\n if (method3 != null) {\n deviceId = method3.invoke(telephonyManager, new Object[0]).toString();\n if (C1618b.m4389a(deviceId)) {\n hashSet.add(deviceId + \"|g1\");\n }\n }\n } catch (Throwable th9) {\n }\n try {\n if (SystemProperties.getInt(\"ro.miui.ui.version.code\", 0) < 5) {\n trim = \"\";\n try {\n IBinder iBinder = (IBinder) Class.forName(\"android.os.ServiceManager\").getMethod(\"getService\", new Class[]{String.class}).invoke(null, new Object[]{\"phone\"});\n Object invoke = Class.forName(\"com.android.internal.telephony.ITelephony$Stub\").getMethod(\"asInterface\", new Class[]{IBinder.class}).invoke(null, new Object[]{iBinder});\n deviceId = invoke.getClass().getMethod(\"getMeid\", new Class[0]).invoke(invoke, new Object[0]).toString();\n } catch (Throwable th10) {\n deviceId = trim;\n }\n if (C1618b.m4389a(deviceId)) {\n hashSet.add(deviceId + \"|h1\");\n }\n }\n } catch (Throwable th11) {\n }\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n method3 = context.getSystemService(\"phone\").getClass().getMethod(\"getCurrentPhoneType\", new Class[0]);\n if (method3 != null) {\n int intValue = ((Integer) method3.invoke(telephonyManager, new Object[0])).intValue();\n if (intValue != 1 && intValue == 2) {\n deviceId = C1618b.m4387a();\n if (deviceId != null && deviceId.length() > 0) {\n hashSet.add(deviceId + \"|i1\");\n }\n }\n }\n } catch (Throwable th12) {\n }\n try {\n try {\n deviceId = (String) Class.forName(\"com.huawei.android.hwnv.HWNVFuncation\").getMethod(\"getNVMEID\", new Class[0]).invoke(null, new Object[0]);\n } catch (Throwable th13) {\n deviceId = \"\";\n }\n if (!hashSet.contains(deviceId) && deviceId != null && deviceId.length() > 0 && deviceId.indexOf(\"0000000000\") == -1) {\n hashSet.add(deviceId + \"|g1\");\n }\n } catch (Throwable th14) {\n }\n } catch (Throwable th15) {\n }\n } catch (Throwable th16) {\n }\n return hashSet;\n }", "@Override\n public int getVersion() {\n return 4;\n }", "private static boolean m36214j(View view) {\n return VERSION.SDK_INT < 19 || view.getBackground() == null || view.getBackground().getAlpha() == 0;\n }", "public void mo3104a(Context context) {\n if (this.f2605a == 2) {\n String str = (String) this.f2606b;\n String str2 = \":\";\n if (str.contains(str2)) {\n String str3 = str.split(str2, -1)[1];\n String str4 = Constants.URL_PATH_DELIMITER;\n String str5 = str3.split(str4, -1)[0];\n String str6 = str3.split(str4, -1)[1];\n String str7 = str.split(str2, -1)[0];\n int identifier = m2627a(context, str7).getIdentifier(str6, str5, str7);\n if (this.f2609e != identifier) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Id has changed for \");\n sb.append(str7);\n sb.append(str4);\n sb.append(str6);\n Log.i(\"IconCompat\", sb.toString());\n this.f2609e = identifier;\n }\n }\n }\n }", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "@Override\n public void onCreate() {\n\n }", "private void m81851o() {\n SupportSystemBarFragment supportSystemBarFragment = this.f58069a;\n if (supportSystemBarFragment != null && (supportSystemBarFragment.getActivity() instanceof IMainActivity)) {\n ((IMainActivity) this.f58069a.getActivity()).mo79110a(this.f58077i, false);\n }\n }", "private Intent m34055b(Context context) {\n Intent intent = new Intent();\n String str = \"package\";\n intent.putExtra(str, context.getPackageName());\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setData(Uri.fromParts(str, context.getPackageName(), null));\n String str2 = \"com.huawei.systemmanager\";\n intent.setClassName(str2, \"com.huawei.permissionmanager.ui.MainActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.systemmanager.addviewmonitor.AddViewMonitorActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.notificationmanager.ui.NotificationManagmentActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "@Override\r\n public void onGpsStatusChanged(int event) {\n\r\n }", "boolean mo24941a(Context context);", "@Override\n public void onLowMemory() {\n Log.d(TAG, TAG + \" onLowMemory\");\n }", "private final void m136465e() {\n View view = getView();\n if (view != null) {\n if (mo118763m()) {\n C32569u.m150513a((Object) view, C6969H.m41409d(\"G7F8AD00D\"));\n View findViewById = view.findViewById(R.id.view_landscape_top_bg);\n C32569u.m150513a((Object) findViewById, C6969H.m41409d(\"G7F8AD00DF126A22CF1319C49FCE1D0D46893D025AB3FBB16E409\"));\n findViewById.setVisibility(0);\n View findViewById2 = view.findViewById(R.id.view_landscape_bottom_bg);\n C32569u.m150513a((Object) findViewById2, C6969H.m41409d(\"G7F8AD00DF126A22CF1319C49FCE1D0D46893D025BD3FBF3DE903AF4AF5\"));\n findViewById2.setVisibility(0);\n View findViewById3 = view.findViewById(R.id.view_portrait_bottom_bg);\n C32569u.m150513a((Object) findViewById3, C6969H.m41409d(\"G7F8AD00DF126A22CF1318047E0F1D1D66097EA18B024BF26EB31924F\"));\n findViewById3.setVisibility(4);\n } else {\n C32569u.m150513a((Object) view, C6969H.m41409d(\"G7F8AD00D\"));\n View findViewById4 = view.findViewById(R.id.view_landscape_top_bg);\n C32569u.m150513a((Object) findViewById4, C6969H.m41409d(\"G7F8AD00DF126A22CF1319C49FCE1D0D46893D025AB3FBB16E409\"));\n findViewById4.setVisibility(4);\n View findViewById5 = view.findViewById(R.id.view_landscape_bottom_bg);\n C32569u.m150513a((Object) findViewById5, C6969H.m41409d(\"G7F8AD00DF126A22CF1319C49FCE1D0D46893D025BD3FBF3DE903AF4AF5\"));\n findViewById5.setVisibility(4);\n }\n C29896af afVar = C29896af.f101382a;\n View findViewById6 = view.findViewById(R.id.anchor_bottom_right);\n C32569u.m150513a((Object) findViewById6, C6969H.m41409d(\"G7F8AD00DF131A52AEE018277F0EAD7C3668EEA08B637A33D\"));\n C29896af.m139383a(afVar, findViewById6, 0, 0, m136460b(), 0, 22, null);\n }\n }", "@Override\n public void onCreate() {\n super.onCreate();\n setUSDK();\n }", "private java.lang.String getTypeString() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f0 in method: android.location.GpsClock.getTypeString():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getTypeString():java.lang.String\");\n }", "public static String m21404g(Context context) {\n try {\n return context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"1.0\";\n }\n }", "@Override\r\n public void onFinish() {\n }", "private static int zzd(android.content.Context r8, java.lang.String r9, boolean r10) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n r0 = 0\n if (r10 == 0) goto L_0x000d\n java.lang.String r10 = \"api_force_staging\"\n goto L_0x000f\n L_0x0006:\n r8 = move-exception\n goto L_0x00ad\n L_0x0009:\n r8 = move-exception\n r9 = r0\n goto L_0x009e\n L_0x000d:\n java.lang.String r10 = \"api\"\n L_0x000f:\n java.lang.String r1 = \"content://com.google.android.gms.chimera/\"\n java.lang.String r1 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r2 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + 1\n java.lang.String r3 = java.lang.String.valueOf(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.String r3 = java.lang.String.valueOf(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.<init>(r2) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r10 = \"/\"\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r9 = r3.toString() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.net.Uri r2 = android.net.Uri.parse(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.content.ContentResolver r1 = r8.getContentResolver() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n android.database.Cursor r8 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n if (r8 == 0) goto L_0x0096\n boolean r9 = r8.moveToFirst() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 == 0) goto L_0x0096\n r9 = 0\n int r9 = r8.getInt(r9) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 <= 0) goto L_0x0087\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r10 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r10) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r1 = 2\n java.lang.String r1 = r8.getString(r1) // Catch:{ all -> 0x0084 }\n zzaSI = r1 // Catch:{ all -> 0x0084 }\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.Object r10 = r10.get() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n com.google.android.gms.dynamite.DynamiteModule$zza r10 = (com.google.android.gms.dynamite.DynamiteModule.zza) r10 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r10 == 0) goto L_0x0087\n android.database.Cursor r1 = r10.zzaSR // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r1 != 0) goto L_0x0087\n r10.zzaSR = r8 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r8 = r0\n goto L_0x0087\n L_0x0084:\n r9 = move-exception\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x0087:\n if (r8 == 0) goto L_0x008c\n r8.close()\n L_0x008c:\n return r9\n L_0x008d:\n r9 = move-exception\n r0 = r8\n r8 = r9\n goto L_0x00ad\n L_0x0091:\n r9 = move-exception\n r7 = r9\n r9 = r8\n r8 = r7\n goto L_0x009e\n L_0x0096:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.String r10 = \"Failed to connect to dynamite module ContentResolver.\"\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r0) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x009e:\n boolean r10 = r8 instanceof com.google.android.gms.dynamite.DynamiteModule.zzc // Catch:{ all -> 0x00ab }\n if (r10 == 0) goto L_0x00a3\n throw r8 // Catch:{ all -> 0x00ab }\n L_0x00a3:\n com.google.android.gms.dynamite.DynamiteModule$zzc r10 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00ab }\n java.lang.String r1 = \"V2 version check failed\"\n r10.<init>(r1, r8, r0) // Catch:{ all -> 0x00ab }\n throw r10 // Catch:{ all -> 0x00ab }\n L_0x00ab:\n r8 = move-exception\n r0 = r9\n L_0x00ad:\n if (r0 == 0) goto L_0x00b2\n r0.close()\n L_0x00b2:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzd(android.content.Context, java.lang.String, boolean):int\");\n }", "private boolean m21858b(Context context, String str) {\n boolean z = false;\n try {\n if (VERSION.SDK_INT >= 23) {\n if (context.checkSelfPermission(str) == 0) {\n z = true;\n }\n return z;\n }\n if (context.checkCallingOrSelfPermission(str) == 0) {\n z = true;\n }\n return z;\n } catch (Throwable unused) {\n return false;\n }\n }", "@Override\n public void onInit()\n {\n\n }", "public static synchronized void initNativeLibs(android.content.Context r6) {\n /*\n r2 = org.telegram.messenger.NativeLoader.class;\n monitor-enter(r2);\n r0 = nativeLoaded;\t Catch:{ all -> 0x00d1 }\n if (r0 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r2);\n return;\n L_0x0009:\n net.hockeyapp.android.C2367a.m11720a(r6);\t Catch:{ all -> 0x00d1 }\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"armeabi-v7a\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00d4;\n L_0x0017:\n r0 = \"armeabi-v7a\";\n L_0x001a:\n r1 = \"os.arch\";\n r1 = java.lang.System.getProperty(r1);\t Catch:{ Throwable -> 0x012b }\n if (r1 == 0) goto L_0x0130;\n L_0x0023:\n r3 = \"686\";\n r1 = r1.contains(r3);\t Catch:{ Throwable -> 0x012b }\n if (r1 == 0) goto L_0x0130;\n L_0x002c:\n r0 = \"x86\";\n r1 = r0;\n L_0x0030:\n r0 = getNativeLibraryDir(r6);\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x005f;\n L_0x0036:\n r3 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r4 = \"libtmessages.27.so\";\n r3.<init>(r0, r4);\t Catch:{ Throwable -> 0x012b }\n r0 = r3.exists();\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x005f;\n L_0x0044:\n r0 = \"load normal lib\";\n org.telegram.messenger.FileLog.m13725d(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = \"tmessages.27\";\n java.lang.System.loadLibrary(r0);\t Catch:{ Error -> 0x005b }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x005b }\n r3 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x005b }\n init(r0, r3);\t Catch:{ Error -> 0x005b }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x005b }\n goto L_0x0007;\n L_0x005b:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n L_0x005f:\n r3 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r0 = r6.getFilesDir();\t Catch:{ Throwable -> 0x012b }\n r4 = \"lib\";\n r3.<init>(r0, r4);\t Catch:{ Throwable -> 0x012b }\n r3.mkdirs();\t Catch:{ Throwable -> 0x012b }\n r4 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r0 = \"libtmessages.27loc.so\";\n r4.<init>(r3, r0);\t Catch:{ Throwable -> 0x012b }\n r0 = r4.exists();\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x009c;\n L_0x007c:\n r0 = \"Load local lib\";\n org.telegram.messenger.FileLog.m13725d(r0);\t Catch:{ Error -> 0x0095 }\n r0 = r4.getAbsolutePath();\t Catch:{ Error -> 0x0095 }\n java.lang.System.load(r0);\t Catch:{ Error -> 0x0095 }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x0095 }\n r5 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x0095 }\n init(r0, r5);\t Catch:{ Error -> 0x0095 }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x0095 }\n goto L_0x0007;\n L_0x0095:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n r4.delete();\t Catch:{ Throwable -> 0x012b }\n L_0x009c:\n r0 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x012b }\n r0.<init>();\t Catch:{ Throwable -> 0x012b }\n r5 = \"Library not found, arch = \";\n r0 = r0.append(r5);\t Catch:{ Throwable -> 0x012b }\n r0 = r0.append(r1);\t Catch:{ Throwable -> 0x012b }\n r0 = r0.toString();\t Catch:{ Throwable -> 0x012b }\n org.telegram.messenger.FileLog.m13726e(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = loadFromZip(r6, r3, r4, r1);\t Catch:{ Throwable -> 0x012b }\n if (r0 != 0) goto L_0x0007;\n L_0x00b9:\n r0 = \"tmessages.27\";\n java.lang.System.loadLibrary(r0);\t Catch:{ Error -> 0x00cb }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x00cb }\n r1 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x00cb }\n init(r0, r1);\t Catch:{ Error -> 0x00cb }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x00cb }\n goto L_0x0007;\n L_0x00cb:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ all -> 0x00d1 }\n goto L_0x0007;\n L_0x00d1:\n r0 = move-exception;\n monitor-exit(r2);\n throw r0;\n L_0x00d4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"armeabi\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00e4;\n L_0x00df:\n r0 = \"armeabi\";\n goto L_0x001a;\n L_0x00e4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"x86\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00f4;\n L_0x00ef:\n r0 = \"x86\";\n goto L_0x001a;\n L_0x00f4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"mips\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x0104;\n L_0x00ff:\n r0 = \"mips\";\n goto L_0x001a;\n L_0x0104:\n r0 = \"armeabi\";\n r1 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0122 }\n r1.<init>();\t Catch:{ Exception -> 0x0122 }\n r3 = \"Unsupported arch: \";\n r1 = r1.append(r3);\t Catch:{ Exception -> 0x0122 }\n r3 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = r1.append(r3);\t Catch:{ Exception -> 0x0122 }\n r1 = r1.toString();\t Catch:{ Exception -> 0x0122 }\n org.telegram.messenger.FileLog.m13726e(r1);\t Catch:{ Exception -> 0x0122 }\n goto L_0x001a;\n L_0x0122:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = \"armeabi\";\n goto L_0x001a;\n L_0x012b:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x00d1 }\n goto L_0x00b9;\n L_0x0130:\n r1 = r0;\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.messenger.NativeLoader.initNativeLibs(android.content.Context):void\");\n }", "public static String m21394b(Context context) {\n String str = \"wns_ac\";\n try {\n if (f16891b == null) {\n f16891b = C5206p.m21472b(context, str);\n if (TextUtils.isEmpty(f16891b)) {\n f16891b = C5144a.m21266a(context).mo26750a();\n C5206p.m21471a(context, str, f16891b);\n }\n }\n } catch (Throwable unused) {\n C5205o.m21462a(\"不存在google play\");\n }\n return f16891b;\n }", "@Override\n\tpublic String getSDKVersion() {\n\t\treturn null;\n\t}", "public static String m21381A(Context context) {\n String str = \"\";\n if (VERSION.SDK_INT >= 21) {\n UsageStatsManager usageStatsManager = (UsageStatsManager) context.getSystemService(\"usagestats\");\n if (usageStatsManager == null) {\n return str;\n }\n long currentTimeMillis = System.currentTimeMillis();\n List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(0, currentTimeMillis - 60000, currentTimeMillis);\n if (queryUsageStats == null) {\n return str;\n }\n TreeMap treeMap = new TreeMap();\n for (UsageStats usageStats : queryUsageStats) {\n treeMap.put(Long.valueOf(usageStats.getLastTimeUsed()), usageStats);\n }\n return !treeMap.isEmpty() ? ((UsageStats) treeMap.get(treeMap.lastKey())).getPackageName() : str;\n }\n ActivityManager activityManager = (ActivityManager) context.getSystemService(Constants.FLAG_ACTIVITY_NAME);\n return activityManager != null ? ((RunningTaskInfo) activityManager.getRunningTasks(5).get(0)).topActivity.getPackageName() : str;\n }", "private NativeSupport() {\n\t}", "void mo25261a(Context context);", "private static String buildUserAgent(Context context) {\r\n\t\ttry {\r\n\t\t\tfinal PackageManager manager = context.getPackageManager();\r\n\t\t\tfinal PackageInfo info = manager.getPackageInfo(\r\n\t\t\t\t\tcontext.getPackageName(), 0);\r\n\r\n\t\t\t// Some APIs require \"(gzip)\" in the user-agent string.\r\n\t\t\treturn info.packageName + \"/\" + info.versionName + \" (\"\r\n\t\t\t\t\t+ info.versionCode + \") (gzip)\";\r\n\t\t} catch (NameNotFoundException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "static /* synthetic */ boolean m3-get3(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.widget.ColorListView.-get3(android.widget.ColorListView):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.-get3(android.widget.ColorListView):boolean\");\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"ERROR\",\"error aa gya\");\n }", "@TargetApi(Build.VERSION_CODES.M)\n private void checkBTPermissions() {\n if(Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP){\n int permissionCheck = this.checkSelfPermission(\"Manifest.permission.ACCESS_FINE_LOCATION\");\n permissionCheck += this.checkSelfPermission(\"Manifest.permission.ACCESS_COARSE_LOCATION\");\n if (permissionCheck != 0) {\n\n this.requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}, 1001); //Any number\n }\n }else{\n Log.d(TAG, \"checkBTPermissions: No need to check permissions. SDK version < LOLLIPOP.\");\n }\n }", "public boolean onLongClick(android.view.View r10) {\n /*\n r9 = this;\n r2 = 1;\n r1 = 0;\n r0 = r9.hasText();\n if (r0 == 0) goto L_0x000a;\n L_0x0008:\n r0 = r1;\n L_0x0009:\n return r0;\n L_0x000a:\n r0 = 2;\n r3 = new int[r0];\n r4 = new android.graphics.Rect;\n r4.<init>();\n r9.getLocationOnScreen(r3);\n r9.getWindowVisibleDisplayFrame(r4);\n r5 = r9.getContext();\n r0 = r9.getWidth();\n r6 = r9.getHeight();\n r7 = r3[r2];\n r8 = r6 / 2;\n r7 = r7 + r8;\n r8 = r3[r1];\n r0 = r0 / 2;\n r0 = r0 + r8;\n r8 = android.support.v4.view.ViewCompat.getLayoutDirection(r10);\n if (r8 != 0) goto L_0x0040;\n L_0x0034:\n r8 = r5.getResources();\n r8 = r8.getDisplayMetrics();\n r8 = r8.widthPixels;\n r0 = r8 - r0;\n L_0x0040:\n r8 = r9.mItemData;\n r8 = r8.getTitle();\n r5 = android.widget.Toast.makeText(r5, r8, r1);\n r8 = r4.height();\n if (r7 >= r8) goto L_0x0060;\n L_0x0050:\n r7 = 8388661; // 0x800035 float:1.1755018E-38 double:4.144549E-317;\n r3 = r3[r2];\n r3 = r3 + r6;\n r4 = r4.top;\n r3 = r3 - r4;\n r5.setGravity(r7, r0, r3);\n r0 = android.support.v7.view.menu.MenuBuilder.a;\n if (r0 == 0) goto L_0x0065;\n L_0x0060:\n r0 = 81;\n r5.setGravity(r0, r1, r6);\n L_0x0065:\n r5.show();\n r0 = r2;\n goto L_0x0009;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.view.menu.ActionMenuItemView.onLongClick(android.view.View):boolean\");\n }" ]
[ "0.5937688", "0.57205176", "0.56909233", "0.5620612", "0.56066453", "0.5600314", "0.5570139", "0.55418557", "0.55147237", "0.54899496", "0.548825", "0.54610276", "0.54271877", "0.5424119", "0.5406601", "0.5374384", "0.53673816", "0.5346894", "0.5346374", "0.5340393", "0.5327702", "0.5320551", "0.5316107", "0.5311085", "0.5310422", "0.52922976", "0.52677333", "0.5256584", "0.5256173", "0.5250538", "0.52493685", "0.5246659", "0.5246647", "0.52442145", "0.5243004", "0.5240088", "0.52393186", "0.5229362", "0.52277887", "0.5227747", "0.5227035", "0.5220438", "0.52192795", "0.52162814", "0.5202871", "0.51984173", "0.5195819", "0.5195819", "0.5195509", "0.5186507", "0.51840156", "0.5166459", "0.5159448", "0.5155719", "0.51536953", "0.5152005", "0.5151256", "0.5149004", "0.5149", "0.5145059", "0.51448065", "0.5144196", "0.51422703", "0.5139574", "0.5117743", "0.51161253", "0.51151735", "0.5113712", "0.5111052", "0.5109618", "0.51091635", "0.51038", "0.51026607", "0.5102012", "0.5098979", "0.50902367", "0.50901985", "0.5088513", "0.5087347", "0.50870323", "0.5086626", "0.5086506", "0.5086236", "0.50851196", "0.5080963", "0.5079716", "0.5078792", "0.5071242", "0.50682944", "0.50681764", "0.5057779", "0.5057369", "0.5055315", "0.50524384", "0.50521547", "0.50508523", "0.5050437", "0.504772", "0.50476426", "0.5044118", "0.50428754" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean onJsAlert(WebView view, String url, String message, JsResult result) { return super.onJsAlert(view, url, message, result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ access modifiers changed from: 0000
public void runFinally() { if (compareAndSet(0, 1)) { try { this.onFinally.run(); } catch (Throwable th) { Exceptions.throwIfFatal(th); RxJavaPlugins.onError(th); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Member mo23408O();", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n protected void prot() {\n }", "public void m23075a() {\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public void mo115190b() {\n }", "public abstract void mo70713b();", "public abstract String mo118046b();", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }", "private void m50366E() {\n }", "public final void mo91715d() {\n }", "public abstract void mo53562a(C18796a c18796a);", "private stendhal() {\n\t}", "public abstract Object mo26777y();", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public void mo38117a() {\n }", "public abstract C14408a mo11607a();", "public void mo1403c() {\n }", "public abstract void m15813a();", "public abstract Object mo1185b();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public abstract void mo27385c();", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public abstract void mo27386d();", "public abstract Object mo1771a();", "public void mo1531a() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "public void mo21779D() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "private Rekenhulp()\n\t{\n\t}", "void m1864a() {\r\n }", "public void mo12628c() {\n }", "public abstract void mo42329d();", "public abstract void mo56925d();", "public void O000000o() {\r\n super.O000000o();\r\n this.O0000o0 = false;\r\n }", "public void mo12930a() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public abstract void mo27464a();", "public int method_113() {\r\n return 0;\r\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public abstract C7036b mo24411d();", "public void mo97908d() {\n }", "public void method_4270() {}", "public void mo21825b() {\n }", "public abstract void mo30696a();", "public abstract int mo41077c();", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "public abstract String mo41079d();", "public int method_209() {\r\n return 0;\r\n }", "public void mo55254a() {\n }", "public abstract void mo35054b();", "protected void mo6255a() {\n }", "public void mo115188a() {\n }", "public abstract String mo11611b();", "public abstract void mo20899UO();", "public abstract void mo70702a(C30989b c30989b);", "public abstract long mo9229aD();", "public void mo23813b() {\n }", "protected boolean func_70814_o() { return true; }", "public interface C0764b {\n}", "public interface C0777a {\n }", "public void mo9848a() {\n }", "@Override\n public void perish() {\n \n }", "public final void mo92083O() {\n }", "public abstract long mo24409b();", "public abstract int mo13680b();", "public abstract C mo29734a();", "public void mo21879u() {\n }", "public interface C0939c {\n }", "public void mo21782G() {\n }", "public void mo97906c() {\n }", "public void mo44053a() {\n }", "public void mo4359a() {\n }", "public interface C0136c {\n }", "public void mo21787L() {\n }", "public void mo21800a() {\n }", "public void mo21781F() {\n }", "public abstract void mo42331g();", "public abstract void mo133131c() throws InvalidDataException;", "protected boolean func_70041_e_() { return false; }", "public interface C0938b {\n }", "private AccessType(String rtCode) {\n\t this.rtCode = rtCode;\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo92082N() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public abstract C13619e mo34787a();", "public abstract void mo102899a();", "public abstract String mo13682d();", "public void mo21791P() {\n }", "public abstract int mo9747l();" ]
[ "0.65168345", "0.6417889", "0.6403412", "0.6346675", "0.6299906", "0.62951195", "0.6244629", "0.6228537", "0.620437", "0.6192846", "0.6189669", "0.61808765", "0.6173851", "0.6169742", "0.616948", "0.6162881", "0.6150504", "0.6149917", "0.61402553", "0.6134384", "0.6133215", "0.6132091", "0.61185074", "0.61123616", "0.61056376", "0.6103969", "0.61017185", "0.6098234", "0.6079347", "0.6079246", "0.60791034", "0.6077395", "0.60729754", "0.6041395", "0.60256493", "0.60169536", "0.6015826", "0.60151106", "0.6013114", "0.60013115", "0.5998371", "0.59860754", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.598462", "0.5978975", "0.59778947", "0.59774643", "0.59727186", "0.5969569", "0.5967532", "0.5963771", "0.5953787", "0.5952977", "0.59515095", "0.5951448", "0.59418756", "0.59380716", "0.5937042", "0.5933502", "0.59258235", "0.5920355", "0.5919339", "0.59180367", "0.5910083", "0.5909217", "0.5907112", "0.5900161", "0.5897533", "0.58957314", "0.58927464", "0.5882746", "0.58764744", "0.58723474", "0.58707637", "0.5866063", "0.584263", "0.58394545", "0.5838862", "0.583529", "0.58348346", "0.58324844", "0.58285266", "0.58264506", "0.58255637", "0.58253694", "0.58250713", "0.582227", "0.5818361", "0.581547", "0.5813973", "0.5811735", "0.5806413", "0.5805687", "0.58014107", "0.57993686" ]
0.0
-1
/ access modifiers changed from: protected
public void subscribeActual(SingleObserver<? super T> singleObserver) { this.source.subscribe(new DoFinallyObserver(singleObserver, this.onFinally)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
TODO Autogenerated method stub
public void Success(ClientProxy container, Map<String, String> request) throws UIException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Returns this configuration as an XML document with the specified encoding.
public String toXml( String inEncoding ) { Document doc = DocumentHelper.createDocument(); Element root = doc.addElement(getName()); appendXml(this,root); StringWriter text = new StringWriter(); OutputFormat format = OutputFormat.createPrettyPrint(); format.setEncoding(inEncoding); XMLWriter out = new XMLWriter(text, format); try { out.write(doc); } catch (IOException ex) { throw new OpenEditRuntimeException(ex); } return text.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }", "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "public XML xml() {\n return new XMLDocument(new Xembler(this.dirs).domQuietly());\n }", "public Element toXml()\n {\n // Create the configuration.\n Element configuration = new Element(\"configuration\");\n configuration.setAttribute(\"name\", this.__profile_name);\n configuration.setAttribute(\"target\", this.getAddOnName());\n\n // Add the generic and the specialized configuration.\n configuration.addContent(this.getData());\n\n return configuration;\n }", "private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }", "public XMLEncoder xmlEncoder(OutputStream out) {\n return configure(new XMLEncoder(out));\n }", "public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}", "public LagartoDOMBuilder enableXmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = true; // ignore whitespaces that are non content\n\t\tconfig.parserConfig.setCaseSensitive(true); // XML is case sensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(false); // all tags are parsed in the same way\n\t\tconfig.enabledVoidTags = false; // there are no void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close empty tags (can be changed!)\n\t\tconfig.impliedEndTags = false; // no implied tag ends\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // disable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(true); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public String toXml() {\n\t\treturn(toString());\n\t}", "public String getXMLConfiguration()\n {\n return this.XMLConfiguration;\n }", "public String toXML() {\n return null;\n }", "public XmlElement getConfig()\n {\n return m_xml;\n }", "public String toXML() {\n return null;\n }", "@Override\n public void toXml(XmlContext xc) {\n\n }", "public static String toXml(Object root, String encoding) {\n Class clazz = Reflections.getUserClass(root);\n return toXml(root, clazz, encoding, true);\n }", "public java.lang.String getXml();", "Document toXml() throws ParserConfigurationException, TransformerException, IOException;", "public String getXML() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String xml = new String();\n xml= \"<?xml version = \\\"1.0\\\"?>\\n\";\n xml = xml + generateXML();\n return xml;\n }", "public String getXml()\n {\n StringBuffer result = new StringBuffer(256);\n\n result.append(\"<importOptions>\");\n\n result.append(m_fileOptions.asXML());\n result.append(getOtherXml());\n\n result.append(\"</importOptions>\");\n\n return result.toString();\n }", "public String toXml()\n\t{\n\t\ttry {\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\tStringWriter buffer = new StringWriter();\n\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n\t\t\ttransformer.transform(new DOMSource(conferenceInfo), new StreamResult(buffer));\n\t\t\treturn buffer.toString();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "@Get(\"xml\")\n public Representation toXml() {\n\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = getMetadata(status, access,\n \t\t\tgetRequestQueryValues());\n \tmetadata.remove(0);\n\n List<String> pathsToMetadata = buildPathsToMetadata(metadata);\n\n String xmlOutput = buildXmlOutput(pathsToMetadata);\n\n // Returns the XML representation of this document.\n StringRepresentation representation = new StringRepresentation(xmlOutput,\n MediaType.APPLICATION_XML);\n\n return representation;\n }", "protected String getXML() {\n\n StringBuffer b = new StringBuffer(\"title =\\\"\");\n b.append(title);\n b.append(\"\\\" xAxisTitle=\\\"\");\n b.append(xAxisTitle);\n b.append(\"\\\" yAxisTitle=\\\"\");\n b.append(yAxisTitle);\n b.append(\"\\\" xRangeMin=\\\"\");\n b.append(xRangeMin);\n b.append(\"\\\" xRangeMax=\\\"\");\n b.append(xRangeMax);\n b.append(\"\\\" xRangeIncr=\\\"\");\n b.append(xRangeIncr);\n b.append(\"\\\" yRangeMin=\\\"\");\n b.append(yRangeMin);\n b.append(\"\\\" yRangeMax=\\\"\");\n b.append(yRangeMax);\n b.append(\"\\\" yRangeIncr=\\\"\");\n b.append(yRangeIncr);\n b.append(\"\\\" >\\n\");\n\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource)dataSources.get(i);\n b.append(ds.toXML());\n b.append(\"\\n\");\n }\n\n return b.toString();\n }", "public abstract StringBuffer toXML();", "@Override\n\tpublic String getFormat() {\n\t\treturn \"xml\";\n\t}", "public String getXML() {\n\t\treturn getXML(false);\n\t}", "String toXmlString() throws IOException;", "public String toXML(int indent) {\n StringBuffer xmlBuf = new StringBuffer();\n //String xml = \"\";\n \n synchronized(xmlBuf) {\n\t\tfor (int i=0;i<indent;i++)\n xmlBuf.append(\"\\t\");\n //xml += \"\\t\";\n\n\t\tString synopsisLengthAsString;\n\n\t\tswitch(length)\n\t\t{\n\t\t\tcase UNDEFINED:\n\t\t\t\tsynopsisLengthAsString = \"undefined\";\n\t\t\t\tbreak;\n\t\t\tcase SHORT:\n\t\t\t\tsynopsisLengthAsString = \"short\";\n\t\t\t\tbreak;\n\t\t\tcase MEDIUM:\n\t\t\t\tsynopsisLengthAsString = \"medium\";\n\t\t\t\tbreak;\n\t\t\tcase LONG:\n\t\t\t\tsynopsisLengthAsString = \"long\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsynopsisLengthAsString = \"undefined\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\txmlBuf.append(\"<Synopsis\");\n //xml += \"<Synopsis\";\n if (length!=UNDEFINED) {\n xmlBuf.append(\" length=\\\"\");\n xmlBuf.append(synopsisLengthAsString);\n xmlBuf.append(\"\\\"\");\n //xml = xml + \" length=\\\"\"+ synopsisLengthAsString + \"\\\"\";\n }\n if (language!=null) {\n xmlBuf.append(\" xml:lang=\\\"\");\n xmlBuf.append(language);\n xmlBuf.append(\"\\\"\");\n //xml = xml + \" xml:lang=\\\"\" + language + \"\\\"\";\n }\n xmlBuf.append(\">\");\n //xml += \">\";\n\t\txmlBuf.append(\"<![CDATA[\");\n xmlBuf.append(text);\n xmlBuf.append(\"]]>\");\n //xml = xml + \"<![CDATA[\" + text + \"]]>\";\n xmlBuf.append(\"</Synopsis>\");\n //xml += \"</Synopsis>\";\n\n\t\treturn xmlBuf.toString();\n }\n\t}", "String getNegotiationXML();", "public StaxEventItemWriterBuilder<T> encoding(String encoding) {\n\t\tthis.encoding = encoding;\n\n\t\treturn this;\n\t}", "public abstract StringBuffer toXML ();", "Element toXML();", "public String createConfigXml(PentahoConfig config) throws ApsSystemException {\n\t\tElement root = this.createConfigElement(config);\n\t\tDocument doc = new Document(root);\n\t\tXMLOutputter out = new XMLOutputter();\n\t\tFormat format = Format.getPrettyFormat();\n\t\tformat.setIndent(\"\\t\");\n\t\tout.setFormat(format);\n\t\treturn out.outputString(doc);\n\t}", "public String toXml() {\n StringWriter outputStream = new StringWriter();\n try {\n PrintWriter output = new PrintWriter(outputStream);\n try {\n output.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n toXml(output);\n return outputStream.toString();\n }\n catch (Exception ex) {\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n finally {\n output.close();\n }\n }\n finally {\n try {\n outputStream.close();\n }\n catch (IOException ex) {\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n }\n }", "public Element getConfig() {\n Element out = new Element(getElementName(),MarsModel.NAMESPACE);\n out.setAttribute(\"enabled\",String.valueOf(enabled));\n out.setAttribute(\"xmlfile\",xmlfile.getPath());\n out.setAttribute(\"period\",String.valueOf(period));\n out.setAttribute(\"xslthref\",xslthref);\n return out;\n }", "@XmlAttribute\r\n public String getOutputEncoding() {\r\n return outputEncoding;\r\n }", "@SneakyThrows(value = {JAXBException.class, IOException.class})\n\tpublic static <T> String java2Xml(T t, String encoding) {\n\t\tMarshaller marshaller = createMarshaller(t, encoding);\n\n\t\tStringWriter stringWriter = new StringWriter();\n\t\tmarshaller.marshal(t, stringWriter);\n\t\tString result = stringWriter.toString();\n\t\tstringWriter.close();\n\n\t\treturn result;\n\t}", "@Override\n public void configureForXmlConformance() {\n mConfig.configureForXmlConformance();\n }", "public static HashMap<String, String> OutputXml() {\n\t\treturn methodMap(\"xml\");\n\t}", "public String getXml() {\n return xml;\n }", "public String formatXml(String str) throws UnsupportedEncodingException, IOException, DocumentException {\n\t\tSAXReader reader = new SAXReader();\r\n\t\t// System.out.println(reader);\r\n\t\t// 注释:创建一个串的字符输入流\r\n\t\tStringReader in = new StringReader(str);\r\n\t\tDocument doc = reader.read(in);\r\n\t\t// System.out.println(doc.getRootElement());\r\n\t\t// 注释:创建输出格式\r\n\t\tOutputFormat formater = OutputFormat.createPrettyPrint();\r\n\t\t// 注释:设置xml的输出编码\r\n\t\tformater.setEncoding(\"utf-8\");\r\n\t\t// 注释:创建输出(目标)\r\n\t\tStringWriter out = new StringWriter();\r\n\t\t// 注释:创建输出流\r\n\t\tXMLWriter writer = new XMLWriter(out, formater);\r\n\t\t// 注释:输出格式化的串到目标中,执行后。格式化后的串保存在out中。\r\n\t\twriter.write(doc);\r\n\r\n\t\tString destXML = out.toString();\r\n\t\twriter.close();\r\n\t\tout.close();\r\n\t\tin.close();\r\n\t\t// 注释:返回我们格式化后的结果\r\n\t\treturn destXML;\r\n\t}", "public String printToXml()\n {\n XMLOutputter outputter = new XMLOutputter();\n outputter.setFormat(org.jdom.output.Format.getPrettyFormat());\n return outputter.outputString(this.toXml());\n }", "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "@Override\n public String toXML() {\n if (_xml == null)\n _xml = String.format(XML, getStanzaId(), to);\n return _xml;\n }", "String toXML() throws RemoteException;", "public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }", "public static Document getXmlSettings() throws SAXException, IOException,\r\n\tParserConfigurationException {\n\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory\r\n\t\t\t\t.newInstance();\r\n\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n\t\treturn docBuilder.parse(new File(\"config.xml\"));\r\n\t}", "public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }", "public String toXMLString() {\n\t\treturn toXMLString(XML_TAB, XML_NEW_LINE);\n\t}", "@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property String getXmlEncoding();", "@Override\n\tpublic Element saveToXml(boolean includeConfigState) {\n\t\treturn null;\n\t}", "public final String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<?xml version=\\\"1.0\\\"?>\").append(br());\n toXML(sb, 0);\n return sb.toString();\n }", "public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}", "protected abstract void toXml(PrintWriter result);", "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "public String toXML()\n {\n /* this is the kind of string that we will be generating here:\n *\n * <presence from='[email protected]/globe'>\n * <c xmlns='http://jabber.org/protocol/caps'\n * hash='sha-1'\n * node='http://jitsi.org'\n * ver='zHyEOgxTrkpSdGcQKH8EFPLsriY='/>\n * </presence>\n */\n\n StringBuilder bldr\n = new StringBuilder(\"<c xmlns='\" + getNamespace() + \"' \");\n\n if(getExtensions() != null)\n bldr.append(\"ext='\" + getExtensions() + \"' \");\n\n bldr.append(\"hash='\" + getHash() + \"' \");\n bldr.append(\"node='\" + getNode() + \"' \");\n bldr.append(\"ver='\" + getVersion() + \"'/>\");\n\n return bldr.toString();\n }", "public String getXml() {\n\t\treturn _xml;\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String asXmlStream() {\n String outXml = this.tblXmlStream.toXML(structuralErrors);\n\n return outXml;\n }", "public Element toXML(Document document) {\n\t\tif (document == null)\n\t\t\treturn null;\n\n\t\t// create root node\n\t\tElement w_node = document.createElement(\"GlycanWorkspace\");\n\n\t\t// create configuration node\n\t\tstoreToConfiguration(true);\n\t\tw_node.appendChild(theConfiguration.toXML(document));\n\n\t\t// create structures node\n\t\tw_node.appendChild(theStructures.toXML(document));\n\n\t\treturn w_node;\n\t}", "public static DocumentBuilder getXMLBuilder() {\n\n return getXMLBuilder( false, true, false, false, false, false, false, null );\n }", "@Override\n public void writeStartDocument()\n throws XMLStreamException\n {\n if (mEncoding == null) {\n mEncoding = WstxOutputProperties.DEFAULT_OUTPUT_ENCODING;\n }\n writeStartDocument(mEncoding, WstxOutputProperties.DEFAULT_XML_VERSION);\n }", "@Override\n\tpublic CharSequence toXML() {\n\t\treturn null;\n\t}", "public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}", "void toXml(OutputStream out, boolean format) throws IOException;", "public JodaBeanXmlWriter xmlWriter() {\n return new JodaBeanXmlWriter(this);\n }", "private String convertXmlToString(Document xmlDoc) {\r\n\r\n\t\tString xmlAsString = \"\";\r\n\t\ttry {\r\n\r\n\t\t\tTransformer transformer;\r\n\t\t\ttransformer = TransformerFactory.newInstance().newTransformer();\r\n\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.STANDALONE, \"yes\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttransformer.setOutputProperty(\r\n\t\t\t\t\t\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\r\n\r\n\t\t\tStreamResult result = new StreamResult(new StringWriter());\r\n\r\n\t\t\tDOMSource source = new DOMSource(xmlDoc);\r\n\r\n\t\t\ttransformer.transform(source, result);\r\n\r\n\t\t\txmlAsString = result.getWriter().toString();\r\n\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerFactoryConfigurationError e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn xmlAsString;\r\n\r\n\t}", "public java.lang.String toString() {\n // call toString() with includeNS true by default and declareNS false\n String xml = this.toString(true, false);\n return xml;\n }", "public XMLDocument() {\r\n xml = new StringBuilder();\r\n }", "public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}", "public Document getXML() {\n\t\treturn null;\n\t}", "@Override\n public String getContentType() {\n return \"text/xml; charset=UTF-8\";\n }", "@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }", "@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }", "int writeTo(OutputStream out, boolean withXmlDecl, Charset enc) throws IOException;", "public String getInXml() {\n return inXml;\n }", "public static void outputXMLdoc() throws Exception {\n // transform the Document into a String\n DOMSource domSource = new DOMSource(doc);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n java.io.StringWriter sw = new java.io.StringWriter();\n StreamResult sr = new StreamResult(sw);\n transformer.transform(domSource, sr);\n String xml = sw.toString();\n\n\tSystem.out.println(xml);\n\n }", "private static Serializer getSerializer() {\n\t\tConfiguration config = new Configuration();\n\t\tProcessor processor = new Processor(config);\n\t\tSerializer s = processor.newSerializer();\n\t\ts.setOutputProperty(Property.METHOD, \"xml\");\n\t\ts.setOutputProperty(Property.ENCODING, \"utf-8\");\n\t\ts.setOutputProperty(Property.INDENT, \"yes\");\n\t\treturn s;\n\t}", "@XmlAttribute\r\n public String getInputEncoding() {\r\n return inputEncoding;\r\n }", "@GET\r\n @Produces(\"application/xml\")\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }", "@GET\n @Produces(MediaType.APPLICATION_XML)\n public String getXml() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "XMLWriter getStringWriter() {\n\t\tOutputFormat format = new OutputFormat(\" \", true);\n\t\tformat.setTrimText(true);\n\t\tStringWriter sw = new StringWriter();\n\t\ttry {\n\t\t\tstringWriter = new XMLWriter(sw, format);\n\t\t} catch (Exception e) {\n\t\t\tprtln(\"getStringWriter(): \" + e);\n\t\t}\n\n\t\tprtln(\" ... format.encoding: \" + format.getEncoding());\n\t\tprtln(\" ... format.isNewLines: \" + format.isNewlines());\n\t\tprtln(\" ... format.isTrimText: \" + format.isTrimText());\n\t\tprtln(\" ... format.indent: \\'\" + format.getIndent() + \"\\'\");\n\n\t\tstringWriter.setEscapeText(false);\n\t\tif (stringWriter.isEscapeText()) {\n\t\t\tprtln(\" ... isEscapeText\");\n\t\t} else {\n\t\t\tprtln(\" ... is NOT escapeText\");\n\t\t}\n\t\treturn stringWriter;\n\t}", "public String toXML() {\n StringBuilder xml = new StringBuilder();\n\n //just do the decomposition facts (not the surrounding element) - to keep life simple\n xml.append(super.toXML());\n\n for (YParameter parameter : _enablementParameters.values()) {\n xml.append(parameter.toXML());\n }\n for (YAWLServiceReference service : _yawlServices.values()) {\n xml.append(service.toXML());\n }\n return xml.toString();\n }", "public interface DocumentProperties {\n\n /**\n * The character encoding used by the source XML document.\n */\n public interface Charset {\n public void setCharset(java.nio.charset.Charset charset);\n }\n}", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllEncodingSettings_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), ENCODINGSETTINGS);\r\n\t}", "protected final XMLEncoder configure(XMLEncoder encoder) {\n encoder.setPersistenceDelegate(X500Principal.class, delegate);\n return encoder;\n }", "public String toXML(String indent, String namespace) {\n // if ( m_content != null && m_content.length() > 0 ) {\n // StringBuffer result = new StringBuffer( m_content.length() + 16 );\n // result.append( \"<text>\"). append( quote(this.m_content,false) ).append(\"</text>\");\n // return result.toString();\n // } else {\n // return empty_element;\n // }\n if (this.m_content != null) {\n return new String(quote(this.m_content, false));\n } else {\n return new String();\n }\n }", "public String getXML(boolean pretty) {\n\t\treturn XMLFormatter.format(element, pretty);\n\t}", "public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}", "void write(Writer out, boolean escapeXML) throws IOException;", "public void dumpAsXmlFile(String pFileName);", "@SuppressWarnings(\"unchecked\")\n\tpublic Document getDocument() {\n\t\tDocument doc = this.documentBuilder.newDocument();\n\t\t\n\t\tElement rootElement = doc.createElement(\"properties\");\n\t\tdoc.appendChild(rootElement);\n\t\t\n\t\tEnumeration<String> keys = (Enumeration<String>) this.properties.propertyNames();\n\t\t\n\t\twhile (keys.hasMoreElements()) {\n\t\t\tString key = keys.nextElement();\n\t\t\tElement entry = doc.createElement(\"entry\");\n\t\t\tentry.setAttribute(\"key\", key);\n\t\t\tentry.setTextContent(this.getProperty(key));\n\t\t\trootElement.appendChild(entry);\n\t\t}\n\t\t\n\t\treturn doc;\n\t}", "public String generatedXmlFile(Document doc){\n\t\tStringWriter sw = new StringWriter();\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\r\n\t\t\t\t\ttransformer.transform(new DOMSource(doc), new StreamResult(sw));\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tthrow new RuntimeException(\"Error converting to String\", ex);\r\n\t\t\t\t}\r\n\t\t\t\treturn sw.toString();\r\n\t}", "@Override\n public String toString() {\n\n // Add schema location attribute\n this.addSchemaLocation(\"http://www.w3.org/2001/XMLSchema-instance\", \"schemaLocation\", \"xsi\",\n \"http://xsd.sepamail.eu/1206/ xsd/sepamail_missive.xsd \");\n\n // XML options instance\n XmlOptions options = new XmlOptions();\n\n // Set the properties of the XML options\n options.setSavePrettyPrint();\n options.setSaveSuggestedPrefixes(this.suggestedPrefixes);\n options.setUseCDataBookmarks();\n\n try {\n\n // Build XML document using the constructed XML object\n SAXBuilder sxb = new SAXBuilder();\n Document xmlDocument =\n sxb.build(new InputStreamReader(new ByteArrayInputStream(missiveDocument.xmlText(options).getBytes()),\n \"UTF-8\"));\n\n // Pretty print the XML document\n XMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n xmlOutputter.output(xmlDocument, output);\n\n // String with XML content\n return new String(output.toByteArray());\n\n } catch ( JDOMException | IOException ex) {\n\n // TODO: error logging\n System.out.println(ex.getMessage());\n }\n\n return null;\n }", "public EncodingOptions getEncodingOptions();", "abstract void toXML(StringBuilder xml, int level);", "public String returnXml() {\n String result = String.format(\n \"<projects>\"\n + \"<id_pr>%s</id_pr>\"\n + \"<name_project>%s</name_project>\"\n + \"<description_project>%s</description_project>\"\n + \"<code_project>%s</code_project>\"\n + \"<creationdate_project>%s</creationdate_project>\"\n + \"</projects>\",\n getId_pr(), getName_project(), getDescription_project(), getCode_project(), getCreationdate_project());\n return result;\n }", "protected String toXMLFragment() {\n StringBuffer xml = new StringBuffer();\n if (isSetStepConfig()) {\n StepConfig stepConfig = getStepConfig();\n xml.append(\"<StepConfig>\");\n xml.append(stepConfig.toXMLFragment());\n xml.append(\"</StepConfig>\");\n } \n if (isSetExecutionStatusDetail()) {\n StepExecutionStatusDetail executionStatusDetail = getExecutionStatusDetail();\n xml.append(\"<ExecutionStatusDetail>\");\n xml.append(executionStatusDetail.toXMLFragment());\n xml.append(\"</ExecutionStatusDetail>\");\n } \n return xml.toString();\n }" ]
[ "0.6015232", "0.5972729", "0.5972729", "0.5972729", "0.59410715", "0.58399594", "0.58385885", "0.5783746", "0.57410514", "0.57309145", "0.57154083", "0.5651922", "0.56397885", "0.5632343", "0.5630382", "0.56096685", "0.560423", "0.5603105", "0.56005734", "0.5597733", "0.5584312", "0.554271", "0.55331725", "0.55253404", "0.5482874", "0.54662275", "0.5463169", "0.5457962", "0.5449747", "0.5433723", "0.54192865", "0.5412002", "0.54083157", "0.5399489", "0.539319", "0.5387754", "0.53870726", "0.5386028", "0.5377153", "0.5368991", "0.53550506", "0.534762", "0.5338285", "0.52930695", "0.52635944", "0.5251958", "0.524256", "0.5241178", "0.52381617", "0.52377", "0.5236023", "0.5221528", "0.52204406", "0.5207165", "0.51903063", "0.51067734", "0.5100546", "0.5098846", "0.5097074", "0.5097074", "0.5090415", "0.50602245", "0.503856", "0.50308454", "0.50283384", "0.50235385", "0.49970907", "0.49778995", "0.4931783", "0.4926398", "0.49040624", "0.49024537", "0.4883948", "0.48736978", "0.48407552", "0.48407552", "0.4821406", "0.48086497", "0.47994155", "0.4796167", "0.47908646", "0.47814348", "0.47755697", "0.4773177", "0.4771433", "0.47409946", "0.47374266", "0.47271758", "0.47225234", "0.47198614", "0.4717191", "0.47138688", "0.4673308", "0.46699047", "0.46679136", "0.46606976", "0.46443525", "0.46308017", "0.46279788", "0.46272323" ]
0.66860527
0
Method should be avoided due to slow performance without shared SaxReader
public void readXML(Reader inReader) { XmlUtil util = new XmlUtil(); Element root = util.getXml(inReader, "UTF-8"); populate(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readFromXMLFile(XMLStreamReader reader) throws XMLStreamException {\n while (reader.hasNext())\n {\n int eventType= reader.next();\n switch (eventType){\n case XMLStreamReader.START_ELEMENT:\n String elemName=reader.getLocalName();\n if (elemName.equals(\"student\"))\n {\n try {\n super.save(readStudent(reader));\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }", "XMLStreamReader createXMLStreamReader(DataObject sdo);", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localAxisOperationTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"axisOperation\"));\n \n \n elementList.add(localAxisOperation==null?null:\n localAxisOperation);\n } if (localCompleteTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"complete\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localComplete));\n } if (localConfigurationContextTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"configurationContext\"));\n \n \n elementList.add(localConfigurationContext==null?null:\n localConfigurationContext);\n } if (localKeyTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"key\"));\n \n elementList.add(localKey==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKey));\n } if (localLogCorrelationIDStringTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"logCorrelationIDString\"));\n \n elementList.add(localLogCorrelationIDString==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLogCorrelationIDString));\n } if (localMessageContextsTracker){\n if (localMessageContexts!=null){\n for (int i = 0;i < localMessageContexts.length;i++){\n \n if (localMessageContexts[i] != null){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"messageContexts\"));\n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMessageContexts[i]));\n } else {\n \n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"messageContexts\"));\n elementList.add(null);\n \n }\n \n\n }\n } else {\n \n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"messageContexts\"));\n elementList.add(null);\n \n }\n\n } if (localOperationNameTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"operationName\"));\n \n elementList.add(localOperationName==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOperationName));\n } if (localRootContextTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"rootContext\"));\n \n \n elementList.add(localRootContext==null?null:\n localRootContext);\n } if (localServiceContextTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"serviceContext\"));\n \n \n elementList.add(localServiceContext==null?null:\n localServiceContext);\n } if (localServiceGroupNameTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"serviceGroupName\"));\n \n elementList.add(localServiceGroupName==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localServiceGroupName));\n } if (localServiceNameTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://context.axis2.apache.org/xsd\",\n \"serviceName\"));\n \n elementList.add(localServiceName==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localServiceName));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public static GetVehicleBookPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleBookPage object =\n new GetVehicleBookPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleBookPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleBookPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "final public static org.xml.sax.XMLReader makeXMLReader()\n throws Exception\n{ final javax.xml.parsers.SAXParserFactory saxParserFactory =\n javax.xml.parsers.SAXParserFactory.newInstance();\n final javax.xml.parsers.SAXParser saxParser = saxParserFactory.newSAXParser();\n final org.xml.sax.XMLReader parser = saxParser.getXMLReader();\n return parser; }", "public ResolvingXMLReader(CatalogManager manager) {\n/* 86 */ super(manager);\n/* 87 */ SAXParserFactory spf = JdkXmlUtils.getSAXFactory(this.catalogManager.overrideDefaultParser());\n/* 88 */ spf.setValidating(validating);\n/* */ try {\n/* 90 */ SAXParser parser = spf.newSAXParser();\n/* 91 */ setParent(parser.getXMLReader());\n/* 92 */ } catch (Exception ex) {\n/* 93 */ ex.printStackTrace();\n/* */ } \n/* */ }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localTokenTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"token\"));\n \n elementList.add(localToken==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localToken));\n } if (localObjectNameTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"objectName\"));\n \n elementList.add(localObjectName==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localObjectName));\n } if (localOldProperty_descriptionTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldProperty_description\"));\n \n elementList.add(localOldProperty_description==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldProperty_description));\n } if (localOldValues_descriptionTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldValues_description\"));\n \n elementList.add(localOldValues_description==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldValues_description));\n } if (localNewProperty_descriptionTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newProperty_description\"));\n \n elementList.add(localNewProperty_description==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewProperty_description));\n } if (localNewValues_descriptionTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newValues_description\"));\n \n elementList.add(localNewValues_description==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewValues_description));\n } if (localOldProperty_descriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldProperty_descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldProperty_descriptionType));\n } if (localOldValues_descriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldValues_descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldValues_descriptionType));\n } if (localNewProperty_descriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newProperty_descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewProperty_descriptionType));\n } if (localNewValues_descriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newValues_descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewValues_descriptionType));\n } if (localOldCardinalityTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldCardinalityType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldCardinalityType));\n } if (localOldCardinalityNumTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldCardinalityNum\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldCardinalityNum));\n } if (localNewCardinalityTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newCardinalityType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewCardinalityType));\n } if (localNewCardinalityNumTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newCardinalityNum\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewCardinalityNum));\n } if (localDescriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescriptionType));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"directChargeReturn\"));\n \n \n elementList.add(localDirectChargeReturn==null?null:\n localDirectChargeReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localFteReasonCodeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\n \"FteReasonCode\"));\n \n elementList.add(localFteReasonCode==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFteReasonCode));\n } if (localPrimaryPrintIndicatorTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\n \"PrimaryPrintIndicator\"));\n \n elementList.add(localPrimaryPrintIndicator==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrimaryPrintIndicator));\n } if (localSecondaryPrintIndicatorTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\n \"SecondaryPrintIndicator\"));\n \n elementList.add(localSecondaryPrintIndicator==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSecondaryPrintIndicator));\n } if (localFingerprintTemplateTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\n \"FingerprintTemplate\"));\n \n elementList.add(localFingerprintTemplate);\n } if (localNfiqScoresTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\n \"NfiqScores\"));\n \n \n elementList.add(localNfiqScores==null?null:\n localNfiqScores);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"PatientID\"));\n \n if (localPatientID != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPatientID));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"PatientID cannot be null!!\");\n }\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"RadiologyOrderID\"));\n \n if (localRadiologyOrderID != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRadiologyOrderID));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"RadiologyOrderID cannot be null!!\");\n }\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"DateOfExamination\"));\n \n if (localDateOfExamination != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDateOfExamination));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"DateOfExamination cannot be null!!\");\n }\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"ReportText\"));\n \n if (localReportText != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReportText));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"ReportText cannot be null!!\");\n }\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "private void parse() throws XMLStreamException {\n while (reader.hasNext()) {\n if (reader.next() == START_ELEMENT) {\n handleElement();\n }\n }\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localGBInterval_fromTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_from\"));\n \n if (localGBInterval_from != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_from));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_from cannot be null!!\");\n }\n } if (localGBInterval_toTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_to\"));\n \n if (localGBInterval_to != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_to));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_to cannot be null!!\");\n }\n } if (localGBInterval_pointTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_point\"));\n \n if (localGBInterval_point != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_point));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_point cannot be null!!\");\n }\n } if (localGBInterval_iscompTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_iscomp\"));\n \n \n if (localGBInterval_iscomp==null){\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_iscomp cannot be null!!\");\n }\n elementList.add(localGBInterval_iscomp);\n } if (localGBInterval_interbpTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_interbp\"));\n \n \n if (localGBInterval_interbp==null){\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_interbp cannot be null!!\");\n }\n elementList.add(localGBInterval_interbp);\n }\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_accession\"));\n \n if (localGBInterval_accession != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_accession));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_accession cannot be null!!\");\n }\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "StaxEventXMLReader(XMLEventReader reader)\n/* */ {\n/* 79 */ Assert.notNull(reader, \"'reader' must not be null\");\n/* */ try {\n/* 81 */ XMLEvent event = reader.peek();\n/* 82 */ if ((event != null) && (!event.isStartDocument()) && (!event.isStartElement())) {\n/* 83 */ throw new IllegalStateException(\"XMLEventReader not at start of document or element\");\n/* */ }\n/* */ }\n/* */ catch (XMLStreamException ex) {\n/* 87 */ throw new IllegalStateException(\"Could not read first element: \" + ex.getMessage());\n/* */ }\n/* 89 */ this.reader = reader;\n/* */ }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"directOrderStateQueryReturn\"));\n \n \n elementList.add(localDirectOrderStateQueryReturn==null?null:\n localDirectOrderStateQueryReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"return\"));\n \n elementList.add(local_return==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"return\"));\n \n elementList.add(local_return==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"return\"));\n \n elementList.add(local_return==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"return\"));\n \n elementList.add(local_return==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localMsisdnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"msisdn\"));\n \n elementList.add(localMsisdn==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMsisdn));\n } if (localBundleIDTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"bundleID\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBundleID));\n } if (localSpidTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"spid\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSpid));\n } if (localBucketIDTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"bucketID\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBucketID));\n } if (localBalancesTracker){\n if (localBalances!=null) {\n for (int i = 0;i < localBalances.length;i++){\n\n if (localBalances[i] != null){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"balances\"));\n elementList.add(localBalances[i]);\n } else {\n \n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"balances\"));\n elementList.add(null);\n \n }\n\n }\n } else {\n \n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"balances\"));\n elementList.add(localBalances);\n \n }\n\n } if (localUnitTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"unitType\"));\n \n \n elementList.add(localUnitType==null?null:\n localUnitType);\n } if (localExpiryTimeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"expiryTime\"));\n \n elementList.add(localExpiryTime==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExpiryTime));\n } if (localActivationTimeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"activationTime\"));\n \n elementList.add(localActivationTime==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivationTime));\n } if (localProvisionTimeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"provisionTime\"));\n \n elementList.add(localProvisionTime==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProvisionTime));\n } if (localStatusTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"status\"));\n \n \n elementList.add(localStatus==null?null:\n localStatus);\n } if (localBundleNameTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://soap.crmapi.util.redknee.com/subscriptions/xsd/2010/06\",\n \"bundleName\"));\n \n elementList.add(localBundleName==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBundleName));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"directQueryReturn\"));\n \n \n elementList.add(localDirectQueryReturn==null?null:\n localDirectQueryReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public static GetRoadwayPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetRoadwayPage object =\n new GetRoadwayPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getRoadwayPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetRoadwayPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"return\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "private static void staxReader(File file) throws XMLStreamException, FileNotFoundException, FactoryConfigurationError, IOException {\n\n FileInputStream fis = new FileInputStream(file);\n Page[] ns0pages = StaxPageParser.pagesFromFile(fis);\n\n// reporter(ns0pages);\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"getDirectSrvInfoReturn\"));\n \n \n elementList.add(localGetDirectSrvInfoReturn==null?null:\n localGetDirectSrvInfoReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localUnusedTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"unused\"));\n \n \n elementList.add(localUnused==null?null:\n localUnused);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public static GetDirectAreaInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectAreaInfo object =\n new GetDirectAreaInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectAreaInfo\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectAreaInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static DirectQuery parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DirectQuery object =\n new DirectQuery();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"directQuery\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DirectQuery)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetVehicleBookPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleBookPageResponse object =\n new GetVehicleBookPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleBookPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleBookPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetVehicleRecordPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleRecordPage object =\n new GetVehicleRecordPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleRecordPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleRecordPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "StreamReader underlyingReader();", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"getDirectAreaInfoReturn\"));\n \n \n elementList.add(localGetDirectAreaInfoReturn==null?null:\n localGetDirectAreaInfoReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public static GetDirectSrvInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectSrvInfo object =\n new GetDirectSrvInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectSrvInfo\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectSrvInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"OrderID\"));\n \n if (localOrderID != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOrderID));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"OrderID cannot be null!!\");\n }\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"Date\"));\n \n if (localDate != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDate));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"Date cannot be null!!\");\n }\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public void readXml(Reader reader, final DataTable table) throws SQLException {\n try {\n /*\n * Parsing is done via SAX. The basic methodology is to keep a stack of tags seen.\n * Also, a flag is kept to keep track of whether or not a <null/> tag has been seen.\n * This flag is reset to false whenever a new tag is started, but is set to true when\n * the end of the <null> tag is found.\n * Also, A single variable contains the results of the character data for the current tag.\n * This variable is read after the end tag is found. You will find that all work is\n * done after the entire element has been read (after the end tag).\n */\n \n WebRowSetXMLHandler handler = new WebRowSetXMLHandler(table);\n SAXParser parser = FACTORY.newSAXParser();\n XMLReader xmlReader = parser.getXMLReader();\n xmlReader.setProperty(\n \"http://xml.org/sax/properties/lexical-handler\",\n handler\n );\n \n parser.parse(new InputSource(reader), handler );\n } catch (Exception e) {\n e.printStackTrace();\n throw new SQLException(\"Error while parsing a the xml document for a WebRowSetDataProvider\");\n }\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n if (local_returnTracker){\r\n if (local_return!=null) {\r\n for (int i = 0;i < local_return.length;i++){\r\n\r\n if (local_return[i] != null){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"return\"));\r\n elementList.add(local_return[i]);\r\n } else {\r\n \r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"return\"));\r\n elementList.add(null);\r\n \r\n }\r\n\r\n }\r\n } else {\r\n \r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"return\"));\r\n elementList.add(local_return);\r\n \r\n }\r\n\r\n }\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n \r\n \r\n\r\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n if (local_returnTracker){\r\n if (local_return!=null){\r\n for (int i = 0;i < local_return.length;i++){\r\n \r\n if (local_return[i] != null){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"return\"));\r\n elementList.add(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return[i]));\r\n } else {\r\n \r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"return\"));\r\n elementList.add(null);\r\n \r\n }\r\n \r\n\r\n }\r\n } else {\r\n \r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"return\"));\r\n elementList.add(null);\r\n \r\n }\r\n\r\n }\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n \r\n \r\n\r\n }", "public void saxReader() throws SAXException, IOException, WoodsException{\n\t\tXMLReader reader = XMLReaderFactory.createXMLReader();\n\t\treader.setContentHandler(new DatabaseContentHandler());\n\t\t\n\t\ttry{\n\t\t\treader.parse(\"database.xml\"); \n\t\t} catch(FileNotFoundException e){\n\t\t\tthrow new WoodsException(\"XML file was not found.\");\n\t\t}\n\t}", "public static GetVehicleInfoPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleInfoPage object =\n new GetVehicleInfoPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleInfoPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleInfoPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"qqChargeReturn\"));\n \n \n elementList.add(localQqChargeReturn==null?null:\n localQqChargeReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"getDownLoadCardReturn\"));\n \n \n elementList.add(localGetDownLoadCardReturn==null?null:\n localGetDownLoadCardReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public void parseDocument() {\n\n // Create a SAXParserFactory instance\n SAXParserFactory factory = SAXParserFactory.newInstance();\n\n // Get the today Date\n Date today = new Date(new java.util.Date().getTime());\n\n File file=new File(this.xmlFileName);\n this.fileName=file.getName();\n\n //Create Sync Status Object\n SyncStatus syncStatus= new SyncStatus();\n syncStatus.setSysMerchantNo(this.merchantNo);\n syncStatus.setSysLocation(this.userLocation);\n\n Long lastBatchIndex=syncStatusService.getLastBatchIndex(this.merchantNo, this.userLocation,SyncType.SALES, today);\n\n syncStatus.setSysBatch(lastBatchIndex!=null?lastBatchIndex+1L:1L);\n syncStatus.setSysDate(today);\n syncStatus.setSysBatchRef(this.fileName);\n syncStatus.setSysType(SyncType.SALES);\n syncStatus.setSysStatus(SyncProcessStatus.ONGOING);\n syncStatus=syncStatusService.saveSyncStatus(syncStatus);\n\n try {\n\n\n\n // Get the parser\n SAXParser parser = factory.newSAXParser();\n\n // Call the parse on the parser for the filename\n parser.parse(xmlFileName,this);\n\n //get size of salesData\n Integer noSalesData=salesData.size();\n\n //Sub list of salesData List for Batch split\n List<Sale> saleList;\n\n //To set batchEndIndex for subList\n int batchStartIndex=0;\n\n //To set batchEndIndex for subList\n int batchEndIndex=0;\n\n\n boolean isSaveStatus=true;\n\n Integer savedCount=0;\n\n //process new sales\n for(batchStartIndex=0;batchStartIndex<noSalesData;batchStartIndex=batchStartIndex+noPerBatch){\n\n //set batchEndIndex\n batchEndIndex=(batchStartIndex+noPerBatch);\n\n //set batchEndIndex as size of saleData if batchEndIndex is greater than its size\n batchEndIndex=batchEndIndex>noSalesData?noSalesData:batchEndIndex;\n\n saleList=salesData.subList(batchStartIndex,batchEndIndex);\n\n try{\n\n // Save the Sale\n saleService.saveSalesAll(saleList, auditDetails);\n\n savedCount++;\n\n }catch(InspireNetzException ex){\n\n isSaveStatus=false;\n\n log.info(\"SalesMasterXMLParser:- Save :-batch \"+syncStatus.getSysBatch()+\" : \"+batchStartIndex+\" failed\");\n\n ex.printStackTrace();\n }catch(Exception e){\n\n log.info(\"SalesMasterXMLParser:- Save :-batch sale:\"+e);\n\n e.printStackTrace();\n\n }\n\n\n }\n\n if(isSaveStatus){\n\n syncStatus.setSysStatus(SyncProcessStatus.COMPLETED);\n\n }else if(!isSaveStatus && savedCount>0){\n\n syncStatus.setSysStatus(SyncProcessStatus.PARTIALLY_COMPLETED);\n\n }else{\n\n syncStatus.setSysStatus(SyncProcessStatus.FAILED);\n\n }\n\n syncStatus=syncStatusService.saveSyncStatus(syncStatus);\n\n }catch(NullPointerException e){\n\n syncStatus.setSysStatus(SyncProcessStatus.FAILED);\n\n syncStatus=syncStatusService.saveSyncStatus(syncStatus);\n\n log.error(\"Parser Config Error \" + xmlFileName);\n\n\n e.printStackTrace();\n\n throw e;\n }\n catch (ParserConfigurationException e) {\n\n syncStatus.setSysStatus(SyncProcessStatus.FAILED);\n\n syncStatus=syncStatusService.saveSyncStatus(syncStatus);\n\n log.error(\"Parser Config Error \" + xmlFileName);\n e.printStackTrace();\n\n } catch (SAXException e) {\n\n syncStatus.setSysStatus(SyncProcessStatus.FAILED);\n\n syncStatus=syncStatusService.saveSyncStatus(syncStatus);\n\n log.error(\"SAX Exception : XML not well formed \" + xmlFileName);\n e.printStackTrace();\n\n } catch (IOException e) {\n\n syncStatus.setSysStatus(SyncProcessStatus.FAILED);\n\n syncStatus=syncStatusService.saveSyncStatus(syncStatus);\n\n log.error(\"IO Error \" + xmlFileName);\n e.printStackTrace();\n\n }catch(Exception e){\n\n syncStatus.setSysStatus(SyncProcessStatus.FAILED);\n\n syncStatus=syncStatusService.saveSyncStatus(syncStatus);\n\n log.error(e.toString() + xmlFileName);\n e.printStackTrace();\n\n }\n\n }", "public static GetDirectSrvInfoResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectSrvInfoResponse object =\n new GetDirectSrvInfoResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectSrvInfoResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectSrvInfoResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"getDirectSrvInfoReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setGetDirectSrvInfoReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setGetDirectSrvInfoReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"PatientID\"));\n \n if (localPatientID != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPatientID));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"PatientID cannot be null!!\");\n }\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"CaseID\"));\n \n if (localCaseID != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCaseID));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"CaseID cannot be null!!\");\n }\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"ExaminationType\"));\n \n \n if (localExaminationType==null){\n throw new org.apache.axis2.databinding.ADBException(\"ExaminationType cannot be null!!\");\n }\n elementList.add(localExaminationType);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public static ExaminationType_type1 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ExaminationType_type1 object = null;\n // initialize a hash map to keep values\n java.util.Map attributeMap = new java.util.HashMap();\n java.util.List extraAttributeList = new java.util.ArrayList<org.apache.axiom.om.OMAttribute>();\n \n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ExaminationType_type0\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n if (content.indexOf(\":\") > 0) {\n // this seems to be a Qname so find the namespace and send\n prefix = content.substring(0, content.indexOf(\":\"));\n namespaceuri = reader.getNamespaceURI(prefix);\n object = ExaminationType_type1.Factory.fromString(content,namespaceuri);\n } else {\n // this seems to be not a qname send and empty namespace incase of it is\n // check is done in fromString method\n object = ExaminationType_type1.Factory.fromString(content,\"\");\n }\n \n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetEntrancePage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetEntrancePage object =\n new GetEntrancePage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getEntrancePage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetEntrancePage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n \r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n \r\n \r\n\r\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"CSPID\"));\n \n \n elementList.add(localCSPID==null?null:\n localCSPID);\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"LSPID\"));\n \n \n elementList.add(localLSPID==null?null:\n localLSPID);\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"CorrelateID\"));\n \n \n elementList.add(localCorrelateID==null?null:\n localCorrelateID);\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"CmdFileURL\"));\n \n \n elementList.add(localCmdFileURL==null?null:\n localCmdFileURL);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public IncrementalSAXSource_Xerces()\n throws NoSuchMethodException\n {\n try\n {\n // This should be cleaned up and the use of reflection\n // removed - see JDK-8129880\n\n // Xerces-2 incremental parsing support (as of Beta 3)\n // ContentHandlers still get set on fIncrementalParser (to get\n // conversion from XNI events to SAX events), but\n // _control_ for incremental parsing must be exercised via the config.\n //\n // At this time there's no way to read the existing config, only\n // to assert a new one... and only when creating a brand-new parser.\n //\n // Reflection is used to allow us to continue to compile against\n // Xerces1. If/when we can abandon the older versions of the parser,\n // this will simplify significantly.\n\n // If we can't get the magic constructor, no need to look further.\n Class<?> xniConfigClass=ObjectFactory.findProviderClass(\n \"com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration\",\n true);\n Class<?>[] args1={xniConfigClass};\n Constructor<?> ctor=SAXParser.class.getConstructor(args1);\n\n // Build the parser configuration object. StandardParserConfiguration\n // happens to implement XMLPullParserConfiguration, which is the API\n // we're going to want to use.\n Class<?> xniStdConfigClass=ObjectFactory.findProviderClass(\n \"com.sun.org.apache.xerces.internal.parsers.StandardParserConfiguration\",\n true);\n fPullParserConfig=xniStdConfigClass.getConstructor().newInstance();\n Object[] args2={fPullParserConfig};\n fIncrementalParser = (SAXParser)ctor.newInstance(args2);\n\n // Preload all the needed the configuration methods... I want to know they're\n // all here before we commit to trying to use them, just in case the\n // API changes again.\n Class<?> fXniInputSourceClass=ObjectFactory.findProviderClass(\n \"com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource\",\n true);\n Class<?>[] args3={fXniInputSourceClass};\n fConfigSetInput=xniStdConfigClass.getMethod(\"setInputSource\",args3);\n\n Class<?>[] args4={String.class,String.class,String.class};\n fConfigInputSourceCtor=fXniInputSourceClass.getConstructor(args4);\n Class<?>[] args5={java.io.InputStream.class};\n fConfigSetByteStream=fXniInputSourceClass.getMethod(\"setByteStream\",args5);\n Class<?>[] args6={java.io.Reader.class};\n fConfigSetCharStream=fXniInputSourceClass.getMethod(\"setCharacterStream\",args6);\n Class<?>[] args7={String.class};\n fConfigSetEncoding=fXniInputSourceClass.getMethod(\"setEncoding\",args7);\n\n Class<?>[] argsb={Boolean.TYPE};\n fConfigParse=xniStdConfigClass.getMethod(\"parse\",argsb);\n Class<?>[] noargs=new Class<?>[0];\n fReset=fIncrementalParser.getClass().getMethod(\"reset\",noargs);\n }\n catch(Exception e)\n {\n // Fallback if this fails (implemented in createIncrementalSAXSource) is\n // to attempt Xerces-1 incremental setup. Can't do tail-call in\n // constructor, so create new, copy Xerces-1 initialization,\n // then throw it away... Ugh.\n IncrementalSAXSource_Xerces dummy=new IncrementalSAXSource_Xerces(new SAXParser());\n this.fParseSomeSetup=dummy.fParseSomeSetup;\n this.fParseSome=dummy.fParseSome;\n this.fIncrementalParser=dummy.fIncrementalParser;\n }\n }", "public static ExaminationType_type0 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ExaminationType_type0 object = null;\n // initialize a hash map to keep values\n java.util.Map attributeMap = new java.util.HashMap();\n java.util.List extraAttributeList = new java.util.ArrayList<org.apache.axiom.om.OMAttribute>();\n \n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ExaminationType_type0\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n if (content.indexOf(\":\") > 0) {\n // this seems to be a Qname so find the namespace and send\n prefix = content.substring(0, content.indexOf(\":\"));\n namespaceuri = reader.getNamespaceURI(prefix);\n object = ExaminationType_type0.Factory.fromString(content,namespaceuri);\n } else {\n // this seems to be not a qname send and empty namespace incase of it is\n // check is done in fromString method\n object = ExaminationType_type0.Factory.fromString(content,\"\");\n }\n \n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Test\n public void testRead_Reader() {\n //System.out.println(\"read\");\n Reader source = new StringReader(testXMLDoc);\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.read(source);\n //System.out.println(\"XML read OK\");\n source = new StringReader(testTurtleDoc);\n instance.read(source);\n //System.out.println(\"Turtle read OK\");\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"codigo\"));\n \n elementList.add(localCodigo==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCodigo));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"bloqueado\"));\n \n elementList.add(localBloqueado==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBloqueado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"estado\"));\n \n \n elementList.add(localEstado==null?null:\n localEstado);\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"fechaFacturado\"));\n \n elementList.add(localFechaFacturado==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFechaFacturado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"fechaSolicitud\"));\n \n elementList.add(localFechaSolicitud==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFechaSolicitud));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"flete\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFlete));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"motivoRechazo\"));\n \n \n elementList.add(localMotivoRechazo==null?null:\n localMotivoRechazo);\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"observacion\"));\n \n elementList.add(localObservacion==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localObservacion));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"origen\"));\n \n elementList.add(localOrigen==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOrigen));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoDescuento\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoDescuento));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoEstimado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoEstimado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoSolicitado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoSolicitado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoFacturado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoFacturado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoFacturadoSinDescuento\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoFacturadoSinDescuento));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"percepcion\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPercepcion));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"cantidadCUVErrado\"));\n \n elementList.add(localCantidadCUVErrado==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCantidadCUVErrado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"cantidadFaltanteAnunciado\"));\n \n elementList.add(localCantidadFaltanteAnunciado==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCantidadFaltanteAnunciado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoPedidoRechazado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoPedidoRechazado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoCatalogoEstimado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoCatalogoEstimado));\n \n if (localPedidoDetalle!=null) {\n for (int i = 0;i < localPedidoDetalle.length;i++){\n\n if (localPedidoDetalle[i] != null){\n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"pedidoDetalle\"));\n elementList.add(localPedidoDetalle[i]);\n } else {\n \n throw new org.apache.axis2.databinding.ADBException(\"pedidoDetalle cannot be null !!\");\n \n }\n\n }\n } else {\n \n throw new org.apache.axis2.databinding.ADBException(\"pedidoDetalle cannot be null!!\");\n \n }\n\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n if (localSpIdTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"spId\"));\r\n \r\n if (localSpId != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSpId));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"spId cannot be null!!\");\r\n }\r\n } if (localSpPasswordTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"spPassword\"));\r\n \r\n if (localSpPassword != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSpPassword));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"spPassword cannot be null!!\");\r\n }\r\n } if (localServiceIdTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"serviceId\"));\r\n \r\n if (localServiceId != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localServiceId));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"serviceId cannot be null!!\");\r\n }\r\n } if (localTimeStampTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"timeStamp\"));\r\n \r\n if (localTimeStamp != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeStamp));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"timeStamp cannot be null!!\");\r\n }\r\n } if (localOATracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"OA\"));\r\n \r\n if (localOA != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOA));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"OA cannot be null!!\");\r\n }\r\n } if (localOauth_tokenTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"oauth_token\"));\r\n \r\n if (localOauth_token != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOauth_token));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"oauth_token cannot be null!!\");\r\n }\r\n } if (localFATracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"FA\"));\r\n \r\n if (localFA != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFA));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"FA cannot be null!!\");\r\n }\r\n } if (localTokenTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"token\"));\r\n \r\n if (localToken != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localToken));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"token cannot be null!!\");\r\n }\r\n } if (localWatcherTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"watcher\"));\r\n \r\n if (localWatcher != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWatcher));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"watcher cannot be null!!\");\r\n }\r\n } if (localPresentityTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"presentity\"));\r\n \r\n if (localPresentity != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPresentity));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"presentity cannot be null!!\");\r\n }\r\n } if (localAuthIdTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"authId\"));\r\n \r\n if (localAuthId != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAuthId));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"authId cannot be null!!\");\r\n }\r\n } if (localLinkidTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"linkid\"));\r\n \r\n if (localLinkid != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLinkid));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"linkid cannot be null!!\");\r\n }\r\n } if (localPresentidTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"presentid\"));\r\n \r\n if (localPresentid != null){\r\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPresentid));\r\n } else {\r\n throw new org.apache.axis2.databinding.ADBException(\"presentid cannot be null!!\");\r\n }\r\n } if (localMsgTypeTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://www.huawei.com.cn/schema/common/v2_1\",\r\n \"msgType\"));\r\n \r\n elementList.add(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMsgType));\r\n }\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n \r\n \r\n\r\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n if (local_returnTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"return\"));\r\n \r\n elementList.add(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));\r\n }\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n \r\n \r\n\r\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"OrderID\"));\n \n if (localOrderID != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOrderID));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"OrderID cannot be null!!\");\n }\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"OrderStatus\"));\n \n if (localOrderStatus != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOrderStatus));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"OrderStatus cannot be null!!\");\n }\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (local_returnTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"return\"));\n \n \n elementList.add(local_return==null?null:\n local_return);\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public void getXmlFromStream (BufferedReader reader){\n\n String tmpDate = null;\n String strDate = null;\n Date date = null;\n\n try{\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n XmlPullParser xpp = factory.newPullParser();\n\n // point the parser to our file.\n xpp.setInput(reader);\n // get initial eventType\n int eventType = xpp.getEventType();\n\n // process tag while not reaching the end of document\n while(eventType != XmlPullParser.END_DOCUMENT) {\n switch(eventType) {\n // at start of document: START_DOCUMENT\n case XmlPullParser.START_DOCUMENT:\n //study = new Study();\n break;\n\n // at start of a tag: START_TAG\n case XmlPullParser.START_TAG:\n // get tag name\n String tagName = xpp.getName();\n\n // if <Cube>, get attribute: 'currency'\n if(tagName.equalsIgnoreCase(KEY_CUBE)) {\n if(strDate == null){\n strDate = xpp.getAttributeValue(null, KEY_DATE);\n }\n\n String currency = xpp.getAttributeValue(null, KEY_CURRENCY);\n String rate = xpp.getAttributeValue(null, KEY_RATE);\n if(currency != null) {\n\n // Create new object\n date = createDate(strDate); // Create date\n double doubleRate = Double.parseDouble(rate); // Convert string to double\n cubes.add(new CubeXML(new Date(),currency, doubleRate)); // Create object and store in list\n }\n }\n break;\n }\n // jump to next event\n eventType = xpp.next();\n }\n\n // Add euro\n cubes.add(new CubeXML(date, \"Euro\",1));\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n if (localIdTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry/xsd\",\r\n \"id\"));\r\n \r\n elementList.add(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localId));\r\n } if (localIpTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry/xsd\",\r\n \"ip\"));\r\n \r\n elementList.add(localIp==null?null:\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIp));\r\n } if (localNameTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry/xsd\",\r\n \"name\"));\r\n \r\n elementList.add(localName==null?null:\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localName));\r\n } if (localPortTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry/xsd\",\r\n \"port\"));\r\n \r\n elementList.add(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort));\r\n }\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n \r\n \r\n\r\n }", "public static DirectQueryResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DirectQueryResponse object =\n new DirectQueryResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"directQueryResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DirectQueryResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"directQueryReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setDirectQueryReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setDirectQueryReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetDirectAreaInfoResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDirectAreaInfoResponse object =\n new GetDirectAreaInfoResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDirectAreaInfoResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDirectAreaInfoResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"getDirectAreaInfoReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setGetDirectAreaInfoReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setGetDirectAreaInfoReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"terminalDownloadQueryForMonthReturn\"));\n \n \n elementList.add(localTerminalDownloadQueryForMonthReturn==null?null:\n localTerminalDownloadQueryForMonthReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public static GetRoadwayPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetRoadwayPageResponse object =\n new GetRoadwayPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getRoadwayPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetRoadwayPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"terminalDownloadQueryForDayReturn\"));\n \n \n elementList.add(localTerminalDownloadQueryForDayReturn==null?null:\n localTerminalDownloadQueryForDayReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public void testXmlReader() throws Exception {\n File file = new File(\"src/test/resources/reader/sample.xml\");\n final URL testdata = file.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of nodes\", 1, creator.size());\n }", "public static GetVehicleRecordPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleRecordPageResponse object =\n new GetVehicleRecordPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleRecordPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleRecordPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private static StAXManager getStAXManager() throws XMLStreamException {\n if(staxManager == null) {\n staxManager = new StAXManager(StAXManager.CONTEXT_READER);\n }\n return staxManager;\n }", "public static Hello parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n Hello object =\n new Hello();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"hello\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (Hello)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public NumberedSAXReader() {\n\t\tsuper();\n\t\tthis.setDocumentFactory(new LocatorAwareDocumentFactory());\n\t}", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n if (localUserTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"user\"));\r\n \r\n elementList.add(localUser==null?null:\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUser));\r\n } if (localDeletedFilesTracker){\r\n if (localDeletedFiles!=null){\r\n for (int i = 0;i < localDeletedFiles.length;i++){\r\n \r\n if (localDeletedFiles[i] != null){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"deletedFiles\"));\r\n elementList.add(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDeletedFiles[i]));\r\n } else {\r\n \r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"deletedFiles\"));\r\n elementList.add(null);\r\n \r\n }\r\n \r\n\r\n }\r\n } else {\r\n \r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"deletedFiles\"));\r\n elementList.add(null);\r\n \r\n }\r\n\r\n }\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n \r\n \r\n\r\n }", "public static DirectCharge parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DirectCharge object =\n new DirectCharge();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"directCharge\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DirectCharge)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetVehicleInfoPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleInfoPageResponse object =\n new GetVehicleInfoPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleInfoPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleInfoPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static DirectOrderStateQuery parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DirectOrderStateQuery object =\n new DirectOrderStateQuery();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"directOrderStateQuery\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DirectOrderStateQuery)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"terminalReturnCardReturn\"));\n \n \n elementList.add(localTerminalReturnCardReturn==null?null:\n localTerminalReturnCardReturn);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "protected abstract Reader getReader() throws IOException;", "public static List compareXML(Reader source, Reader target) throws\n SAXException, IOException{\n Diff xmlDiff = new Diff(source, target);\n \n //for getting detailed differences between two xml files\n DetailedDiff detailXmlDiff = new DetailedDiff(xmlDiff);\n \n return detailXmlDiff.getAllDifferences();\n }", "public static GetEntrancePageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetEntrancePageResponse object =\n new GetEntrancePageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getEntrancePageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetEntrancePageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException {\r\n\r\n\r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n if (localAttributesTracker) {\r\n elementList.add(new javax.xml.namespace.QName(\"\",\r\n \"attributes\"));\r\n\r\n\r\n elementList.add(localAttributes == null ? null :\r\n localAttributes);\r\n }\r\n if (localIdentifierTracker) {\r\n elementList.add(new javax.xml.namespace.QName(\"\",\r\n \"identifier\"));\r\n\r\n\r\n elementList.add(localIdentifier == null ? null :\r\n localIdentifier);\r\n }\r\n if (localNameTracker) {\r\n elementList.add(new javax.xml.namespace.QName(\"\",\r\n \"name\"));\r\n\r\n elementList.add(localName == null ? null :\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localName));\r\n }\r\n if (localSourceTracker) {\r\n elementList.add(new javax.xml.namespace.QName(\"\",\r\n \"source\"));\r\n\r\n elementList.add(localSource == null ? null :\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSource));\r\n }\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n\r\n\r\n }", "public static GetParkPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetParkPage object =\n new GetParkPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getParkPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetParkPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "XMLStreamReader createXMLStreamReader(XMLDocument document) throws XMLStreamException;", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n if (localNameTracker){\r\n elementList.add(new javax.xml.namespace.QName(\"http://registry\",\r\n \"name\"));\r\n \r\n elementList.add(localName==null?null:\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localName));\r\n }\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n \r\n \r\n\r\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }" ]
[ "0.59959966", "0.5822711", "0.58163303", "0.5815045", "0.5804523", "0.579632", "0.57807606", "0.57778746", "0.5759619", "0.57512385", "0.57476425", "0.5745363", "0.5739265", "0.5707015", "0.57025", "0.5696959", "0.5696959", "0.5696959", "0.5696959", "0.5694098", "0.5686062", "0.5671095", "0.5665368", "0.5658214", "0.5657149", "0.5655715", "0.5644767", "0.56394666", "0.56345016", "0.56329715", "0.56286347", "0.56280184", "0.5621371", "0.5615469", "0.55965954", "0.5594263", "0.55880934", "0.5571765", "0.5558608", "0.5556546", "0.5552148", "0.5548716", "0.554108", "0.5538295", "0.55234563", "0.5517804", "0.5516376", "0.55136704", "0.5513433", "0.55129135", "0.5512176", "0.5510459", "0.55101746", "0.5505479", "0.5494319", "0.5489541", "0.5489541", "0.5489541", "0.5489541", "0.5489541", "0.5489541", "0.5489541", "0.5489541", "0.5489541", "0.5489441", "0.547957", "0.547625", "0.5461085", "0.54610217", "0.5460632", "0.54585284", "0.5452833", "0.5452833", "0.5452833", "0.5452833", "0.5452833", "0.5452833", "0.5452833", "0.5452833", "0.5452833", "0.5452833", "0.5452833", "0.54429597", "0.54405296", "0.54296976", "0.54279137", "0.5417652", "0.5413546", "0.54058594", "0.5404766", "0.5401661", "0.54014075", "0.5393603", "0.53934497", "0.5389026", "0.5388071", "0.537923", "0.5378076", "0.53772193", "0.53617585", "0.5356361" ]
0.0
-1
note: needs replacement in list, else would use earlier ones
private void moveMatchingNodeToNextElement(Node tmp) { for (int i = 0; i < ALL_LINKED_LISTS.size();i++) { Node next = ALL_LINKED_LISTS.get(i); if (tmp.equals(next)) { next = next.next; ALL_LINKED_LISTS.put(i, next); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void modify(List listString){\n\t}", "public static void replace (Object[] list, Object original, Object replacement)\n {\n // You will write this method in lab.\n \t\n \tfor(int pos = 0; pos < list.length; pos++)\n \t\tif(list[pos] == original)\n \t\t\tlist[pos] = replacement;\n }", "public static List<String> replace(List<String> in, String old, String rpl) {\n return in.stream()\n .map(s -> s.equals(old) ? rpl : old) // Replace element if it matches the old string\n .collect(Collectors.toList()); // Collect result\n }", "public static List<Integer> replace(List<Integer> list){\n\t\tList<Integer> r= new ArrayList<Integer>();\n\t\tr.add(7);\n\t\tr.add(-4);\n\t\tr.add(0);\n\t\tr.add(7);\n\t\tr.add(7);\n\t\t\n\t\treturn r;\n\t}", "public void replaceListOfArticles(List<Article> list) {\n this.listOfArticles = list;\n }", "public void replace() {\n\t\tArrayList<Point> points = nullPoint();\n\t\twhile(0 < points.size()) {\n\t\t\tPoint p = points.get(0); //only get the first one \n\t\t\tif(p.x==0) { //if p is in first column\n\t\t\t\tset(p,_colorFileNames.get(_rand.nextInt(_colorFileNames.size()))); //set a new string\n\t\t\t}\n\t\t\telse { \n\t\t\t\texchange(p, new Point(p.x-1,p.y)); //exchange with the string above\n\t\t\t}\n\t\t\tpoints = nullPoint(); //renew the arraylist, will exclude the fist point\n\t\t} //end loop when there are is no null point\n\t}", "public static boolean replaceAll(java.util.List arg0, java.lang.Object arg1, java.lang.Object arg2)\n { return false; }", "private static void m2800a(List list, List list2) {\n for (int i = 0; i < list.size(); i++) {\n Uri uri = ((bcd) list.get(i)).f3233a;\n if (uri != null && !list2.contains(uri)) {\n list2.add(uri);\n }\n }\n }", "public void replaceThesarusWordwithGoogleWord ( ) {\r\n\t \t\t \t\r\n\t \tfor (Map.Entry<String, List<String>> entry : GoogleToThesarus.entrySet()) {\r\n\t String key = entry.getKey();\r\n\t List<String> values = entry.getValue();\r\n\t //String wordIsReplaced=null;\r\n\t \r\n\t for (String temp: values) {\r\n\t \t//why is this null\r\n\t \t\r\n\t \tif (splitto.equals(temp)) {\r\n\t \t\tsplitto=key;\r\n\t \t\tif(!replacedWordList.contains(splitto))\r\n\t \t\t\treplacedWordList.add(splitto);\r\n \t\t\r\n\t \t \t\t \t\t}\r\n\t \telse {\r\n\t \t\t//wordIsReplaced=splitto;\r\n\t \t\t//System.out.println(\"failed\");\r\n\t \t}\r\n\t \t\t }\r\n\t \t}\r\n\t }", "void update(List<E> list, E o, E n) {\n\t\tint index = list.indexOf(o);\n\t\tlist.set(index, n);\n\t}", "@Override\n public void refreshList(ArrayList<String> newList){\n }", "void commitShadowList() {\n int shadowNextIdx = 0;\n for(int i = 0, j = 0; i < nextIdx && j < shadowList.size(); i++){\n if(actualList.get(i).equals(shadowList.get(j))){\n // replace the shadow list's element with actual list's element to persist execution state\n shadowList.set(j, actualList.get(i));\n j++;\n shadowNextIdx++;\n } else if(j != 0){\n break;\n }\n }\n List<Action> tmpList = shadowList;\n shadowList = actualList;\n actualList = tmpList;\n nextIdx = shadowNextIdx;\n shadowList.clear();\n }", "public void mo88640a(List<String> list) {\n List<String> stringList = RxPreferences.INSTANCE.getStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), new ArrayList());\n stringList.addAll(0, list);\n RxPreferences.INSTANCE.putStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), (List) StreamSupport.m150134a(stringList).mo131128a(new AbstractC32239o(new HashSet(stringList)) {\n /* class com.zhihu.android.p1480db.fragment.customview.C18240x255e53c2 */\n private final /* synthetic */ HashSet f$0;\n\n {\n this.f$0 = r1;\n }\n\n @Override // java8.util.p2234b.AbstractC32239o\n public final boolean test(Object obj) {\n return DbEditorSuggestTagCustomView.m93354a(this.f$0, (String) obj);\n }\n }).mo131126a(5).mo131125a(Collectors.m150203a($$Lambda$ofunvu1bqmYbfXGEtxXaV_csE4M.INSTANCE)));\n }", "static void swap(List<CustomCharacter> list, int a, int b){\n CustomCharacter temp = getClone(list, a);\n list.set(a, list.get(b));\n list.set(b, temp);\n }", "public int[] replaceAll(int target, int replacement) {\n\t \t\t\tfor(int i = 0; i < size; i++) { //loop through the list and find the index(es) of the target\n\t \t\t\t\tif(elementData[i] == target) {\n\t \t\t\t\t\telementData[i] = replacement;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\treturn elementData;\n\t \t\t}", "void replaceRegex() {\n int index = -1;\n for (int i = 0; i < regex.elist.size(); i++) {\n if (regex.elist.get(i).isShareableUnit) {\n ElementShareableUnit share = (ElementShareableUnit) regex.elist.get(i);\n if (share.share == this) {\n index = i;\n }\n }\n }\n //replace in parenthesis\n for (int i = 0; i < regex.elist.size(); i++) {\n Element e = regex.elist.get(i);\n if (e.isParentheis) {\n e.replaceRegex(this);\n }\n\n }\n if (index == -1) {\n System.out.println(\"there is error \" + this.getString());\n } else {\n regex.elist.remove(index);\n for (int i = 0; i < this.lelement.size(); i++) {\n regex.elist.add(index + i, this.lelement.get(i));\n }\n }\n //System.out.println(\"After: \" + this.regex.getString());\n }", "public void addSubstitute(String match, String replace) {\n/* 206 */ if (!this.substitutes.containsKey(match))\n/* */ {\n/* 208 */ this.substitutes.put(match, new ArrayList<String>());\n/* */ }\n/* 210 */ ((List<String>)this.substitutes.get(match)).add(replace);\n/* */ }", "@Deprecated\n public synchronized void mergeOutputList(List replacement) {\n logger.debug3(\"Merging with replacement\");\n listStack.pop(); // discard result\n List newTop = (List)listStack.peek();\n newTop.addAll(replacement);\n }", "<E> void poke(ArrayList<E> list, int pos, E val) {\n for (int i = list.size(); i <= pos; ++i) {\n list.add(i, null);\n }\n list.set(pos, val);\n }", "public static void randomize(List<String> list) {\n\t\tfor (int i = list.size() - 1; i > 0; i--) {\n\t\t\tint rand = (int)( Math.random() * i );\n\t\t\tString temp = list.get(i);\n\t\t\tlist.set(i, list.get(rand));\n\t\t\tlist.set(rand, temp);\n\t\t}\n\t}", "private void setListAndResetSelection(JList list, List<String> items, java.util.List selection) {\n Map<String,Integer> str_to_i = new HashMap<String,Integer>();\n String as_str[] = new String[items.size()]; for (int i=0;i<as_str.length;i++) { as_str[i] = items.get(i); str_to_i.put(as_str[i], i); }\n list.setListData(as_str);\n if (selection.size() > 0) {\n List<Integer> ints = new ArrayList<Integer>(); \n // Find the indices for the previous settings\n for (int i=0;i<selection.size();i++)\n if (str_to_i.containsKey(selection.get(i))) \n\t ints.add(str_to_i.get(selection.get(i)));\n // Convert back to ints\n int as_ints[] = new int[ints.size()];\n for (int i=0;i<as_ints.length;i++) as_ints[i] = ints.get(i);\n list.setSelectedIndices(as_ints);\n }\n }", "private List<String> replaceTokens(final AbstractBuild<?, ?> build, final BuildListener listener,\n final List<String> params) {\n final List<String> tokenizedParams = new ArrayList<String>();\n\n for (int i = 0; i < params.size(); i++) {\n tokenizedParams.add(replaceToken(build, listener, params.get(i)));\n // params.set(i, replaceToken(build, listener, params.get(i)));\n }\n\n return tokenizedParams;\n }", "@InsertProvider(type = ReplaceListProvider.class, method = \"dynamicSQL\")\n int replaceList(List<? extends T> recordList);", "public static void main(String... args) {\n\n Person p1 = new Person(\"Mike\", 25);\n Person p2 = new Person(\"John\", 33);\n Person p3 = new Person(\"Slavek\", 48);\n Person p4 = new Person(\"Pawel\", 15);\n Person p5 = new Person(\"MJerry\", 66);\n Person p6 = new Person(\"White\", 35);\n\n List<Person>list = new ArrayList<>(Arrays.asList(p1,p2,p3,p4,p5,p6));\n\n list.forEach(System.out::println);\n list.removeIf(ps->ps.getAge()<25);\n System.out.println(\"after removal\");\n list.forEach(System.out::println);\n System.out.println(\"Trasformation\");\n list.replaceAll(p->new Person(p.getName().toUpperCase(),p.getAge()-5));\n System.out.println(\"After replacement\");\n list.forEach(System.out::println);\n list.sort((s1,s2)->s1.getAge()-s2.getAge());\n System.out.println(\"after sorting\");\n list.forEach(System.out::println);\n list.sort((s1,s2)->s1.getAge()-s2.getAge());\n list.sort(Comparator.comparing(Person::getAge));\n list.sort(Comparator.comparing(Person::getName).reversed());\n\n List<String >sd = Arrays.asList(\"okkok\");\n sd.stream().map(value-> {\n char ss = value.toUpperCase().charAt(0);\n return ss;\n }\n );\n sd.forEach(System.out::println);\n\n\n\n\n }", "public static String replaceEach(String text, String[] searchList,\n String[] replacementList, boolean repeat, int timeToLive) {\n\n if (text == null || text.length() == 0 || searchList == null\n || searchList.length == 0 || replacementList == null\n || replacementList.length == 0) {\n return text;\n }\n\n // if recursing, this shouldnt be less than 0\n if (timeToLive < 0) {\n throw new IllegalStateException(\"TimeToLive of \" + timeToLive\n + \" is less than 0: \" + text);\n }\n\n int searchLength = searchList.length;\n int replacementLength = replacementList.length;\n\n // make sure lengths are ok, these need to be equal\n if (searchLength != replacementLength) {\n throw new IllegalArgumentException(\n \"Search and Replace array lengths don't match: \" + searchLength\n + \" vs \" + replacementLength);\n }\n\n // keep track of which still have matches\n boolean[] noMoreMatchesForReplIndex = new boolean[searchLength];\n\n // index on index that the match was found\n int textIndex = -1;\n int replaceIndex = -1;\n int tempIndex = -1;\n\n // index of replace array that will replace the search string found\n // NOTE: logic duplicated below START\n for (int i = 0; i < searchLength; i++) {\n if (noMoreMatchesForReplIndex[i] || searchList[i] == null\n || searchList[i].length() == 0 || replacementList[i] == null) {\n continue;\n }\n tempIndex = text.indexOf(searchList[i]);\n\n // see if we need to keep searching for this\n if (tempIndex == -1) {\n noMoreMatchesForReplIndex[i] = true;\n } else {\n if (textIndex == -1 || tempIndex < textIndex) {\n textIndex = tempIndex;\n replaceIndex = i;\n }\n }\n }\n // NOTE: logic mostly below END\n\n // no search strings found, we are done\n if (textIndex == -1) {\n return text;\n }\n\n int start = 0;\n\n // get a good guess on the size of the result buffer so it doesnt have to\n // double if it goes over a bit\n int increase = 0;\n\n // count the replacement text elements that are larger than their\n // corresponding text being replaced\n for (int i = 0; i < searchList.length; i++) {\n if (searchList[i] == null || replacementList[i] == null) {\n continue;\n }\n int greater = replacementList[i].length() - searchList[i].length();\n if (greater > 0) {\n increase += 3 * greater; // assume 3 matches\n }\n }\n // have upper-bound at 20% increase, then let Java take over\n increase = Math.min(increase, text.length() / 5);\n\n StringBuffer buf = new StringBuffer(text.length() + increase);\n\n while (textIndex != -1) {\n\n for (int i = start; i < textIndex; i++) {\n buf.append(text.charAt(i));\n }\n buf.append(replacementList[replaceIndex]);\n\n start = textIndex + searchList[replaceIndex].length();\n\n textIndex = -1;\n replaceIndex = -1;\n tempIndex = -1;\n // find the next earliest match\n // NOTE: logic mostly duplicated above START\n for (int i = 0; i < searchLength; i++) {\n if (noMoreMatchesForReplIndex[i] || searchList[i] == null\n || searchList[i].length() == 0 || replacementList[i] == null) {\n continue;\n }\n tempIndex = text.indexOf(searchList[i], start);\n\n // see if we need to keep searching for this\n if (tempIndex == -1) {\n noMoreMatchesForReplIndex[i] = true;\n } else {\n if (textIndex == -1 || tempIndex < textIndex) {\n textIndex = tempIndex;\n replaceIndex = i;\n }\n }\n }\n // NOTE: logic duplicated above END\n\n }\n int textLength = text.length();\n for (int i = start; i < textLength; i++) {\n buf.append(text.charAt(i));\n }\n String result = buf.toString();\n if (!repeat) {\n return result;\n }\n\n return replaceEach(result, searchList, replacementList, repeat,\n timeToLive - 1);\n }", "public void reUpdateTargetList(CopyOnWriteArrayList<Balloon> newList) {\r\n\t\tballoons = newList;\r\n\t}", "private List<String> copySubstitutes(String postScriptName) {\n/* 195 */ return new ArrayList<String>(this.substitutes.get(postScriptName));\n/* */ }", "public void replaceLemma (SentenceList list, String replacementLemma, String key){\n\n \n int sentenceListSize = list.sentenceList.size();\n // iterate over sentence lists\n for (int i = 0; i < sentenceListSize; i++){\n SentenceObj sentenceObjTemp = list.sentenceList.get(i);\n\n // get a word list from each sentence\n LinkedList<WordObj> wordListTemp = sentenceObjTemp.wordList;\n int wordListSize = sentenceObjTemp.wordList.size();\n\n // iterate over wordListTemp and get individual wordObjects\n for (int j = 0; j < wordListSize; j++){\n\n WordObj wordObjTemp = wordListTemp.get(j);\n\n if (wordObjTemp.getName().equals(key)){\n wordObjTemp.setLemma(replacementLemma);\n continue;\n }\n }\n }\n }", "private void swapValue() throws Exception {\n\t\tprocDataList = new ArrayList<String>();\n\t\tString newLine = null;\n\t\tfor(String line : fileDataList){\n\t\t\tif(line.contains(ProcMaker.textThermalExpansionCoefficient)){\n\t\t\t\tnewLine = line.replace(ProcMaker.textThermalExpansionCoefficient, LMain.getTextThermalExpansionCoefficient_2D());\n\t\t\t\tprocDataList.add(newLine);\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\tprocDataList.add(line);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void replaceAt(int index, int e) {\n\t\t\n\t}", "private void fillContentListWithDefaultValues(List<Content> contentList, Integer start, Integer prevLastIndex) {\n\n\t\tfor (int i = start; i < prevLastIndex; i++)\n\t\t\tcontentList.add(null);\n\t}", "public void addReplacement(Replacement replacement) {\n replacements.add(replacement);\n sortedReplacements = null; // Invalidates cached sorted list\n }", "private void updateActiveWords(ArrayList<PatternSorter> wordFamiliesSorter) {\r\n \tfinal int onePattern = 1;\r\n \tfinal int medium = 4;\r\n \tfinal int easy = 2;\r\n \tPatternSorter hardest = wordFamiliesSorter.get(0);\r\n \t// possibilities of picking the hardest word/famliy list \r\n \tboolean isHardest = wordFamiliesSorter.size() == onePattern || this.diff == HangmanDifficulty.HARD ||\r\n \t\t\t(this.diff == HangmanDifficulty.MEDIUM && times % medium != 0) || \r\n \t\t\t(this.diff == HangmanDifficulty.EASY && times % easy != 0);\r\n \tif (isHardest) {\r\n \t\tthis.currPattern = hardest.pattern;\r\n \t\tthis.activeWords.clear();\r\n \t\tthis.activeWords.addAll(hardest.words);\r\n \t} else { // otherwise pick the second hardest list\r\n \t\tint index = 1;\r\n \t\tPatternSorter secondHardest = wordFamiliesSorter.get(index);\r\n \t\tthis.currPattern = secondHardest.pattern;\r\n \t\tthis.activeWords.clear();\r\n \t\tthis.activeWords.addAll(secondHardest.words);\r\n \t}\r\n }", "private static void anonymize(String patientId, AttributeList attributeList, AttributeList replacementAttributeList) {\r\n for (Attribute attribute : getAttributeListValues(attributeList).values()) {\r\n AttributeTag tag = attribute.getTag();\r\n if (attribute instanceof SequenceAttribute) {\r\n Iterator<?> si = ((SequenceAttribute)attribute).iterator();\r\n while (si.hasNext()) {\r\n SequenceItem item = (SequenceItem)si.next();\r\n anonymize(patientId, item.getAttributeList(), replacementAttributeList);\r\n }\r\n }\r\n else {\r\n Attribute replacement = replacementAttributeList.get(tag);\r\n if (replacement != null) {\r\n anonymizeNonSequenceAttribute(patientId, attribute, replacement);\r\n }\r\n }\r\n }\r\n }", "private Set<String> replacementHelper(String word) {\n\t\tSet<String> replacementWords = new HashSet<String>();\n\t\tfor (char letter : LETTERS) {\n\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\treplacementWords.add(word.substring(0, i) + letter + word.substring(i + 1));\n\t\t\t}\n\t\t}\n\t\treturn replacementWords;\n\t}", "private void doReplace(LValue lv, List<LValue> replaceThese, List<Op04StructuredStatement> inThese) {\n\n for (int x=0;x<inThese.size()-1;++x) {\n LValue replaceThis = replaceThese.get(x);\n Op04StructuredStatement inThis = inThese.get(x);\n ExpressionReplacingRewriter err = new ExpressionReplacingRewriter(new LValueExpression(replaceThis), new LValueExpression(lv));\n StructuredAssignment statement = (StructuredAssignment)inThis.getStatement();\n statement.rewriteExpressions(err);\n inThis.replaceStatement(new StructuredAssignment(BytecodeLoc.TODO, lv, statement.getRvalue()));\n }\n Op04StructuredStatement last = inThese.get(inThese.size()-1);\n StructuredAssignment structuredAssignment = (StructuredAssignment)last.getStatement();\n last.replaceStatement(new StructuredAssignment(BytecodeLoc.TODO, lv, structuredAssignment.getRvalue(), true));\n }", "public static List<String> changeCase(List<String> list) {\n if (list != null) {\n List<String> result = new ArrayList<String>();\n for (String element : list) {\n result.add(changeCase(element));\n }\n return result;\n }\n return null;\n }", "private String findUniqueString(String name, List list) {\n if (name == null) {\n return null;\n }\n int index = list.indexOf(name);\n if (index >= 0) {\n return (String)list.get(index);\n }\n else {\n String newName = new String(name);\n list.add(newName);\n return newName;\n }\n }", "private List<Replacement> getSortedReplacements() {\n if(sortedReplacements == null) {\n sortedReplacements = new ArrayList<>(replacements);\n sortedReplacements.sort(ReplacementComparator.getInstance());\n }\n return sortedReplacements;\n }", "String getReplaced();", "@Override\r\n\tpublic void update(List<GroupMember> list) {\n\t\tif(list == null) return;\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t\tupdate(list.get(i));\r\n\t}", "public List<Replacement> getSortedReplacementsCopy() {\n return new ArrayList<>(getSortedReplacements());\n }", "static void patch(List<StateRef> reflist, State s) {\n checkNotNull(reflist);\n for (StateRef ref : reflist) {\n checkState(ref.s == null, \"ref wasn't null in patch\");\n ref.s = s;\n }\n }", "private void addOrReplace(List<SubTree> all, SubTree newSubTree){\n\t\tOptional<SubTree> existingOne = all.stream().filter(t -> t.getTag().equalsIgnoreCase(newSubTree.getTag())).findFirst();\n\t\tif (!existingOne.isPresent()){\n\t\t\tall.add(newSubTree);\n\t\t\treturn;\n\t\t}\n\n\t\tdouble accumulatedProbOfExistingOne = existingOne.get().getAccumulatedMinusLogProb();\n\t\tdouble accumulatedProbOfNewOne = newSubTree.getAccumulatedMinusLogProb();\n\n\t\tif (accumulatedProbOfNewOne < accumulatedProbOfExistingOne){\n\t\t\tfor (int i = 0; i < all.size(); i++) {\n\t\t\t\tif (all.get(i).getTag().equalsIgnoreCase(newSubTree.getTag())){\n\t\t\t\t\tall.remove(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tall.add(newSubTree);\n\t\t}\n\n\t\treturn;\n\t}", "private void setJList(JList list, String strs[]) {\n List<Integer> indexes = new ArrayList<Integer>(); ListModel lm = list.getModel();\n for (int i=0;i<strs.length;i++) { for (int j=0;j<lm.getSize();j++) if (strs[i].equals(\"\" + lm.getElementAt(j))) indexes.add(j); }\n int index_array[] = new int[indexes.size()]; for (int i=0;i<index_array.length;i++) index_array[i] = indexes.get(i);\n list.setSelectedIndices(index_array);\n }", "private void updatePatterns(char guess) {\r\n \tfinal char UNDISPLAYED = '-';\r\n \tfor (int i = 0; i < this.activeWords.size(); i++) {\r\n \t\tString word = this.activeWords.get(i);\r\n \t\tfor (int j = 0; j < word.length(); j++) {\r\n \t\t\tif (word.charAt(j) == guess) {\r\n \t\t\t\tthis.patterns.get(i)[j] = guess;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n }", "protected LinkedList<Vertex> replaceInFamily(Vertex start) {\n\n\t\tLinkedList<Vertex> listOfNewVertex = new LinkedList<Vertex>();\n\n\t\t// if family contains color, search and replace it\n\t\tif (this.getFamilyColorList().contains(start.getColor())) {\n\n\t\t\tif (this.getFamily() != null) {\n\t\t\t\t// Check Family Vertexes before you check to replace the first\n\t\t\t\t// in Family\n\t\t\t\tlistOfNewVertex = this.getFamily().replaceInFamily(start);\n\n\t\t\t\t// Replace Family Vertex if Color and Type are ok\n\t\t\t\tif (this.getFamily().getType().equals(\"Variable\")\n\t\t\t\t\t\t&& this.getFamily().getColor() == start.getColor()) {\n\t\t\t\t\tcloned(start, listOfNewVertex);\n\n\t\t\t\t\t// Animation\n\t\t\t\t\tEvaluationExecutioner.moveAndScaleAnimationWithoutDelay(\n\t\t\t\t\t\t\tposition, this.getFamily().getGameElement(), false);\n\n\t\t\t\t\tif (this.getFamily().getNext() != null) {\n\t\t\t\t\t\treplaced.setNext(this.getFamily().getNext());\n\t\t\t\t\t}\n\t\t\t\t\tthis.setFamily(replaced);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// if next Vertex contains color, search and replace it\n\t\tif (this.getNext() != null) {\n\n\t\t\t// Check all Vertexes next to you, before you check to replace the\n\t\t\t// Next Vertex\n\t\t\tLinkedList<Vertex> listOfNextVertex = this.getNext()\n\t\t\t\t\t.replaceInFamily(start);\n\t\t\tfor (Vertex v : listOfNextVertex) {\n\t\t\t\tlistOfNewVertex.add(v);\n\t\t\t}\n\n\t\t\t// Replace Next Vertex if Color and Type are Ok\n\t\t\tif (this.getNext().getType().equals(\"Variable\")\n\t\t\t\t\t&& this.getNext().getColor() == start.getColor()) {\n\t\t\t\tcloned(start, listOfNewVertex);\n\n\t\t\t\t// Animation\n\t\t\t\tEvaluationExecutioner.moveAndScaleAnimationWithoutDelay(position,\n\t\t\t\t\t\tthis.getNext().getGameElement(), false);\n\n\t\t\t\tif (this.getNext().getNext() != null) {\n\t\t\t\t\treplaced.setNext(this.getNext().getNext());\n\t\t\t\t}\n\n\t\t\t\tthis.setNext(replaced);\n\t\t\t}\n\t\t}\n\t\t// At the End return the ColorList, if something is replaced;\n\t\treturn listOfNewVertex;\n\t}", "void mo54419a(List<String> list);", "private static void swap(List<Integer> list, int i, int j){\n int temp = list.get(i);\n list.set(i,list.get(j));\n list.set(j, temp);\n }", "public static void main(String[] args) {\n\t\tList<String> list = new LinkedList<>(); //ArrayList\r\n\t\tList<String> test = new ArrayList<>();\r\n\t\tList<String> test2 = Arrays.asList(\"Toy\",\"Car\",\"Robot\");\r\n\t\ttest2 = new ArrayList<>(list);\r\n\t\t// 한번에 초기화... immutable 인스턴스임 고정이라... ㄷㄷ->\r\n\t\t// 다시만듬.\r\n\t\tlist.add(\"Toy\");\r\n\t\tlist.add(\"Hello\");\r\n\t\tlist.add(\"Box\");\r\n\t\tlist.add(\"Robot\");\r\n\t\tfor(String s : list)\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\tString str;\r\n\t\tIterator<String> itr = list.iterator(); // 반복자\r\n\t\twhile(itr.hasNext()) \r\n\t\t{\t\r\n\t\t\tstr= itr.next();\r\n\t\t\tif(str.equals(\"Box\"))\r\n\t\t\t\titr.remove();\r\n\t\t//System.out.println(itr);\r\n\t\t\t// 컬렉션 프레임웤은 반복자를 통해 이렇게 참조가 가능하구나~ 더미노드가 존재한다 // \r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tfor(String s : list) // for each , iterator 기반.\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t\t// 양방향 반복자 //\r\n\t\tList<String> dList = Arrays.asList(\"Toy\",\"Box\",\"Robot\",\"Box\");\r\n\t\tdList = new ArrayList<>(dList);\r\n\t\t\r\n\t\tListIterator<String> dIter = dList.listIterator();\r\n\t\twhile(dIter.hasNext()) {\r\n\t\t\tstr = dIter.next();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Toy\"))\r\n\t\t\t\tdIter.add(\"Toy2\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\twhile(dIter.hasPrevious()) {\r\n\t\t\tstr = dIter.previous();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Robot\"))\r\n\t\t\t\tdIter.add(\"Robot2\");\r\n\t\t}\r\n\t}", "private void replaceMembers(LibraryNode ls, LibraryNode lt) {\r\n\t\t// Sort the list so that the order is consistent with each test.\r\n\t\tList<TypeProvider> targets = lt.getDescendants_TypeProviders();\r\n\t\tCollections.sort(targets, lt.new TypeProviderComparable());\r\n\t\tList<TypeProvider> sources = ls.getDescendants_TypeProviders();\r\n\t\tCollections.sort(sources, ls.new TypeProviderComparable());\r\n\t\tint cnt = sources.size();\r\n\r\n\t\t// Replace types with one pseudo-randomly selected from target library.\r\n\t\tfor (TypeProvider n : targets) {\r\n\t\t\tif (n.getWhereAssigned().size() > 0) {\r\n\t\t\t\t// Note - many of these will not be allowed.\r\n\t\t\t\t((Node) n).replaceTypesWith(sources.get(--cnt), null);\r\n\t\t\t\t// LOGGER.debug(\" replaced \" + n + \" with \" + sources.get(cnt));\r\n\t\t\t\tAssert.assertTrue(sources.get(cnt).getLibrary() != null);\r\n\t\t\t\tAssert.assertTrue(n.getLibrary() != null);\r\n\t\t\t}\r\n\t\t\tif (cnt <= 0)\r\n\t\t\t\tcnt = sources.size();\r\n\t\t}\r\n\t\t// LOGGER.debug(\"Replaced \" + sources.size() + \" - \" + cnt);\r\n\t}", "public void markCsgListReplace() throws JNCException {\n markLeafReplace(\"csgList\");\n }", "public ArrayBackedList(IList list) {\n while (list.size() > stringArray.length) {\n reallocArray();\n }\n for (int i = 0; i < list.size(); i++) {\n stringArray[i] = list.get(i);\n }\n }", "@Override\n\tpublic boolean modify(Diduler oldDiduler, Diduler newDiduler) {\n\t\t\n\t \tint index=super.getDidulerList().getDidulerList().indexOf(oldDiduler); //해당 인덱스 번호를 찾아준다\n\t \t\n\n\t\t\tif(index == -1)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\tsuper.getDidulerList().set(index, newDiduler);\n\t\t\t\n\t\t\tindex = list.indexOf(oldDiduler);\n\t\t\tif(index==-1)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\tlist.set(index, newDiduler);\n\t\t\treturn true;\n\t }", "void arrayListToArray() {\n List<String> coolStringList = Arrays.asList( \"Java\", \"Scala\", \"Groovy\" ); //Declare &initialize o\n //coolStringList.add( \"Syed\" ); // Exception in thread \"main\" java.lang.UnsupportedOperationException\n coolStringList.set( 0, \"Syed\" );// works well\n System.out.println( coolStringList );\n/*\n /) Its not as fast as Arrays.asList() but more flexible.\n\n 2) This method actually copies the content of the underlying array into ArrayList provided.\n\n\n 3) Since you are creating copy of original array, you can add, modify and remove any element without affecting original one.*/\n\n List<String> assetList = new ArrayList();\n String[] asset = {\"equity\", \"stocks\", \"gold\", \"foriegn exchange\", \"fixed income\", \"futures\", \"options\"};\n Collections.addAll( assetList, asset );\n System.out.println( assetList );\n assetList.add( \"Mohammed\" );\n System.out.println( assetList );\n\n List newAssetList = new ArrayList();\n newAssetList.addAll( Arrays.asList( asset ) );\n System.out.println( newAssetList );\n newAssetList.add( \"YNS\" );\n System.out.println( newAssetList );\n /*String [] currency = {\"SGD\", \"USD\", \"INR\", \"GBP\", \"AUD\", \"SGD\"};\n System.out.println(\"Size of array: \" + currency.length);\n List<String> currencyList = CollectionUtils.arrayToList(currency);\n*/\n }", "private void updateElementListFromSegmet(int changeValue, List<Integer> elementList) {\n\n int changeIndex = 0;\n int change = 0;\n\n for (int i = 0; i < elementList.size(); i++) {\n if (changeValue == elementList.get(i)) {\n changeIndex = i;\n change++;\n }\n }\n\n if (change == 0) {\n for (int i = 0; i < elementList.size(); i++) {\n if (changeValue > elementList.get(i)) {\n continue;\n }\n int value = elementList.get(i) - 1;\n elementList.set(i, value);\n }\n return;\n }\n\n for (int i = elementList.size() - 1; i >= 0; i--) {\n if (elementList.get(i) == changeValue) {\n break;\n } else {\n int value = elementList.get(i) - 1;\n elementList.set(i, value);\n }\n\n }\n\n elementList.remove(changeIndex);\n\n }", "public static void main(String[] args) {\n\t\tArrayList<String> list=new ArrayList();\r\n\t\tlist.add(\"first\");//add the first into list\r\n\t\tlist.add(\"second\");\r\n\t\tIterator itr=list.iterator();\r\n\t\tSystem.out.println(\"List of values\");\r\n\t\twhile(itr.hasNext())//returns true if the iteration\r\n\t\t{\r\n\t\t\tSystem.out.println(itr.next());\r\n\t\t}\r\n\t\tSystem.out.println(\"Update values\");\r\n\t\tlist.set(1, \"35\");\r\n\t\tIterator itr1=list.iterator();\r\n\t\twhile(itr1.hasNext())//returns true if the iteration\r\n\t\t{\r\n\t\t\tSystem.out.println(itr1.next());\r\n\t\t}\r\n\t}", "public abstract void mo56923b(List<C4122e> list);", "public final void mo23328bw(List<C40588xx> list) {\n AppMethodBeat.m2504i(53842);\n if (this.kSg == null) {\n this.kSg = new ArrayList();\n } else {\n this.kSg.clear();\n }\n this.kSg = list;\n notifyDataSetChanged();\n AppMethodBeat.m2505o(53842);\n }", "public static synchronized void anonymize(AttributeList attributeList, AttributeList replacementAttributeList) {\r\n anonymize(establishNewPatientId(replacementAttributeList), attributeList, replacementAttributeList);\r\n }", "public void replaced_by(FindPossibleValues fpv)\r\n\t{\r\n\t\tthis.set_size(fpv.get_size());\r\n\t\tthis.set_position(fpv.get_postion());\r\n\t\tthis.set_values(fpv.get_poss_values());\r\n\t}", "protected static void swapReferences(List<?> array, int a, int b){\n Collections.swap(array, a, b);\n }", "public final void accept(List<l> list) {\n com.iqoption.core.data.b.c a = this.dlr.dlm;\n kotlin.jvm.internal.h.d(list, \"it\");\n a.setValue(list);\n }", "public abstract void setList(List<T> items);", "private void m152570a(List<ByteBuffer> list) {\n synchronized (this.f113322u) {\n for (ByteBuffer byteBuffer : list) {\n m152578e(byteBuffer);\n }\n }\n }", "private static <T> void swap(List<T> list, int x, int y){\n T temp = list.get(x);\n list.set(x, list.get(y));\n list.set(y, temp);\n }", "public void replaceAll(String oldWord, String newWord) {\n\t\tfor (int i = 0; i < wordList.size(); i++) {\n\t\t\tif (wordList.get(i).equals(oldWord)) {\n\t\t\t\twordList.set(i, newWord);\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\t// TODO Add your code here\n\t}", "void mo100444b(List<C40429b> list);", "private StringBuffer replace(StringBuffer b,String oldPattern,String newPattern) {\r\n int i = 0;\r\n while((i=b.indexOf(oldPattern,i))!=-1) {\r\n b.replace(i,i+oldPattern.length(),newPattern);\r\n i = i+oldPattern.length();\r\n }\r\n return b;\r\n }", "public void setItems(List<T> items) {\n log.debug(\"set items called\");\n synchronized (listsLock){\n filteredList = new ArrayList<T>(items);\n originalList = null;\n updateFilteringAndSorting();\n }\n }", "public void replace(List<TemplItem> template, List<Rope> env) {\n Rope r = new Rope();\n // StringBuilder bases = new StringBuilder();\n // Stack<DNAChunk> r = new Stack<>();\n int ndx;\n int len;\n\n for (TemplItem item : template) {\n switch (item.getType()) {\n case BASE:\n // bases.append((char) item.getValue());\n // r.push(new StringChunk(\"\" + (char) item.getValue()));\n r.concat(new Rope(\"\" + (char) item.getValue()));\n break;\n case PROT:\n // if (bases.length() > 0) {\n // r.add(new StringChunk(bases.toString()));\n // bases = new StringBuilder();\n // }\n ndx = item.getValue();\n if (ndx < env.size()) {\n if (item.getProtLevel() == 0) {\n Rope envRope = env.get(item.getValue());\n r.concat(envRope);\n // r.append(env.get(item.getValue()).substring(0));\n // r.add(env.get(item.getValue()));\n } else {\n Rope envStr = protect(item.getProtLevel(), env.get(item.getValue()).substring(0));\n // System.out.println(\n // \" prot(\" + item.getProtLevel() + \") \" + env.get(item.getValue()).substring(0)\n // + \" => \" + envStr);\n\n r.concat(envStr);\n // r.add(new StringChunk(envStr));\n }\n // if (item.getProtLevel() < 1) {\n // r.add(env.get(item.getValue()));\n // } else {\n // System.out.println(\"Protection level \" + item.getProtLevel());\n // DNAChunk envStr = env.get(item.getValue());\n // String prot = protect(item.getProtLevel(), envStr.substring(0));\n // r.add(new StringChunk(prot));\n // }\n }\n break;\n case LEN:\n // if (bases.length() > 0) {\n // r.add(new StringChunk(bases.toString()));\n // bases = new StringBuilder();\n // }\n ndx = item.getValue();\n if (ndx < env.size()) {\n Rope envStr = env.get(item.getValue()).substring(0);\n len = envStr.getLength();\n } else {\n len = 0;\n }\n // r.add(new StringChunk(asnat(len)));\n r.concat(new Rope(asnat(len)));\n break;\n default:\n throw new RuntimeException(\"replace unhandled template \" + item.getType());\n }\n }\n // if (bases.length() > 0) {\n // r.add(new StringChunk(bases.toString()));\n // }\n\n if (r.getLength() > 0) {\n dna.prepend(r);\n }\n // while (!r.empty()) {\n // DNAChunk chunk = r.pop();\n\n // if (chunk.size() > 10) {\n // System.out.println(\" prepend \" + chunk.substring(0, 10) + \"...\");\n // } else {\n // System.out.println(\" prepend \" + chunk.substring(0));\n // }\n // dna.prepend(chunk);\n // }\n }", "@Test\n public void testVirtualLists() throws Exception {\n assertReducesTo(\"2 dup 1 at.\", \"2 dup\");\n }", "public int replaceFixedLengthData(int index, int[] data) {\n for(int i = 0; i<data.length; i++) {\n theList.set(index+i,data[i]);\n }\n return index;\n }", "private static SpInsertData _completeEvalInsert(SpItem[] newItems,\n SpInsertInfo spII) {\n if (spII == null) {\n return null;\n }\n\n int result = spII.result;\n SpItem referant = spII.referant;\n\n // Make sure the referant isn't in the set of newItems. Can't move\n // to a position relative to an item in the set itself.\n for (int i = 0; i < newItems.length; ++i) {\n if (referant == newItems[i]) {\n return null;\n }\n }\n\n // Vector of replaced items.\n Vector<SpItem> repV = null;\n\n // If it replaces an existing item, then create the replaced items\n // vector and add the replaced item to it.\n if (spII.replaceItem != null) {\n repV = new Vector<SpItem>();\n repV.addElement(spII.replaceItem);\n }\n\n // Now evaluate the remaining items.\n for (int i = newItems.length - 2; i >= 0; --i) {\n if (result == INS_INSIDE) {\n spII = doEvalInsertInside(newItems[i], referant);\n\n } else {\n spII = doEvalInsertAfter(newItems[i], referant);\n }\n\n if (spII == null) {\n return null;\n }\n\n // Make sure this item would get inserted in the same place ...\n if ((result != spII.result) || (referant != spII.referant)) {\n return null;\n }\n\n if (spII.replaceItem != null) {\n if (repV == null) {\n repV = new Vector<SpItem>();\n }\n\n repV.addElement(spII.replaceItem);\n }\n }\n\n // If there were any replaced items, move them into an array.\n SpItem[] repA = null;\n\n if (repV != null) {\n repA = new SpItem[repV.size()];\n\n for (int i = 0; i < repA.length; ++i) {\n repA[i] = repV.elementAt(i);\n }\n\n // Now we have to worry that the extracted items array contains\n // the referant (the item relative to which the new items will\n // be inserted.) If so, adjust the referant to make it valid.\n if (result == INS_AFTER) {\n SpItem parent = referant.parent();\n\n validateReferant: while (true) {\n for (int i = 0; i < repA.length; ++i) {\n if (referant == repA[i]) {\n referant = referant.prev();\n\n if (referant == null) {\n referant = parent;\n result = INS_INSIDE;\n\n break validateReferant;\n\n } else {\n continue validateReferant;\n }\n }\n }\n\n break validateReferant;\n }\n }\n }\n\n // Create and return the SpInsertData.\n return new SpInsertData(result, newItems, referant, repA);\n }", "void mo100443a(List<String> list);", "public void fixInter () {\r\n\t\twhile(intervals.size() > 0) {\r\n\t\t\tintervals1.add(intervals.remove());\r\n\t\t}\r\n\t}", "public void setList_Base (String List_Base);", "void replaceRotors(Rotor[] rotors) {\n // FIXME\n for (int i = 0; i < rotors.length; i++) {\n manyRotors[i] = rotors[i];\n }\n }", "public String replaceFrom(CharSequence sequence, CharSequence replacement) {\n/* 150 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void updateItemsList(List<Image> list) {\n\n\t\tthis.itemsList = list;\n\n\t}", "private void m1088a(List<Integer> list) {\n this.f688c = list;\n }", "public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;", "protected static IRNode[] modifyKeys(final List<IRNode> keys) {\n final int originalSize = keys.size();\n final IRNode[] modifiedKeys = keys.toArray(new IRNode[originalSize + 1]);\n modifiedKeys[originalSize] = null;\n return modifiedKeys;\n }", "@Override\r\n\tpublic void deplacerRobot(ArrayList<Robot> listeRobot) {\n\t\t\r\n\t}", "public void updateWordPoints() {\n for (String word: myList.keySet()) {\n int wordValue = 0;\n for (int i = 0; i < word.length(); i++) {\n // gets individual characters from word and\n // from that individual character get the value from scrabble list\n int charValue = scrabbleList.get(word.toUpperCase().charAt(i));\n // add character value gotten from character key from scrabble map to word value\n wordValue = wordValue + charValue;\n }\n\n // update the value of the word in myList map\n myList.put(word, wordValue);\n }\n }", "@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}", "public void reload() {\n/* 487 */ Iterator<TextureImpl> texs = this.texturesLinear.values().iterator();\n/* 488 */ while (texs.hasNext()) {\n/* 489 */ ((TextureImpl)texs.next()).reload();\n/* */ }\n/* 491 */ texs = this.texturesNearest.values().iterator();\n/* 492 */ while (texs.hasNext()) {\n/* 493 */ ((TextureImpl)texs.next()).reload();\n/* */ }\n/* */ }", "private void applyInsRevisions(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n instags: while (b_changed)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.Tag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o;\n String original = tag.original;\n\n if (tag.tag.equalsIgnoreCase(\"span\")\n && original.indexOf(\"class=msoIns\") >= 0)\n {\n removeInsTag(p_tags, tag);\n\n continue instags;\n }\n }\n }\n\n b_changed = false;\n }\n }", "public void replaceAll(List<Job> newJob){\n int currentSize = mJobList.size();\n //remove the current items\n if(currentSize > 0)\n mJobList.clear();\n //add all the new items\n mJobList.addAll(newJob);\n //tell the recycler view that all the old items are gone\n if(currentSize > 0)\n notifyItemRangeRemoved(0, currentSize);\n //tell the recycler view how many new items we added\n notifyItemRangeInserted(0, mJobList.size());\n\n }", "public static void updateLargestValueFirstSort(long new_value, long[] values, PEPeer new_item, ArrayList items, int start_pos) {\n items.ensureCapacity(values.length);\n for (int i = start_pos; i < values.length; i++) {\n if (new_value >= values[i]) {\n for (int j = values.length - 2; j >= i; j--) { // shift displaced values to the right\n values[j + 1] = values[j];\n }\n\n if (items.size() == values.length) { // throw away last item if list too large\n items.remove(values.length - 1);\n }\n\n values[i] = new_value;\n items.add(i, new_item);\n\n return;\n }\n }\n }", "public abstract E replace(Position<E> p, E e);", "private List<Pair<Tuple, String>> randomSampleFromList(List<Pair<Tuple, String>> list, int sampleSize, boolean withReplacement,\n\t\t\tRandom randomGenerator) {\n\t\tList<Pair<Tuple, String>> sample = new ArrayList<Pair<Tuple, String>>();\n\n\t\tif (list.size() <= sampleSize) {\n\t\t\tsample.addAll(list);\n\t\t} else {\n\t\t\tSet<Integer> usedIndexes = new HashSet<Integer>();\n\t\t\tint resultsCounter = 0;\n\t\t\twhile (resultsCounter < sampleSize) {\n\t\t\t\tint randomIndex = randomGenerator.nextInt(list.size());\n\t\t\t\tif (withReplacement || !usedIndexes.contains(randomIndex)) {\n\t\t\t\t\tsample.add(list.get(randomIndex));\n\t\t\t\t\tresultsCounter++;\n\t\t\t\t\tusedIndexes.add(randomIndex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn sample;\n\t}", "protected void\ttryToFix() { Command.insertList(crAndBrace); }", "private ArrayList<String> getNewConfusables(String[] existing, String[] confusables) {\n Set<String> set = new HashSet<>();\n set.addAll(Arrays.asList(existing));\n set.addAll(Arrays.asList(confusables));\n return new ArrayList<>(set);\n }", "private void updateTrackingList(HashMap<String, ArrayList<Passenger>> pasGroupList, ArrayList<Passenger> individualList) {\n Iterator<String> iter = pasGroupList.keySet().iterator();\n while (iter.hasNext()) {\n String gName = iter.next();\n ArrayList<Passenger> group = pasGroupList.get(gName);\n groupReservedList.put(gName, new GroupOfPassenger(group, gName, group.get(1).isEconomy()));\n }\n\n for (Passenger k : individualList) {\n individualReservedList.put(k.getName(), k);\n }\n }", "public abstract void mo56920a(List<C4122e> list);", "public void setSearchOperation(List<Post> newList)\n {\n notifyDataSetChanged();\n }", "public void replaceSelectionForUpdate(Update upStmt, List<String> valList) throws JSQLParserException{\n\t\tIterator valueIt = upStmt.getExpressions().iterator();\n\t\tint colIndex = 0;\n\t\twhile(valueIt.hasNext()){\n\t\t\tString valStr = valueIt.next().toString().trim();\n\t\t\tif(valStr.contains(\"SELECT\") || valStr.contains(\"select\")){\n\t\t\t\t//execute the selection \n\t\t\t\t//remove two brackets\n\t\t\t\tif(valStr.indexOf(\"(\") == 0 && valStr.lastIndexOf(\")\") == valStr.length()-1){\n\t\t\t\t\tvalStr = valStr.substring(1, valStr.length()-1);\n\t\t\t\t}\n\t\t\t\tPlainSelect plainSelect = ((PlainSelect)((Select)cJsqlParser.parse(new StringReader(valStr))).getSelectBody());\n\t\t\t\tassert (plainSelect.getSelectItems().size() == 1);\n\t\t\t\ttry {\n\t\t\t\t\tPreparedStatement sPst = con.prepareStatement(valStr);\n\t\t\t\t\tResultSet rs = sPst.executeQuery();\n\t\t\t\t\tif(rs.next()){\n\t\t\t\t\t\tvalList.set(colIndex,rs.getObject(1).toString());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tthrow new RuntimeException(\"Select must return a value!\");\n\t\t\t\t\t}\n\t\t\t\t\trs.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDebug.println(\"Selection is wrong\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcolIndex++;\n\t\t}\n\t}", "public void replacePlayer(Player out, Player in) {\n\n\t\tfor (Player p : players) {\n\t\t\tif (p == out) {\n\t\t\t\tint i = players.indexOf(p);\n\t\t\t\tplayers.set(i, in);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public final void mo71921a(List list) {\n this.f152273r = true;\n bkcr bkcr = this.f152271p;\n if (bkcr != null) {\n m118787c(bkcr);\n this.f152271p = null;\n }\n bkcr bkcr2 = this.f152272q;\n if (bkcr2 != null) {\n m118787c(bkcr2);\n this.f152272q = null;\n }\n setDropDownBackgroundResource(17301657);\n super.mo71921a(list);\n }", "public void updateSpriteList() {\n\t\tif (sprites.size() != elements.length) {\n\t\t\telements = new SortingElement[sprites.size()];\n\t\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\t\tint i = 0;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tint index = it.next();\n\t\t\t\tSprite as = sprites.get(index);\n\t\t\t\telements[i] = new SortingElement(as.pos[Values.Y], index);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6468124", "0.6340918", "0.6198002", "0.6175946", "0.61751324", "0.606929", "0.5978231", "0.59127116", "0.57405317", "0.5705047", "0.5699267", "0.56664", "0.5646615", "0.5643913", "0.5640143", "0.56063974", "0.55755514", "0.5573174", "0.55617696", "0.54801035", "0.54610986", "0.5447096", "0.5406796", "0.5389622", "0.53750426", "0.53735435", "0.5369199", "0.53673905", "0.53562355", "0.5350028", "0.53468573", "0.5322377", "0.53212595", "0.5313861", "0.5291679", "0.5275267", "0.52750707", "0.5272364", "0.52682585", "0.52589583", "0.52390397", "0.52315336", "0.5215435", "0.5215285", "0.52106273", "0.52065104", "0.51982826", "0.5188729", "0.5183421", "0.5179121", "0.5174408", "0.5160903", "0.5158511", "0.5154254", "0.5154147", "0.5147614", "0.5146161", "0.5140073", "0.5138969", "0.5131692", "0.51261455", "0.5120208", "0.51137114", "0.51098865", "0.51042324", "0.51036125", "0.5102491", "0.5097938", "0.5080263", "0.5069198", "0.5069056", "0.5066736", "0.5062884", "0.5058255", "0.50568193", "0.50470096", "0.50413215", "0.50283855", "0.5028008", "0.5027295", "0.50258505", "0.501813", "0.50152326", "0.50148135", "0.5008218", "0.5005684", "0.49994344", "0.49956766", "0.49955854", "0.49948674", "0.49896553", "0.49874157", "0.49871108", "0.49868956", "0.49862468", "0.49837628", "0.49794486", "0.49774975", "0.49762636", "0.49762458", "0.49644747" ]
0.0
-1
===== older nonoptimized solutions =====
private Node getMinimumOld() { Node tmp = null; // TODO: optimize by putting in 1 list and // provide 'starting offset' for remaining nodes to find mimimum // note: see new getMinimum method above if (null != nodeA) { tmp = nodeA; if (null != nodeB && tmp.data > nodeB.data) { tmp = nodeB; } if (null != nodeC && tmp.data > nodeC.data) { tmp = nodeC; } } else if (null != nodeB) { tmp = nodeB; if (null != nodeC && tmp.data > nodeC.data) { tmp = nodeC; } } else if (null != nodeC) { tmp = nodeC; } // System.out.println(tmp); if (null == tmp ) { // terminating condition return null; } if (tmp.equals(nodeA)) { nodeA = nodeA.next; } if (tmp.equals(nodeB)) { nodeB = nodeB.next; } if (tmp.equals(nodeC)) { nodeC = nodeC.next; } System.out.println(tmp.data); return tmp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "public void mo442d() {\n long j;\n long j2;\n int i;\n long j3;\n boolean z;\n C0245a[] aVarArr;\n int i2;\n int i3;\n C3683c<? super U> cVar = this.f472a;\n int i4 = 1;\n while (!mo443e()) {\n C0211f<U> fVar = this.f477f;\n long j4 = this.f482m.get();\n boolean z2 = j4 == Long.MAX_VALUE;\n if (fVar != null) {\n j = 0;\n while (true) {\n long j5 = 0;\n Object obj = null;\n while (true) {\n if (j4 == 0) {\n break;\n }\n Object e_ = fVar.mo386e_();\n if (!mo443e()) {\n if (e_ == null) {\n obj = e_;\n break;\n }\n cVar.onNext(e_);\n j++;\n j5++;\n j4--;\n obj = e_;\n } else {\n return;\n }\n }\n if (j5 != 0) {\n if (z2) {\n j4 = Long.MAX_VALUE;\n } else {\n j4 = this.f482m.addAndGet(-j5);\n }\n }\n if (j4 == 0 || obj == null) {\n break;\n }\n }\n } else {\n j = 0;\n }\n boolean z3 = this.f478g;\n C0211f<U> fVar2 = this.f477f;\n C0245a[] aVarArr2 = (C0245a[]) this.f481j.get();\n int length = aVarArr2.length;\n if (!z3 || ((fVar2 != null && !fVar2.mo384b()) || length != 0)) {\n if (length != 0) {\n i = i4;\n long j6 = this.f485p;\n int i5 = this.f486q;\n if (length <= i5 || aVarArr2[i5].f462a != j6) {\n if (length <= i5) {\n i5 = 0;\n }\n int i6 = i5;\n for (int i7 = 0; i7 < length && aVarArr2[i6].f462a != j6; i7++) {\n i6++;\n if (i6 == length) {\n i6 = 0;\n }\n }\n this.f486q = i6;\n this.f485p = aVarArr2[i6].f462a;\n i5 = i6;\n }\n int i8 = i5;\n z = false;\n int i9 = 0;\n while (true) {\n if (i9 >= length) {\n aVarArr = aVarArr2;\n break;\n } else if (!mo443e()) {\n C0245a aVar = aVarArr2[i8];\n Object obj2 = null;\n while (!mo443e()) {\n C0212g<U> gVar = aVar.f467f;\n if (gVar == null) {\n aVarArr = aVarArr2;\n i2 = length;\n } else {\n aVarArr = aVarArr2;\n i2 = length;\n long j7 = 0;\n while (j2 != 0) {\n try {\n obj2 = gVar.mo386e_();\n if (obj2 == null) {\n break;\n }\n cVar.onNext(obj2);\n if (!mo443e()) {\n j2--;\n j7++;\n } else {\n return;\n }\n } catch (Throwable th) {\n Throwable th2 = th;\n C0171b.m584b(th2);\n aVar.dispose();\n this.f479h.mo516a(th2);\n if (!this.f474c) {\n this.f483n.mo407a();\n }\n if (!mo443e()) {\n mo439b(aVar);\n i9++;\n i3 = i2;\n z = true;\n } else {\n return;\n }\n }\n }\n if (j7 != 0) {\n j2 = !z2 ? this.f482m.addAndGet(-j7) : Long.MAX_VALUE;\n aVar.mo433a(j7);\n }\n if (!(j2 == 0 || obj2 == null)) {\n aVarArr2 = aVarArr;\n length = i2;\n }\n }\n boolean z4 = aVar.f466e;\n C0212g<U> gVar2 = aVar.f467f;\n if (z4 && (gVar2 == null || gVar2.mo384b())) {\n mo439b(aVar);\n if (!mo443e()) {\n j++;\n z = true;\n } else {\n return;\n }\n }\n if (j2 == 0) {\n break;\n }\n int i10 = i8 + 1;\n i3 = i2;\n i8 = i10 == i3 ? 0 : i10;\n i9++;\n length = i3;\n aVarArr2 = aVarArr;\n }\n return;\n } else {\n return;\n }\n }\n this.f486q = i8;\n this.f485p = aVarArr[i8].f462a;\n j3 = j;\n } else {\n i = i4;\n j3 = j;\n z = false;\n }\n if (j3 != 0 && !this.f480i) {\n this.f483n.mo408a(j3);\n }\n if (z) {\n i4 = i;\n } else {\n i4 = addAndGet(-i);\n if (i4 == 0) {\n return;\n }\n }\n } else {\n Throwable a = this.f479h.mo515a();\n if (a != C0315e.f669a) {\n if (a == null) {\n cVar.onComplete();\n } else {\n cVar.onError(a);\n }\n }\n return;\n }\n }\n }", "private float testMethod() {\n {\n int lI0 = (-1456058746 << mI);\n mD = ((double)(int)(double) mD);\n for (int i0 = 56 - 1; i0 >= 0; i0--) {\n mArray[i0] &= (Boolean.logicalOr(((true ? ((boolean) new Boolean((mZ))) : mZ) || mArray[i0]), (mZ)));\n mF *= (mF * mF);\n if ((mZ ^ true)) {\n mF *= ((float)(int)(float) 267827331.0f);\n mZ ^= ((false & ((boolean) new Boolean(false))) | mZ);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n mZ &= ((mArray[279]) | ((boolean) new Boolean(true)));\n mD -= (--mD);\n for (int i2 = 56 - 1; i2 >= 0; i2--) {\n mF /= (mF - mF);\n mI = (Math.min(((int) new Integer(mI)), (766538816 * (++mI))));\n mF += (mZ ? (mB.a()) : ((! mZ) ? -752042357.0f : (++mF)));\n mJ |= ((long) new Long((-2084191070L + (mJ | mJ))));\n lI0 |= ((int) new Integer(((int) new Integer(mI))));\n if (((boolean) new Boolean(false))) {\n mZ &= (mZ);\n mF *= (mF--);\n mD = (Double.POSITIVE_INFINITY);\n mF += ((float)(int)(float) (-2026938813.0f * 638401585.0f));\n mJ = (--mJ);\n for (int i3 = 56 - 1; i3 >= 0; i3--) {\n mI &= (- mI);\n mD = (--mD);\n mArray[426] = (mZ || false);\n mF -= (((this instanceof Main) ? mF : mF) + 976981405.0f);\n mZ &= ((mZ) & (this instanceof Main));\n }\n mZ ^= (Float.isFinite(-1975953895.0f));\n } else {\n mJ /= ((long) (Math.nextDown(-1519600008.0f)));\n mJ <<= (Math.round(1237681786.0));\n }\n }\n mArray[i0] &= (false || ((1256071300.0f != -353296391.0f) ? false : (mZ ^ mArray[i0])));\n mF *= (+ ((float) mD));\n for (int i2 = 0; i2 < 576; i2++) {\n mD *= ((double) lI0);\n lI0 = (lI0 & (Integer.MIN_VALUE));\n mF -= (--mF);\n }\n if ((this instanceof Main)) {\n mZ ^= ((boolean) new Boolean(true));\n } else {\n {\n int lI1 = (mZ ? (--lI0) : 1099574344);\n mJ >>= (Math.incrementExact(mJ));\n mJ = (~ -2103354070L);\n }\n }\n }\n } else {\n mJ *= (- ((long) new Long(479832084L)));\n mJ %= (Long.MAX_VALUE);\n mD /= (--mD);\n if ((mI > ((mBX.x()) << mI))) {\n {\n long lJ0 = (mJ--);\n mI >>>= (mBX.x());\n }\n mF = (+ 505094603.0f);\n mD *= (((boolean) new Boolean((! false))) ? mD : 1808773781.0);\n mI *= (Integer.MIN_VALUE);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n if (((boolean) new Boolean(false))) {\n mD += ((double)(float)(double) -1051436901.0);\n } else {\n mF -= ((float)(int)(float) (Float.min(mF, (mF--))));\n }\n for (int i2 = 0; i2 < 576; i2++) {\n mJ -= ((long) new Long(-1968644857L));\n mJ ^= (+ (mC.s()));\n }\n }\n } else {\n mF -= ((- mF) + -2145489966.0f);\n }\n mD -= (mD++);\n mD = (949112777.0 * 1209996119.0);\n }\n mZ &= (Boolean.logicalAnd(true, ((mZ) & (((boolean) new Boolean(true)) && true))));\n }\n }\n return ((float) 964977619L);\n }", "boolean fast_coeffs () { return false; }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }", "public abstract int mo9754s();", "private static int benchmarkedMethod() {\n return 3;\n }", "@Test\n public final void testGetLong() {\n String msg2 = \"get(long) illegal arguments check failed.\";\n\n boolean[] a1_a = new boolean[1023];\n boolean[] a1_1_a = new boolean[320];\n boolean[] a1_2_a = new boolean[621];\n boolean[] a1_3_a = new boolean[82];\n boolean[] a2_a = new boolean[2048];\n boolean[] a2_1_a = new boolean[641];\n boolean[] a2_2_a = new boolean[490];\n boolean[] a2_3_a = new boolean[690];\n boolean[] a2_4_a = new boolean[317];\n for (int i = 0; i < a1_a.length; i++) {\n a1_a[i] = (i % 17 == 0);\n }\n {\n int c = 17, i = 0, s;\n for (s = i; (i - s) < a1_1_a.length; i++) {\n a1_1_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a1_2_a.length; i++) {\n a1_2_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a1_3_a.length; i++) {\n a1_3_a[i - s] = (i % c == 0);\n }\n }\n for (int i = 0; i < a2_a.length; i++) {\n a2_a[i] = (i % 19 == 0);\n }\n {\n int c = 19, i = 0, s;\n for (s = i; (i - s) < a2_1_a.length; i++) {\n a2_1_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a2_2_a.length; i++) {\n a2_2_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a2_3_a.length; i++) {\n a2_3_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a2_4_a.length; i++) {\n a2_4_a[i - s] = (i % c == 0);\n }\n }\n\n MemoryBitList a1_1 = new MemoryBitList(a1_1_a);\n MemoryBitList a1_2 = new MemoryBitList(a1_2_a);\n MemoryBitList a1_3 = new MemoryBitList(a1_3_a);\n SequenceBitList a1 = new SequenceBitList();\n a1.add(new SimpleRange(a1_1, 0, a1_1.length()));\n a1.add(new SimpleRange(a1_2, 0, a1_2.length()));\n a1.add(new SimpleRange(a1_3, 0, a1_3.length()));\n\n MemoryBitList a2_1 = new MemoryBitList(a2_1_a);\n MemoryBitList a2_2 = new MemoryBitList(a2_2_a);\n MemoryBitList a2_3 = new MemoryBitList(a2_3_a);\n MemoryBitList a2_4 = new MemoryBitList(a2_4_a);\n SequenceBitList a2 = new SequenceBitList();\n a2.add(new SimpleRange(a2_1, 0, a2_1.length()));\n a2.add(new SimpleRange(a2_2, 0, a2_2.length()));\n a2.add(new SimpleRange(a2_3, 0, a2_3.length()));\n a2.add(new SimpleRange(a2_4, 0, a2_4.length()));\n\n LargeBitListTest.testGetLongInner(a1, 0, a1_a);\n LargeBitListTest.testGetLongInner(a2, 0, a2_a);\n\n try {\n a1.get(a1_a.length);\n fail(msg2);\n } catch (IndexOutOfBoundsException ex) {\n //OK\n }\n\n try {\n a1.get(-1);\n fail(msg2);\n } catch (IndexOutOfBoundsException ex) {\n //OK\n }\n }", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "StackManipulation cached();", "@Override\n public void func_104112_b() {\n \n }", "private static int betterSolution(int n) {\n return n*n*n;\n }", "private void method_259(int[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15) {\n boolean var28 = field_759;\n int var19 = var12 >> 16 & 255;\n int var20 = var12 >> 8 & 255;\n int var21 = var12 & 255;\n\n try {\n int var22 = var4;\n int var23 = -var8;\n if(var28 || var23 < 0) {\n do {\n int var24 = (var5 >> 16) * var11;\n int var25 = var13 >> 16;\n int var26 = var7;\n int var27;\n if(var25 < this.field_745) {\n var27 = this.field_745 - var25;\n var26 = var7 - var27;\n var25 = this.field_745;\n var4 += var9 * var27;\n }\n\n if(var25 + var26 >= this.field_746) {\n var27 = var25 + var26 - this.field_746;\n var26 -= var27;\n }\n\n var15 = 1 - var15;\n if(var15 != 0) {\n var27 = var25;\n if(var28 || var25 < var25 + var26) {\n do {\n var3 = var2[(var4 >> 16) + var24];\n if(var3 != 0) {\n label33: {\n int var16 = var3 >> 16 & 255;\n int var17 = var3 >> 8 & 255;\n int var18 = var3 & 255;\n if(var16 == var17 && var17 == var18) {\n var1[var27 + var6] = (var16 * var19 >> 8 << 16) + (var17 * var20 >> 8 << 8) + (var18 * var21 >> 8);\n if(!var28) {\n break label33;\n }\n }\n\n var1[var27 + var6] = var3;\n }\n }\n\n var4 += var9;\n ++var27;\n } while(var27 < var25 + var26);\n }\n }\n\n var5 += var10;\n var4 = var22;\n var6 += this.field_723;\n var13 += var14;\n ++var23;\n } while(var23 < 0);\n\n }\n } catch (Exception var29) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "public int m()\r\n/* 485: */ {\r\n/* 486:497 */ int i = 0;\r\n/* 487:498 */ for (int j = 0; j < this.b.length; j++) {\r\n/* 488:499 */ if ((this.b[j] != null) && ((this.b[j].b() instanceof ajn)))\r\n/* 489: */ {\r\n/* 490:500 */ int k = ((ajn)this.b[j].b()).c;\r\n/* 491:501 */ i += k;\r\n/* 492: */ }\r\n/* 493: */ }\r\n/* 494:504 */ return i;\r\n/* 495: */ }", "protected boolean func_70814_o() { return true; }", "private void method_4318() {\r\n String[] var1;\r\n int var11;\r\n label68: {\r\n var1 = class_752.method_4253();\r\n class_758 var10000 = this;\r\n if(var1 != null) {\r\n if(this.field_3417 != null) {\r\n label71: {\r\n var11 = this.field_3417.field_3012;\r\n if(var1 != null) {\r\n if(this.field_3417.field_3012) {\r\n var10000 = this;\r\n if(var1 != null) {\r\n if(!this.field_2990.field_1832) {\r\n this.method_409(this.field_3404, class_1691.method_9334((class_1036)null), 10.0F);\r\n }\r\n\r\n var10000 = this;\r\n }\r\n\r\n var10000.field_3417 = null;\r\n if(var1 != null) {\r\n break label71;\r\n }\r\n }\r\n\r\n var11 = this.field_3029 % 10;\r\n }\r\n\r\n if(var1 == null) {\r\n break label68;\r\n }\r\n\r\n if(var11 == 0) {\r\n float var13;\r\n var11 = (var13 = this.method_406() - this.method_405()) == 0.0F?0:(var13 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label68;\r\n }\r\n\r\n if(var11 < 0) {\r\n this.method_4188(this.method_406() + 1.0F);\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = this;\r\n }\r\n\r\n var11 = var10000.field_3028.nextInt(10);\r\n }\r\n\r\n if(var11 == 0) {\r\n float var2 = 32.0F;\r\n List var3 = this.field_2990.method_2157(class_705.class, this.field_3004.method_7097((double)var2, (double)var2, (double)var2));\r\n class_705 var4 = null;\r\n double var5 = Double.MAX_VALUE;\r\n Iterator var7 = var3.iterator();\r\n\r\n while(true) {\r\n if(var7.hasNext()) {\r\n class_705 var8 = (class_705)var7.next();\r\n double var9 = var8.method_3891(this);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n label43: {\r\n double var12 = var9;\r\n if(var1 != null) {\r\n if(var9 >= var5) {\r\n break label43;\r\n }\r\n\r\n var12 = var9;\r\n }\r\n\r\n var5 = var12;\r\n var4 = var8;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.field_3417 = var4;\r\n break;\r\n }\r\n }\r\n\r\n }", "@Override\n\tpublic int isFast() {\n\t\treturn 2;\n\t}", "private static void badApproach() {\n\t\t\n\t\tList<Double> result = new ArrayList<>();\n\t\t\n\t\tThreadLocalRandom.current()\n\t\t\t.doubles(10_000).boxed()\n\t\t\t.forEach(\n\t\t\t\t\td -> NewMath.inv(d)\n\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\tinv -> NewMath.sqrt(inv)\n\t\t\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\t\t\t\tsqrt -> result.add(sqrt)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tSystem.out.println(\"# result = \"+result.size());\n\t\t\n\t}", "private int m3423z(int i, int i2) {\n int i3;\n int i4;\n for (int size = this.f4373c.size() - 1; size >= 0; size--) {\n C0933b bVar = this.f4373c.get(size);\n int i5 = bVar.f4379a;\n if (i5 == 8) {\n int i6 = bVar.f4380b;\n int i7 = bVar.f4382d;\n if (i6 < i7) {\n i4 = i6;\n i3 = i7;\n } else {\n i3 = i6;\n i4 = i7;\n }\n if (i < i4 || i > i3) {\n if (i < i6) {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n bVar.f4382d = i7 - 1;\n }\n }\n } else if (i4 == i6) {\n if (i2 == 1) {\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4382d = i7 - 1;\n }\n i++;\n } else {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n }\n i--;\n }\n } else {\n int i8 = bVar.f4380b;\n if (i8 <= i) {\n if (i5 == 1) {\n i -= bVar.f4382d;\n } else if (i5 == 2) {\n i += bVar.f4382d;\n }\n } else if (i2 == 1) {\n bVar.f4380b = i8 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i8 - 1;\n }\n }\n }\n for (int size2 = this.f4373c.size() - 1; size2 >= 0; size2--) {\n C0933b bVar2 = this.f4373c.get(size2);\n if (bVar2.f4379a == 8) {\n int i9 = bVar2.f4382d;\n if (i9 == bVar2.f4380b || i9 < 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n } else if (bVar2.f4382d <= 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n }\n return i;\n }", "private final boolean zzfq() throws com.google.android.gms.internal.ads.zziw {\n /*\n r9 = this;\n int r0 = r9.zzali\n r1 = -1\n r2 = 1\n r3 = 0\n if (r0 != r1) goto L_0x0014\n boolean r0 = r9.zzakc\n if (r0 == 0) goto L_0x000f\n com.google.android.gms.internal.ads.zzie[] r0 = r9.zzalc\n int r0 = r0.length\n goto L_0x0010\n L_0x000f:\n r0 = 0\n L_0x0010:\n r9.zzali = r0\n L_0x0012:\n r0 = 1\n goto L_0x0015\n L_0x0014:\n r0 = 0\n L_0x0015:\n int r4 = r9.zzali\n com.google.android.gms.internal.ads.zzie[] r5 = r9.zzalc\n int r6 = r5.length\n r7 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r4 >= r6) goto L_0x0038\n r4 = r5[r4]\n if (r0 == 0) goto L_0x0028\n r4.zzfl()\n L_0x0028:\n r9.zzdv(r7)\n boolean r0 = r4.zzfe()\n if (r0 != 0) goto L_0x0032\n return r3\n L_0x0032:\n int r0 = r9.zzali\n int r0 = r0 + r2\n r9.zzali = r0\n goto L_0x0012\n L_0x0038:\n java.nio.ByteBuffer r0 = r9.zzalf\n if (r0 == 0) goto L_0x0044\n r9.zzc(r0, r7)\n java.nio.ByteBuffer r0 = r9.zzalf\n if (r0 == 0) goto L_0x0044\n return r3\n L_0x0044:\n r9.zzali = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzio.zzfq():boolean\");\n }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "@Nullable\r\n/* */ private static aej e(int ☃) {\r\n/* 272 */ aej aej1 = aej.a(☃);\r\n/* */ \r\n/* 274 */ return e.contains(aej1) ? aej1 : null;\r\n/* */ }", "private static boolean special_optimization(String a)\n {\n int sum = 0;\n for(int x = 0; x < a.length(); x++)\n {\n sum += (find_value(\"\"+a.charAt(x)));\n }\n if(sum <= library.return_uppervalue() && sum >= library.return_lowervalue())\n return false;\n return true;\n }", "public void method_4270() {}", "private void method_2252() {\r\n String[] var1 = class_752.method_4253();\r\n\r\n do {\r\n boolean var10000 = this.field_1861[this.field_1862].isEmpty();\r\n\r\n int var2;\r\n label45:\r\n while(true) {\r\n if(var10000) {\r\n return;\r\n }\r\n\r\n var2 = this.field_1862;\r\n this.field_1862 ^= 1;\r\n Iterator var3 = this.field_1861[var2].iterator();\r\n\r\n while(true) {\r\n if(!var3.hasNext()) {\r\n break label45;\r\n }\r\n\r\n class_1033 var4 = (class_1033)var3.next();\r\n\r\n label40: {\r\n class_354 var6;\r\n label55: {\r\n try {\r\n var6 = this;\r\n if(var1 == null) {\r\n break label55;\r\n }\r\n\r\n var10000 = this.method_2253(var4);\r\n if(var1 == null) {\r\n break;\r\n }\r\n } catch (IllegalStateException var5) {\r\n throw method_2260(var5);\r\n }\r\n\r\n if(!var10000) {\r\n break label40;\r\n }\r\n\r\n var6 = this;\r\n }\r\n\r\n class_1627 var7 = var6.field_1850.method_2383();\r\n double var10001 = (double)var4.method_5847();\r\n double var10002 = (double)var4.method_5848();\r\n double var10003 = (double)var4.method_5849();\r\n int var10005 = this.field_1820.field_5738;\r\n class_297 var10006 = new class_297;\r\n var10006.method_1699(var4.method_5847(), var4.method_5848(), var4.method_5849(), var4.method_5852(), var4.method_5850(), var4.method_5851());\r\n var7.method_8903(var10001, var10002, var10003, 64.0D, var10005, var10006);\r\n }\r\n\r\n if(var1 == null) {\r\n break label45;\r\n }\r\n }\r\n }\r\n\r\n this.field_1861[var2].clear();\r\n } while(var1 != null);\r\n\r\n }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"/\\fë%mwH]s,\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1436 = (new String((char[])var4)).intern();\r\n String var2 = field_1436;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 240;\r\n break;\r\n case 2:\r\n var10009 = 4;\r\n break;\r\n case 3:\r\n var10009 = 165;\r\n break;\r\n case 4:\r\n var10009 = 237;\r\n break;\r\n case 5:\r\n var10009 = 247;\r\n break;\r\n default:\r\n var10009 = 200;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public static final java.lang.String m40098a(java.lang.String r14, java.lang.String r15) {\n /*\n java.util.List r0 = kotlin.p588j0.C12833x.m40180e(r14)\n java.util.ArrayList r1 = new java.util.ArrayList\n r1.<init>()\n java.util.Iterator r2 = r0.iterator()\n L_0x000d:\n boolean r3 = r2.hasNext()\n if (r3 == 0) goto L_0x0026\n java.lang.Object r3 = r2.next()\n r4 = r3\n java.lang.String r4 = (java.lang.String) r4\n boolean r4 = kotlin.p588j0.C12832w.m40118a(r4)\n r4 = r4 ^ 1\n if (r4 == 0) goto L_0x000d\n r1.add(r3)\n goto L_0x000d\n L_0x0026:\n java.util.ArrayList r2 = new java.util.ArrayList\n r3 = 10\n int r3 = kotlin.p590y.C13187p.m40525a(r1, r3)\n r2.<init>(r3)\n java.util.Iterator r1 = r1.iterator()\n L_0x0035:\n boolean r3 = r1.hasNext()\n if (r3 == 0) goto L_0x004d\n java.lang.Object r3 = r1.next()\n java.lang.String r3 = (java.lang.String) r3\n int r3 = m40100b(r3)\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n r2.add(r3)\n goto L_0x0035\n L_0x004d:\n java.lang.Comparable r1 = kotlin.p590y.C13199w.m40598k(r2)\n java.lang.Integer r1 = (java.lang.Integer) r1\n r2 = 0\n if (r1 == 0) goto L_0x005b\n int r1 = r1.intValue()\n goto L_0x005c\n L_0x005b:\n r1 = 0\n L_0x005c:\n int r14 = r14.length()\n int r3 = r15.length()\n int r4 = r0.size()\n int r3 = r3 * r4\n int r14 = r14 + r3\n kotlin.jvm.functions.Function1 r15 = m40099a(r15)\n int r3 = kotlin.p590y.C13185o.m40507a(r0)\n java.util.ArrayList r4 = new java.util.ArrayList\n r4.<init>()\n java.util.Iterator r0 = r0.iterator()\n L_0x007c:\n boolean r5 = r0.hasNext()\n if (r5 == 0) goto L_0x00b4\n java.lang.Object r5 = r0.next()\n int r6 = r2 + 1\n r7 = 0\n if (r2 < 0) goto L_0x00b0\n java.lang.String r5 = (java.lang.String) r5\n if (r2 == 0) goto L_0x0091\n if (r2 != r3) goto L_0x0098\n L_0x0091:\n boolean r2 = kotlin.p588j0.C12832w.m40118a(r5)\n if (r2 == 0) goto L_0x0098\n goto L_0x00a9\n L_0x0098:\n java.lang.String r2 = kotlin.p588j0.C12839z.m40186e(r5, r1)\n if (r2 == 0) goto L_0x00a8\n java.lang.Object r2 = r15.invoke(r2)\n r7 = r2\n java.lang.String r7 = (java.lang.String) r7\n if (r7 == 0) goto L_0x00a8\n goto L_0x00a9\n L_0x00a8:\n r7 = r5\n L_0x00a9:\n if (r7 == 0) goto L_0x00ae\n r4.add(r7)\n L_0x00ae:\n r2 = r6\n goto L_0x007c\n L_0x00b0:\n kotlin.p590y.C13180m.m40455c()\n throw r7\n L_0x00b4:\n java.lang.StringBuilder r15 = new java.lang.StringBuilder\n r15.<init>(r14)\n r7 = 0\n r8 = 0\n r9 = 0\n r10 = 0\n r11 = 0\n r12 = 124(0x7c, float:1.74E-43)\n r13 = 0\n java.lang.String r6 = \"\\n\"\n r5 = r15\n kotlin.p590y.C13199w.m40557a(r4, r5, r6, r7, r8, r9, r10, r11, r12, r13)\n java.lang.StringBuilder r15 = (java.lang.StringBuilder) r15\n java.lang.String r14 = r15.toString()\n java.lang.String r15 = \"mapIndexedNotNull { inde…\\\"\\\\n\\\")\\n .toString()\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r14, r15)\n return r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.p588j0.C12823p.m40098a(java.lang.String, java.lang.String):java.lang.String\");\n }", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "public abstract long mo9229aD();", "private boolean kcss(int[] i, long[] e, long y) {\n int I = i.length;\n long[] x = new long[I];\n while (true) {\n x[0] = ll(i[0]); // 1\n snapshot(i, 1, I, x); // 2\n if (Arrays.compare(x, e) != 0) { // 3\n sc(i[0], x[0]); // 3a\n return false; // 3a\n }\n if (sc(i[0], y)) return true; // 3b\n } // 3c\n }", "public static void main(String[] args) {\n float[] fb=new float[9];\n fb[0]=(int)12;\n fb[1]=(byte)13;\n fb[2]=(short)8;\n fb[3]=12.021f;\n // fb[4]=23443.43d;\n// fb[4]='a';\n// for(int i=0;i<=4;i++) {\n// \t System.out.println(fb[i]);\n// }\n List<Integer> lis1=new ArrayList<>();\n List<Integer> lis2=new ArrayList<>();\n lis1.add(2);\n lis1.add(4);\n lis1.add(16);\n lis1.add(32);\n lis1.add(96);\n lis1.add(123);\n lis1.add(435);\n lis1.add(234);\n lis1.add(100);\n lis1.add(122);\n lis1.add(240);\n lis1.add(350);\n java.util.Iterator<Integer> itr= lis1.iterator();\n //while(itr.hasNext()) {\n // itr.remove();\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n\n \t System.out.println(lis1);\n // \n// long startTime = System.currentTimeMillis();\n// getTotalX(lis1,lis2);\n// System.out.println(\"Time taken by 2 * o(n^2) \" + (System.currentTimeMillis() - startTime) + \"ms\"); \n// \n \t\t \n\t}", "private static int combine(char[] paramArrayOfChar, int paramInt1, int paramInt2, int[] paramArrayOfInt)\n/* */ {\n/* 1243 */ if (paramArrayOfInt.length < 2) {\n/* 1244 */ throw new IllegalArgumentException();\n/* */ }\n/* */ int i;\n/* */ for (;;)\n/* */ {\n/* 1249 */ i = paramArrayOfChar[(paramInt1++)];\n/* 1250 */ if (i >= paramInt2) {\n/* */ break;\n/* */ }\n/* 1253 */ paramInt1 += ((paramArrayOfChar[paramInt1] & 0x8000) != 0 ? 2 : 1);\n/* */ }\n/* */ \n/* */ \n/* 1257 */ if ((i & 0x7FFF) == paramInt2)\n/* */ {\n/* 1259 */ int j = paramArrayOfChar[paramInt1];\n/* */ \n/* */ \n/* 1262 */ i = (int)(0xFFFFFFFF & (j & 0x2000) + 1);\n/* */ \n/* */ \n/* */ int k;\n/* */ \n/* 1267 */ if ((j & 0x8000) != 0) {\n/* 1268 */ if ((j & 0x4000) != 0)\n/* */ {\n/* 1270 */ j = (int)(0xFFFFFFFF & (j & 0x3FF | 0xD800));\n/* 1271 */ k = paramArrayOfChar[(paramInt1 + 1)];\n/* */ }\n/* */ else {\n/* 1274 */ j = paramArrayOfChar[(paramInt1 + 1)];\n/* 1275 */ k = 0;\n/* */ }\n/* */ }\n/* */ else {\n/* 1279 */ j &= 0x1FFF;\n/* 1280 */ k = 0;\n/* */ }\n/* 1282 */ paramArrayOfInt[0] = j;\n/* 1283 */ paramArrayOfInt[1] = k;\n/* 1284 */ return i;\n/* */ }\n/* */ \n/* 1287 */ return 0;\n/* */ }", "static void method_5904() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"š¡,´\u001a\u000b›éÜG°\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_5515 = (new String((char[])var4)).intern();\r\n String var2 = field_5515;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 91;\r\n break;\r\n case 1:\r\n var10009 = 111;\r\n break;\r\n case 2:\r\n var10009 = 241;\r\n break;\r\n case 3:\r\n var10009 = 6;\r\n break;\r\n case 4:\r\n var10009 = 168;\r\n break;\r\n case 5:\r\n var10009 = 185;\r\n break;\r\n default:\r\n var10009 = 41;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "private void m24355f() {\n String[] strArr = this.f19529f;\n int length = strArr.length;\n int i = length + length;\n if (i > 65536) {\n this.f19531h = 0;\n this.f19528e = false;\n this.f19529f = new String[64];\n this.f19530g = new C4216a[32];\n this.f19533j = 63;\n this.f19535l = false;\n return;\n }\n C4216a[] aVarArr = this.f19530g;\n this.f19529f = new String[i];\n this.f19530g = new C4216a[(i >> 1)];\n this.f19533j = i - 1;\n this.f19532i = m24353e(i);\n int i2 = 0;\n int i3 = 0;\n for (String str : strArr) {\n if (str != null) {\n i2++;\n int c = mo29675c(mo29670a(str));\n String[] strArr2 = this.f19529f;\n if (strArr2[c] == null) {\n strArr2[c] = str;\n } else {\n int i4 = c >> 1;\n C4216a aVar = new C4216a(str, this.f19530g[i4]);\n this.f19530g[i4] = aVar;\n i3 = Math.max(i3, aVar.f19539c);\n }\n }\n }\n int i5 = length >> 1;\n for (int i6 = 0; i6 < i5; i6++) {\n for (C4216a aVar2 = aVarArr[i6]; aVar2 != null; aVar2 = aVar2.f19538b) {\n i2++;\n String str2 = aVar2.f19537a;\n int c2 = mo29675c(mo29670a(str2));\n String[] strArr3 = this.f19529f;\n if (strArr3[c2] == null) {\n strArr3[c2] = str2;\n } else {\n int i7 = c2 >> 1;\n C4216a aVar3 = new C4216a(str2, this.f19530g[i7]);\n this.f19530g[i7] = aVar3;\n i3 = Math.max(i3, aVar3.f19539c);\n }\n }\n }\n this.f19534k = i3;\n this.f19536m = null;\n int i8 = this.f19531h;\n if (i2 != i8) {\n throw new IllegalStateException(String.format(\"Internal error on SymbolTable.rehash(): had %d entries; now have %d\", Integer.valueOf(i8), Integer.valueOf(i2)));\n }\n }", "public void m63703d() {\n Throwable th;\n ZipCoordinator zipCoordinator = this;\n if (getAndIncrement() == 0) {\n C17455a[] c17455aArr = zipCoordinator.f53839c;\n Observer observer = zipCoordinator.f53837a;\n Object obj = zipCoordinator.f53840d;\n boolean z = zipCoordinator.f53841e;\n int i = 1;\n while (true) {\n int length = c17455aArr.length;\n int i2 = 0;\n int i3 = 0;\n int i4 = 0;\n while (i2 < length) {\n int i5;\n C17455a c17455a = c17455aArr[i2];\n if (obj[i3] == null) {\n boolean z2 = c17455a.f53845c;\n Object poll = c17455a.f53844b.poll();\n boolean z3 = poll == null;\n i5 = i2;\n if (!m63700a(z2, z3, observer, z, c17455a)) {\n if (z3) {\n i4++;\n } else {\n obj[i3] = poll;\n }\n } else {\n return;\n }\n }\n C17455a c17455a2 = c17455a;\n i5 = i2;\n if (c17455a2.f53845c && !z) {\n th = c17455a2.f53846d;\n if (th != null) {\n m63698a();\n observer.onError(th);\n return;\n }\n }\n i3++;\n i2 = i5 + 1;\n }\n if (i4 != 0) {\n i = addAndGet(-i);\n if (i == 0) {\n return;\n }\n } else {\n try {\n observer.onNext(C15684a.m58895a(zipCoordinator.f53838b.apply(obj.clone()), \"The zipper returned a null value\"));\n Arrays.fill(obj, null);\n } catch (Throwable th2) {\n th = th2;\n C15678a.m58850b(th);\n m63698a();\n observer.onError(th);\n return;\n }\n }\n }\n }\n }", "private BigInteger[] factor(BigInteger i) {\n return null;\r\n }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Azy;\u001ftQF\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var3 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var4 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1678 = (new String((char[])var3)).intern();\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var3)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 229;\r\n break;\r\n case 1:\r\n var10009 = 210;\r\n break;\r\n case 2:\r\n var10009 = 203;\r\n break;\r\n case 3:\r\n var10009 = 146;\r\n break;\r\n case 4:\r\n var10009 = 172;\r\n break;\r\n case 5:\r\n var10009 = 142;\r\n break;\r\n default:\r\n var10009 = 179;\r\n }\r\n\r\n ((Object[])var3)[var0] = (char)(var10007 ^ var4 ^ var10009);\r\n ++var0;\r\n }\r\n }", "private static int m6083a(Object obj) {\n if (obj == null) {\n return 1;\n }\n if (obj == Undefined.f6689a) {\n return 0;\n }\n if (obj instanceof CharSequence) {\n return 4;\n }\n if (obj instanceof Number) {\n return 3;\n }\n if (obj instanceof Boolean) {\n return 2;\n }\n if (obj instanceof Scriptable) {\n if (obj instanceof NativeJavaClass) {\n return 5;\n }\n if (obj instanceof NativeJavaArray) {\n return 7;\n }\n if (obj instanceof Wrapper) {\n return 6;\n }\n return 8;\n } else if (obj instanceof Class) {\n return 5;\n } else {\n if (obj.getClass().isArray()) {\n return 7;\n }\n return 6;\n }\n }", "O transform(R result);", "static void method_2892() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Plf æ¤Ý\\\"\u0017\\f¢\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_2300 = (new String((char[])var4)).intern();\r\n String var2 = field_2300;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 87;\r\n break;\r\n case 1:\r\n var10009 = 100;\r\n break;\r\n case 2:\r\n var10009 = 125;\r\n break;\r\n case 3:\r\n var10009 = 212;\r\n break;\r\n case 4:\r\n var10009 = 146;\r\n break;\r\n case 5:\r\n var10009 = 208;\r\n break;\r\n default:\r\n var10009 = 169;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}", "public abstract long mo9746k();", "static synchronized int[] zzeT(java.lang.String r13) {\n /*\n r8 = com.google.android.gms.internal.zzaqx.class;\n monitor-enter(r8);\n r1 = 0;\n r9 = r13.length();\t Catch:{ all -> 0x001c }\n r0 = 0;\n r6 = 0;\n r4 = 0;\n r3 = 0;\n r5 = r6;\n r6 = r0;\n L_0x000e:\n if (r1 >= r9) goto L_0x0205;\n L_0x0010:\n r0 = 2045; // 0x7fd float:2.866E-42 double:1.0104E-320;\n if (r6 <= r0) goto L_0x001f;\n L_0x0014:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Pattern is too large!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x001c:\n r0 = move-exception;\n monitor-exit(r8);\n throw r0;\n L_0x001f:\n r0 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r2 = 0;\n switch(r0) {\n case 42: goto L_0x00e1;\n case 43: goto L_0x0109;\n case 46: goto L_0x0131;\n case 91: goto L_0x0044;\n case 92: goto L_0x0143;\n case 93: goto L_0x0071;\n case 123: goto L_0x00a2;\n case 125: goto L_0x00ce;\n default: goto L_0x0027;\n };\t Catch:{ all -> 0x001c }\n L_0x0027:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n L_0x0030:\n if (r6 == 0) goto L_0x0191;\n L_0x0032:\n if (r0 == 0) goto L_0x015f;\n L_0x0034:\n r0 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r0[r2] = r4;\t Catch:{ all -> 0x001c }\n r0 = 0;\n r2 = r3;\n L_0x003c:\n r2 = r2 + 1;\n r3 = r0;\n r4 = r5;\n r5 = r6;\n r6 = r1;\n r1 = r2;\n goto L_0x000e;\n L_0x0044:\n if (r5 == 0) goto L_0x0050;\n L_0x0046:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x0050:\n r0 = r1 + 1;\n r0 = r13.charAt(r0);\t Catch:{ all -> 0x001c }\n r2 = 94;\n if (r0 != r2) goto L_0x0069;\n L_0x005a:\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = r6 + 1;\n r5 = -2;\n r2[r6] = r5;\t Catch:{ all -> 0x001c }\n r1 = r1 + 1;\n L_0x0063:\n r1 = r1 + 1;\n r6 = 1;\n r5 = r6;\n r6 = r0;\n goto L_0x000e;\n L_0x0069:\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = r6 + 1;\n r5 = -1;\n r2[r6] = r5;\t Catch:{ all -> 0x001c }\n goto L_0x0063;\n L_0x0071:\n if (r5 != 0) goto L_0x007d;\n L_0x0073:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x007d:\n r3 = zzbip;\t Catch:{ all -> 0x001c }\n r5 = r6 + -1;\n r3 = r3[r5];\t Catch:{ all -> 0x001c }\n r5 = -1;\n if (r3 == r5) goto L_0x0089;\n L_0x0086:\n r5 = -2;\n if (r3 != r5) goto L_0x0091;\n L_0x0089:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"You must define characters in a set.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x0091:\n r3 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r5 = -3;\n r3[r6] = r5;\t Catch:{ all -> 0x001c }\n r5 = 0;\n r3 = 0;\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x00a2:\n if (r5 != 0) goto L_0x021b;\n L_0x00a4:\n if (r6 == 0) goto L_0x00b2;\n L_0x00a6:\n r4 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + -1;\n r4 = r4[r7];\t Catch:{ all -> 0x001c }\n r4 = zzjL(r4);\t Catch:{ all -> 0x001c }\n if (r4 == 0) goto L_0x00ba;\n L_0x00b2:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x00ba:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r4 = r6 + 1;\n r10 = -5;\n r7[r6] = r10;\t Catch:{ all -> 0x001c }\n r6 = r1 + 1;\n r1 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r6;\n r6 = r5;\n r5 = r1;\n r1 = r2;\n r2 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x00ce:\n if (r4 == 0) goto L_0x021b;\n L_0x00d0:\n r4 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r10 = -6;\n r4[r6] = r10;\t Catch:{ all -> 0x001c }\n r4 = 0;\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x00e1:\n if (r5 != 0) goto L_0x021b;\n L_0x00e3:\n if (r6 == 0) goto L_0x00f1;\n L_0x00e5:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r10 = r6 + -1;\n r7 = r7[r10];\t Catch:{ all -> 0x001c }\n r7 = zzjL(r7);\t Catch:{ all -> 0x001c }\n if (r7 == 0) goto L_0x00f9;\n L_0x00f1:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x00f9:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -7;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0109:\n if (r5 != 0) goto L_0x021b;\n L_0x010b:\n if (r6 == 0) goto L_0x0119;\n L_0x010d:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r10 = r6 + -1;\n r7 = r7[r10];\t Catch:{ all -> 0x001c }\n r7 = zzjL(r7);\t Catch:{ all -> 0x001c }\n if (r7 == 0) goto L_0x0121;\n L_0x0119:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x0121:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -8;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0131:\n if (r5 != 0) goto L_0x021b;\n L_0x0133:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -4;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0143:\n r0 = r1 + 1;\n if (r0 < r9) goto L_0x014f;\n L_0x0147:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Escape found at end of pattern!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x014f:\n r2 = r1 + 1;\n r0 = r13.charAt(r2);\t Catch:{ all -> 0x001c }\n r1 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x015f:\n r1 = r3 + 2;\n if (r1 >= r9) goto L_0x0182;\n L_0x0163:\n r1 = r3 + 1;\n r1 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r7 = 45;\n if (r1 != r7) goto L_0x0182;\n L_0x016d:\n r1 = r3 + 2;\n r1 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r7 = 93;\n if (r1 == r7) goto L_0x0182;\n L_0x0177:\n r0 = 1;\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r7[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3 + 1;\n goto L_0x003c;\n L_0x0182:\n r1 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r2 + 1;\n r1[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r7 + 1;\n r2[r7] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3;\n goto L_0x003c;\n L_0x0191:\n if (r5 == 0) goto L_0x01fa;\n L_0x0193:\n r1 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r4 = r13.indexOf(r1, r3);\t Catch:{ all -> 0x001c }\n if (r4 >= 0) goto L_0x01a3;\n L_0x019b:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Range not ended with '}'\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x01a3:\n r1 = r13.substring(r3, r4);\t Catch:{ all -> 0x001c }\n r3 = 44;\n r7 = r1.indexOf(r3);\t Catch:{ all -> 0x001c }\n if (r7 >= 0) goto L_0x01c7;\n L_0x01af:\n r1 = java.lang.Integer.parseInt(r1);\t Catch:{ NumberFormatException -> 0x01be }\n r3 = r1;\n L_0x01b4:\n if (r3 <= r1) goto L_0x01e7;\n L_0x01b6:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ NumberFormatException -> 0x01be }\n r1 = \"Range quantifier minimum is greater than maximum\";\n r0.<init>(r1);\t Catch:{ NumberFormatException -> 0x01be }\n throw r0;\t Catch:{ NumberFormatException -> 0x01be }\n L_0x01be:\n r0 = move-exception;\n r1 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r2 = \"Range number format incorrect\";\n r1.<init>(r2, r0);\t Catch:{ all -> 0x001c }\n throw r1;\t Catch:{ all -> 0x001c }\n L_0x01c7:\n r3 = 0;\n r3 = r1.substring(r3, r7);\t Catch:{ NumberFormatException -> 0x01be }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r1.length();\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r10 + -1;\n if (r7 != r10) goto L_0x01dc;\n L_0x01d8:\n r1 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n goto L_0x01b4;\n L_0x01dc:\n r7 = r7 + 1;\n r1 = r1.substring(r7);\t Catch:{ NumberFormatException -> 0x01be }\n r1 = java.lang.Integer.parseInt(r1);\t Catch:{ NumberFormatException -> 0x01be }\n goto L_0x01b4;\n L_0x01e7:\n r7 = zzbip;\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r2 + 1;\n r7[r2] = r3;\t Catch:{ NumberFormatException -> 0x01be }\n r3 = zzbip;\t Catch:{ NumberFormatException -> 0x01be }\n r2 = r10 + 1;\n r3[r10] = r1;\t Catch:{ NumberFormatException -> 0x01be }\n r3 = r0;\n r1 = r4;\n r4 = r5;\n r5 = r6;\n r6 = r2;\n goto L_0x000e;\n L_0x01fa:\n if (r1 == 0) goto L_0x0217;\n L_0x01fc:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r7[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3;\n goto L_0x003c;\n L_0x0205:\n if (r5 == 0) goto L_0x020f;\n L_0x0207:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Set was not terminated!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x020f:\n r0 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = java.util.Arrays.copyOf(r0, r6);\t Catch:{ all -> 0x001c }\n monitor-exit(r8);\n return r0;\n L_0x0217:\n r1 = r2;\n r2 = r3;\n goto L_0x003c;\n L_0x021b:\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzaqx.zzeT(java.lang.String):int[]\");\n }", "private void method_260(int[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16) {\n boolean var32 = field_759;\n int var20 = var12 >> 16 & 255;\n int var21 = var12 >> 8 & 255;\n int var22 = var12 & 255;\n int var23 = var13 >> 16 & 255;\n int var24 = var13 >> 8 & 255;\n int var25 = var13 & 255;\n\n try {\n int var26 = var4;\n int var27 = -var8;\n if(var32 || var27 < 0) {\n do {\n int var28 = (var5 >> 16) * var11;\n int var29 = var14 >> 16;\n int var30 = var7;\n int var31;\n if(var29 < this.field_745) {\n var31 = this.field_745 - var29;\n var30 = var7 - var31;\n var29 = this.field_745;\n var4 += var9 * var31;\n }\n\n if(var29 + var30 >= this.field_746) {\n var31 = var29 + var30 - this.field_746;\n var30 -= var31;\n }\n\n var16 = 1 - var16;\n if(var16 != 0) {\n var31 = var29;\n if(var32 || var29 < var29 + var30) {\n do {\n var3 = var2[(var4 >> 16) + var28];\n if(var3 != 0) {\n label69: {\n int var17 = var3 >> 16 & 255;\n int var18 = var3 >> 8 & 255;\n int var19 = var3 & 255;\n if(var17 == var18 && var18 == var19) {\n var1[var31 + var6] = (var17 * var20 >> 8 << 16) + (var18 * var21 >> 8 << 8) + (var19 * var22 >> 8);\n if(!var32) {\n break label69;\n }\n }\n\n if(var17 == 255 && var18 == var19) {\n var1[var31 + var6] = (var17 * var23 >> 8 << 16) + (var18 * var24 >> 8 << 8) + (var19 * var25 >> 8);\n if(!var32) {\n break label69;\n }\n }\n\n var1[var31 + var6] = var3;\n }\n }\n\n var4 += var9;\n ++var31;\n } while(var31 < var29 + var30);\n }\n }\n\n var5 += var10;\n var4 = var26;\n var6 += this.field_723;\n var14 += var15;\n ++var27;\n } while(var27 < 0);\n\n }\n } catch (Exception var33) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "void m63698a() {\n m63702c();\n m63701b();\n }", "private final void zzb(T r21, com.google.android.gms.internal.clearcut.zzfr r22) throws java.io.IOException {\n /*\n r20 = this;\n r0 = r20;\n r1 = r21;\n r2 = r22;\n r3 = r0.zzmo;\n if (r3 == 0) goto L_0x0021;\n L_0x000a:\n r3 = r0.zzmy;\n r3 = r3.zza(r1);\n r5 = r3.isEmpty();\n if (r5 != 0) goto L_0x0021;\n L_0x0016:\n r3 = r3.iterator();\n r5 = r3.next();\n r5 = (java.util.Map.Entry) r5;\n goto L_0x0023;\n L_0x0021:\n r3 = 0;\n r5 = 0;\n L_0x0023:\n r6 = -1;\n r7 = r0.zzmi;\n r7 = r7.length;\n r9 = zzmh;\n r10 = r5;\n r5 = 0;\n r11 = 0;\n L_0x002c:\n if (r5 >= r7) goto L_0x0521;\n L_0x002e:\n r12 = r0.zzag(r5);\n r13 = r0.zzmi;\n r13 = r13[r5];\n r14 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r14 = r14 & r12;\n r14 = r14 >>> 20;\n r15 = r0.zzmq;\n r16 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n if (r15 != 0) goto L_0x0061;\n L_0x0042:\n r15 = 17;\n if (r14 > r15) goto L_0x0061;\n L_0x0046:\n r15 = r0.zzmi;\n r17 = r5 + 2;\n r15 = r15[r17];\n r8 = r15 & r16;\n if (r8 == r6) goto L_0x0059;\n L_0x0050:\n r18 = r5;\n r4 = (long) r8;\n r11 = r9.getInt(r1, r4);\n r6 = r8;\n goto L_0x005b;\n L_0x0059:\n r18 = r5;\n L_0x005b:\n r4 = r15 >>> 20;\n r5 = 1;\n r8 = r5 << r4;\n goto L_0x0064;\n L_0x0061:\n r18 = r5;\n r8 = 0;\n L_0x0064:\n if (r10 == 0) goto L_0x0083;\n L_0x0066:\n r4 = r0.zzmy;\n r4 = r4.zza(r10);\n if (r4 > r13) goto L_0x0083;\n L_0x006e:\n r4 = r0.zzmy;\n r4.zza(r2, r10);\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0081;\n L_0x0079:\n r4 = r3.next();\n r4 = (java.util.Map.Entry) r4;\n r10 = r4;\n goto L_0x0064;\n L_0x0081:\n r10 = 0;\n goto L_0x0064;\n L_0x0083:\n r4 = r12 & r16;\n r4 = (long) r4;\n switch(r14) {\n case 0: goto L_0x0510;\n case 1: goto L_0x0502;\n case 2: goto L_0x04f4;\n case 3: goto L_0x04e6;\n case 4: goto L_0x04d8;\n case 5: goto L_0x04ca;\n case 6: goto L_0x04bc;\n case 7: goto L_0x04ae;\n case 8: goto L_0x049f;\n case 9: goto L_0x048c;\n case 10: goto L_0x047b;\n case 11: goto L_0x046c;\n case 12: goto L_0x045d;\n case 13: goto L_0x044e;\n case 14: goto L_0x043f;\n case 15: goto L_0x0430;\n case 16: goto L_0x0421;\n case 17: goto L_0x040e;\n case 18: goto L_0x03fc;\n case 19: goto L_0x03ea;\n case 20: goto L_0x03d8;\n case 21: goto L_0x03c6;\n case 22: goto L_0x03b4;\n case 23: goto L_0x03a2;\n case 24: goto L_0x0390;\n case 25: goto L_0x037e;\n case 26: goto L_0x036d;\n case 27: goto L_0x0358;\n case 28: goto L_0x0347;\n case 29: goto L_0x0334;\n case 30: goto L_0x0323;\n case 31: goto L_0x0312;\n case 32: goto L_0x0301;\n case 33: goto L_0x02f0;\n case 34: goto L_0x02df;\n case 35: goto L_0x02cd;\n case 36: goto L_0x02bb;\n case 37: goto L_0x02a9;\n case 38: goto L_0x0297;\n case 39: goto L_0x0285;\n case 40: goto L_0x0273;\n case 41: goto L_0x0261;\n case 42: goto L_0x024f;\n case 43: goto L_0x023d;\n case 44: goto L_0x022b;\n case 45: goto L_0x0219;\n case 46: goto L_0x0207;\n case 47: goto L_0x01f5;\n case 48: goto L_0x01e3;\n case 49: goto L_0x01ce;\n case 50: goto L_0x01c3;\n case 51: goto L_0x01b2;\n case 52: goto L_0x01a1;\n case 53: goto L_0x0190;\n case 54: goto L_0x017f;\n case 55: goto L_0x016e;\n case 56: goto L_0x015d;\n case 57: goto L_0x014c;\n case 58: goto L_0x013b;\n case 59: goto L_0x012a;\n case 60: goto L_0x0115;\n case 61: goto L_0x0102;\n case 62: goto L_0x00f2;\n case 63: goto L_0x00e2;\n case 64: goto L_0x00d2;\n case 65: goto L_0x00c2;\n case 66: goto L_0x00b2;\n case 67: goto L_0x00a2;\n case 68: goto L_0x008e;\n default: goto L_0x0089;\n };\n L_0x0089:\n r12 = r18;\n L_0x008b:\n r14 = 0;\n goto L_0x051d;\n L_0x008e:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0096:\n r4 = r9.getObject(r1, r4);\n r5 = r0.zzad(r12);\n r2.zzb(r13, r4, r5);\n goto L_0x008b;\n L_0x00a2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00aa:\n r4 = zzh(r1, r4);\n r2.zzb(r13, r4);\n goto L_0x008b;\n L_0x00b2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00ba:\n r4 = zzg(r1, r4);\n r2.zze(r13, r4);\n goto L_0x008b;\n L_0x00c2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00ca:\n r4 = zzh(r1, r4);\n r2.zzj(r13, r4);\n goto L_0x008b;\n L_0x00d2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00da:\n r4 = zzg(r1, r4);\n r2.zzm(r13, r4);\n goto L_0x008b;\n L_0x00e2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00ea:\n r4 = zzg(r1, r4);\n r2.zzn(r13, r4);\n goto L_0x008b;\n L_0x00f2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x00fa:\n r4 = zzg(r1, r4);\n r2.zzd(r13, r4);\n goto L_0x008b;\n L_0x0102:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x010a:\n r4 = r9.getObject(r1, r4);\n r4 = (com.google.android.gms.internal.clearcut.zzbb) r4;\n r2.zza(r13, r4);\n goto L_0x008b;\n L_0x0115:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x011d:\n r4 = r9.getObject(r1, r4);\n r5 = r0.zzad(r12);\n r2.zza(r13, r4, r5);\n goto L_0x008b;\n L_0x012a:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0132:\n r4 = r9.getObject(r1, r4);\n zza(r13, r4, r2);\n goto L_0x008b;\n L_0x013b:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0143:\n r4 = zzi(r1, r4);\n r2.zzb(r13, r4);\n goto L_0x008b;\n L_0x014c:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0154:\n r4 = zzg(r1, r4);\n r2.zzf(r13, r4);\n goto L_0x008b;\n L_0x015d:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0165:\n r4 = zzh(r1, r4);\n r2.zzc(r13, r4);\n goto L_0x008b;\n L_0x016e:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0176:\n r4 = zzg(r1, r4);\n r2.zzc(r13, r4);\n goto L_0x008b;\n L_0x017f:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0187:\n r4 = zzh(r1, r4);\n r2.zza(r13, r4);\n goto L_0x008b;\n L_0x0190:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x0198:\n r4 = zzh(r1, r4);\n r2.zzi(r13, r4);\n goto L_0x008b;\n L_0x01a1:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x01a9:\n r4 = zzf(r1, r4);\n r2.zza(r13, r4);\n goto L_0x008b;\n L_0x01b2:\n r12 = r18;\n r8 = r0.zza(r1, r13, r12);\n if (r8 == 0) goto L_0x008b;\n L_0x01ba:\n r4 = zze(r1, r4);\n r2.zza(r13, r4);\n goto L_0x008b;\n L_0x01c3:\n r12 = r18;\n r4 = r9.getObject(r1, r4);\n r0.zza(r2, r13, r4, r12);\n goto L_0x008b;\n L_0x01ce:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r5 = r0.zzad(r12);\n com.google.android.gms.internal.clearcut.zzeh.zzb(r8, r4, r2, r5);\n goto L_0x008b;\n L_0x01e3:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r13 = 1;\n com.google.android.gms.internal.clearcut.zzeh.zze(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x01f5:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzj(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0207:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzg(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0219:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzl(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x022b:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzm(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x023d:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzi(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x024f:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzn(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0261:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzk(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0273:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzf(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0285:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzh(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x0297:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzd(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x02a9:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzc(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x02bb:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzb(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x02cd:\n r12 = r18;\n r13 = 1;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zza(r8, r4, r2, r13);\n goto L_0x008b;\n L_0x02df:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r13 = 0;\n com.google.android.gms.internal.clearcut.zzeh.zze(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x02f0:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzj(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x0301:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzg(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x0312:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzl(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x0323:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzm(r8, r4, r2, r13);\n goto L_0x0344;\n L_0x0334:\n r12 = r18;\n r13 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzi(r8, r4, r2, r13);\n L_0x0344:\n r14 = r13;\n goto L_0x051d;\n L_0x0347:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzb(r8, r4, r2);\n goto L_0x008b;\n L_0x0358:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r5 = r0.zzad(r12);\n com.google.android.gms.internal.clearcut.zzeh.zza(r8, r4, r2, r5);\n goto L_0x008b;\n L_0x036d:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zza(r8, r4, r2);\n goto L_0x008b;\n L_0x037e:\n r12 = r18;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n r14 = 0;\n com.google.android.gms.internal.clearcut.zzeh.zzn(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x0390:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzk(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03a2:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzf(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03b4:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzh(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03c6:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzd(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03d8:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzc(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03ea:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zzb(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x03fc:\n r12 = r18;\n r14 = 0;\n r8 = r0.zzmi;\n r8 = r8[r12];\n r4 = r9.getObject(r1, r4);\n r4 = (java.util.List) r4;\n com.google.android.gms.internal.clearcut.zzeh.zza(r8, r4, r2, r14);\n goto L_0x051d;\n L_0x040e:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0414:\n r4 = r9.getObject(r1, r4);\n r5 = r0.zzad(r12);\n r2.zzb(r13, r4, r5);\n goto L_0x051d;\n L_0x0421:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0427:\n r4 = r9.getLong(r1, r4);\n r2.zzb(r13, r4);\n goto L_0x051d;\n L_0x0430:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0436:\n r4 = r9.getInt(r1, r4);\n r2.zze(r13, r4);\n goto L_0x051d;\n L_0x043f:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0445:\n r4 = r9.getLong(r1, r4);\n r2.zzj(r13, r4);\n goto L_0x051d;\n L_0x044e:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0454:\n r4 = r9.getInt(r1, r4);\n r2.zzm(r13, r4);\n goto L_0x051d;\n L_0x045d:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0463:\n r4 = r9.getInt(r1, r4);\n r2.zzn(r13, r4);\n goto L_0x051d;\n L_0x046c:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0472:\n r4 = r9.getInt(r1, r4);\n r2.zzd(r13, r4);\n goto L_0x051d;\n L_0x047b:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0481:\n r4 = r9.getObject(r1, r4);\n r4 = (com.google.android.gms.internal.clearcut.zzbb) r4;\n r2.zza(r13, r4);\n goto L_0x051d;\n L_0x048c:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0492:\n r4 = r9.getObject(r1, r4);\n r5 = r0.zzad(r12);\n r2.zza(r13, r4, r5);\n goto L_0x051d;\n L_0x049f:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04a5:\n r4 = r9.getObject(r1, r4);\n zza(r13, r4, r2);\n goto L_0x051d;\n L_0x04ae:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04b4:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzl(r1, r4);\n r2.zzb(r13, r4);\n goto L_0x051d;\n L_0x04bc:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04c2:\n r4 = r9.getInt(r1, r4);\n r2.zzf(r13, r4);\n goto L_0x051d;\n L_0x04ca:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04d0:\n r4 = r9.getLong(r1, r4);\n r2.zzc(r13, r4);\n goto L_0x051d;\n L_0x04d8:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04de:\n r4 = r9.getInt(r1, r4);\n r2.zzc(r13, r4);\n goto L_0x051d;\n L_0x04e6:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04ec:\n r4 = r9.getLong(r1, r4);\n r2.zza(r13, r4);\n goto L_0x051d;\n L_0x04f4:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x04fa:\n r4 = r9.getLong(r1, r4);\n r2.zzi(r13, r4);\n goto L_0x051d;\n L_0x0502:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0508:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzm(r1, r4);\n r2.zza(r13, r4);\n goto L_0x051d;\n L_0x0510:\n r12 = r18;\n r14 = 0;\n r8 = r8 & r11;\n if (r8 == 0) goto L_0x051d;\n L_0x0516:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzn(r1, r4);\n r2.zza(r13, r4);\n L_0x051d:\n r5 = r12 + 4;\n goto L_0x002c;\n L_0x0521:\n if (r10 == 0) goto L_0x0538;\n L_0x0523:\n r4 = r0.zzmy;\n r4.zza(r2, r10);\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0536;\n L_0x052e:\n r4 = r3.next();\n r4 = (java.util.Map.Entry) r4;\n r10 = r4;\n goto L_0x0521;\n L_0x0536:\n r10 = 0;\n goto L_0x0521;\n L_0x0538:\n r3 = r0.zzmx;\n zza(r3, r1, r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zzb(java.lang.Object, com.google.android.gms.internal.clearcut.zzfr):void\");\n }", "public void k()\r\n/* 238: */ {\r\n/* 239:258 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 240:259 */ if (this.a[i] != null) {\r\n/* 241:260 */ this.a[i].a(this.d.o, this.d, i, this.c == i);\r\n/* 242: */ }\r\n/* 243: */ }\r\n/* 244: */ }", "private final int zzq(Object var1_1) {\n var2_2 = zzja.zzb;\n var4_4 = var3_3 = 1048575;\n var6_6 = 0;\n var7_7 = 0;\n block71: for (var5_5 = 0; var5_5 < (var9_9 = ((int[])(var8_8 = this.zzc)).length); var5_5 += 3) {\n block79: {\n var9_9 = this.zzA(var5_5);\n var10_10 = this.zzc;\n var11_11 = var10_10[var5_5];\n var12_12 = zzja.zzC(var9_9);\n var13_13 = 17;\n var14_14 = 1;\n if (var12_12 <= var13_13) {\n var15_15 = this.zzc;\n var16_16 = var5_5 + 2;\n var13_13 = var15_15[var16_16];\n var16_16 = var13_13 & var3_3;\n var13_13 >>>= 20;\n var13_13 = var14_14 << var13_13;\n if (var16_16 != var4_4) {\n var17_17 = var16_16;\n var7_7 = var2_2.getInt(var1_1, var17_17);\n var4_4 = var16_16;\n }\n } else {\n var13_13 = 0;\n var15_15 = null;\n }\n var19_18 = var9_9 & var3_3;\n var9_9 = 63;\n switch (var12_12) {\n default: {\n continue block71;\n }\n case 68: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var8_8 = (zzix)var2_2.getObject(var1_1, var19_18);\n var21_19 = this.zzv(var5_5);\n var9_9 = zzgz.zzE(var11_11, (zzix)var8_8, (zzji)var21_19);\n ** GOTO lbl333\n }\n case 67: {\n var12_12 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var12_12 == 0) continue block71;\n var22_20 = zzja.zzG(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var24_21 = var22_20 + var22_20;\n var22_20 = var22_20 >> var9_9 ^ var24_21;\n var9_9 = zzgz.zzx(var22_20);\n ** GOTO lbl438\n }\n case 66: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzja.zzF(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var12_12 = var9_9 + var9_9;\n var9_9 = zzgz.zzw(var9_9 >> 31 ^ var12_12);\n ** GOTO lbl438\n }\n case 65: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n break block79;\n }\n case 64: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n ** GOTO lbl460\n }\n case 63: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzja.zzF(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = zzgz.zzv(var9_9);\n ** GOTO lbl438\n }\n case 62: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzja.zzF(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = zzgz.zzw(var9_9);\n ** GOTO lbl438\n }\n case 61: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var8_8 = (zzgs)var2_2.getObject(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = var8_8.zzc();\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl391\n }\n case 60: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var8_8 = var2_2.getObject(var1_1, var19_18);\n var21_19 = this.zzv(var5_5);\n var9_9 = zzjk.zzw(var11_11, var8_8, (zzji)var21_19);\n ** GOTO lbl333\n }\n case 59: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var8_8 = var2_2.getObject(var1_1, var19_18);\n var12_12 = var8_8 instanceof zzgs;\n if (var12_12 == 0) ** GOTO lbl105\n var8_8 = (zzgs)var8_8;\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = var8_8.zzc();\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl391\nlbl105:\n // 1 sources\n\n var8_8 = (String)var8_8;\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = zzgz.zzy((String)var8_8);\n ** GOTO lbl438\n }\n case 58: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n ** GOTO lbl420\n }\n case 57: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n ** GOTO lbl460\n }\n case 56: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n break block79;\n }\n case 55: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzja.zzF(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = zzgz.zzv(var9_9);\n ** GOTO lbl438\n }\n case 54: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var22_20 = zzja.zzG(var1_1, var19_18);\n var9_9 = zzgz.zzw(var11_11 << 3);\n var11_11 = zzgz.zzx(var22_20);\n ** GOTO lbl454\n }\n case 53: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var22_20 = zzja.zzG(var1_1, var19_18);\n var9_9 = zzgz.zzw(var11_11 << 3);\n var11_11 = zzgz.zzx(var22_20);\n ** GOTO lbl454\n }\n case 52: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n ** GOTO lbl460\n }\n case 51: {\n var9_9 = (int)this.zzM(var1_1, var11_11, var5_5);\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n break block79;\n }\n case 50: {\n var8_8 = var2_2.getObject(var1_1, var19_18);\n var21_19 = this.zzw(var5_5);\n zzis.zza(var11_11, var8_8, var21_19);\n continue block71;\n }\n case 49: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var21_19 = this.zzv(var5_5);\n var9_9 = zzjk.zzz(var11_11, (List)var8_8, (zzji)var21_19);\n ** GOTO lbl333\n }\n case 48: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzf((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 47: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzn((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 46: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzr((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 45: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzp((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 44: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzh((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 43: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzl((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 42: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzt((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 41: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzp((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 40: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzr((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 39: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzj((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 38: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzd((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 37: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzb((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 36: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzp((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\n ** GOTO lbl263\n }\n case 35: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzr((List)var8_8);\n if (var9_9 <= 0) continue block71;\n var11_11 = zzgz.zzu(var11_11);\n var12_12 = zzgz.zzw(var9_9);\nlbl263:\n // 14 sources\n\n var11_11 += var12_12;\n ** GOTO lbl438\n }\n case 34: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzg(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 33: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzo(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 32: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzs(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 31: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzq(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 30: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzi(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 29: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzm(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 28: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzy(var11_11, (List)var8_8);\n ** GOTO lbl333\n }\n case 27: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var21_19 = this.zzv(var5_5);\n var9_9 = zzjk.zzx(var11_11, (List)var8_8, (zzji)var21_19);\n ** GOTO lbl333\n }\n case 26: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzv(var11_11, (List)var8_8);\n ** GOTO lbl333\n }\n case 25: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzu(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 24: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzq(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 23: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzs(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 22: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzk(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 21: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zze(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 20: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzc(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 19: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzq(var11_11, (List)var8_8, false);\n ** GOTO lbl333\n }\n case 18: {\n var8_8 = (List)var2_2.getObject(var1_1, var19_18);\n var9_9 = zzjk.zzs(var11_11, (List)var8_8, false);\nlbl333:\n // 26 sources\n\n while (true) {\n var6_6 += var9_9;\n continue block71;\n break;\n }\n }\n case 17: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var8_8 = (zzix)var2_2.getObject(var1_1, var19_18);\n var21_19 = this.zzv(var5_5);\n var9_9 = zzgz.zzE(var11_11, (zzix)var8_8, (zzji)var21_19);\n ** GOTO lbl333\n }\n case 16: {\n var12_12 = var7_7 & var13_13;\n if (var12_12 == 0) continue block71;\n var22_20 = var2_2.getLong(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var24_21 = var22_20 + var22_20;\n var22_20 = var22_20 >> var9_9 ^ var24_21;\n var9_9 = zzgz.zzx(var22_20);\n ** GOTO lbl438\n }\n case 15: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = var2_2.getInt(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var12_12 = var9_9 + var9_9;\n var9_9 = zzgz.zzw(var9_9 >> 31 ^ var12_12);\n ** GOTO lbl438\n }\n case 14: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n break block79;\n }\n case 13: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n ** GOTO lbl460\n }\n case 12: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = var2_2.getInt(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = zzgz.zzv(var9_9);\n ** GOTO lbl438\n }\n case 11: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = var2_2.getInt(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = zzgz.zzw(var9_9);\n ** GOTO lbl438\n }\n case 10: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var8_8 = (zzgs)var2_2.getObject(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = var8_8.zzc();\n var12_12 = zzgz.zzw(var9_9);\nlbl391:\n // 4 sources\n\n while (true) {\n var11_11 += (var12_12 += var9_9);\n ** GOTO lbl439\n break;\n }\n }\n case 9: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var8_8 = var2_2.getObject(var1_1, var19_18);\n var21_19 = this.zzv(var5_5);\n var9_9 = zzjk.zzw(var11_11, var8_8, (zzji)var21_19);\n ** GOTO lbl333\n }\n case 8: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var8_8 = var2_2.getObject(var1_1, var19_18);\n var12_12 = var8_8 instanceof zzgs;\n if (var12_12 != 0) {\n var8_8 = (zzgs)var8_8;\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = var8_8.zzc();\n var12_12 = zzgz.zzw(var9_9);\n ** continue;\n }\n var8_8 = (String)var8_8;\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = zzgz.zzy((String)var8_8);\n ** GOTO lbl438\n }\n case 7: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\nlbl420:\n // 2 sources\n\n var9_9 += var14_14;\n ** GOTO lbl333\n }\n case 6: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n ** GOTO lbl460\n }\n case 5: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\n break block79;\n }\n case 4: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = var2_2.getInt(var1_1, var19_18);\n var11_11 = zzgz.zzw(var11_11 << 3);\n var9_9 = zzgz.zzv(var9_9);\nlbl438:\n // 13 sources\n\n var11_11 += var9_9;\nlbl439:\n // 2 sources\n\n var6_6 += var11_11;\n continue block71;\n }\n case 3: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var22_20 = var2_2.getLong(var1_1, var19_18);\n var9_9 = zzgz.zzw(var11_11 << 3);\n var11_11 = zzgz.zzx(var22_20);\n ** GOTO lbl454\n }\n case 2: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var22_20 = var2_2.getLong(var1_1, var19_18);\n var9_9 = zzgz.zzw(var11_11 << 3);\n var11_11 = zzgz.zzx(var22_20);\nlbl454:\n // 4 sources\n\n var9_9 += var11_11;\n ** GOTO lbl333\n }\n case 1: {\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue block71;\n var9_9 = zzgz.zzw(var11_11 << 3);\nlbl460:\n // 6 sources\n\n var9_9 += 4;\n ** GOTO lbl333\n }\n case 0: \n }\n var9_9 = var7_7 & var13_13;\n if (var9_9 == 0) continue;\n var9_9 = zzgz.zzw(var11_11 << 3);\n }\n var9_9 += 8;\n ** continue;\n }\n var2_2 = this.zzn;\n var26_22 = var2_2.zzd(var1_1);\n var27_23 = var2_2.zzh(var26_22);\n var6_6 += var27_23;\n var27_23 = (int)this.zzh;\n if (var27_23 == 0) {\n return var6_6;\n }\n this.zzo.zzb(var1_1);\n throw null;\n }", "private void method_269(int[] var1, byte[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9) {\n boolean var14 = field_759;\n\n try {\n int var10 = -(var6 >> 2);\n var6 = -(var6 & 3);\n int var11 = -var7;\n if(var14 || var11 < 0) {\n do {\n int var12 = var10;\n int var13;\n if(!var14 && var10 >= 0) {\n var13 = var6;\n if(var14 || var6 < 0) {\n do {\n label93: {\n if(var2[var4++] != 0) {\n var1[var5++] = var3;\n if(!var14) {\n break label93;\n }\n }\n\n ++var5;\n }\n\n ++var13;\n } while(var13 < 0);\n\n var5 += var8;\n var4 += var9;\n ++var11;\n } else {\n var5 += var8;\n var4 += var9;\n ++var11;\n }\n } else {\n do {\n label73: {\n if(var2[var4++] != 0) {\n var1[var5++] = var3;\n if(!var14) {\n break label73;\n }\n }\n\n ++var5;\n }\n\n label67: {\n if(var2[var4++] != 0) {\n var1[var5++] = var3;\n if(!var14) {\n break label67;\n }\n }\n\n ++var5;\n }\n\n label61: {\n if(var2[var4++] != 0) {\n var1[var5++] = var3;\n if(!var14) {\n break label61;\n }\n }\n\n ++var5;\n }\n\n label55: {\n if(var2[var4++] != 0) {\n var1[var5++] = var3;\n if(!var14) {\n break label55;\n }\n }\n\n ++var5;\n }\n\n ++var12;\n } while(var12 < 0);\n\n var13 = var6;\n if(var14 || var6 < 0) {\n do {\n label38: {\n if(var2[var4++] != 0) {\n var1[var5++] = var3;\n if(!var14) {\n break label38;\n }\n }\n\n ++var5;\n }\n\n ++var13;\n } while(var13 < 0);\n\n var5 += var8;\n var4 += var9;\n ++var11;\n } else {\n var5 += var8;\n var4 += var9;\n ++var11;\n }\n }\n } while(var11 < 0);\n\n }\n } catch (Exception var15) {\n System.out.println(\"plotletter: \" + var15); // authentic System.out.println\n var15.printStackTrace();\n }\n }", "static void method_6617() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"3\u0012qêXI}@k\u0017ê\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_6523 = (new String((char[])var4)).intern();\r\n String var2 = field_6523;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 162;\r\n break;\r\n case 1:\r\n var10009 = 140;\r\n break;\r\n case 2:\r\n var10009 = 252;\r\n break;\r\n case 3:\r\n var10009 = 8;\r\n break;\r\n case 4:\r\n var10009 = 186;\r\n break;\r\n case 5:\r\n var10009 = 171;\r\n break;\r\n default:\r\n var10009 = 159;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "private void method_261(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16) {\n boolean var29 = field_759;\n int var20 = var13 >> 16 & 255;\n int var21 = var13 >> 8 & 255;\n int var22 = var13 & 255;\n\n try {\n int var23 = var5;\n int var24 = -var9;\n if(var29 || var24 < 0) {\n do {\n int var25 = (var6 >> 16) * var12;\n int var26 = var14 >> 16;\n int var27 = var8;\n int var28;\n if(var26 < this.field_745) {\n var28 = this.field_745 - var26;\n var27 = var8 - var28;\n var26 = this.field_745;\n var5 += var10 * var28;\n }\n\n if(var26 + var27 >= this.field_746) {\n var28 = var26 + var27 - this.field_746;\n var27 -= var28;\n }\n\n var16 = 1 - var16;\n if(var16 != 0) {\n var28 = var26;\n if(var29 || var26 < var26 + var27) {\n do {\n var4 = var2[(var5 >> 16) + var25] & 255;\n if(var4 != 0) {\n label33: {\n var4 = var3[var4];\n int var17 = var4 >> 16 & 255;\n int var18 = var4 >> 8 & 255;\n int var19 = var4 & 255;\n if(var17 == var18 && var18 == var19) {\n var1[var28 + var7] = (var17 * var20 >> 8 << 16) + (var18 * var21 >> 8 << 8) + (var19 * var22 >> 8);\n if(!var29) {\n break label33;\n }\n }\n\n var1[var28 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var28;\n } while(var28 < var26 + var27);\n }\n }\n\n var6 += var11;\n var5 = var23;\n var7 += this.field_723;\n var14 += var15;\n ++var24;\n } while(var24 < 0);\n\n }\n } catch (Exception var30) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "public abstract void mo4382c(int i, long j);", "public abstract long mo13681c();", "public boolean a(amj paramamj)\r\n/* 268: */ {\r\n/* 269:293 */ if ((paramamj == null) || (paramamj.b == 0) || (paramamj.b() == null)) {\r\n/* 270:294 */ return false;\r\n/* 271: */ }\r\n/* 272: */ try\r\n/* 273: */ {\r\n/* 274:298 */ if (!paramamj.g())\r\n/* 275: */ {\r\n/* 276: */ do\r\n/* 277: */ {\r\n/* 278:301 */ i = paramamj.b;\r\n/* 279:302 */ paramamj.b = e(paramamj);\r\n/* 280:303 */ } while ((paramamj.b > 0) && (paramamj.b < i));\r\n/* 281:304 */ if ((paramamj.b == i) && (this.d.by.d))\r\n/* 282: */ {\r\n/* 283:306 */ paramamj.b = 0;\r\n/* 284:307 */ return true;\r\n/* 285: */ }\r\n/* 286:309 */ return paramamj.b < i;\r\n/* 287: */ }\r\n/* 288:312 */ int i = j();\r\n/* 289:313 */ if (i >= 0)\r\n/* 290: */ {\r\n/* 291:314 */ this.a[i] = amj.b(paramamj);\r\n/* 292:315 */ this.a[i].c = 5;\r\n/* 293:316 */ paramamj.b = 0;\r\n/* 294:317 */ return true;\r\n/* 295: */ }\r\n/* 296:318 */ if (this.d.by.d)\r\n/* 297: */ {\r\n/* 298:320 */ paramamj.b = 0;\r\n/* 299:321 */ return true;\r\n/* 300: */ }\r\n/* 301:323 */ return false;\r\n/* 302: */ }\r\n/* 303: */ catch (Throwable localThrowable)\r\n/* 304: */ {\r\n/* 305:325 */ b localb = b.a(localThrowable, \"Adding item to inventory\");\r\n/* 306:326 */ j localj = localb.a(\"Item being added\");\r\n/* 307: */ \r\n/* 308:328 */ localj.a(\"Item ID\", Integer.valueOf(alq.b(paramamj.b())));\r\n/* 309:329 */ localj.a(\"Item data\", Integer.valueOf(paramamj.i()));\r\n/* 310:330 */ localj.a(\"Item name\", new ahc(this, paramamj));\r\n/* 311: */ \r\n/* 312: */ \r\n/* 313: */ \r\n/* 314: */ \r\n/* 315: */ \r\n/* 316: */ \r\n/* 317:337 */ throw new u(localb);\r\n/* 318: */ }\r\n/* 319: */ }", "private void method_250(int[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11) {\n boolean var16 = field_759;\n int var12 = 256 - var11;\n int var13 = -var7;\n if(var16 || var13 < 0) {\n do {\n int var14 = -var6;\n if(!var16 && var14 >= 0) {\n var5 += var8;\n var4 += var9;\n var13 += var10;\n } else {\n do {\n label19: {\n var3 = var2[var4++];\n if(var3 != 0) {\n int var15 = var1[var5];\n var1[var5++] = ((var3 & 16711935) * var11 + (var15 & 16711935) * var12 & -16711936) + ((var3 & '\\uff00') * var11 + (var15 & '\\uff00') * var12 & 16711680) >> 8;\n if(!var16) {\n break label19;\n }\n }\n\n ++var5;\n }\n\n ++var14;\n } while(var14 < 0);\n\n var5 += var8;\n var4 += var9;\n var13 += var10;\n }\n } while(var13 < 0);\n\n }\n }", "private void c() {\n /*\n r14 = this;\n r12 = android.os.SystemClock.elapsedRealtime();\n r8 = r14.d();\n r0 = r14.t;\n if (r0 == 0) goto L_0x007a;\n L_0x000c:\n r0 = 1;\n r7 = r0;\n L_0x000e:\n r0 = r14.r;\n r0 = r0.a();\n if (r0 != 0) goto L_0x0018;\n L_0x0016:\n if (r7 == 0) goto L_0x007d;\n L_0x0018:\n r0 = 1;\n r10 = r0;\n L_0x001a:\n if (r10 != 0) goto L_0x0095;\n L_0x001c:\n r0 = r14.d;\n r0 = r0.b;\n if (r0 != 0) goto L_0x0028;\n L_0x0022:\n r0 = -1;\n r0 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1));\n if (r0 != 0) goto L_0x0032;\n L_0x0028:\n r0 = r14.p;\n r0 = r12 - r0;\n r2 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0095;\n L_0x0032:\n r14.p = r12;\n r0 = r14.d;\n r1 = r14.f;\n r1 = r1.size();\n r0.a = r1;\n r0 = r14.c;\n r1 = r14.f;\n r2 = r14.o;\n r4 = r14.m;\n r6 = r14.d;\n r0.getChunkOperation(r1, r2, r4, r6);\n r0 = r14.d;\n r0 = r0.a;\n r0 = r14.a(r0);\n r1 = r14.d;\n r1 = r1.b;\n if (r1 != 0) goto L_0x0080;\n L_0x0059:\n r4 = -1;\n L_0x005b:\n r0 = r14.b;\n r2 = r14.m;\n r1 = r14;\n r6 = r10;\n r0 = r0.update(r1, r2, r4, r6);\n if (r7 == 0) goto L_0x0087;\n L_0x0067:\n r0 = r14.v;\n r0 = r12 - r0;\n r2 = r14.u;\n r2 = (long) r2;\n r2 = r14.c(r2);\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 < 0) goto L_0x0079;\n L_0x0076:\n r14.e();\n L_0x0079:\n return;\n L_0x007a:\n r0 = 0;\n r7 = r0;\n goto L_0x000e;\n L_0x007d:\n r0 = 0;\n r10 = r0;\n goto L_0x001a;\n L_0x0080:\n if (r0 == 0) goto L_0x0095;\n L_0x0082:\n r4 = r14.d();\n goto L_0x005b;\n L_0x0087:\n r1 = r14.r;\n r1 = r1.a();\n if (r1 != 0) goto L_0x0079;\n L_0x008f:\n if (r0 == 0) goto L_0x0079;\n L_0x0091:\n r14.f();\n goto L_0x0079;\n L_0x0095:\n r4 = r8;\n goto L_0x005b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer.chunk.ChunkSampleSource.c():void\");\n }", "private void method_2242() {\r\n this.field_1824.method_6863(0);\r\n this.field_1824.method_6861(false);\r\n this.field_1824.method_6859(0);\r\n this.field_1824.method_6857(false);\r\n }", "static void method_8299() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Ò˜œÛ¢ï¬ó\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8034 = (new String((char[])var4)).intern();\r\n String var2 = field_8034;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 198;\r\n break;\r\n case 1:\r\n var10009 = 134;\r\n break;\r\n case 2:\r\n var10009 = 223;\r\n break;\r\n case 3:\r\n var10009 = 180;\r\n break;\r\n case 4:\r\n var10009 = 243;\r\n break;\r\n case 5:\r\n var10009 = 181;\r\n break;\r\n default:\r\n var10009 = 138;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public int[] a(int paramInt1, int paramInt2, int paramInt3, int paramInt4)\r\n/* 11: */ {\r\n/* 12:13 */ int i = paramInt1 - 1;\r\n/* 13:14 */ int j = paramInt2 - 1;\r\n/* 14:15 */ int k = paramInt3 + 2;\r\n/* 15:16 */ int m = paramInt4 + 2;\r\n/* 16:17 */ int[] arrayOfInt1 = this.a.a(i, j, k, m);\r\n/* 17: */ \r\n/* 18:19 */ int[] arrayOfInt2 = boy.a(paramInt3 * paramInt4);\r\n/* 19:20 */ for (int n = 0; n < paramInt4; n++) {\r\n/* 20:21 */ for (int i1 = 0; i1 < paramInt3; i1++)\r\n/* 21: */ {\r\n/* 22:22 */ int i2 = c(arrayOfInt1[(i1 + 0 + (n + 1) * k)]);\r\n/* 23:23 */ int i3 = c(arrayOfInt1[(i1 + 2 + (n + 1) * k)]);\r\n/* 24:24 */ int i4 = c(arrayOfInt1[(i1 + 1 + (n + 0) * k)]);\r\n/* 25:25 */ int i5 = c(arrayOfInt1[(i1 + 1 + (n + 2) * k)]);\r\n/* 26:26 */ int i6 = c(arrayOfInt1[(i1 + 1 + (n + 1) * k)]);\r\n/* 27:27 */ if ((i6 != i2) || (i6 != i4) || (i6 != i3) || (i6 != i5)) {\r\n/* 28:28 */ arrayOfInt2[(i1 + n * paramInt3)] = arm.w.az;\r\n/* 29: */ } else {\r\n/* 30:30 */ arrayOfInt2[(i1 + n * paramInt3)] = -1;\r\n/* 31: */ }\r\n/* 32: */ }\r\n/* 33: */ }\r\n/* 34:35 */ return arrayOfInt2;\r\n/* 35: */ }", "public int a(alq paramalq, int paramInt1, int paramInt2, fn paramfn)\r\n/* 120: */ {\r\n/* 121:137 */ int i = 0;\r\n/* 122: */ amj localamj;\r\n/* 123: */ int k;\r\n/* 124:138 */ for (int j = 0; j < this.a.length; j++)\r\n/* 125: */ {\r\n/* 126:139 */ localamj = this.a[j];\r\n/* 127:140 */ if (localamj != null) {\r\n/* 128:143 */ if ((paramalq == null) || (localamj.b() == paramalq)) {\r\n/* 129:146 */ if ((paramInt1 <= -1) || (localamj.i() == paramInt1)) {\r\n/* 130:149 */ if ((paramfn == null) || (cy.a(paramfn, localamj.o(), true)))\r\n/* 131: */ {\r\n/* 132:153 */ k = paramInt2 <= 0 ? localamj.b : Math.min(paramInt2 - i, localamj.b);\r\n/* 133:154 */ i += k;\r\n/* 134:155 */ if (paramInt2 != 0)\r\n/* 135: */ {\r\n/* 136:156 */ this.a[j].b -= k;\r\n/* 137:157 */ if (this.a[j].b == 0) {\r\n/* 138:158 */ this.a[j] = null;\r\n/* 139: */ }\r\n/* 140:160 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 141:161 */ return i;\r\n/* 142: */ }\r\n/* 143: */ }\r\n/* 144: */ }\r\n/* 145: */ }\r\n/* 146: */ }\r\n/* 147: */ }\r\n/* 148: */ }\r\n/* 149:165 */ for (j = 0; j < this.b.length; j++)\r\n/* 150: */ {\r\n/* 151:166 */ localamj = this.b[j];\r\n/* 152:167 */ if (localamj != null) {\r\n/* 153:170 */ if ((paramalq == null) || (localamj.b() == paramalq)) {\r\n/* 154:173 */ if ((paramInt1 <= -1) || (localamj.i() == paramInt1)) {\r\n/* 155:176 */ if ((paramfn == null) || (cy.a(paramfn, localamj.o(), false)))\r\n/* 156: */ {\r\n/* 157:180 */ k = paramInt2 <= 0 ? localamj.b : Math.min(paramInt2 - i, localamj.b);\r\n/* 158:181 */ i += k;\r\n/* 159:182 */ if (paramInt2 != 0)\r\n/* 160: */ {\r\n/* 161:183 */ this.b[j].b -= k;\r\n/* 162:184 */ if (this.b[j].b == 0) {\r\n/* 163:185 */ this.b[j] = null;\r\n/* 164: */ }\r\n/* 165:187 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 166:188 */ return i;\r\n/* 167: */ }\r\n/* 168: */ }\r\n/* 169: */ }\r\n/* 170: */ }\r\n/* 171: */ }\r\n/* 172: */ }\r\n/* 173: */ }\r\n/* 174:193 */ if (this.f != null)\r\n/* 175: */ {\r\n/* 176:194 */ if ((paramalq != null) && (this.f.b() != paramalq)) {\r\n/* 177:195 */ return i;\r\n/* 178: */ }\r\n/* 179:197 */ if ((paramInt1 > -1) && (this.f.i() != paramInt1)) {\r\n/* 180:198 */ return i;\r\n/* 181: */ }\r\n/* 182:200 */ if ((paramfn != null) && (!cy.a(paramfn, this.f.o(), false))) {\r\n/* 183:201 */ return i;\r\n/* 184: */ }\r\n/* 185:204 */ j = paramInt2 <= 0 ? this.f.b : Math.min(paramInt2 - i, this.f.b);\r\n/* 186:205 */ i += j;\r\n/* 187:206 */ if (paramInt2 != 0)\r\n/* 188: */ {\r\n/* 189:207 */ this.f.b -= j;\r\n/* 190:208 */ if (this.f.b == 0) {\r\n/* 191:209 */ this.f = null;\r\n/* 192: */ }\r\n/* 193:211 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 194:212 */ return i;\r\n/* 195: */ }\r\n/* 196: */ }\r\n/* 197: */ }\r\n/* 198:217 */ return i;\r\n/* 199: */ }", "private static void cajas() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public Integer reduceInit() { return 0; }", "void mo30275a(long j);", "static void method_6222() {\r\n String[] var5 = new String[2];\r\n int var3 = 0;\r\n String var2 = \"Yᇼ\u000bNÔ¨é®H\u0004=¬Îï\";\r\n int var4 = \"Yᇼ\u000bNÔ¨é®H\u0004=¬Îï\".length();\r\n char var1 = 4;\r\n int var0 = -1;\r\n\r\n while(true) {\r\n ++var0;\r\n String var10002 = var2.substring(var0, var0 + var1);\r\n boolean var10000 = true;\r\n char[] var10003 = var10002.toCharArray();\r\n class_1652 var10004 = var10003.length;\r\n Object var9 = true;\r\n char[] var8 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var6 = 0;\r\n\r\n while(true) {\r\n var10003 = var8;\r\n var8 = var10001;\r\n var10001 = var10003;\r\n char[] var11 = var8;\r\n var8 = var10003;\r\n if(var10003 <= var6) {\r\n var5[var3++] = (new String((char[])var9)).intern();\r\n if((var0 += var1) >= var4) {\r\n field_5882 = var5;\r\n String[] var10 = field_5882;\r\n field_5881 = \"CL_00000496\";\r\n class_1652[] var7 = new class_1652[7];\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5123, 0, 1, 5, 10);\r\n var7[0] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5124, 0, 1, 3, 5);\r\n var7[1] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5189, 0, 4, 9, 5);\r\n var7[2] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5121, 0, 3, 8, 10);\r\n var7[3] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5155, 0, 1, 3, 15);\r\n var7[4] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5118, 0, 1, 3, 15);\r\n var7[5] = var10004;\r\n var10004 = new class_1652;\r\n var10004.method_9094(class_1010.field_5115, 0, 1, 1, 1);\r\n var7[6] = var10004;\r\n field_5879 = var7;\r\n return;\r\n }\r\n\r\n var1 = var2.charAt(var0);\r\n break;\r\n }\r\n\r\n char var10007 = (char)((Object[])var9)[var6];\r\n short var10009;\r\n switch(var6 % 7) {\r\n case 0:\r\n var10009 = 91;\r\n break;\r\n case 1:\r\n var10009 = 206;\r\n break;\r\n case 2:\r\n var10009 = 161;\r\n break;\r\n case 3:\r\n var10009 = 143;\r\n break;\r\n case 4:\r\n var10009 = 200;\r\n break;\r\n case 5:\r\n var10009 = 46;\r\n break;\r\n default:\r\n var10009 = 98;\r\n }\r\n\r\n ((Object[])var9)[var6] = (char)(var10007 ^ var11 ^ var10009);\r\n ++var6;\r\n }\r\n }\r\n }", "private void method_248(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10) {\n boolean var16 = field_759;\n int var11 = -(var6 >> 2);\n var6 = -(var6 & 3);\n int var12 = -var7;\n if(var16 || var12 < 0) {\n do {\n int var13 = var11;\n byte var15;\n int var17;\n if(!var16 && var11 >= 0) {\n var17 = var6;\n if(var16 || var6 < 0) {\n do {\n label89: {\n var15 = var2[var4++];\n if(var15 != 0) {\n var1[var5++] = var3[var15 & 255];\n if(!var16) {\n break label89;\n }\n }\n\n ++var5;\n }\n\n ++var17;\n } while(var17 < 0);\n\n var5 += var8;\n var4 += var9;\n var12 += var10;\n } else {\n var5 += var8;\n var4 += var9;\n var12 += var10;\n }\n } else {\n do {\n byte var14;\n label69: {\n var14 = var2[var4++];\n if(var14 != 0) {\n var1[var5++] = var3[var14 & 255];\n if(!var16) {\n break label69;\n }\n }\n\n ++var5;\n }\n\n label63: {\n var14 = var2[var4++];\n if(var14 != 0) {\n var1[var5++] = var3[var14 & 255];\n if(!var16) {\n break label63;\n }\n }\n\n ++var5;\n }\n\n label57: {\n var14 = var2[var4++];\n if(var14 != 0) {\n var1[var5++] = var3[var14 & 255];\n if(!var16) {\n break label57;\n }\n }\n\n ++var5;\n }\n\n label51: {\n var14 = var2[var4++];\n if(var14 != 0) {\n var1[var5++] = var3[var14 & 255];\n if(!var16) {\n break label51;\n }\n }\n\n ++var5;\n }\n\n ++var13;\n } while(var13 < 0);\n\n var17 = var6;\n if(var16 || var6 < 0) {\n do {\n label34: {\n var15 = var2[var4++];\n if(var15 != 0) {\n var1[var5++] = var3[var15 & 255];\n if(!var16) {\n break label34;\n }\n }\n\n ++var5;\n }\n\n ++var17;\n } while(var17 < 0);\n\n var5 += var8;\n var4 += var9;\n var12 += var10;\n } else {\n var5 += var8;\n var4 += var9;\n var12 += var10;\n }\n }\n } while(var12 < 0);\n\n }\n }", "public int a(int r12, androidx.recyclerview.widget.RecyclerView.u r13) {\n /*\n r11 = this;\n e.m.a.g r0 = r11.A\n int r0 = r0.a()\n r1 = 0\n if (r0 != 0) goto L_0x000a\n return r1\n L_0x000a:\n e.m.a.b r0 = e.m.a.b.c(r12)\n int r2 = r11.f8992j\n r3 = 1\n if (r2 == 0) goto L_0x0019\n int r2 = java.lang.Math.abs(r2)\n goto L_0x0088\n L_0x0019:\n int r2 = r11.f8991i\n int r2 = r0.a(r2)\n if (r2 <= 0) goto L_0x0023\n r2 = r3\n goto L_0x0024\n L_0x0023:\n r2 = r1\n L_0x0024:\n e.m.a.b r4 = e.m.a.b.START\n if (r0 != r4) goto L_0x003d\n int r4 = r11.k\n if (r4 != 0) goto L_0x003d\n int r2 = r11.f8991i\n if (r2 != 0) goto L_0x0032\n r2 = r3\n goto L_0x0033\n L_0x0032:\n r2 = r1\n L_0x0033:\n if (r2 == 0) goto L_0x0036\n goto L_0x0055\n L_0x0036:\n int r4 = r11.f8991i\n int r4 = java.lang.Math.abs(r4)\n goto L_0x0075\n L_0x003d:\n e.m.a.b r4 = e.m.a.b.END\n if (r0 != r4) goto L_0x005e\n int r4 = r11.k\n e.m.a.g r5 = r11.A\n int r5 = r5.c()\n int r5 = r5 - r3\n if (r4 != r5) goto L_0x005e\n int r2 = r11.f8991i\n if (r2 != 0) goto L_0x0052\n r2 = r3\n goto L_0x0053\n L_0x0052:\n r2 = r1\n L_0x0053:\n if (r2 == 0) goto L_0x0057\n L_0x0055:\n r4 = r1\n goto L_0x0075\n L_0x0057:\n int r4 = r11.f8991i\n int r4 = java.lang.Math.abs(r4)\n goto L_0x0075\n L_0x005e:\n if (r2 == 0) goto L_0x006a\n int r2 = r11.f8989g\n int r4 = r11.f8991i\n int r4 = java.lang.Math.abs(r4)\n int r2 = r2 - r4\n goto L_0x0073\n L_0x006a:\n int r2 = r11.f8989g\n int r4 = r11.f8991i\n int r4 = java.lang.Math.abs(r4)\n int r2 = r2 + r4\n L_0x0073:\n r4 = r2\n r2 = r1\n L_0x0075:\n e.m.a.c$c r5 = r11.y\n com.yarolegovich.discretescrollview.DiscreteScrollView$d r5 = (com.yarolegovich.discretescrollview.DiscreteScrollView.d) r5\n com.yarolegovich.discretescrollview.DiscreteScrollView r5 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n boolean r6 = r5.f3982d\n if (r6 == 0) goto L_0x0087\n if (r2 == 0) goto L_0x0083\n r2 = r1\n goto L_0x0084\n L_0x0083:\n r2 = 2\n L_0x0084:\n r5.setOverScrollMode(r2)\n L_0x0087:\n r2 = r4\n L_0x0088:\n if (r2 > 0) goto L_0x008b\n return r1\n L_0x008b:\n int r12 = java.lang.Math.abs(r12)\n int r12 = java.lang.Math.min(r2, r12)\n int r12 = r0.a(r12)\n int r0 = r11.f8991i\n int r0 = r0 + r12\n r11.f8991i = r0\n int r0 = r11.f8992j\n if (r0 == 0) goto L_0x00a3\n int r0 = r0 - r12\n r11.f8992j = r0\n L_0x00a3:\n e.m.a.a$c r0 = r11.n\n int r1 = -r12\n e.m.a.g r2 = r11.A\n r0.a(r1, r2)\n e.m.a.a$c r0 = r11.n\n boolean r0 = r0.a(r11)\n if (r0 == 0) goto L_0x00b6\n r11.a(r13)\n L_0x00b6:\n int r13 = r11.l\n r0 = -1\n if (r13 == r0) goto L_0x00c5\n int r13 = r11.f8991i\n int r1 = r11.f8992j\n int r13 = r13 + r1\n int r13 = java.lang.Math.abs(r13)\n goto L_0x00c7\n L_0x00c5:\n int r13 = r11.f8989g\n L_0x00c7:\n float r13 = (float) r13\n r1 = -1082130432(0xffffffffbf800000, float:-1.0)\n int r2 = r11.f8991i\n float r2 = (float) r2\n float r2 = r2 / r13\n float r13 = java.lang.Math.max(r1, r2)\n r1 = 1065353216(0x3f800000, float:1.0)\n float r13 = java.lang.Math.min(r13, r1)\n float r13 = -r13\n e.m.a.c$c r1 = r11.y\n com.yarolegovich.discretescrollview.DiscreteScrollView$d r1 = (com.yarolegovich.discretescrollview.DiscreteScrollView.d) r1\n com.yarolegovich.discretescrollview.DiscreteScrollView r2 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n java.util.List<com.yarolegovich.discretescrollview.DiscreteScrollView$c> r2 = r2.f3980b\n boolean r2 = r2.isEmpty()\n if (r2 == 0) goto L_0x00e8\n goto L_0x0133\n L_0x00e8:\n com.yarolegovich.discretescrollview.DiscreteScrollView r2 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n int r2 = r2.getCurrentItem()\n com.yarolegovich.discretescrollview.DiscreteScrollView r4 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n e.m.a.c r4 = r4.f3979a\n int r5 = r4.f8991i\n if (r5 != 0) goto L_0x00f9\n int r0 = r4.k\n goto L_0x010a\n L_0x00f9:\n int r6 = r4.l\n if (r6 == r0) goto L_0x00ff\n r0 = r6\n goto L_0x010a\n L_0x00ff:\n int r0 = r4.k\n e.m.a.b r4 = e.m.a.b.c(r5)\n int r3 = r4.a(r3)\n int r0 = r0 + r3\n L_0x010a:\n if (r2 == r0) goto L_0x0133\n com.yarolegovich.discretescrollview.DiscreteScrollView r3 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n androidx.recyclerview.widget.RecyclerView$d0 r10 = r3.a(r2)\n com.yarolegovich.discretescrollview.DiscreteScrollView r1 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n androidx.recyclerview.widget.RecyclerView$d0 r1 = r1.a(r0)\n java.util.List<com.yarolegovich.discretescrollview.DiscreteScrollView$c> r3 = r3.f3980b\n java.util.Iterator r3 = r3.iterator()\n L_0x011e:\n boolean r4 = r3.hasNext()\n if (r4 == 0) goto L_0x0133\n java.lang.Object r4 = r3.next()\n com.yarolegovich.discretescrollview.DiscreteScrollView$c r4 = (com.yarolegovich.discretescrollview.DiscreteScrollView.c) r4\n r5 = r13\n r6 = r2\n r7 = r0\n r8 = r10\n r9 = r1\n r4.a(r5, r6, r7, r8, r9)\n goto L_0x011e\n L_0x0133:\n r11.a()\n return r12\n */\n throw new UnsupportedOperationException(\"Method not decompiled: e.m.a.c.a(int, androidx.recyclerview.widget.RecyclerView$u):int\");\n }", "private void method_262(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16, int var17) {\n boolean var33 = field_759;\n int var21 = var13 >> 16 & 255;\n int var22 = var13 >> 8 & 255;\n int var23 = var13 & 255;\n int var24 = var14 >> 16 & 255;\n int var25 = var14 >> 8 & 255;\n int var26 = var14 & 255;\n\n try {\n int var27 = var5;\n int var28 = -var9;\n if(var33 || var28 < 0) {\n do {\n int var29 = (var6 >> 16) * var12;\n int var30 = var15 >> 16;\n int var31 = var8;\n int var32;\n if(var30 < this.field_745) {\n var32 = this.field_745 - var30;\n var31 = var8 - var32;\n var30 = this.field_745;\n var5 += var10 * var32;\n }\n\n if(var30 + var31 >= this.field_746) {\n var32 = var30 + var31 - this.field_746;\n var31 -= var32;\n }\n\n var17 = 1 - var17;\n if(var17 != 0) {\n var32 = var30;\n if(var33 || var30 < var30 + var31) {\n do {\n var4 = var2[(var5 >> 16) + var29] & 255;\n if(var4 != 0) {\n label69: {\n var4 = var3[var4];\n int var18 = var4 >> 16 & 255;\n int var19 = var4 >> 8 & 255;\n int var20 = var4 & 255;\n if(var18 == var19 && var19 == var20) {\n var1[var32 + var7] = (var18 * var21 >> 8 << 16) + (var19 * var22 >> 8 << 8) + (var20 * var23 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n if(var18 == 255 && var19 == var20) {\n var1[var32 + var7] = (var18 * var24 >> 8 << 16) + (var19 * var25 >> 8 << 8) + (var20 * var26 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n var1[var32 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var32;\n } while(var32 < var30 + var31);\n }\n }\n\n var6 += var11;\n var5 = var27;\n var7 += this.field_723;\n var15 += var16;\n ++var28;\n } while(var28 < 0);\n\n }\n } catch (Exception var34) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "static int modifiedCalcCircularRefElementOffset(long index, long mask) {\n/* 93 */ return (int)(index & mask) >> 1;\n/* */ }", "void mo25957a(long j, long j2);", "private void method_247(int[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10) {\n boolean var15 = field_759;\n int var11 = -(var6 >> 2);\n var6 = -(var6 & 3);\n int var12 = -var7;\n if(var15 || var12 < 0) {\n do {\n int var13 = var11;\n int var14;\n if(!var15 && var11 >= 0) {\n var14 = var6;\n if(var15 || var6 < 0) {\n do {\n label89: {\n var3 = var2[var4++];\n if(var3 != 0) {\n var1[var5++] = var3;\n if(!var15) {\n break label89;\n }\n }\n\n ++var5;\n }\n\n ++var14;\n } while(var14 < 0);\n\n var5 += var8;\n var4 += var9;\n var12 += var10;\n } else {\n var5 += var8;\n var4 += var9;\n var12 += var10;\n }\n } else {\n do {\n label69: {\n var3 = var2[var4++];\n if(var3 != 0) {\n var1[var5++] = var3;\n if(!var15) {\n break label69;\n }\n }\n\n ++var5;\n }\n\n label63: {\n var3 = var2[var4++];\n if(var3 != 0) {\n var1[var5++] = var3;\n if(!var15) {\n break label63;\n }\n }\n\n ++var5;\n }\n\n label57: {\n var3 = var2[var4++];\n if(var3 != 0) {\n var1[var5++] = var3;\n if(!var15) {\n break label57;\n }\n }\n\n ++var5;\n }\n\n label51: {\n var3 = var2[var4++];\n if(var3 != 0) {\n var1[var5++] = var3;\n if(!var15) {\n break label51;\n }\n }\n\n ++var5;\n }\n\n ++var13;\n } while(var13 < 0);\n\n var14 = var6;\n if(var15 || var6 < 0) {\n do {\n label34: {\n var3 = var2[var4++];\n if(var3 != 0) {\n var1[var5++] = var3;\n if(!var15) {\n break label34;\n }\n }\n\n ++var5;\n }\n\n ++var14;\n } while(var14 < 0);\n\n var5 += var8;\n var4 += var9;\n var12 += var10;\n } else {\n var5 += var8;\n var4 += var9;\n var12 += var10;\n }\n }\n } while(var12 < 0);\n\n }\n }", "int a(java.lang.String r8, com.google.ho r9, java.lang.StringBuilder r10, boolean r11, com.google.ae r12) {\n /*\n r7 = this;\n r1 = 0;\n r0 = r8.length();\t Catch:{ RuntimeException -> 0x0009 }\n if (r0 != 0) goto L_0x000b;\n L_0x0007:\n r0 = r1;\n L_0x0008:\n return r0;\n L_0x0009:\n r0 = move-exception;\n throw r0;\n L_0x000b:\n r2 = new java.lang.StringBuilder;\n r2.<init>(r8);\n r0 = J;\n r3 = 25;\n r0 = r0[r3];\n if (r9 == 0) goto L_0x001c;\n L_0x0018:\n r0 = r9.a();\n L_0x001c:\n r0 = r7.a(r2, r0);\n if (r11 == 0) goto L_0x0025;\n L_0x0022:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x0040 }\n L_0x0025:\n r3 = com.google.aw.FROM_DEFAULT_COUNTRY;\t Catch:{ RuntimeException -> 0x0042 }\n if (r0 == r3) goto L_0x005e;\n L_0x0029:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x003e }\n r1 = 2;\n if (r0 > r1) goto L_0x0044;\n L_0x0030:\n r0 = new com.google.ao;\t Catch:{ RuntimeException -> 0x003e }\n r1 = com.google.dk.TOO_SHORT_AFTER_IDD;\t Catch:{ RuntimeException -> 0x003e }\n r2 = J;\t Catch:{ RuntimeException -> 0x003e }\n r3 = 26;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x003e }\n r0.<init>(r1, r2);\t Catch:{ RuntimeException -> 0x003e }\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x003e:\n r0 = move-exception;\n throw r0;\n L_0x0040:\n r0 = move-exception;\n throw r0;\n L_0x0042:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x0044:\n r0 = r7.a(r2, r10);\n if (r0 == 0) goto L_0x0050;\n L_0x004a:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x004e }\n goto L_0x0008;\n L_0x004e:\n r0 = move-exception;\n throw r0;\n L_0x0050:\n r0 = new com.google.ao;\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\n r2 = J;\n r3 = 24;\n r2 = r2[r3];\n r0.<init>(r1, r2);\n throw r0;\n L_0x005e:\n if (r9 == 0) goto L_0x00d2;\n L_0x0060:\n r0 = r9.L();\n r3 = java.lang.String.valueOf(r0);\n r4 = r2.toString();\n r5 = r4.startsWith(r3);\n if (r5 == 0) goto L_0x00d2;\n L_0x0072:\n r5 = new java.lang.StringBuilder;\n r3 = r3.length();\n r3 = r4.substring(r3);\n r5.<init>(r3);\n r3 = r9.X();\n r4 = r7.o;\n r6 = r3.g();\n r4 = r4.a(r6);\n r6 = 0;\n r7.a(r5, r9, r6);\n r6 = r7.o;\n r3 = r3.f();\n r3 = r6.a(r3);\n r6 = r4.matcher(r2);\t Catch:{ RuntimeException -> 0x00ca }\n r6 = r6.matches();\t Catch:{ RuntimeException -> 0x00ca }\n if (r6 != 0) goto L_0x00af;\n L_0x00a5:\n r4 = r4.matcher(r5);\t Catch:{ RuntimeException -> 0x00cc }\n r4 = r4.matches();\t Catch:{ RuntimeException -> 0x00cc }\n if (r4 != 0) goto L_0x00bb;\n L_0x00af:\n r2 = r2.toString();\t Catch:{ RuntimeException -> 0x00ce }\n r2 = r7.a(r3, r2);\t Catch:{ RuntimeException -> 0x00ce }\n r3 = com.google.dz.TOO_LONG;\t Catch:{ RuntimeException -> 0x00ce }\n if (r2 != r3) goto L_0x00d2;\n L_0x00bb:\n r10.append(r5);\t Catch:{ RuntimeException -> 0x00d0 }\n if (r11 == 0) goto L_0x00c5;\n L_0x00c0:\n r1 = com.google.aw.FROM_NUMBER_WITHOUT_PLUS_SIGN;\t Catch:{ RuntimeException -> 0x00d0 }\n r12.a(r1);\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00c5:\n r12.a(r0);\n goto L_0x0008;\n L_0x00ca:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00cc }\n L_0x00cc:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00ce }\n L_0x00ce:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00d0:\n r0 = move-exception;\n throw r0;\n L_0x00d2:\n r12.a(r1);\n r0 = r1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.ho, java.lang.StringBuilder, boolean, com.google.ae):int\");\n }", "public void func_70305_f() {}", "public static java.lang.String m5217a() {\n /*\n r0 = f4109a;\n monitor-enter(r0);\n r1 = f4109a;\t Catch:{ all -> 0x003e }\n r1 = r1.isEmpty();\t Catch:{ all -> 0x003e }\n if (r1 == 0) goto L_0x000f;\n L_0x000b:\n r1 = \"\";\n monitor-exit(r0);\t Catch:{ all -> 0x003e }\n return r1;\n L_0x000f:\n r1 = new java.util.ArrayList;\t Catch:{ all -> 0x003e }\n r2 = f4109a;\t Catch:{ all -> 0x003e }\n r1.<init>(r2);\t Catch:{ all -> 0x003e }\n r2 = f4109a;\t Catch:{ all -> 0x003e }\n r2.clear();\t Catch:{ all -> 0x003e }\n monitor-exit(r0);\t Catch:{ all -> 0x003e }\n r0 = new org.json.JSONArray;\n r0.<init>();\n r1 = r1.iterator();\n L_0x0025:\n r2 = r1.hasNext();\n if (r2 == 0) goto L_0x0039;\n L_0x002b:\n r2 = r1.next();\n r2 = (com.facebook.ads.internal.p047k.C1481b) r2;\n r2 = r2.m5216a();\n r0.put(r2);\n goto L_0x0025;\n L_0x0039:\n r0 = r0.toString();\n return r0;\n L_0x003e:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x003e }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.k.c.a():java.lang.String\");\n }", "private int mcHelper(int[][] arr, int[][] g, int i, int j) {\n int mcsum = 0;\n for (int k = 0; k < 4; k++) {\n int a = g[i][k] ^ 0x42;\n int b = arr[k][j];\n mcsum ^= mcCalc(a, b);\n }\n return mcsum;\n }", "private SBomCombiner()\n\t{}", "public final void a() {\n /*\n r25 = this;\n r1 = r25\n int r0 = r25.getAndIncrement()\n if (r0 == 0) goto L_0x0009\n return\n L_0x0009:\n java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.flowable.cq$b<T>[]> r2 = r1.e\n java.lang.Object r0 = r2.get()\n io.reactivex.internal.operators.flowable.cq$b[] r0 = (io.reactivex.internal.operators.flowable.cq.b[]) r0\n r3 = 1\n r4 = r0\n r5 = 1\n L_0x0014:\n java.lang.Object r0 = r1.h\n io.reactivex.internal.b.j<T> r6 = r1.j\n if (r6 == 0) goto L_0x0023\n boolean r8 = r6.isEmpty()\n if (r8 == 0) goto L_0x0021\n goto L_0x0023\n L_0x0021:\n r8 = 0\n goto L_0x0024\n L_0x0023:\n r8 = 1\n L_0x0024:\n boolean r0 = r1.a(r0, r8)\n if (r0 == 0) goto L_0x002b\n return\n L_0x002b:\n if (r8 != 0) goto L_0x0156\n int r0 = r4.length\n int r9 = r4.length\n r12 = 0\n r13 = 0\n r14 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n L_0x0036:\n r16 = -9223372036854775808\n if (r12 >= r9) goto L_0x0053\n r7 = r4[r12]\n long r18 = r7.get()\n int r20 = (r18 > r16 ? 1 : (r18 == r16 ? 0 : -1))\n if (r20 == 0) goto L_0x004e\n long r10 = r7.c\n long r10 = r18 - r10\n long r10 = java.lang.Math.min(r14, r10)\n r14 = r10\n goto L_0x0050\n L_0x004e:\n int r13 = r13 + 1\n L_0x0050:\n int r12 = r12 + 1\n goto L_0x0036\n L_0x0053:\n r9 = 1\n if (r0 != r13) goto L_0x0093\n java.lang.Object r0 = r1.h\n java.lang.Object r7 = r6.poll() // Catch:{ all -> 0x005e }\n goto L_0x0075\n L_0x005e:\n r0 = move-exception\n r6 = r0\n io.reactivex.c.b.throwIfFatal(r6)\n java.util.concurrent.atomic.AtomicReference<org.b.d> r0 = r1.g\n java.lang.Object r0 = r0.get()\n org.b.d r0 = (org.b.d) r0\n r0.cancel()\n java.lang.Object r0 = io.reactivex.internal.util.NotificationLite.error(r6)\n r1.h = r0\n r7 = 0\n L_0x0075:\n if (r7 != 0) goto L_0x0079\n r6 = 1\n goto L_0x007a\n L_0x0079:\n r6 = 0\n L_0x007a:\n boolean r0 = r1.a(r0, r6)\n if (r0 == 0) goto L_0x0081\n return\n L_0x0081:\n int r0 = r1.i\n if (r0 == r3) goto L_0x0090\n java.util.concurrent.atomic.AtomicReference<org.b.d> r0 = r1.g\n java.lang.Object r0 = r0.get()\n org.b.d r0 = (org.b.d) r0\n r0.request(r9)\n L_0x0090:\n r6 = 1\n goto L_0x0165\n L_0x0093:\n r0 = r8\n r8 = 0\n L_0x0095:\n long r11 = (long) r8\n int r13 = (r11 > r14 ? 1 : (r11 == r14 ? 0 : -1))\n if (r13 >= 0) goto L_0x0139\n java.lang.Object r0 = r1.h\n java.lang.Object r13 = r6.poll() // Catch:{ all -> 0x00a1 }\n goto L_0x00b8\n L_0x00a1:\n r0 = move-exception\n r13 = r0\n io.reactivex.c.b.throwIfFatal(r13)\n java.util.concurrent.atomic.AtomicReference<org.b.d> r0 = r1.g\n java.lang.Object r0 = r0.get()\n org.b.d r0 = (org.b.d) r0\n r0.cancel()\n java.lang.Object r0 = io.reactivex.internal.util.NotificationLite.error(r13)\n r1.h = r0\n r13 = 0\n L_0x00b8:\n if (r13 != 0) goto L_0x00bc\n r7 = 1\n goto L_0x00bd\n L_0x00bc:\n r7 = 0\n L_0x00bd:\n boolean r0 = r1.a(r0, r7)\n if (r0 == 0) goto L_0x00c4\n return\n L_0x00c4:\n if (r7 != 0) goto L_0x0135\n java.lang.Object r0 = io.reactivex.internal.util.NotificationLite.getValue(r13)\n int r11 = r4.length\n r12 = 0\n r13 = 0\n L_0x00cd:\n if (r12 >= r11) goto L_0x0103\n r3 = r4[r12]\n long r22 = r3.get()\n int r24 = (r22 > r16 ? 1 : (r22 == r16 ? 0 : -1))\n if (r24 == 0) goto L_0x00f1\n r20 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n int r24 = (r22 > r20 ? 1 : (r22 == r20 ? 0 : -1))\n r22 = r6\n r23 = r7\n if (r24 == 0) goto L_0x00eb\n long r6 = r3.c\n long r6 = r6 + r9\n r3.c = r6\n L_0x00eb:\n org.b.c<? super T> r3 = r3.f8109a\n r3.onNext(r0)\n goto L_0x00fb\n L_0x00f1:\n r22 = r6\n r23 = r7\n r20 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n r13 = 1\n L_0x00fb:\n int r12 = r12 + 1\n r6 = r22\n r7 = r23\n r3 = 1\n goto L_0x00cd\n L_0x0103:\n r22 = r6\n r23 = r7\n r20 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n int r8 = r8 + 1\n java.lang.Object r0 = r2.get()\n io.reactivex.internal.operators.flowable.cq$b[] r0 = (io.reactivex.internal.operators.flowable.cq.b[]) r0\n if (r13 != 0) goto L_0x0120\n if (r0 == r4) goto L_0x0119\n goto L_0x0120\n L_0x0119:\n r6 = r22\n r0 = r23\n r3 = 1\n goto L_0x0095\n L_0x0120:\n if (r8 == 0) goto L_0x0133\n int r3 = r1.i\n r4 = 1\n if (r3 == r4) goto L_0x0133\n java.util.concurrent.atomic.AtomicReference<org.b.d> r3 = r1.g\n java.lang.Object r3 = r3.get()\n org.b.d r3 = (org.b.d) r3\n long r6 = (long) r8\n r3.request(r6)\n L_0x0133:\n r4 = r0\n goto L_0x0165\n L_0x0135:\n r23 = r7\n r0 = r23\n L_0x0139:\n if (r8 == 0) goto L_0x014c\n int r3 = r1.i\n r6 = 1\n if (r3 == r6) goto L_0x014d\n java.util.concurrent.atomic.AtomicReference<org.b.d> r3 = r1.g\n java.lang.Object r3 = r3.get()\n org.b.d r3 = (org.b.d) r3\n r3.request(r11)\n goto L_0x014d\n L_0x014c:\n r6 = 1\n L_0x014d:\n r7 = 0\n int r3 = (r14 > r7 ? 1 : (r14 == r7 ? 0 : -1))\n if (r3 == 0) goto L_0x0157\n if (r0 == 0) goto L_0x0165\n goto L_0x0157\n L_0x0156:\n r6 = 1\n L_0x0157:\n int r0 = -r5\n int r5 = r1.addAndGet(r0)\n if (r5 == 0) goto L_0x0168\n java.lang.Object r0 = r2.get()\n r4 = r0\n io.reactivex.internal.operators.flowable.cq$b[] r4 = (io.reactivex.internal.operators.flowable.cq.b[]) r4\n L_0x0165:\n r3 = 1\n goto L_0x0014\n L_0x0168:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.reactivex.internal.operators.flowable.cq.c.a():void\");\n }", "static long[] riddle(long[] arr) {\n // complete this function\n return arr;\n }", "public void testF() {\n\t\tfor (int k = 0; k < usedSS; k++) {\n\t\t\tList<Integer> subStr = vals.subList(k*compSize, (k+1)*compSize);\n\t\t\tint sum = (int) subStr.stream().filter(i -> i != BipartiteMatching.FREE).count();\n\t\t\tfData.add(sum);\t\t\t\n\t\t}\n\t}", "static int[] m11868m(Object[] r10, int r11, int r12, int r13) {\n /*\n r0 = 1\n if (r11 != r0) goto L_0x000e\n r11 = r10[r13]\n r12 = r13 ^ 1\n r10 = r10[r12]\n p067c.p068a.p134b.p136b.CollectPreconditions.m11785a(r11, r10)\n r10 = 0\n return r10\n L_0x000e:\n int r1 = r12 + -1\n int[] r12 = new int[r12]\n r2 = -1\n java.util.Arrays.fill(r12, r2)\n r3 = 0\n L_0x0017:\n if (r3 >= r11) goto L_0x0077\n int r4 = r3 * 2\n int r5 = r4 + r13\n r6 = r10[r5]\n r7 = r13 ^ 1\n int r4 = r4 + r7\n r4 = r10[r4]\n p067c.p068a.p134b.p136b.CollectPreconditions.m11785a(r6, r4)\n int r7 = r6.hashCode()\n int r7 = p067c.p068a.p134b.p136b.Hashing.m11897b(r7)\n L_0x002f:\n r7 = r7 & r1\n r8 = r12[r7]\n if (r8 != r2) goto L_0x0039\n r12[r7] = r5\n int r3 = r3 + 1\n goto L_0x0017\n L_0x0039:\n r9 = r10[r8]\n boolean r9 = r9.equals(r6)\n if (r9 != 0) goto L_0x0044\n int r7 = r7 + 1\n goto L_0x002f\n L_0x0044:\n java.lang.IllegalArgumentException r11 = new java.lang.IllegalArgumentException\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n r12.<init>()\n java.lang.String r13 = \"Multiple entries with same key: \"\n r12.append(r13)\n r12.append(r6)\n java.lang.String r13 = \"=\"\n r12.append(r13)\n r12.append(r4)\n java.lang.String r1 = \" and \"\n r12.append(r1)\n r1 = r10[r8]\n r12.append(r1)\n r12.append(r13)\n r13 = r8 ^ 1\n r10 = r10[r13]\n r12.append(r10)\n java.lang.String r10 = r12.toString()\n r11.<init>(r10)\n throw r11\n L_0x0077:\n return r12\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p067c.p068a.p134b.p136b.RegularImmutableMap.m11868m(java.lang.Object[], int, int, int):int[]\");\n }", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }", "private static boolean method_2690(ahb var0, int var1, int var2, int var3, int var4) {\r\n int var6 = var1 + class_1707.field_8947[var4];\r\n int var7 = var2 + class_1707.field_8948[var4];\r\n int var8 = var3 + class_1707.field_8949[var4];\r\n String[] var5 = class_752.method_4253();\r\n int var9 = 0;\r\n\r\n int var10000;\r\n while(true) {\r\n if(var9 < 13) {\r\n label68: {\r\n var10000 = var7;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var7 > 0) {\r\n var10000 = var7;\r\n if(var5 == null) {\r\n return (boolean)var10000;\r\n }\r\n\r\n if(var7 < 255) {\r\n aji var10 = var0.getBlock(var6, var7, var8);\r\n aji var11 = var10;\r\n if(var5 != null) {\r\n if(var10.method_2424() == awt.field_4170) {\r\n break label68;\r\n }\r\n\r\n var11 = var10;\r\n }\r\n\r\n var10000 = method_2689(var11, var0, var6, var7, var8, true);\r\n if(var5 != null) {\r\n if(var10000 == 0) {\r\n return false;\r\n }\r\n\r\n var10000 = var10.method_2514();\r\n }\r\n\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var10000 != 1) {\r\n var10000 = var9;\r\n int var10001 = 12;\r\n if(var5 != null) {\r\n if(var9 == 12) {\r\n return false;\r\n }\r\n\r\n var6 += class_1707.field_8947[var4];\r\n var7 += class_1707.field_8948[var4];\r\n var10000 = var8;\r\n var10001 = class_1707.field_8949[var4];\r\n }\r\n\r\n var8 = var10000 + var10001;\r\n ++var9;\r\n if(var5 != null) {\r\n continue;\r\n }\r\n }\r\n break label68;\r\n }\r\n }\r\n\r\n var10000 = 0;\r\n }\r\n\r\n return (boolean)var10000;\r\n }\r\n }\r\n\r\n var10000 = 1;\r\n break;\r\n }\r\n\r\n return (boolean)var10000;\r\n }", "public abstract long mo20901UQ();", "private void m50366E() {\n }", "public static int compose(char[] paramArrayOfChar1, int paramInt1, int paramInt2, char[] paramArrayOfChar2, int paramInt3, int paramInt4, int paramInt5, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 1758 */ int[] arrayOfInt = new int[1];\n/* 1759 */ int i4 = paramInt3;\n/* 1760 */ int i5 = paramInt1;\n/* */ char c3;\n/* 1762 */ int m; if ((paramInt5 & 0x1000) != 0) {\n/* 1763 */ c3 = (char)indexes[7];\n/* 1764 */ m = 34;\n/* */ } else {\n/* 1766 */ c3 = (char)indexes[6];\n/* 1767 */ m = 17;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1793 */ int j = i5;\n/* */ \n/* 1795 */ int k = 0xFF00 | m;\n/* 1796 */ int n = 0;\n/* 1797 */ int i3 = 0;\n/* */ \n/* */ \n/* 1800 */ long l = 0L;\n/* 1801 */ char c1 = '\\000';\n/* */ \n/* */ \n/* */ for (;;)\n/* */ {\n/* 1806 */ int i = i5;\n/* */ \n/* 1808 */ while ((i5 != paramInt2) && (((c1 = paramArrayOfChar1[i5]) < c3) || \n/* 1809 */ (((l = getNorm32(c1)) & k) == 0L))) {\n/* 1810 */ i3 = 0;\n/* 1811 */ i5++;\n/* */ }\n/* */ \n/* */ int i1;\n/* */ \n/* 1816 */ if (i5 != i) {\n/* 1817 */ i1 = i5 - i;\n/* 1818 */ if (i4 + i1 <= paramInt4) {\n/* 1819 */ System.arraycopy(paramArrayOfChar1, i, paramArrayOfChar2, i4, i1);\n/* */ }\n/* 1821 */ i4 += i1;\n/* 1822 */ n = i4;\n/* */ \n/* */ \n/* */ \n/* 1826 */ j = i5 - 1;\n/* 1827 */ if ((UTF16.isTrailSurrogate(paramArrayOfChar1[j])) && (i < j))\n/* */ {\n/* 1829 */ if (UTF16.isLeadSurrogate(paramArrayOfChar1[(j - 1)])) {\n/* 1830 */ j--;\n/* */ }\n/* */ }\n/* 1833 */ i = i5;\n/* */ }\n/* */ \n/* */ \n/* 1837 */ if (i5 == paramInt2) {\n/* */ break;\n/* */ }\n/* */ \n/* */ \n/* 1842 */ i5++;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ int i2;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ char c2;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1874 */ if (isNorm32HangulOrJamo(l))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1881 */ i3 = i2 = 0;\n/* 1882 */ n = i4;\n/* 1883 */ arrayOfInt[0] = i5;\n/* 1884 */ if (i4 > 0)\n/* */ {\n/* 1886 */ if (composeHangul(paramArrayOfChar1[(i - 1)], c1, l, paramArrayOfChar1, arrayOfInt, paramInt2, (paramInt5 & 0x1000) != 0, paramArrayOfChar2, i4 <= paramInt4 ? i4 - 1 : 0, paramUnicodeSet))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 1891 */ i5 = arrayOfInt[0];\n/* 1892 */ j = i5;\n/* 1893 */ continue;\n/* */ }\n/* */ }\n/* 1896 */ i5 = arrayOfInt[0];\n/* */ \n/* */ \n/* */ \n/* 1900 */ c2 = '\\000';\n/* 1901 */ i1 = 1;\n/* 1902 */ j = i;\n/* */ } else {\n/* 1904 */ if (isNorm32Regular(l)) {\n/* 1905 */ c2 = '\\000';\n/* 1906 */ i1 = 1;\n/* */ \n/* */ }\n/* 1909 */ else if ((i5 != paramInt2) && \n/* 1910 */ (UTF16.isTrailSurrogate(c2 = paramArrayOfChar1[i5]))) {\n/* 1911 */ i5++;\n/* 1912 */ i1 = 2;\n/* 1913 */ l = getNorm32FromSurrogatePair(l, c2);\n/* */ }\n/* */ else {\n/* 1916 */ c2 = '\\000';\n/* 1917 */ i1 = 1;\n/* 1918 */ l = 0L;\n/* */ }\n/* */ \n/* 1921 */ ComposePartArgs localComposePartArgs = new ComposePartArgs(null);\n/* */ \n/* */ \n/* 1924 */ if (nx_contains(paramUnicodeSet, c1, c2))\n/* */ {\n/* 1926 */ i2 = 0;\n/* 1927 */ } else if ((l & m) == 0L) {\n/* 1928 */ i2 = (int)(0xFF & l >> 8);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1945 */ int i7 = m << 2 & 0xF;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1951 */ if (isTrueStarter(l, 0xFF00 | m, i7)) {\n/* 1952 */ j = i;\n/* */ }\n/* */ else {\n/* 1955 */ i4 -= i - j;\n/* */ }\n/* */ \n/* */ \n/* 1959 */ i5 = findNextStarter(paramArrayOfChar1, i5, paramInt2, m, i7, c3);\n/* */ \n/* */ \n/* 1962 */ localComposePartArgs.prevCC = i3;\n/* */ \n/* 1964 */ localComposePartArgs.length = i1;\n/* 1965 */ char[] arrayOfChar = composePart(localComposePartArgs, j, paramArrayOfChar1, i5, paramInt2, paramInt5, paramUnicodeSet);\n/* */ \n/* 1967 */ if (arrayOfChar == null) {\n/* */ break;\n/* */ }\n/* */ \n/* */ \n/* 1972 */ i3 = localComposePartArgs.prevCC;\n/* 1973 */ i1 = localComposePartArgs.length;\n/* */ \n/* */ \n/* */ \n/* 1977 */ if (i4 + localComposePartArgs.length <= paramInt4) {\n/* 1978 */ int i8 = 0;\n/* 1979 */ while (i8 < localComposePartArgs.length) {\n/* 1980 */ paramArrayOfChar2[(i4++)] = arrayOfChar[(i8++)];\n/* 1981 */ i1--;\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 1986 */ i4 += i1;\n/* */ }\n/* */ \n/* 1989 */ j = i5;\n/* 1990 */ continue;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1995 */ if (i4 + i1 <= paramInt4) {\n/* 1996 */ if ((i2 != 0) && (i2 < i3))\n/* */ {\n/* */ \n/* 1999 */ int i6 = i4;\n/* 2000 */ i4 += i1;\n/* 2001 */ i3 = insertOrdered(paramArrayOfChar2, n, i6, i4, c1, c2, i2);\n/* */ }\n/* */ else\n/* */ {\n/* 2005 */ paramArrayOfChar2[(i4++)] = c1;\n/* 2006 */ if (c2 != 0) {\n/* 2007 */ paramArrayOfChar2[(i4++)] = c2;\n/* */ }\n/* 2009 */ i3 = i2;\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 2014 */ i4 += i1;\n/* 2015 */ i3 = i2;\n/* */ }\n/* */ }\n/* */ \n/* 2019 */ return i4 - paramInt3;\n/* */ }", "private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }", "static int[] productExceptSelfSpaceOptimized(int[] nums) {\n int n = nums.length;\n int[] result = new int[n];\n Arrays.fill(result, 1);\n int curr = 1;\n\n for (int i = 0; i < n; i++) {\n result[i] *= curr;\n curr *= nums[i];\n }\n\n curr = 1;\n for (int i = n - 1; i >= 0; i--) {\n result[i] *= curr;\n curr *= nums[i];\n }\n\n return result;\n }", "static void method_9231() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"¯W!BÔK)Ý/HG\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8734 = (new String((char[])var4)).intern();\r\n String var2 = field_8734;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 179;\r\n break;\r\n case 1:\r\n var10009 = 68;\r\n break;\r\n case 2:\r\n var10009 = 33;\r\n break;\r\n case 3:\r\n var10009 = 45;\r\n break;\r\n case 4:\r\n var10009 = 187;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 70;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "static void method_6447() {\r\n String[] var5 = new String[3];\r\n int var3 = 0;\r\n String var2 = \"ûÄ È̺°ˆ¼KÈ\u0007Îá\u0013”íå\u0002ä \";\r\n int var4 = \"ûÄ È̺°ˆ¼KÈ\u0007Îá\u0013”íå\u0002ä \".length();\r\n char var1 = 11;\r\n int var0 = -1;\r\n\r\n while(true) {\r\n ++var0;\r\n String var10002 = var2.substring(var0, var0 + var1);\r\n boolean var10000 = true;\r\n char[] var10003 = var10002.toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var9 = true;\r\n char[] var8 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var6 = 0;\r\n\r\n while(true) {\r\n var10003 = var8;\r\n var8 = var10001;\r\n var10001 = var10003;\r\n char[] var11 = var8;\r\n var8 = var10003;\r\n if(var10003 <= var6) {\r\n var5[var3++] = (new String((char[])var9)).intern();\r\n if((var0 += var1) >= var4) {\r\n field_6229 = var5;\r\n String[] var10 = field_6229;\r\n field_6228 = \"CL_00000440\";\r\n return;\r\n }\r\n\r\n var1 = var2.charAt(var0);\r\n break;\r\n }\r\n\r\n char var10007 = (char)((Object[])var9)[var6];\r\n short var10009;\r\n switch(var6 % 7) {\r\n case 0:\r\n var10009 = 124;\r\n break;\r\n case 1:\r\n var10009 = 76;\r\n break;\r\n case 2:\r\n var10009 = 187;\r\n break;\r\n case 3:\r\n var10009 = 60;\r\n break;\r\n case 4:\r\n var10009 = 56;\r\n break;\r\n case 5:\r\n var10009 = 78;\r\n break;\r\n default:\r\n var10009 = 68;\r\n }\r\n\r\n ((Object[])var9)[var6] = (char)(var10007 ^ var11 ^ var10009);\r\n ++var6;\r\n }\r\n }\r\n }", "private C3244x1 m15679a(String str, JSONArray jSONArray, JSONArray jSONArray2, boolean z, C3244x1 x1Var) {\n JSONArray jSONArray3 = jSONArray;\n JSONArray jSONArray4 = jSONArray2;\n C3244x1 x1Var2 = x1Var;\n BitSet bitSet = null;\n if (jSONArray3 == null) {\n x1Var2.mo12657a((Object) null);\n return x1Var2;\n } else if (jSONArray4 == null) {\n x1Var2.mo12657a((Object) jSONArray3);\n return x1Var2;\n } else {\n JSONArray jSONArray5 = new JSONArray();\n HashSet hashSet = new HashSet();\n int length = jSONArray.length();\n int length2 = jSONArray2.length();\n if (!z) {\n bitSet = new BitSet(length + length2);\n }\n int a = m15678a(jSONArray4, (Set<String>) hashSet, bitSet, length);\n int i = 0;\n if (!z && hashSet.size() < 100) {\n i = m15678a(jSONArray3, (Set<String>) hashSet, bitSet, 0);\n }\n for (int i2 = i; i2 < length; i2++) {\n if (z) {\n try {\n String str2 = (String) jSONArray3.get(i2);\n if (!hashSet.contains(str2)) {\n jSONArray5.put(str2);\n }\n } catch (Throwable unused) {\n }\n } else if (!bitSet.get(i2)) {\n jSONArray5.put(jSONArray3.get(i2));\n }\n }\n if (!z && jSONArray5.length() < 100) {\n for (int i3 = a; i3 < length2; i3++) {\n try {\n if (!bitSet.get(i3 + length)) {\n jSONArray5.put(jSONArray4.get(i3));\n }\n } catch (Throwable unused2) {\n }\n }\n }\n if (a > 0 || i > 0) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Multi value property for key \");\n sb.append(str);\n sb.append(\" exceeds the limit of \");\n sb.append(100);\n sb.append(\" items. Trimmed\");\n x1Var2.mo12658a(sb.toString());\n x1Var2.mo12656a(521);\n }\n x1Var2.mo12657a((Object) jSONArray5);\n return x1Var2;\n }\n }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Â\u0002;\u0017sIȰ{T\u001e\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1791 = (new String((char[])var4)).intern();\r\n String var2 = field_1791;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 19;\r\n break;\r\n case 2:\r\n var10009 = 57;\r\n break;\r\n case 3:\r\n var10009 = 122;\r\n break;\r\n case 4:\r\n var10009 = 30;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 165;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "private void c()\r\n/* 81: */ {\r\n/* 82: */ BufferedImage localBufferedImage;\r\n/* 83: */ try\r\n/* 84: */ {\r\n/* 85:102 */ localBufferedImage = cuj.a(bsu.z().O().a(this.g).b());\r\n/* 86: */ }\r\n/* 87: */ catch (IOException localIOException)\r\n/* 88: */ {\r\n/* 89:104 */ throw new RuntimeException(localIOException);\r\n/* 90: */ }\r\n/* 91:107 */ int i1 = localBufferedImage.getWidth();\r\n/* 92:108 */ int i2 = localBufferedImage.getHeight();\r\n/* 93:109 */ int[] arrayOfInt = new int[i1 * i2];\r\n/* 94:110 */ localBufferedImage.getRGB(0, 0, i1, i2, arrayOfInt, 0, i1);\r\n/* 95: */ \r\n/* 96:112 */ int i3 = i2 / 16;\r\n/* 97:113 */ int i4 = i1 / 16;\r\n/* 98: */ \r\n/* 99:115 */ int i5 = 1;\r\n/* 100: */ \r\n/* 101:117 */ float f1 = 8.0F / i4;\r\n/* 102:119 */ for (int i6 = 0; i6 < 256; i6++)\r\n/* 103: */ {\r\n/* 104:120 */ int i7 = i6 % 16;\r\n/* 105:121 */ int i8 = i6 / 16;\r\n/* 106:123 */ if (i6 == 32) {\r\n/* 107:124 */ this.d[i6] = (3 + i5);\r\n/* 108: */ }\r\n\t\t\t\t\tint i9;\r\n/* 109:127 */ for (i9 = i4 - 1; i9 >= 0; i9--)\r\n/* 110: */ {\r\n/* 111:129 */ int i10 = i7 * i4 + i9;\r\n/* 112:130 */ int i11 = 1;\r\n/* 113:131 */ for (int i12 = 0; (i12 < i3) && (i11 != 0); i12++)\r\n/* 114: */ {\r\n/* 115:132 */ int i13 = (i8 * i4 + i12) * i1;\r\n/* 116:134 */ if ((arrayOfInt[(i10 + i13)] >> 24 & 0xFF) != 0) {\r\n/* 117:135 */ i11 = 0;\r\n/* 118: */ }\r\n/* 119: */ }\r\n/* 120:138 */ if (i11 == 0) {\r\n/* 121: */ break;\r\n/* 122: */ }\r\n/* 123: */ }\r\n/* 124:142 */ i9++;\r\n/* 125: */ \r\n/* 126: */ \r\n/* 127:145 */ this.d[i6] = ((int)(0.5D + i9 * f1) + i5);\r\n/* 128: */ }\r\n/* 129: */ }", "public void n()\r\n/* 515: */ {\r\n/* 516:523 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 517:524 */ if (this.a[i] != null)\r\n/* 518: */ {\r\n/* 519:525 */ this.d.a(this.a[i], true, false);\r\n/* 520:526 */ this.a[i] = null;\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:529 */ for (i = 0; i < this.b.length; i++) {\r\n/* 524:530 */ if (this.b[i] != null)\r\n/* 525: */ {\r\n/* 526:531 */ this.d.a(this.b[i], true, false);\r\n/* 527:532 */ this.b[i] = null;\r\n/* 528: */ }\r\n/* 529: */ }\r\n/* 530: */ }", "@Test public void test_4() throws Exception {\n yetihelper.Helper v76=new yetihelper.Helper(); // time:1355223203509\n int v77=-2147483647; // time:1355223203509\n java.lang.Integer v78=v76.dummyInteger((int)v77); // time:1355223203509\n material.Square v79=new material.Square((java.lang.Integer)v78,(java.lang.Integer)v78); // time:1355223203509\n java.lang.Integer v80=v79.getRow(); // time:1355223203509\n material.Square v286=new material.Square((java.lang.Integer)v80,(java.lang.Integer)null); // time:1355223203642\n int v2252=v286.hashCode();\n /**BUG FOUND: RUNTIME EXCEPTION**/ // time:1355223207190\n /**YETI EXCEPTION - START \n java.lang.NullPointerException\n \tat material.Square.hashCode(Square.java:49)\n YETI EXCEPTION - END**/ \n /** original locs: 4674 minimal locs: 7**/\n \n }", "public static int solution(int[] nums){\n int slow = nums[0], fast = nums[nums[0]];\n while(slow != fast){\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n fast = 0;\n while(slow != fast){\n slow = nums[slow];\n fast = nums[fast];\n }\n return slow;\n }", "private int getU(int[] inputs, int[] original) {\n\t\tint u = 0; \n\t\tint u2 = 0;\n\t\tfor(int i = 0 ; i < inputs.length ; i++) {\n\t\t\tu += inputs[i];\n\t\t\tu2 += original[i];\n\t\t}\n\t\treturn u <= u2 ? u : u2;\n\t}", "private static long find_fast(long u)\n {\n long a, b, r;\n long maxUInt = 4294967295L;\n\n u += 0xe91aaa35;\n u = maxUInt % u;\n u ^= u >> 16;\n u = maxUInt % u;\n u += u << 8;\n u = maxUInt % u;\n u ^= u >> 4;\n u = maxUInt % u;\n b = (u >> 8) & 0x1ff;\n b = maxUInt % b;\n a = (u + (u << 2)) >> 19;\n a = maxUInt % a;\n r = a ^ hash_adjust[(int)b];\n r = maxUInt % r;\n return r;\n }", "public abstract int mo9797a();" ]
[ "0.5616457", "0.53949535", "0.533072", "0.52935684", "0.52770305", "0.52656144", "0.5230417", "0.5205257", "0.5164066", "0.5142903", "0.51190174", "0.511304", "0.51093405", "0.50853395", "0.5078818", "0.5075085", "0.507399", "0.50631136", "0.5031556", "0.5026719", "0.50266397", "0.501513", "0.5007743", "0.5006713", "0.5002636", "0.4999897", "0.49981537", "0.49932304", "0.49912286", "0.49888065", "0.49874303", "0.49808428", "0.4977703", "0.49737895", "0.4967007", "0.4963802", "0.49596447", "0.49566522", "0.4954743", "0.4939674", "0.49347836", "0.49169704", "0.49158666", "0.49080256", "0.49075088", "0.4899552", "0.48978332", "0.4885968", "0.48847216", "0.48833314", "0.48823178", "0.48792648", "0.4877831", "0.48750776", "0.48742098", "0.4873935", "0.48687342", "0.4868179", "0.4864801", "0.48596898", "0.48581606", "0.48569942", "0.4856236", "0.48525506", "0.48517513", "0.48503777", "0.4848066", "0.48437533", "0.48435932", "0.4842848", "0.48421425", "0.4840349", "0.48365346", "0.48356006", "0.48307756", "0.48294443", "0.4828446", "0.48277456", "0.48268136", "0.48239785", "0.4823671", "0.48218924", "0.48217615", "0.48202825", "0.48199958", "0.4816994", "0.4815137", "0.48137498", "0.4811626", "0.48064473", "0.48039126", "0.48034355", "0.48009393", "0.4799977", "0.47950292", "0.479312", "0.47900054", "0.47893992", "0.4788373", "0.47877136", "0.47876376" ]
0.0
-1
It may be better to support prefix optimization as a post processor protected boolean optimizePrefixes;
public SparqlParserConfig clone() { SparqlParserConfig result = new SparqlParserConfig(syntax, prologue.copy(), baseURI, sharedPrefixes); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPrefix() { return prefix; }", "public boolean isPrefix() {\n return prefix;\n }", "public void setPrefix(boolean prefix) {\n this.prefix = prefix;\n }", "boolean setPrefix(String prefix);", "public boolean startsWith(String prefix) {\n int length = prefix.length();\n if(length == 0){\n return false;\n }\n\n char[] chars = prefix.toCharArray();\n\n Map<Character,Node> map = this.root.map;\n // 需要保证word的结尾是endfr\n for(int i = 0;i < length;i++){\n if(!map.containsKey(chars[i])) {\n return false;\n }\n\n map = map.get(chars[i]).map;\n }\n return true;\n }", "Set getPrefixes();", "public boolean startsWith(String prefix) {\n char[] chs = prefix.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n return false;\n }\n cur = cur.map[ind];\n }\n return true;\n }", "public boolean startsWith(String prefix) {\n return searchTrie(prefix)!=null;\n }", "public boolean isPrefix() {\n return start != null &&\n startInclusive &&\n start.equals(end) &&\n endInclusive;\n }", "public boolean startsWith(String prefix) {\n if(searchWordNodePos(prefix) == null){\n return false;\n } else return true;\n }", "private boolean hasPrefix(byte[] nal)\n {\n return nal[0] == 0 && nal[1] == 0 && nal[2] == 0 && nal[3] == 0x01;\n }", "public boolean startsWith(String prefix) {\n TrieNode p = searchNode(prefix);\n if (p == null) {\n return false;\n } else {\n return true;\n }\n }", "@Override\n public boolean startsWith(final String prefix) {\n final TrieNode p = searchNode(prefix);\n return p != null;\n }", "public boolean startsWith(String prefix) {\n return searchPrefix(prefix)!=null;\n }", "public boolean startsWith(String prefix) {\n TrieNode n = root;\n for(char c : prefix.toCharArray()) {\n if(n.children[c]==null)\n return false;\n n = n.children[c];\n }\n return true;\n }", "boolean isPrefix(String potentialPrefix);", "public boolean startsWith(String prefix) {\n\t\t\treturn searchPrefix(prefix) != null;\n\t\t}", "public boolean startsWith(String prefix) {\n TrieNode node = search(root, prefix, 0);\n\t\treturn hasKey(node);\n }", "public boolean startsWith(String prefix) {\n if (prefix == null || prefix.length() == 0)\n return false;\n char [] letters = prefix.toCharArray();\n TrieNode node = root;\n for (int i=0; i < letters.length; i++) {\n int pos = letters[i] - 'a';\n if (node.son[pos] == null)\n return false;\n node = node.son[pos];\n }\n\n return true;\n }", "public void testBug631Prefixes() {\n // Set the prefix length large enough so that we ensure prefixes are\n // appropriately tested\n final String[] prototypeNames = {\n \"__proto__\", \"constructor\", \"eval\", \"prototype\", \"toString\",\n \"toSource\", \"unwatch\", \"valueOf\",};\n\n for (int i = 0; i < prototypeNames.length; i++) {\n final String name = prototypeNames[i] + \"AAAAAAAAAAAAAAAAAAAA\";\n final PrefixTree tree = new PrefixTree(prototypeNames[i].length());\n\n assertFalse(\"Incorrectly found \" + name, tree.contains(name));\n\n assertTrue(\"First add() didn't return true: \" + name, tree.add(name));\n assertFalse(\"Second add() of duplicate entry didn't return false: \"\n + name, tree.add(name));\n\n assertTrue(\"contains() didn't find added word: \" + name,\n tree.contains(name));\n\n testSizeByIterator(tree);\n assertTrue(\"PrefixTree doesn't contain the desired word\",\n 1 == tree.size());\n }\n }", "public abstract String getPrefix();", "public boolean startsWith(String prefix) {\n return (walkTo(prefix) != null);\n }", "private boolean isValidPrefix(String prefix){\n if (trie.searchPrefix(prefix)){\n return true;\n } else {\n return false;\n }\n }", "public boolean startsWith(String prefix) {\n TrieTree point = root;\n for(int i = 0; i < prefix.length(); i++){\n char ch = prefix.charAt(i);\n if(point.getChild(ch - 'a') == null) return false;\n point = point.getChild(ch - 'a');\n }\n return true;\n }", "private boolean isPrefixInDictionaryRecursive(String prefix, BSTNode<String> n) {\n\t\tif (n.getData() == null){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tint comparison = n.getData().compareToIgnoreCase(prefix);\n\t\tboolean isPrefix = n.getData().startsWith(prefix);\n\t\tif (isPrefix) \n\t\t\treturn true;\n\t\t\n\t\t//makes sure the new parameters are not null references\n\t\tif (comparison < 0 && n.getLeft() != null)\n\t\t\treturn isPrefixInDictionaryRecursive( prefix, n.getLeft());\n\t\telse if ( comparison > 0 && n.getRight() != null)\n\t\t\treturn isPrefixInDictionaryRecursive( prefix, n.getRight());\n\t\telse //this case should never happen\n\t\t\treturn true;\n\t\t\n\t\t/**old code written by Professor below\n\t\t */\n\t\t\n\t\t//if (begin > end )\n\t\t//return false;\n\t\t\n\t\t//int half = (begin+end+1) / 2;\n\t\t//int comparison = words.get(half).compareToIgnoreCase(prefix);\n\t\t//boolean isPrefix = words.get(half).startsWith(prefix);\n\t\t//if (isPrefix) \n\t\t\t//return true;\n\t\t\n\t\t//if (comparison < 0 )\n\t\t\t//return isPrefixInDictionaryRecursive( prefix, half + 1, end );\n\t\t//else if ( comparison > 0 )\n\t\t\t//return isPrefixInDictionaryRecursive( prefix, begin, half - 1);\n\t\t//else //this case should never happen\n\t\t\t//return true;\n\t}", "public void addPOSPrefix(String prefix) {\n if(prefix==null)\n return;\n if(POSPrefix==null){\n POSPrefix=prefix;\n return;\n }\n if(prefix.startsWith(POSPrefix))\n return;\n if(POSPrefix.startsWith(prefix)){\n POSPrefix=prefix;\n } else { //We need to find the longest common prefix of the two prefix strings\n int len=0;\n for(int max=Math.min(prefix.length(),POSPrefix.length());len<max;++len){\n if(prefix.charAt(len)!=POSPrefix.charAt(len))\n break;\n }\n POSPrefix=prefix.substring(0,len);\n }\n }", "public boolean startsWith(String prefix) {\n Trie cur = this;\n int i = 0;\n while(i < prefix.length()) {\n int c = prefix.charAt(i) - 'a';\n if(cur.tries[c] == null) {\n return false;\n }\n cur = cur.tries[c];\n i++;\n }\n return true;\n }", "public String getPrefixString() {\n/* 105 */ return this.prefix;\n/* */ }", "public boolean startsWith(String prefix) {\n if(prefix!=null) {\n char wordArr[] = prefix.toCharArray();\n int wordLen=prefix.length();\n// if(wordLen==0)\n// return false;\n Node tempRoot=root;\n for(int i=0;i<wordLen;i++){\n if(tempRoot.subNode(wordArr[i])!=null){\n tempRoot=tempRoot.subNode(wordArr[i]);\n }else{\n return false;\n }\n }\n return true;\n }\n return false;\n }", "public boolean startsWith(String prefix) {\n return getNode(prefix) != null;\n }", "public boolean startsWith(String prefix) {\n TrieNode cur = root;\n for (int i = 0 ; i < prefix.length(); i ++) {\n char ch = prefix.charAt(i);\n if (! cur.children.containsKey(ch)) {\n // does not match\n return false;\n }\n else {\n cur = cur.children.get(ch);\n }\n }\n return true;\n }", "public boolean startsWith(String prefix) {\n Trie root = this;\n for (char c : prefix.toCharArray()) {\n if (root.next[c - 'a'] != null) {\n root = root.next[c - 'a'];\n } else {\n return false;\n }\n }\n return true;\n }", "public boolean startsWith(String prefix) {\n TrieNode node = root;\n\n // for each char in the prefix, search in the TrieNode\n for (char c: prefix.toCharArray()) {\n if (node.children[c - 'a'] == null) {\n return false;\n }\n // move the node to next layer\n node = node.children[c - 'a'];\n }\n // if we iterate to the last, return true\n return true;\n }", "void setPrefix(String prefix);", "public boolean startsWith(String prefix) {\n TrieNode now = root;\n for(int i = 0; i < prefix.length(); i++) {\n Character c = prefix.charAt(i);\n if (!now.children.containsKey(c)) {return false;}\n now = now.children.get(c);\n }\n return true;\n}", "private boolean isPrefixFound(String line) {\n\t\tif (notab) {\n\t\t\treturn line.startsWith(prefix);\n\t\t} else {\n\t\t\treturn line.contains(prefix);\n\t\t}\n\t}", "@Test\n\tpublic void testContainsSomePrefix() {\n\n\t\tString[] prefixes = {\"ne\", \"ned\", \"nes\", \"ning\", \"st\", \"sted\", \"sting\", \"sts\"};\n\t\tList<String> listPrefixes = Arrays.asList(prefixes);\n\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"stedadsdf\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"neasdsadfa\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"ningsdfsf\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"nasfds\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"abdsfsd\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"ninsdfdsf\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"swerwrw\", listPrefixes), equalTo(false));\n\t}", "public boolean startsWith(String prefix) {\n TrieNode current = root;\n for(char c : prefix.toCharArray()){\n int index = c - 'a';\n if(current.childrens[index] == null)\n return false;\n current = current.childrens[index];\n }\n return true;\n }", "public boolean startsWith(String prefix) {\n TrieNode p = root;\n for (char c : prefix.toCharArray()) {\n int childIndex = (int)(c - 'a');\n if(p.children[childIndex] == null) {\n return false;\n }\n p = p.children[childIndex];\n }\n return true;\n }", "public boolean startsWith(String prefix) {\n var node = searchPrefix(prefix);\n return node != null;\n }", "public boolean startsWith(String prefix) {\n TrieNode ptr = root;\n for(int i = 0;i < prefix.length();i++) {\n char c = prefix.charAt(i);\n if(ptr.child[c - 'a'] == null) {\n return false;\n }\n ptr = ptr.child[c - 'a'];\n }\n return true;\n }", "public boolean startsWith(String prefix) \n\t {\n\t \tTrieNode p = root;\n\t for(int i=0; i<prefix.length(); ++i)\n\t {\n\t \tchar c = prefix.charAt(i);\n\t \tp = p.children[c-'a'];\n\t \tif(p==null)\n\t \t\treturn false;\n\t }\n\t return true;\n\t }", "public boolean startsWith(String prefix) {\n TrieNode curr = root;\n for (char c : prefix.toCharArray()) {\n int idx = c - 'a';\n if (curr.children[idx] == null) {\n return false;\n }\n curr = curr.children[idx];\n }\n return true;\n }", "public boolean startsWith(String prefix) {\n char [] words=prefix.toCharArray();\n CharTree t=root;\n for (char c : words) {\n t=t.next[c-97];\n if(t==null)return false;\n }\n return true;\n }", "public boolean startsWith(String prefix) {\n return searchWord(prefix, false);\n }", "public void addPOSPrefix(String prefix) {\n\t\tif(prefix==null)\n\t\t\treturn;\n\t\tif(POSPrefix==null){\n\t\t\tPOSPrefix=prefix;\n\t\t\treturn;\n\t\t}\n\t\tif(prefix.startsWith(POSPrefix))\n\t\t\treturn;\n\t\tif(POSPrefix.startsWith(prefix)){\n\t\t\tPOSPrefix=prefix;\n\t\t} else { //We need to find the longest common prefix of the two prefix strings\n\t\t\tint len=0;\n\t\t\tfor(int max=Math.min(prefix.length(),POSPrefix.length());len<max;++len){\n\t\t\t\tif(prefix.charAt(len)!=POSPrefix.charAt(len))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tPOSPrefix=prefix.substring(0,len);\n\t\t}\n\t}", "public boolean hasDirtyPrefixes() {\n return !this.dirtyDest.isEmpty();\n }", "public boolean startsWith(String prefix) {\n/* 333 */ return this.m_str.startsWith(prefix);\n/* */ }", "private String getPrefixesString() {\n\t\t//TODO: Include dynamic way of including this\n\t\treturn \"@prefix core: <http://vivoweb.org/ontology/core#> .\";\n\t}", "String getPrefix();", "String getPrefix();", "String getPrefix();", "String getPrefix();", "protected abstract String getPropertyPrefix();", "@Override\n\tpublic boolean isPrefixIncDec() {\n\t\treturn heldObj.isPrefixIncDec();\n\t}", "public boolean startsWith(String prefix) {\n Entry lastNodeOfSearch = getLastNodeOfSearch(prefix, 0, root);\n return lastNodeOfSearch!=null;\n }", "public boolean startsWith(\n Path prefix\n ) {\n return prefix.size <= this.size && prefix.equals(getPrefix(prefix.size));\n }", "public static boolean prefixMatched(long number) {\r\n\t\tString num = Long.toString(number);\r\n\t\tint[] prefix = {4, 5, 6, 37};\t\t\t\t\t// lista prefixa za uporedbu\r\n\t\tfor (int i = 0; i < prefix.length; i++) {\r\n\t\t\tif (Long.valueOf(num.substring(0, 2)) == prefix[i]) {\t// uslov za dvocifreni prefix\r\n\t\t\t\treturn true;\r\n\t\t\t} \r\n\t\t\tif (Long.valueOf(num.substring(0, 1)) == prefix[i]) {\t// uslov za jednocifreni prefix\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean startsWith(String prefix) {\n TrieNode tail = match(root, prefix.toCharArray(), 0);\n return tail != null;\n }", "public boolean startsWith(String prefix) {\n char[] chars = prefix.toCharArray();\n Node theNode = root;\n for (char c : chars) {\n if (theNode.children.containsKey(c)) {\n theNode = theNode.children.get(c);\n } else {\n return false;\n }\n }\n return true;\n }", "public boolean startsWith(XMLString prefix) {\n/* 353 */ return this.m_str.startsWith(prefix.toString());\n/* */ }", "public boolean startsWith(String prefix) {\r\n return tree.startWith(prefix);\r\n }", "public void replacePrefixesAndSplitByPredicate() throws ConfigurationNotInitializedException, PrefixReplacerPredicateSplitterException {\n\t\ttry {\n\t\t\tedu.utdallas.hadooprdf.conf.Configuration config =\n\t\t\t\tedu.utdallas.hadooprdf.conf.Configuration.getInstance();\n\t\t\torg.apache.hadoop.conf.Configuration hadoopConfiguration =\n\t\t\t\tnew org.apache.hadoop.conf.Configuration(config.getHadoopConfiguration()); // Should create a clone so\n\t\t\t// that the original one does not get cluttered with job specific key-value pairs\n\t\t\tFileSystem fs = FileSystem.get(hadoopConfiguration);\n\t\t\t// Delete output directory\n\t\t\tfs.delete(m_OutputDirectoryPath, true);\n\t\t\t// Must set all the job parameters before creating the job\n\t\t\tString sPathToPrefixFile = m_DataSet.getPathToPrefixFile().toString();\n\t\t\thadoopConfiguration.set(Tags.PATH_TO_PREFIX_FILE, sPathToPrefixFile);\n\t\t\t// Create the job\n\t\t\tString sJobName = \"Prefix Replacer for \" + m_InputDirectoryPath.getParent() + '/' + m_InputDirectoryPath.getName();\n\t\t\tJob job = new Job(hadoopConfiguration, sJobName);\n\t\t\t// Specify input parameters\n\t\t\tjob.setInputFormatClass(TextInputFormat.class);\n\t\t\tboolean bInputPathEmpty = true;\n\t\t\t// Get input file names\n\t\t\tFileStatus [] fstatus = fs.listStatus(m_InputDirectoryPath, new PathFilterOnFilenameExtension(m_sInputFilesExtension));\n\t\t\tfor (int i = 0; i < fstatus.length; i++) {\n\t\t\t\tif (!fstatus[i].isDir()) {\n\t\t\t\t\tFileInputFormat.addInputPath(job, fstatus[i].getPath());\n\t\t\t\t\tbInputPathEmpty = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (bInputPathEmpty)\n\t\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"No file to replace prefix for!\");\n\t\t\t// Specify output parameters\n\t\t\tjob.setOutputFormatClass(FilenameByKeyMultipleTextOutputFormat.class);\n\t\t\tjob.setOutputKeyClass(Text.class);\n\t\t\tjob.setOutputValueClass(Text.class);\n\t\t\tjob.setMapOutputKeyClass(Text.class);\n\t\t\tjob.setMapOutputValueClass(Text.class);\n\t\t\tFileOutputFormat.setOutputPath(job, m_OutputDirectoryPath);\n\t\t\t// Set the mapper and reducer classes\n\t\t\tjob.setMapperClass(edu.utdallas.hadooprdf.data.preprocessing.namespacingpredicatesplit.mapred.PrefixReplacerPredicateSplitterMapper.class);\n\t\t\tjob.setReducerClass(edu.utdallas.hadooprdf.data.preprocessing.namespacingpredicatesplit.mapred.PrefixReplacerPredicateSplitterReducer.class);\n\t\t\t// Set the number of reducers\n\t\t\tif (-1 != getNumberOfReducers())\t// Use the number set by the client, if any\n\t\t\t\tjob.setNumReduceTasks(getNumberOfReducers());\n\t\t\telse if (-1 != config.getNumberOfTaskTrackersInCluster())\t// Use one reducer per TastTracker, if the number of TaskTrackers is available\n\t\t\t\tjob.setNumReduceTasks(config.getNumberOfTaskTrackersInCluster());\n\t\t\t// Set the jar file\n\t\t\tjob.setJarByClass(this.getClass());\n\t\t\t// Run the job\n\t\t\tif (job.waitForCompletion(true)) {\n\t\t\t\tfs.delete(m_InputDirectoryPath, true);\n\t\t\t\tfs.delete(m_DataSet.getPathToPSData(), true);\n\t\t\t\tfs.mkdirs(m_DataSet.getPathToPSData());\n\t\t\t\tfstatus = fs.listStatus(m_OutputDirectoryPath, new PathFilterOnFilenameExtension(Constants.PS_EXTENSION));\n\t\t\t\tfor (int i = 0; i < fstatus.length; i++)\n\t\t\t\t\tfs.rename(fstatus[i].getPath(), new Path(m_DataSet.getPathToPSData(), fstatus[i].getPath().getName()));\n\t\t\t\tfs.delete(m_OutputDirectoryPath, true);\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"Prefix replacer job failed!\");\n\t\t} catch (IOException e) {\n\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"IOException occurred:\\n\" + e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"InterruptedException occurred:\\n\" + e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"ClassNotFoundException occurred:\\n\" + e.getMessage());\n\t\t}\n\t}", "private boolean joinSingleStringOrPrefixStringAsFuzzyNonPrefix(String s, boolean s_is_prefix) {\n int oldflags = flags;\n if (s_is_prefix) {\n if (included_strings == null) {\n // no knowledge about the suffix of a prefix: set all str-bits\n flags |= STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER;\n } else { // if string set, we know all the suffixes, so we can make a precise join\n if (included_strings.stream().anyMatch(Strings::isArrayIndex)) {\n flags |= STR_UINT;\n }\n if (included_strings.stream().filter(str -> !Strings.isArrayIndex(str)).anyMatch(Strings::isNumeric)) {\n flags |= STR_OTHERNUM;\n }\n if (included_strings.stream().anyMatch(Strings::isIdentifier)) {\n flags |= STR_IDENTIFIER;\n }\n if (included_strings.stream()\n .filter(str -> !Strings.isIdentifier(str))\n .filter(str -> !Strings.isArrayIndex(str))\n .anyMatch(Strings::isIdentifierParts)) {\n flags |= STR_OTHERIDENTIFIERPARTS;\n }\n if (included_strings.stream().filter(str -> !Strings.isIdentifierParts(str)).anyMatch(str -> !Strings.isNumeric(str))) {\n flags |= STR_OTHER;\n }\n }\n } else {\n // s is a single string\n if (Strings.isArrayIndex(s)) {\n flags |= STR_UINT;\n } else if (Strings.isNumeric(s)) {\n flags |= STR_OTHERNUM;\n } else if (Strings.isIdentifier(s)) {\n flags |= STR_IDENTIFIER;\n } else if (Strings.isOtherIdentifierParts(s)) {\n flags |= STR_OTHERIDENTIFIERPARTS;\n } else {\n flags |= STR_OTHER;\n }\n }\n return flags != oldflags;\n }", "public boolean useRegisteredSuffixPatternMatch()\n/* */ {\n/* 610 */ return this.registeredSuffixPatternMatch;\n/* */ }", "public boolean startWith(String prefix) {\n boolean result = true;\n char[] prefixChar = prefix.toCharArray();\n if (prefixChar.length > data.length) {\n return false;\n }\n for (int i = 0; i < prefixChar.length; i++) {\n if (prefixChar[i] != data[i]) {\n result = false;\n break;\n }\n }\n return result;\n }", "public String getPrefix();", "public String getPrefix();", "public boolean containsPrefixName(String name) {\n return repositoryWithDualKeyNCategory.containsKey(name.toLowerCase());\n }", "public boolean startsWith(String prefix) {\n return this.root.startWith(prefix);\n \n }", "public boolean startsWith(String prefix) {\n Node curr = root;\n for (int i = 0; i < prefix.length(); i++) {\n char c = prefix.charAt(i);\n Node subNode = curr.subNodes[c - 'a'];\n if (subNode == null) {\n return false;\n }\n curr = subNode;\n }\n return true;\n }", "public static boolean isPrefix(Grid g) {\n\t\tfor ( int i = 0; i < g.hword[0].trim().length(); i++ ) {\n\t\t\tString wordToCheck = g.getVWord(i).trim();\n\t\t\tif ( !dict.isWord(wordToCheck) )\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void setPrefix(String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "public void setPrefix(String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "public void setPropertyPrefix(String prefix);", "private void removeIfNeeded(String prefix) {\r\n // remove the previous mapping to the prefix\r\n if (this.prefixMapping.containsValue(prefix)) {\r\n Object key = null;\r\n for (Enumeration e = this.prefixMapping.keys(); e.hasMoreElements();) {\r\n key = e.nextElement();\r\n if (this.prefixMapping.get(key).equals(prefix)) \r\n break;\r\n }\r\n this.prefixMapping.remove(key); // we know key should have a value\r\n\t if (DEBUG) System.err.println(\"Removed \" + prefix);\r\n \r\n }\r\n }", "public boolean findPrefix (String prefix ) {\n\t\t\n\t\t\n\t\treturn isPrefixInDictionaryRecursive (prefix, this.root );\n\t}", "public boolean startsWith(String prefix) {\n\t\tcur = root;\n\t\tfor (char c : prefix.toCharArray()) {\n\t\t\tif (cur == null)\n\t\t\t\treturn false;\n\t\t\tcur = cur.children[c - 'a'];\n\t\t}\n\t\treturn cur != null;\n\t}", "Collection<String> getMappingPrefixes();", "public void setPrefix(java.lang.String prefix) {\r\n this.prefix = prefix;\r\n }", "public boolean contains(String prefix) {\n\t\tSet<String> prefixes = prefixToURIMap.keySet();\n\t\treturn prefixes.contains(prefix);\n\t}", "public boolean startsWith(String prefix) {\n String word = prefix;\n Node temp = root;\n while(word.length()!=0){\n char c = word.charAt(0);\n word = word.substring(1);\n int index = (int)c -97;\n if(temp.children[index]==null){\n return false;\n }\n temp = temp.children[index];\n }\n if(temp==null) return false;\n \n return true;\n }", "private int prefixQuery(String prefix) {\n if (curr == null)\n curr = track(dict, prefix);\n else\n curr = track(curr.mid, prefix);\n\n if (curr == null) return 0;\n if (curr.isString) {\n if (curr.mid == null) return 1;\n else return 3;\n } else {\n if (curr.mid == null) return 0;\n return 2;\n }\n }", "private boolean hasPrefix(Node node, String prefix, int iter, int size) {\n if (node == null)\n return false;\n\n // we're at the prefix\n if (iter == size - 1)\n return true;\n\n // recursive step\n return hasPrefix(node.children.get(prefix.charAt(iter)), prefix, iter + 1, size);\n }", "private boolean isPrefix(String filename, String[] array)\n\t{\n\t\tfor (String temp : array)\n\t\t{\n\t\t\tif (temp.startsWith(filename) == true)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "static boolean PrefixedName(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"PrefixedName\")) return false;\n if (!nextTokenIs(b, NCNAME)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = Prefix(b, l + 1);\n r = r && consumeToken(b, COLON);\n r = r && LocalPart(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "boolean tokenIsPrefix(Token token)\r\n {\r\n if (token == null)\r\n return false;\r\n\r\n int type = token.getType();\r\n switch (type) {\r\n case MExprANTLRParserTokenTypes.UNARYMINUS:\r\n case MExprANTLRParserTokenTypes.UNARYPLUS:\r\n case MExprANTLRParserTokenTypes.NOT:\r\n case MExprANTLRParserTokenTypes.PLUSPLUS:\r\n case MExprANTLRParserTokenTypes.MINUSMINUS:\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "boolean truncatePrefix(final long firstIndexKept);", "public ImplementPrefix() {\n root = new TrieNode('$');\n }", "public boolean isWebappPathPrefixUrlBuild() {\n return webSiteProps.isWebappPathPrefixUrlBuild();\n }", "public void endPrefixMapping(String prefix) { }", "public boolean startsWith(String prefix) {\n Node current = root;\n for (int i = 0; i < prefix.length(); i++) {\n int c = prefix.charAt(i) - 'a';\n if (current.children[c] == null) return false;\n current = current.children[c];\n }\n return true;\n }", "public boolean startsWith(String prefix) {\n return path.startsWith(prefix);\n }", "public static void checkPrefix(Token t) {\r\n\t\tIterator<String> it = WordLists.lastNamePrefixes().iterator();\r\n\t\t\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tString prefix = it.next();\r\n\t\t\t\r\n\t\t\tif(t.getName().contains(prefix)) {\r\n\t\t\t\tt.getFeatures().setPrefix(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "protected boolean containsName(String full, String prefixes) {\n String[] prefixArray = StringUtils.split(prefixes, \",\");\n for (String prefix : prefixArray) {\n if (StringUtils.startsWith(full, StringUtils.trimToEmpty(prefix))) {\n return true;\n }\n }\n return false;\n }", "public void setPrefix(java.lang.String prefix) {\n this.prefix = prefix;\n }", "@Updatable\n public String getPrefix() {\n return prefix;\n }", "public static boolean isForcePackagePrefixGeneration()\n {\n read_if_needed_();\n \n return _is_force_package_gen;\n }", "public boolean startsWith(String prefix) {\n char[] chars = prefix.toCharArray();\n Node node = root;\n for (char c: chars) {\n int idx = c - 'a';\n Node next = node.children[idx];\n if (next == null) return false;\n node = next;\n }\n return true;\n }", "GetPrefix internalContent();", "public boolean unitNameHasPrefix(String unitNameWithPrefix, boolean constrainBasedOnValidUnitNames){\n return findFirstPrefixPairMatches(unitNameWithPrefix, constrainBasedOnValidUnitNames) != NO_PREFIX_MATCH_ARRAY;\n }" ]
[ "0.7126136", "0.6848974", "0.6787496", "0.6605637", "0.6493992", "0.6363894", "0.61735684", "0.6170884", "0.6167455", "0.6148553", "0.61144614", "0.6087707", "0.6070131", "0.6065824", "0.6061941", "0.60514426", "0.60410154", "0.60356176", "0.6032103", "0.6028925", "0.6027788", "0.60241276", "0.6021146", "0.60116655", "0.5992722", "0.5986911", "0.5985358", "0.59790015", "0.5978692", "0.59777904", "0.59683764", "0.5959491", "0.5955689", "0.5937019", "0.5933499", "0.5922299", "0.5917943", "0.5900749", "0.58858365", "0.5882485", "0.5878527", "0.5874688", "0.5871671", "0.5857654", "0.5856707", "0.5856031", "0.5854883", "0.5850512", "0.5827605", "0.58144385", "0.58144385", "0.58144385", "0.58144385", "0.5803144", "0.58019626", "0.5784838", "0.57836205", "0.57636356", "0.5759708", "0.5745915", "0.5743205", "0.57378405", "0.5732391", "0.5725588", "0.5709187", "0.57080734", "0.5707754", "0.5707754", "0.5705342", "0.5696828", "0.5694014", "0.56687665", "0.56612927", "0.56612927", "0.5658328", "0.5652184", "0.56392646", "0.5616019", "0.5611762", "0.5609064", "0.55956084", "0.5594937", "0.55942607", "0.5587829", "0.55745023", "0.55684686", "0.5566582", "0.55663717", "0.55629534", "0.55616164", "0.55553645", "0.5551768", "0.55481565", "0.5541176", "0.5537816", "0.5532636", "0.5499918", "0.5494566", "0.5494135", "0.549325", "0.54869956" ]
0.0
-1
Parse sparql statements as given without resolving relative IRIs Sets the base URL to an empty string and configures the iri resolver without a base.
public SparqlParserConfig parseAsGiven() { setIrixResolverAsGiven(); setBaseURI(""); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() throws JRException {\n if (result != null) {\n return;\n }\n if (endpointUrl == null) {\n throw new JRException(\"Endpoint URLs can't be null\");\n }\n if (sparqlStatement == null || sparqlStatement.length() == 0) {\n throw new JRException(\"SPARQL statements can't be null for \" + endpointUrl);\n }\n try {\n endpointObj = new SPARQLRepository(endpointUrl);\n endpointObj.initialize();\n } catch (Exception e) {\n throw new JRException(\"Exception initializing endpoint \" + endpointUrl, e);\n }\n try {\n conn = endpointObj.getConnection();\n log.info(\"Executing SPARQL: \" + sparqlStatement);\n TupleQuery q = conn.prepareTupleQuery(QueryLanguage.SPARQL, sparqlStatement);\n result = q.evaluate();\n log.debug(\"Bindings got, size: \" + result.getBindingNames().size());\n } catch (Exception e) {\n throw new JRException(\"Exception connecting to endpoint \" + endpointUrl, e);\n } finally {\n try {\n conn.close();\n } catch (RepositoryException e) {\n e.printStackTrace();\n }\n }\n }", "private void setSparqlQueries(EditConfigurationVTwo editConfiguration, VitroRequest vreq) {\n \t//Sparql queries defining retrieval of literals etc.\n \teditConfiguration.setSparqlForAdditionalLiteralsInScope(new HashMap<String, String>());\n \teditConfiguration.setSparqlForAdditionalUrisInScope(new HashMap<String, String>());\n \teditConfiguration.setSparqlForExistingLiterals(new HashMap<String, String>());\n \teditConfiguration.setSparqlForExistingUris(new HashMap<String, String>());\n }", "private static void initSPARQLAnythingEngine() {\n\t\t// Register the JSON-LD parser factory for extension .json\n\t\tReaderRIOTFactory parserFactoryJsonLD = new RiotUtils.ReaderRIOTFactoryJSONLD();\n\t\tRDFParserRegistry.registerLangTriples(RiotUtils.JSON, parserFactoryJsonLD);\n\t\t// Setup FX executor\n\t\tJenaSystem.init();\n\t\tQC.setFactory(ARQ.getContext(), FacadeX.ExecutorFactory);\n\t}", "Object executeQuery(String sparqlQuery);", "public DefaultDocumentSource(URL base, String urlstring) throws IOException\n {\n super(base, urlstring);\n URL url = DataURLHandler.createURL(base, urlstring);\n con = createConnection(url);\n is = null;\n }", "@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "public interface SparqlQueryService {\n\n\t/**\n\t * Generic method to invoke a supplied query regardless of its type. The\n\t * client has to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject executeQuery(String sparqlQuery);\n\n\t/**\n\t * Generic method to invoke a query regardless of its type. The client has\n\t * to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject callQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL SELECT query. The resultant JSON structure is\n\t * serialized according to the W3C SPARQL 1.1 Query Results JSON Format.\n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#select\n\t * @param name\n\t * @param params\n\t * @return JSON result structure.\n\t */\n\tSparqlResultObject callSelectQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL CONSTRUCT query resulting in new graph serialized\n\t * according to RDF/JSON format\n\t * (http://jena.apache.org/documentation/io/rdf-json.html).\n\t * \n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#construct\n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tGraph callConstructQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL ASK query resulting in a boolean value.\n\t * \n\t * @see\n\t * \n\t * @param name\n\t * Unique name of the query.\n\t * @param params\n\t * Map of required parameter-value pairs.\n\t * @return true or false, depending whether the pattern matches.\n\t */\n\tBoolean callAskQuery(String name, Map<String, String> params);\n\n}", "private void initialize(URI p_base, String p_uriSpec)\n throws MalformedURIException {\n \n String uriSpec = p_uriSpec;\n int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;\n \n if (p_base == null && uriSpecLen == 0) {\n throw new MalformedURIException(\n \"Cannot initialize URI with empty parameters.\");\n }\n \n // just make a copy of the base if spec is empty\n if (uriSpecLen == 0) {\n initialize(p_base);\n return;\n }\n \n int index = 0;\n \n // Check for scheme, which must be before '/', '?' or '#'. Also handle\n // names with DOS drive letters ('D:'), so 1-character schemes are not\n // allowed.\n int colonIdx = uriSpec.indexOf(':');\n if (colonIdx != -1) {\n final int searchFrom = colonIdx - 1;\n // search backwards starting from character before ':'.\n int slashIdx = uriSpec.lastIndexOf('/', searchFrom);\n int queryIdx = uriSpec.lastIndexOf('?', searchFrom);\n int fragmentIdx = uriSpec.lastIndexOf('#', searchFrom);\n \n if (colonIdx < 2 || slashIdx != -1 || \n queryIdx != -1 || fragmentIdx != -1) {\n // A standalone base is a valid URI according to spec\n if (colonIdx == 0 || (p_base == null && fragmentIdx != 0)) {\n throw new MalformedURIException(\"No scheme found in URI.\");\n }\n }\n else {\n initializeScheme(uriSpec);\n index = m_scheme.length()+1;\n \n // Neither 'scheme:' or 'scheme:#fragment' are valid URIs.\n if (colonIdx == uriSpecLen - 1 || uriSpec.charAt(colonIdx+1) == '#') {\n throw new MalformedURIException(\"Scheme specific part cannot be empty.\"); \n }\n }\n }\n else if (p_base == null && uriSpec.indexOf('#') != 0) {\n throw new MalformedURIException(\"No scheme found in URI.\"); \n }\n \n // Two slashes means we may have authority, but definitely means we're either\n // matching net_path or abs_path. These two productions are ambiguous in that\n // every net_path (except those containing an IPv6Reference) is an abs_path. \n // RFC 2396 resolves this ambiguity by applying a greedy left most matching rule. \n // Try matching net_path first, and if that fails we don't have authority so \n // then attempt to match abs_path.\n //\n // net_path = \"//\" authority [ abs_path ]\n // abs_path = \"/\" path_segments\n if (((index+1) < uriSpecLen) &&\n (uriSpec.charAt(index) == '/' && uriSpec.charAt(index+1) == '/')) {\n index += 2;\n int startPos = index;\n \n // Authority will be everything up to path, query or fragment\n char testChar = '\\0';\n while (index < uriSpecLen) {\n testChar = uriSpec.charAt(index);\n if (testChar == '/' || testChar == '?' || testChar == '#') {\n break;\n }\n index++;\n }\n \n // Attempt to parse authority. If the section is an empty string\n // this is a valid server based authority, so set the host to this\n // value.\n if (index > startPos) {\n // If we didn't find authority we need to back up. Attempt to\n // match against abs_path next.\n if (!initializeAuthority(uriSpec.substring(startPos, index))) {\n index = startPos - 2;\n }\n }\n else {\n m_host = \"\";\n }\n }\n \n initializePath(uriSpec, index);\n \n // Resolve relative URI to base URI - see RFC 2396 Section 5.2\n // In some cases, it might make more sense to throw an exception\n // (when scheme is specified is the string spec and the base URI\n // is also specified, for example), but we're just following the\n // RFC specifications\n if (p_base != null) {\n \n // check to see if this is the current doc - RFC 2396 5.2 #2\n // note that this is slightly different from the RFC spec in that\n // we don't include the check for query string being null\n // - this handles cases where the urispec is just a query\n // string or a fragment (e.g. \"?y\" or \"#s\") -\n // see <http://www.ics.uci.edu/~fielding/url/test1.html> which\n // identified this as a bug in the RFC\n if (m_path.length() == 0 && m_scheme == null &&\n m_host == null && m_regAuthority == null) {\n m_scheme = p_base.getScheme();\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n m_path = p_base.getPath();\n \n if (m_queryString == null) {\n m_queryString = p_base.getQueryString();\n }\n return;\n }\n \n // check for scheme - RFC 2396 5.2 #3\n // if we found a scheme, it means absolute URI, so we're done\n if (m_scheme == null) {\n m_scheme = p_base.getScheme();\n }\n else {\n return;\n }\n \n // check for authority - RFC 2396 5.2 #4\n // if we found a host, then we've got a network path, so we're done\n if (m_host == null && m_regAuthority == null) {\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n }\n else {\n return;\n }\n \n // check for absolute path - RFC 2396 5.2 #5\n if (m_path.length() > 0 &&\n m_path.startsWith(\"/\")) {\n return;\n }\n \n // if we get to this point, we need to resolve relative path\n // RFC 2396 5.2 #6\n String path = \"\";\n String basePath = p_base.getPath();\n \n // 6a - get all but the last segment of the base URI path\n if (basePath != null && basePath.length() > 0) {\n int lastSlash = basePath.lastIndexOf('/');\n if (lastSlash != -1) {\n path = basePath.substring(0, lastSlash+1);\n }\n }\n else if (m_path.length() > 0) {\n path = \"/\";\n }\n \n // 6b - append the relative URI path\n path = path.concat(m_path);\n \n // 6c - remove all \"./\" where \".\" is a complete path segment\n index = -1;\n while ((index = path.indexOf(\"/./\")) != -1) {\n path = path.substring(0, index+1).concat(path.substring(index+3));\n }\n \n // 6d - remove \".\" if path ends with \".\" as a complete path segment\n if (path.endsWith(\"/.\")) {\n path = path.substring(0, path.length()-1);\n }\n \n // 6e - remove all \"<segment>/../\" where \"<segment>\" is a complete\n // path segment not equal to \"..\"\n index = 1;\n int segIndex = -1;\n String tempString = null;\n \n while ((index = path.indexOf(\"/../\", index)) > 0) {\n tempString = path.substring(0, path.indexOf(\"/../\"));\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n if (!tempString.substring(segIndex).equals(\"..\")) {\n path = path.substring(0, segIndex+1).concat(path.substring(index+4));\n index = segIndex;\n }\n else\n index += 4;\n }\n else\n index += 4;\n }\n \n // 6f - remove ending \"<segment>/..\" where \"<segment>\" is a\n // complete path segment\n if (path.endsWith(\"/..\")) {\n tempString = path.substring(0, path.length()-3);\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n path = path.substring(0, segIndex+1);\n }\n }\n m_path = path;\n }\n }", "@Test\n\tpublic void testSparqlQuery() throws OWLOntologyCreationException,\n\t\t\tIOException {\n\t\tInputStream ontStream = LDLPReasonerTest.class\n\t\t\t\t.getResourceAsStream(\"/data/university0-0.owl\");\n\t\tOWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n\t\tOWLOntology ontology = manager\n\t\t\t\t.loadOntologyFromOntologyDocument(ontStream);\n\n\t\tInputStream queryStream = LDLPReasonerTest.class\n\t\t\t\t.getResourceAsStream(\"/data/lubm-query4.sparql\");\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tqueryStream));\n\t\tString line;\n\t\tString queryText = \"\";\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tqueryText = queryText + line + \"\\n\";\n\t\t}\n\n\t\tQuery query = QueryFactory.create(queryText, Syntax.syntaxARQ);\n\t\tLDLPReasoner reasoner = new LDLPReasoner(ontology);\n\t\tList<Literal> results = reasoner.executeQuery(query);\n\t\tSystem.out.println(results.size() + \" answers :\");\n\t\tfor (Literal result : results) {\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tLDLPCompilerManager m = LDLPCompilerManager.getInstance();\n\n\t\t// m.dump();\n\n\t}", "@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "protected void init() {\n super.init();\n uriExpr = null;\n uri = null;\n nameExpr = null;\n name = null;\n qname = null;\n attrExpr = null;\n attr = null;\n emptyExpr = null;\n empty = false;\n }", "public abstract String unrewrite(String absoluteIRI);", "public SPARQLDataSource(String endpointUrl, String sparqlStatement) {\n this.endpointUrl = endpointUrl;\n this.sparqlStatement = sparqlStatement;\n }", "public Ia(String ibase_url) {\n base_url=ibase_url;\n byte[] reader = callers.getApiInfo(base_url+\"/Stations\");\n lstations = new ArrayList<TreeMap<String, String>>();\n callers.reader_to_trees(reader,lstations);\n reader = callers.getApiInfo(base_url+\"/Trips\");\n ltrips = new ArrayList<TreeMap<String, String>>();\n callers.reader_to_trees(reader,ltrips);\n reader = callers.getApiInfo(base_url+\"/Schedules\");\n lschedules = new ArrayList<TreeMap<String, String>>();\n callers.reader_to_trees(reader,lschedules);\n }", "public void load() throws SparqlException {\n \tload(getLoadFilePath());\n }", "public static Repository getSPARQLRepository(String endpoint, String user, String pass) throws Exception {\n\t\tlogger.info(\"Loading SPARQL repository for endpoint \" + endpoint\n\t\t\t\t+ (user != null ? (\", basic authentication for user \" + user): \"\"));\n return new SparqlRepositoryFactory(endpoint, user, pass).loadRepository();\n }", "public static void querying(String constructQuery2) {\n\t\t//construct the new query\n\t\t//String constructQuery2 = prefix+\" \"+select+\" \"+selectValues+\" \"+where+openBracket+openBracket+\" \"+local+\" \"+service+\" \"+openBracket+\" \"+remote+\" \"+closeBracket+closeBracket;\n\t\t//constructQuery2 = constructQuery2+\" UNION \"+\" \"+openBracket+\" \"+local+\" \"+service+\" \"+openBracket+\" \"+remote+\" \"+closeBracket+closeBracket+closeBracket;\n\t\t\n\t\tSystem.out.println(constructQuery2);\n\t\tQuery query2 = QueryFactory.create(constructQuery2);\n\t\tQueryExecution qe2 = QueryExecutionFactory.sparqlService(\n\t\t\t\t\"http://localhost:3030/USNA/query\", query2);\n\t\t\n\t\tResultSet results1 = qe2.execSelect();\n\t\tif(constantOutput == \"\") {\n\t\t\tResultSetFormatter.out(System.out, results1);\n\t\t}else {\n\t\t\tString NS = \"http://www.usna.org/ns#\";\n\t\t\tModel rdfssExample = ModelFactory.createDefaultModel();\n\t\t\tString [] constant = constantOutput.trim().split(\" \");\n\t\t\t\n\t\t\tString [] headers = selectValues.split(\" \");\n\t\t System.out.println(\"--------------------------------------------------------------------------------------------------------------------------------------------\");\n\t\t\tfor(int i = 0; i< headers.length; i++) {\n\t\t\t\t//System.out.print(headers[i].substring(1,headers[i].length()).trim()+\"\\t\\t\\t\\t\\t\\t\");\n\t\t\t\tSystem.out.print(headers[i].substring(1,headers[i].length()).trim()+\"\\t\\t\\t\\t\\t\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"----------------------------------------------------------------------------------------------------------------------------------------------\");\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t int count = 0;\n\t\t while ( results1.hasNext() ) {\n\t\t \t //Resource Response = rdfssExample.createResource(NS+constant[count]);\n\t\t \t \n\t\t QuerySolution soln = results1.nextSolution();\n\t\t Resource first = soln.getResource(headers[0].substring(1,headers[0].length()).trim());\n\t\t //Resource second = soln.getResource(headers[1].substring(1,headers[1].length()).trim());\n\t\t //Resource third = soln.getResource(headers[2].substring(1,headers[2].length()).trim());\n\t\t //Resource fourth = soln.getResource(headers[3].substring(1,headers[3].length()).trim());\n\t\t for(int i=0; i< constant.length; i++) {\n\t\t \t Resource Response = rdfssExample.createResource(NS+constant[i]);\n\t\t \t System.out.format(\"%10s %50s\",first, Response);\n\t\t \t System.out.println();\n\t\t\t\t\t //count++;\n\t\t }\n\t\t //System.out.format(\"%10s %50s\",first, Response);\n\t\t //System.out.format(\"%10s\",first);\n\t\t\t\t System.out.println();\n\t\t\t\t //count++;\n\t\t\t\t \n\t\t\t\t //System.out.println(count);\n\t\t \n\t\t }\n\t\t } finally {\n\t\t \t qe2.close();\n\t\t}\n\t\t\t \n\t\t}\t\t \n\t}", "IParser setServerBaseUrl(String theUrl);", "public XPathParser(java_cup.runtime.Scanner s) {super(s);}", "@org.junit.Test\n public void constrCompelemBaseuri3() {\n final XQuery query = new XQuery(\n \"declare base-uri \\\"http://www.example.com\\\"; fn:base-uri(element elem {})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "public void parseQuery(String queryString) {\r\n\t\t// call the methods\r\n\t\tgetSplitStrings(queryString);\r\n\t\tgetFile(queryString);\r\n\t\tgetBaseQuery(queryString);\r\n\t\tgetConditionsPartQuery(queryString);\r\n\t\tgetConditions(queryString);\r\n\t\tgetLogicalOperators(queryString);\r\n\t\tgetFields(queryString);\r\n\t\tgetOrderByFields(queryString);\r\n\t\tgetGroupByFields(queryString);\r\n\t\tgetAggregateFunctions(queryString);\r\n\t}", "private static String determineInputSparql(CommandLine optionLine, Map<String, String> prefixes)\n {\n String query = optionLine.getOptionValue(Environment.QUERY).trim(); //$NON-NLS-1$\n if (StringUtils.isEmpty(query)) {\n System.err.println(\"Input query is missing\"); //$NON-NLS-1$\n System.exit(1);\n }\n return appendPrefixes(query, prefixes);\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "IRI getBaseIRI();", "public SPARQLBooleanXMLParser() {\n\t\tsuper();\n\t}", "public void setSynBaseUrl(String synBaseUrl) {\r\n \tthis.synBaseUrl = synBaseUrl;\r\n }", "public String getSparqlEndPoint() {\n\t\treturn this.sparqlEndPointURL;\n\t}", "public Collection<URI> searchWithSPARQL(final String queryString)\n {\n if (DEBUG.SEARCH) Log.debug(\"searchWithSPARQL; queryString:\\n\" + Util.tags(queryString));\n \n final Collection<URI> resultSet = new ArrayList<URI>();\n final com.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \n if (DEBUG.SEARCH) Log.debug(\"QF created \" + Util.tag(query)\n + \"; memory=\" + Runtime.getRuntime().freeMemory()\n + \"\\n\" + query.toString().trim().replaceAll(\"\\n\\n\", \"\\n\"));\n\n final QueryExecution qe = QueryExecutionFactory.create(query, this); // 2nd arg is for Model or for FileManager?\n if (DEBUG.SEARCH) Log.debug(\"created QEF \" + qe + \"; memory=\" + Runtime.getRuntime().freeMemory());\n\n final ResultSet results = qe.execSelect();\n if (DEBUG.SEARCH) Log.debug(\"execSelect returned; memory=\" + Runtime.getRuntime().freeMemory());\n \n while (results.hasNext()) {\n final QuerySolution qs = results.nextSolution();\n if (DEBUG.SEARCH) {\n final String qss = qs.toString().replaceAll(\"<http://vue.tufts.edu\", \"...\"); // shorten debug output\n Log.debug(\"qSol \" + String.format(\"%.190s%s\", qss, qss.length() > 190 ? (\"...x\"+qss.length()) : \"\"));\n }\n if (false) {\n // debug debug all vars from query\n //Util.dumpIterator(qs.varNames());\n Iterator<String> vn = qs.varNames(); \n while (vn.hasNext()) {\n String v = vn.next();\n Log.debug(\"\\t\" + Util.tags(v) + \"=\" + Util.tags(qs.get(v)));\n }\n }\n try {\n resultSet.add(new URI(qs.getResource(\"rid\").getURI()));\n } catch (Throwable t) {\n Log.warn(\"handling QuerySolution \" + qs, t);\n }\n }\n qe.close();\n return resultSet;\n }", "public SolrQuery() {\n super(null);\n store = null;\n }", "public DefaultDocumentSource(String urlstring) throws IOException\n {\n super(null, urlstring);\n URL url = DataURLHandler.createURL(null, urlstring);\n con = createConnection(url);\n is = null;\n }", "void setBaseUri(String baseUri);", "public AuxRelations(String input, ArrayList<QueryToken> tokens)\n\t{\t\n\t\t// TODO KO@MO: This only finds one relation and then breaks, is it intended? If yes, document why, if no change please.\n\t\tfor(String str: aux_words)\n\t\t{\n\t\t\tif(input.contains(\" \"+str+\" \"))\n\t\t\t{\n\t\t\t\tlog.debug(\"found auxiliary relation \"+str+\" in input \\\"\"+input+'\"');\n\t\t\t\tthis.tokens = QueryModuleLibrary.mergeTokens(tokens, input,str, \"REL1\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\t\t\n\t\tthis.tokens=tokens;\n\t}", "public interface SPARQLService {\n // TODO: Create methods for at least CRUD \n}", "public final EObject entryRuleSparqlQuery() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSparqlQuery = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1718:2: (iv_ruleSparqlQuery= ruleSparqlQuery EOF )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1719:2: iv_ruleSparqlQuery= ruleSparqlQuery EOF\n {\n newCompositeNode(grammarAccess.getSparqlQueryRule()); \n pushFollow(FOLLOW_ruleSparqlQuery_in_entryRuleSparqlQuery3795);\n iv_ruleSparqlQuery=ruleSparqlQuery();\n\n state._fsp--;\n\n current =iv_ruleSparqlQuery; \n match(input,EOF,FOLLOW_EOF_in_entryRuleSparqlQuery3805); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public static Repository getSPARQLRepository(String endpoint) throws Exception {\n \tlogger.info(\"Loading SPARQL repository for endpoint \" + endpoint);\n return new SparqlRepositoryFactory(endpoint).loadRepository();\n }", "@Override\n public R visit(RDFLiteral n, A argu) {\n R _ret = null;\n n.sparqlString.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public void initialize(UimaContext context) throws ResourceInitializationException {\n super.initialize(context);\n // call init method to perform check of UIMA parameters and general init of other parameters\n this.init(this.newsQueries, this.wikiQueries, this.numOfQueries, this.queryLanguages);\n\n try {\n this.generateQueries();\n } catch (UIMAException | IOException e) {\n e.printStackTrace();\n }\n\n this.isInitializedForUima = true;\n }", "@Test\n public void testParseInput() {\n LOGGER.info(\"parseInput\");\n rdfEntityManager = new RDFEntityManager();\n LOGGER.info(\"oneTimeSetup\");\n CacheInitializer.initializeCaches();\n DistributedRepositoryManager.addRepositoryPath(\n \"InferenceRules\",\n System.getenv(\"REPOSITORIES_TMPFS\") + \"/InferenceRules\");\n DistributedRepositoryManager.clearNamedRepository(\"InferenceRules\");\n try {\n final File unitTestRulesPath = new File(\"data/test-rules-1.rule\");\n bufferedInputStream = new BufferedInputStream(new FileInputStream(unitTestRulesPath));\n LOGGER.info(\"processing input: \" + unitTestRulesPath);\n } catch (final FileNotFoundException ex) {\n throw new TexaiException(ex);\n }\n ruleParser = new RuleParser(bufferedInputStream);\n ruleParser.initialize(rdfEntityManager);\n final URI variableURI = new URIImpl(Constants.TEXAI_NAMESPACE + \"?test\");\n assertEquals(\"http://texai.org/texai/?test\", variableURI.toString());\n assertEquals(\"?test\", RDFUtility.formatURIAsTurtle(variableURI));\n List<Rule> rules;\n try {\n rules = ruleParser.Rules();\n for (final Rule rule : rules) {\n LOGGER.info(\"rule: \" + rule.toString());\n rule.cascadePersist(rdfEntityManager, null);\n }\n } catch (ParseException ex) {\n LOGGER.info(StringUtils.getStackTraceAsString(ex));\n fail(ex.getMessage());\n }\n Iterator<Rule> rules_iter = rdfEntityManager.rdfEntityIterator(\n Rule.class,\n null); // overrideContext\n while (rules_iter.hasNext()) {\n final Rule loadedRule = rules_iter.next();\n assertNotNull(loadedRule);\n\n // (\n // description \"if there is a room then it is likely that a table is in the room\"\n // context: texai:InferenceRuleTestContext\n // if:\n // ?situation-localized rdf:type cyc:Situation-Localized .\n // ?room rdf:type cyc:RoomInAConstruction .\n // ?situation-localized cyc:situationConstituents ?room .\n // then:\n // _:in-completely-situation-localized rdf:type texai:InCompletelySituationLocalized .\n // ?situation-localized texai:likelySubSituations _:in-completely-situation-localized .\n // _:table rdf:type cyc:Table_PieceOfFurniture .\n // _:table texai:in-ContCompletely ?room .\n // )\n\n assertEquals(\"(\\ndescription \\\"if there is a room then it is likely that a table is in the room\\\"\\ncontext: texai:InferenceRuleTestContext\\nif:\\n ?situation-localized rdf:type cyc:Situation-Localized .\\n ?room rdf:type cyc:RoomInAConstruction .\\n ?situation-localized cyc:situationConstituents ?room .\\nthen:\\n _:in-completely-situation-localized rdf:type texai:InCompletelySituationLocalized .\\n ?situation-localized texai:likelySubSituations _:in-completely-situation-localized .\\n _:table rdf:type cyc:Table_PieceOfFurniture .\\n _:table texai:in-ContCompletely ?room .\\n)\", loadedRule.toString());\n LOGGER.info(\"loadedRule:\\n\" + loadedRule);\n }\n CacheManager.getInstance().shutdown();\n try {\n if (bufferedInputStream != null) {\n bufferedInputStream.close();\n }\n } catch (final Exception ex) {\n LOGGER.info(StringUtils.getStackTraceAsString(ex));\n }\n rdfEntityManager.close();\n DistributedRepositoryManager.shutDown();\n }", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "public SPARQLQuerying(@NonNull SPARQLQueryingDelegate delegate) {\n this.delegate = delegate;\n }", "@RequestMapping(value = \"/queryrdf\", method = {RequestMethod.GET, RequestMethod.POST})\n public void queryRdf(@RequestParam(\"query\") final String query,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_QUERY_AUTH, required = false) String auth,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_CV, required = false) final String vis,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_INFER, required = false) final String infer,\n @RequestParam(value = \"nullout\", required = false) final String nullout,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_RESULT_FORMAT, required = false) final String emit,\n @RequestParam(value = \"padding\", required = false) final String padding,\n @RequestParam(value = \"callback\", required = false) final String callback,\n final HttpServletRequest request,\n final HttpServletResponse response) {\n SailRepositoryConnection conn = null;\n final Thread queryThread = Thread.currentThread();\n auth = StringUtils.arrayToCommaDelimitedString(provider.getUserAuths(request));\n final Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n\n @Override\n public void run() {\n log.debug(\"interrupting\");\n queryThread.interrupt();\n\n }\n }, QUERY_TIME_OUT_SECONDS * 1000);\n\n try {\n final ServletOutputStream os = response.getOutputStream();\n conn = repository.getConnection();\n\n final Boolean isBlankQuery = StringUtils.isEmpty(query);\n final ParsedOperation operation = QueryParserUtil.parseOperation(QueryLanguage.SPARQL, query, null);\n\n final Boolean requestedCallback = !StringUtils.isEmpty(callback);\n final Boolean requestedFormat = !StringUtils.isEmpty(emit);\n\n if (!isBlankQuery) {\n if (operation instanceof ParsedGraphQuery) {\n // Perform Graph Query\n final RDFHandler handler = new RDFXMLWriter(os);\n response.setContentType(\"text/xml\");\n performGraphQuery(query, conn, auth, infer, nullout, handler);\n } else if (operation instanceof ParsedTupleQuery) {\n // Perform Tuple Query\n TupleQueryResultHandler handler;\n\n if (requestedFormat && emit.equalsIgnoreCase(\"json\")) {\n handler = new SPARQLResultsJSONWriter(os);\n response.setContentType(\"application/json\");\n } else {\n handler = new SPARQLResultsXMLWriter(os);\n response.setContentType(\"text/xml\");\n }\n\n performQuery(query, conn, auth, infer, nullout, handler);\n } else if (operation instanceof ParsedUpdate) {\n // Perform Update Query\n performUpdate(query, conn, os, infer, vis);\n } else {\n throw new MalformedQueryException(\"Cannot process query. Query type not supported.\");\n }\n }\n\n if (requestedCallback) {\n os.print(\")\");\n }\n } catch (final Exception e) {\n log.error(\"Error running query\", e);\n throw new RuntimeException(e);\n } finally {\n if (conn != null) {\n try {\n conn.close();\n } catch (final RepositoryException e) {\n log.error(\"Error closing connection\", e);\n }\n }\n }\n\n timer.cancel();\n }", "public static void main( String[] args ) {\n\n Model m = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RDFS_INF);\n\n\n FileManager.get().readModel( m, owlFile );\n String myOntologyName = \"http://www.w3.org/2002/07/owl#\";\n String myOntologyNS = \"http://www.w3.org/2002/07/owl#\";\n////\n////\n// String rdfPrefix = \"PREFIX rdf: <\"+RDF.getURI()+\">\" ;\n// String myOntologyPrefix = \"PREFIX \"+myOntologyName+\": <\"+myOntologyNS+\">\" ;\n// String myOntologyPrefix1 = \"PREFIX \"+myOntologyName ;\n String myOntologyPrefix2 = \"prefix pizza: <http://www.w3.org/2002/07/owl#> \";\n//\n//\n//// String queryString = myOntologyPrefix + NL\n//// + rdfPrefix + NL +\n//// \"SELECT ?subject\" ;\n \n String queryString = rdfPrefix + myOntologyPrefix2 +\n// \t\t \"prefix pizza: <http://www.w3.org/2002/07/owl#> \"+ \n \t\t \"prefix rdfs: <\" + RDFS.getURI() + \"> \" +\n \t\t \"prefix owl: <\" + OWL.getURI() + \"> \" +\n// \t\t \"select ?o where {?s ?p ?o}\";\n \n//\t\t\t\t\t\t\"select ?s where {?s rdfs:label \"苹果\"@zh}\";\n \n// \"SELECT ?label WHERE { ?subject rdfs:label ?label }\" ;\n// \"SELECT DISTINCT ?predicate ?label WHERE { ?subject ?predicate ?object. ?predicate rdfs:label ?label .}\";\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"Italy\\\"@en}\" ;\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"苹果\\\"@zh}\" ;\n// \"SELECT DISTINCT ?s WHERE\" +\n// \"{?object rdfs:label \\\"水果\\\"@zh.\" +\n// \"?subject rdfs:subClassOf ?object.\" +\n// \"?subject rdfs:label ?s}\";\n //星号是转义字符,分号是转义字符\n\t\t\t\t\"SELECT DISTINCT ?e ?s WHERE {?entity a ?subject.?subject rdfs:subClassOf ?object.\"+\n \"?object rdfs:label \\\"富士苹果\\\"@zh.?entity rdfs:label ?e.?subject rdfs:label ?s}ORDER BY ?s\";\n \t\t\n\n \n \t\tcom.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \t\tQueryExecution qe = QueryExecutionFactory.create(query, m);\n \t\tcom.hp.hpl.jena.query.ResultSet results = qe.execSelect();\n\n \t\tResultSetFormatter.out(System.out, results, query);\n \t\tqe.close();\n\n// Query query = QueryFactory.create(queryString) ;\n\n query.serialize(new IndentedWriter(System.out,true)) ;\n System.out.println() ;\n\n\n\n QueryExecution qexec = QueryExecutionFactory.create(query, m) ;\n\n try {\n\n ResultSet rs = qexec.execSelect() ;\n\n\n for ( ; rs.hasNext() ; ){\n QuerySolution rb = rs.nextSolution() ;\n RDFNode y = rb.get(\"person\");\n System.out.print(\"name : \"+y+\"--- \");\n Resource z = (Resource) rb.getResource(\"person\");\n System.out.println(\"plus simplement \"+z.getLocalName());\n }\n }\n finally{\n qexec.close() ;\n }\n }", "public GetRepositoryConfigurationMethod(String url) {\r\n super(url);\r\n setParameter(\"ctype\", \"rdf\");\r\n }", "public void separateFileToQueries(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, File queriesFile, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath) {\n try {\n String allQueries = new String(Files.readAllBytes(Paths.get(queriesFile.getAbsolutePath())), Charset.defaultCharset());\n String[] allQueriesArr = allQueries.split(\"<top>\");\n\n for (String query : allQueriesArr) {\n if(query.equals(\"\")){\n continue;\n }\n String queryId = \"\", queryText = \"\", queryDescription = \"\";\n String[] lines = query.toString().split(\"\\n\");\n for (int i = 0; i < lines.length; i++){\n if(lines[i].contains(\"<num>\")){\n queryId = lines[i].substring(lines[i].indexOf(\":\") + 2);\n }\n else if(lines[i].contains(\"<title>\")){\n queryText = lines[i].substring(8);\n }\n else if(lines[i].contains(\"<desc>\")){\n i++;\n while(i < lines.length && !lines[i].equals(\"\")){\n queryDescription += lines[i];\n i++;\n }\n }\n }\n search(indexer, cityIndexer, ranker, queryText, withSemantic, chosenCities, citiesByTag, withStemming, saveInPath, queryId, queryDescription);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "public Query( String queryString ) {\r\n\tStringTokenizer tok = new StringTokenizer( queryString );\r\n\twhile ( tok.hasMoreTokens() ) {\r\n\t terms.add( tok.nextToken() );\r\n\t weights.add( new Double(1) );\r\n\t} \r\n }", "public AeBPWSXPathExpressionParser(IAeExpressionParserContext aParserContext)\r\n {\r\n super(aParserContext);\r\n }", "@SuppressWarnings(\"null\")\n\tpublic QueryParameter parseQuery(String queryString) {\n\t\t\n/*\n\t\t * extract the name of the file from the query. File name can be found after the\n\t\t * \"from\" clause.\n\t\t */\n\n\t\t/*\n\t\t * extract the order by fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"order by\" clause in the query, if at all\n\t\t * the order by clause exists. For eg: select city,winner,team1,team2 from\n\t\t * data/ipl.csv order by city from the query mentioned above, we need to extract\n\t\t * \"city\". Please note that we can have more than one order by fields.\n\t\t */\n\n\t\t/*\n\t\t * extract the group by fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"group by\" clause in the query, if at all\n\t\t * the group by clause exists. For eg: select city,max(win_by_runs) from\n\t\t * data/ipl.csv group by city from the query mentioned above, we need to extract\n\t\t * \"city\". Please note that we can have more than one group by fields.\n\t\t */\n\n\t\t /*\n\t\t * extract the selected fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"select\" clause followed by a space from\n\t\t * the query string. For eg: select city,win_by_runs from data/ipl.csv from the\n\t\t * query mentioned above, we need to extract \"city\" and \"win_by_runs\". Please\n\t\t * note that we might have a field containing name \"from_date\" or \"from_hrs\".\n\t\t * Hence, consider this while parsing.\n\t\t */\n\n\t\t/*\n\t\t * extract the conditions from the query string(if exists). for each condition,\n\t\t * we need to capture the following: 1. Name of field 2. condition 3. value\n\t\t * \n\t\t * For eg: select city,winner,team1,team2,player_of_match from data/ipl.csv\n\t\t * where season >= 2008 or toss_decision != bat\n\t\t * \n\t\t * here, for the first condition, \"season>=2008\" we need to capture: 1. Name of\n\t\t * field: season 2. condition: >= 3. value: 2008\n\t\t * \n\t\t * the query might contain multiple conditions separated by OR/AND operators.\n\t\t * Please consider this while parsing the conditions.\n\t\t * \n\t\t */\n\n\t\t /*\n\t\t * extract the logical operators(AND/OR) from the query, if at all it is\n\t\t * present. For eg: select city,winner,team1,team2,player_of_match from\n\t\t * data/ipl.csv where season >= 2008 or toss_decision != bat and city =\n\t\t * bangalore\n\t\t * \n\t\t * the query mentioned above in the example should return a List of Strings\n\t\t * containing [or,and]\n\t\t */\n\n\t\t/*\n\t\t * extract the aggregate functions from the query. The presence of the aggregate\n\t\t * functions can determined if we have either \"min\" or \"max\" or \"sum\" or \"count\"\n\t\t * or \"avg\" followed by opening braces\"(\" after \"select\" clause in the query\n\t\t * string. in case it is present, then we will have to extract the same. For\n\t\t * each aggregate functions, we need to know the following: 1. type of aggregate\n\t\t * function(min/max/count/sum/avg) 2. field on which the aggregate function is\n\t\t * being applied\n\t\t * \n\t\t * Please note that more than one aggregate function can be present in a query\n\t\t * \n\t\t * \n\t\t */\n\n\t\tString file = null;\n\t\tList<Restriction> restrictions = new ArrayList<Restriction>();\n\t\tList<String> logicalOperators = new ArrayList<String>();\n\t\tList<String> fields = new ArrayList<String>();;\n\t\tList<AggregateFunction> aggregateFunction = new ArrayList<AggregateFunction>();\n\t\tList<String> groupByFields = new ArrayList<String>();;\n\t\tList<String> orderByFields = new ArrayList<String>();;\n\t\tString baseQuery=null;\n\t\n\t\tfile = getFile(queryString);\n\n\t\t\n\t\tString[] conditions = getConditions(queryString);\n\t\tif(conditions!=null) {\n\t\tRestriction[] restriction = new Restriction[conditions.length];\n\t\t\n\t\tfor (int i = 0; i < conditions.length; i++) {\n\t\t\trestriction[i] = new Restriction();\n\t\t\t\n\t\t\tString operator=null;\n\t\t\tString value=null;\n\t\t\tString property=null;\n\t\t\t if(conditions[i].contains(\"<=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"<=\");\n\t\t\t\toperator=\"<=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\">=\")) {\n\t\t\t\tString[] split = conditions[i].split(\">=\");\n\t\t\t\toperator=\">=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\">\")) {\n\t\t\t\tString[] split = conditions[i].split(\">\");\n\t\t\t\toperator=\">\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"!=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"!=\");\n\t\t\t\toperator=\"!=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"=\");\n\t\t\t\toperator=\"=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t if(value.contains(\"'\")) {\n\t\t\t\t\t value= value.replaceAll(\"'\",\"\").trim();\n\t\t\t\t }\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"<\")) {\n\t\t\t\tString[] split = conditions[i].split(\"<\");\n\t\t\t\toperator=\"<\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\t \n\t\t\t\n\t\t\trestriction[i].setCondition(operator);\n\t\t\trestriction[i].setPropertyName(property);\n\t\t\trestriction[i].setPropertyValue(value);\n\t\t\trestrictions.add(restriction[i]);\n\n\t\t}\n\t\t}\n\t\n\t\tString[] operators = getLogicalOperators(queryString);\n\t\tif(operators!=null) {\n\t\tfor (String op : operators) {\n\t\t\tlogicalOperators.add(op);\n\t\t}\n\t\t}\n\t\t\n\t\tString[] filds = getFields(queryString);\n\t\tif(filds!=null) {\n\t\tfor (String field : filds) {\n\t\t\tfields.add(field);\n\t\t}\n\t\t}\n\t\t\n\t\tString[] aggregationVal = getAggregateFunctions(queryString);\n\t\tif(aggregationVal!=null) {\n\t\tAggregateFunction[] aggregation = new AggregateFunction[aggregationVal.length];\n\t\tfor (int i = 0; i < aggregationVal.length; i++) {\n\t\t\taggregation[i] = new AggregateFunction();\n\t\t\tString[] split = (aggregationVal[i].replace(\"(\", \" \")).split(\" \");\n\t\t\tSystem.out.println(split[0]);\n\t\t\tSystem.out.println(split[1].replace(\")\", \"\").trim());\n\t\t\t\n\t\t\taggregation[i].setFunction(split[0]);\n\t\t\taggregation[i].setField(split[1].replace(\")\", \"\").trim());\n\t\t\taggregateFunction.add(aggregation[i]);\n\n\t\t}\n\t\t}\n\t\t\n\t\t\t\n\t\t\n\t\tString[] groupBy = getGroupByFields(queryString);\n\t\tif(groupBy!=null) {\n\t\tfor (String group : groupBy) {\n\t\t\tgroupByFields.add(group);\n\t\t}\n\t\t}\n\t\n\t\tString[] orderBy = getOrderByFields(queryString);\n\t\tif(orderBy!=null) {\n\t\tfor (String order : orderBy) {\n\t\t\torderByFields.add(order);\n\t\t}\n\t\t}\n\t\tqueryParameter.setFile(file);\n\t\tif(restrictions.size()!=0) {\n\t\t\tqueryParameter.setRestrictions(restrictions);\n\t\t}\n\t\telse {\n\t\t\tqueryParameter.setRestrictions(null);\n\t\t}\n\t\tif(logicalOperators.size()!=0) {\n\t\tqueryParameter.setLogicalOperators(logicalOperators);\n\t\t}\n\t\telse {\n\t\t\tqueryParameter.setLogicalOperators(null);\n\t\t}\n\t\tbaseQuery=getBaseQuery(queryString);\n\t\t\n\t\tqueryParameter.setFields(fields);\n\t\tqueryParameter.setAggregateFunctions(aggregateFunction);\n\t\tqueryParameter.setGroupByFields(groupByFields);\n\t\tqueryParameter.setOrderByFields(orderByFields);\n\t\tqueryParameter.setBaseQuery(baseQuery.trim());\n\t\treturn queryParameter;\n\n\t}", "public CrossrefUnixrefSaxParser() {\n }", "public SyntaxParser(final String input, @NotNull final InstructionSet instructionSet,\n final int start, final int stop) {\n super(new SyntaxTokenStream(input, start, stop));\n this.tokens = new ArrayList<>();\n this.jumps = new ArrayList<>();\n this.references = new ArrayList<>();\n this.constants = new ArrayList<>();\n this.unresolvedJumps = new ArrayList<>();\n this.instructions = Set.of(instructionSet.getInstructions());\n }", "public static void printAllTriplesOfRepository(SailRepository rep) \n throws RepositoryException, MalformedQueryException, QueryEvaluationException {\n \n RepositoryConnection conn = rep.getConnection();\n \n String query = \"SELECT $s $p $o WHERE { $s $p $o }\"; \n \n TupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, query);\n TupleQueryResult result = tupleQuery.evaluate();\n\n while (result.hasNext()) {\n \n BindingSet bs = result.next();\n \n Value sVal = bs.getValue(\"s\");\n Value pVal = bs.getValue(\"p\");\n Value oVal = bs.getValue(\"o\");\n\n System.out.println(sVal.stringValue() + \" \" +\n pVal.stringValue() + \" \" + oVal.stringValue() ); \n } \n }", "private void init(Boolean genNewsQueries, Boolean genWikiQueries, Integer numOfQueries, String queryLanguages) {\n this.newsQueries = genNewsQueries;\n this.wikiQueries = genWikiQueries;\n this.numOfQueries = numOfQueries;\n this.queryLanguages = queryLanguages;\n this.currentQueryIndex = 0;\n this.isInitializedForUima = false;\n this.queriesGenerated = false;\n\n if (!genNewsQueries && !genWikiQueries)\n throw new IllegalArgumentException(\"Either PARAM_GEN_NEWS_QUERIES, PARAM_GEN_WIKI_QUERIES or both must be true!\");\n\n if (queryLanguages == null || queryLanguages.isEmpty())\n throw new IllegalArgumentException(\"Languages must not be null or empty!\");\n\n QueryStore.getInstance().reset();\n }", "private InputStream runSparqlQuery(String query) throws IOException {\n\t\ttry {\n\t\t\tString queryString = \"query=\" + URLEncoder.encode(query, \"UTF-8\")\n\t\t\t\t\t+ \"&format=json\";\n\t\t\tURL url = new URL(\"https://query.wikidata.org/sparql?\"\n\t\t\t\t\t+ queryString);\n\t\t\tHttpURLConnection connection = (HttpURLConnection) url\n\t\t\t\t\t.openConnection();\n\t\t\tconnection.setRequestMethod(\"GET\");\n\n\t\t\treturn connection.getInputStream();\n\t\t} catch (UnsupportedEncodingException | MalformedURLException e) {\n\t\t\tthrow new RuntimeException(e.getMessage(), e);\n\t\t}\n\t}", "public URI toIRI(\n ){\n String xri = toXRI();\n StringBuilder iri = new StringBuilder(xri.length());\n int xRef = 0;\n for(\n int i = 0, limit = xri.length();\n i < limit;\n i++\n ){\n char c = xri.charAt(i);\n if(c == '%') {\n iri.append(\"%25\");\n } else if (c == '(') {\n xRef++;\n iri.append(c);\n } else if (c == ')') {\n xRef--;\n iri.append(c);\n } else if (xRef == 0) {\n iri.append(c);\n } else if (c == '#') {\n iri.append(\"%23\");\n } else if (c == '?') {\n iri.append(\"%3F\");\n } else if (c == '/') {\n iri.append(\"%2F\");\n } else {\n iri.append(c);\n }\n }\n return URI.create(iri.toString());\n }", "@Test\n public void example13 () throws Exception {\n Map<String, Stmt> inputs = example2setup();\n conn.setNamespace(\"ex\", \"http://example.org/people/\");\n conn.setNamespace(\"ont\", \"http://example.org/ontology/\");\n String prefix = \"PREFIX ont: \" + \"<http://example.org/ontology/>\\n\";\n \n String queryString = \"select ?s ?p ?o where { ?s ?p ?o} \";\n TupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"SELECT result:\", inputs.values(),\n statementSet(tupleQuery.evaluate()));\n \n assertTrue(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"Alice\\\" } \").evaluate());\n assertFalse(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"NOT Alice\\\" } \").evaluate());\n \n queryString = \"construct {?s ?p ?o} where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery constructQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Construct result\",\n mapKeep(new String[] {\"an\"}, inputs).values(),\n statementSet(constructQuery.evaluate()));\n \n queryString = \"describe ?s where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery describeQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Describe result\",\n mapKeep(new String[] {\"an\", \"at\"}, inputs).values(),\n statementSet(describeQuery.evaluate()));\n }", "private List<Query> createSynonymQueries(SolrParams solrParams, List<String> alternateQueryTexts) {\n \n String nullsafeOriginalString = getQueryStringFromParser();\n \n List<Query> result = new ArrayList<>();\n for (String alternateQueryText : alternateQueryTexts) {\n if (alternateQueryText.equalsIgnoreCase(nullsafeOriginalString)) { \n // alternate query is the same as what the user entered\n continue;\n }\n \n synonymQueryParser.setString(alternateQueryText);\n try {\n result.add(synonymQueryParser.parse());\n } catch (SyntaxError e) {\n // TODO: better error handling - for now just bail out; ignore this synonym\n e.printStackTrace(System.err);\n }\n }\n \n return result;\n }", "public parser(Scanner s, SymbolFactory sf) {super(s,sf);}", "@Override\r\n\tpublic String buildURLQuery(ExecuteProcessRequest request)\r\n\t\t\tthrows OWSException {\n\t\treturn null;\r\n\t}", "public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }", "public static String parse( String input, File parentDirectory, String url )\n {\n List<Block> blocks = parseBlocks( input );\n\n EphemeralFileSystemAbstraction fs = new EphemeralFileSystemAbstraction();\n //TODO remove config when compiled plans are feature complete\n Map<Setting<?>, String> config = new HashMap<>();\n config.put( GraphDatabaseSettings.cypher_runtime, \"INTERPRETED\" );\n GraphDatabaseService database = new TestGraphDatabaseFactory().setFileSystem( fs ).newImpermanentDatabase(config);\n\n Connection conn = null;\n TestFailureException failure = null;\n try\n {\n DocsExecutionEngine engine = new DocsExecutionEngine( database );\n conn = DriverManager.getConnection( \"jdbc:hsqldb:mem:graphgist;shutdown=true\" );\n conn.setAutoCommit( true );\n return executeBlocks( blocks, new State( engine, database, conn, parentDirectory, url ) );\n }\n catch ( TestFailureException exception )\n {\n dumpStoreFiles( fs, failure = exception, \"before-shutdown\" );\n throw exception;\n }\n catch ( SQLException sqlException )\n {\n throw new RuntimeException( sqlException );\n }\n finally\n {\n database.shutdown();\n if ( failure != null )\n {\n dumpStoreFiles( fs, failure, \"after-shutdown\" );\n }\n if ( conn != null )\n {\n try\n {\n conn.close();\n }\n catch ( SQLException sqlException )\n {\n throw new RuntimeException( sqlException );\n }\n }\n }\n }", "public void setBaseUrl(java.lang.String mBaseUrl) {\n bugQuery.setBaseUrl(mBaseUrl);\n }", "public void startElement(String namespaceURI, String localName,\r\n\t\t\tString qName, Attributes atts) throws SAXException {\r\n\t\t// add namespace checks\r\n\t\tif (\"IN\".equalsIgnoreCase(localName)) {\r\n\t\t\tinOp = true;\r\n\t\t} else if (\"records\".equalsIgnoreCase(localName)) {\r\n\t\t\tthis.start = atts.getValue(\"start\");\r\n\t\t\tthis.limit = atts.getValue(\"limit\");\r\n\t\t} else if (\"header\".equals(localName)) {\r\n\t\t\theaderFlag = true;\r\n\t\t} else if (\"type\".equals(localName)) {\r\n\t\t\tif (headerFlag) {\r\n\t\t\t\tsearchFlag = true;\r\n\t\t\t}\r\n\t\t} else if (\"filter\".equalsIgnoreCase(localName)) {\r\n\t\t\t_filterType = 1;\r\n\t\t} else if (\"count\".equalsIgnoreCase(localName)) {\r\n\t\t\t_countType = 1;\r\n\t\t} else if (\"inventory\".equalsIgnoreCase(localName)) {\r\n\t\t\t_inventoryType = 1;\r\n\t\t}\r\n\r\n\t\telse if (\"source\".equalsIgnoreCase(localName)) {\r\n\t\t\tif (headerFlag) {\r\n\t\t\t\tif (atts != null) {\r\n\t\t\t\t\trequestSource = atts.getValue(\"resource\");\r\n\t\t\t\t}\r\n\t\t\t\t_sourceType = 1;\r\n\t\t\t}\r\n\t\t} else if (\"destination\".equalsIgnoreCase(localName)) {\r\n\t\t\tif (headerFlag) {\r\n\t\t\t\tif (atts != null) {\r\n\t\t\t\t\tdestinationSource = atts.getValue(\"resource\");\r\n\t\t\t\t\tif (destinationSource != null) {\r\n\t\t\t\t\t\tif (!dataSources.contains(destinationSource)) {\r\n\t\t\t\t\t\t\tString message = \"Error on line \"\r\n\t\t\t\t\t\t\t\t\t+ _locator.getLineNumber() + \", column \"\r\n\t\t\t\t\t\t\t\t\t+ _locator.getColumnNumber()\r\n\t\t\t\t\t\t\t\t\t+ \".The DataSource: \" + destinationSource\r\n\t\t\t\t\t\t\t\t\t+ \" cannot be found\";\r\n\t\t\t\t\t\t\terrorMessages.append(message);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// load the table for the current datasource and get\r\n\t\t\t\t\t\t\t// the legalname\r\n\t\t\t\t\t\t\trequestedDataSources.add(destinationSource);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t_destinationType = 1;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (localName.trim()\r\n\t\t\t\t\t.indexOf(EFGImportConstants.SERVICE_LINK_FILLER) > -1) {\r\n\t\t\t\tEFGContextListener.addToSet(localName.trim());\r\n\t\t\t}\r\n\t\t\tif (EFGContextListener.contains(localName.trim())) {// A federation\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// schema type\r\n\t\t\t\tif (_filterType == 1) {\r\n\t\t\t\t\t_type = 0;\r\n\t\t\t\t\tstack2.push(localName);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (_inventoryType == 1) {\r\n\t\t\t\t\t\tconditionalClause = localName;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface NSURIResolver extends URIResolver {\n \n /**\n * Called by the processor when it encounters\n * an xsl:include, xsl:import, or document() function and the \n * object can not be resolved by the its relative path.\n * (javax.xml.transform.URIResolver.resolve(String href, String base) \n * has returned null)\n * \n * \n * @param tartgetNamespace of the imported schema.\n *\n * @return A Source object, or null if the namespace cannot be resolved.\n * \n * @throws TransformerException if an error occurs when trying to\n * resolve the URI.\n */\n public Source resolveByNS(String tartgetNamespace)\n throws TransformerException;\n\n}", "public void setQueryString(String sQuery) {\n reposDataSourceFactory.setQuery(sQuery);\n }", "public URL makeFullUrl(String scrapedString, URL base);", "public Result resolve(String href, String base) throws XPathException {\n\n // System.err.println(\"Output URI Resolver (href='\" + href + \"', base='\" + base + \"')\");\n\n try {\n URI absoluteURI;\n if (href.length() == 0) {\n if (base==null) {\n throw new XPathException(\"The system identifier of the principal output file is unknown\");\n }\n absoluteURI= new URI(base);\n } else {\n absoluteURI= new URI(href);\n }\n if (!absoluteURI.isAbsolute()) {\n if (base==null) {\n throw new XPathException(\"The system identifier of the principal output file is unknown\");\n }\n URI baseURI = new URI(base);\n absoluteURI = baseURI.resolve(href);\n }\n\n if (\"file\".equals(absoluteURI.getScheme())) {\n return makeOutputFile(absoluteURI);\n\n } else {\n\n // See if the Java VM can conjure up a writable URL connection for us.\n // This is optimistic: I have yet to discover a URL scheme that it can handle \"out of the box\".\n // But it can apparently be achieved using custom-written protocol handlers.\n\n URLConnection connection = absoluteURI.toURL().openConnection();\n connection.setDoInput(false);\n connection.setDoOutput(true);\n connection.connect();\n OutputStream stream = connection.getOutputStream();\n StreamResult result = new StreamResult(stream);\n result.setSystemId(absoluteURI.toASCIIString());\n return result;\n }\n } catch (URISyntaxException err) {\n throw new XPathException(\"Invalid syntax for base URI\", err);\n } catch (IllegalArgumentException err2) {\n throw new XPathException(\"Invalid URI syntax\", err2);\n } catch (MalformedURLException err3) {\n throw new XPathException(\"Resolved URL is malformed\", err3);\n } catch (UnknownServiceException err5) {\n throw new XPathException(\"Specified protocol does not allow output\", err5);\n } catch (IOException err4) {\n throw new XPathException(\"Cannot open connection to specified URL\", err4);\n }\n }", "public PseudoQuery() {\r\n\t}", "public parser(Scanner s) {super(s);}", "@Override\n public Source resolve(String href, String base) throws TransformerException\n {\n\tif (!href.isEmpty() && URI.create(href).isAbsolute())\n\t{\n\t if (log.isDebugEnabled()) log.debug(\"Resolving URI: {} against base URI: {}\", href, base);\n\t URI uri = URI.create(base).resolve(href);\n return resolve(uri);\n\t}\n\telse\n\t{\n\t if (log.isDebugEnabled()) log.debug(\"Stylesheet self-referencing its doc - let the processor handle resolving\");\n\t return null;\n\t}\n }", "public void createQuery(String s) throws HibException;", "@Override\r\n public Observable<Statement> parse(Reader input) {\n return null;\r\n }", "public URI toAnyURI(\n ){\n return toIRI();\n }", "public Parser() {\n\t\tpopulateMaps();\n\t}", "public SintaxAnalysis(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public DefaultDocumentSource(URL url) throws IOException\n {\n super(url);\n con = createConnection(url);\n is = null;\n }", "public static void main(String... args) throws IOException {\n BasicConfigurator.configure();\n\n // Check if the arguments are missing\n if (args.length < 1)\n throw new IllegalArgumentException(\"The input must be provided as follows: [--config=PATH/TO/settings.config] notaql_query\");\n\n \n // Load the config\n if (args[0].startsWith(\"--config=\")) {\n loadConfig(args[0].substring(9));\n }\n\n \n // Load the notaql_query\n final StringBuilder sbNotaqlQuery = new StringBuilder();\n for(int i = (propertiesLoaded ? 1 : 0); i < args.length; i++) {\n sbNotaqlQuery.append(args[i]);\n if(i < args.length-1)\n sbNotaqlQuery.append(\" \");\n }\n\n \n // Pass the notaql_query to the evaluator-method\n evaluate(sbNotaqlQuery.toString());\n }", "public void setQuery (String q)\n\t throws QueryParseException\n {\n\n\tthis.q = new Query ();\n\tthis.q.parse (q);\n\n\tthis.badQuery = false;\n\tthis.exp = null;\n\n\tthis.checkFrom ();\n\n }", "public static String removeSparqlComments(String query) {\n\t\treturn query.replaceAll(\"(?m)^\\\\s*#.*?$\", \"\");\n\t}", "@Override\r\n public URI getBaseUri() {\n try{\r\n return new URI(\"http://localhost:8080/app/jpa-rs/\");\r\n } catch (URISyntaxException e){\r\n return null;\r\n }\r\n }", "public void startDocument() throws SAXException {\r\n\t\terrorMessages = new StringBuilder();\r\n\r\n\t\t// Get all the data sources in our Database\r\n\t\tEFGDataSourceHelperInterface dsHelper =\r\n\t\t\tEFGSpringFactory.getDatasourceHelper();\r\n\t\t\r\n\t\tEFGDisplayObjectList lists = dsHelper.getDataSourceNames();\r\n\t\tIterator iter = lists.getIterator();\r\n\r\n\t\tdataSources = new ArrayList();\r\n\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tEFGDisplayObject datasource = (EFGDisplayObject) iter.next();\r\n\t\t\tString str = datasource.getDatasourceName();\r\n\t\t\tdataSources.add(str);\r\n\t\t}\r\n\r\n\t\trequestedDataSources = new LinkedList();\r\n\r\n\t\tstack = new Stack();\r\n\t\tstack2 = new Stack();\r\n\r\n\t\tinStack = new Stack();\r\n\t\t/*\r\n\t\t * holds the contents of the list of elements in the IN operator e.g\r\n\t\t * <IN> <list...> <genus>Mechanitis</genus> <genus>Greta</genus>\r\n\t\t * ...... </list> </IN>\r\n\t\t */\r\n\r\n\t\t// used to get the start and limit attributes of a record element\r\n\t\tstart = \"0\";\r\n\t\tlimit = \"0\";\r\n\r\n\t\t_countType = -1; // signifies that we are processing a count element.\r\n\t\t_sourceType = 0; // signifies that we are processing a source\r\n\t\t\t\t\t\t\t// element.\r\n\t\t_destinationType = 0; // signifies that we are processing a\r\n\t\t\t\t\t\t\t\t// destination element\r\n\t\t_filterType = 0; // signifies that we are processing a filter element\r\n\t\t_inventoryType = 0; // signifies that we are processing an inventory\r\n\t\t\t\t\t\t\t// element\r\n\r\n\t\t_type = -1; // signifies that we are processing a DiGIR search type\r\n\t\tERROR_CODE = 0; // set to -1 if Error occurs\r\n\t\tsearchFlag = false; // We are processing a search element\r\n\t\theaderFlag = true; // we are processing a header\r\n\t\tinOp = false; // true if we see an IN operator\r\n\t\tinList = new EFGQueryList(); // Will hold a list of searchable type\r\n\t\t\t\t\t\t\t\t\t\t// when an IN operator is seen\r\n\t}", "public Query(String queryString) {\n parseQuery(queryString);\n }", "@Override\n public Source resolve(String href, String base)\n throws TransformerException {\n\n if (isReference()) {\n return getRef().resolve(href, base);\n }\n\n dieOnCircularReference();\n\n SAXSource source = null;\n\n String uri = removeFragment(href);\n\n log(\"resolve: '\" + uri + \"' with base: '\" + base + \"'\", Project.MSG_DEBUG);\n\n source = (SAXSource) getCatalogResolver().resolve(uri, base);\n\n if (source == null) {\n log(\"No matching catalog entry found, parser will use: '\"\n + href + \"'\", Project.MSG_DEBUG);\n //\n // Cannot return a null source, because we have to call\n // setEntityResolver (see setEntityResolver javadoc comment)\n //\n source = new SAXSource();\n URL baseURL;\n try {\n if (base == null) {\n baseURL = FILE_UTILS.getFileURL(getProject().getBaseDir());\n } else {\n baseURL = new URL(base);\n }\n URL url = uri.isEmpty() ? baseURL : new URL(baseURL, uri);\n source.setInputSource(new InputSource(url.toString()));\n } catch (MalformedURLException ex) {\n // At this point we are probably in failure mode, but\n // try to use the bare URI as a last gasp\n source.setInputSource(new InputSource(uri));\n }\n }\n\n setEntityResolver(source);\n return source;\n }", "public abstract void parseStatements(\n\t\tParser parser,\n\t\tCompilationUnitDeclaration unit);", "public synchronized void init() throws IOException\n {\n parserIn = new PipedOutputStream();\n PipedInputStream in = new PipedInputStream();\n parserIn.connect( in );\n antlrSchemaConverterLexer lexer = new antlrSchemaConverterLexer( in );\n parser = new antlrSchemaConverterParser( lexer );\n }", "public InternalBlazegraphQueryHandler(){\n\t\tFile ieee8500 = new File(\"ieee13.xml\");\n \n\t\ttry {\n//\t\t\tFile journal = File.createTempFile(\"bigdata\", \".jnl\");\n//\t\t\tfinal String CIF = \"http://iec.ch/TC57/2012/CIM-schema-cim16#\";\n//\t\t\tfinal String modelID = \"_676B0EA4-162F-4D4A-8FDD-B5FB7C2B7270\";\n//\t journal.deleteOnExit();\n//\t final Properties properties = new Properties();\n//\t properties.setProperty(BigdataSail.Options.FILE, journal\n//\t .getAbsolutePath());\n//\t \n//\t // instantiate a sail\n//\t BigdataSail sail = new BigdataSail(properties);\n//\t repo = new BigdataSailRepository(sail);\n//\t repo.initialize();\n//\n//\t con = repo.getConnection();\n//\t \n//\t String idQuery = \"SELECT ?x WHERE {<\"+CIF+modelID+\"> ?p ?x}\";\n//\t TupleQuery tupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, idQuery);\n//\t TupleQueryResult result = tupleQuery.evaluate();\n//\t if(!result.hasNext()) {\n//\t \t System.out.println(\"ABOUT TO LOAD\");\n//\t \t con.add(ieee8500, CIF, RDFFormat.RDFXML);\n//\t \t System.out.println(\"LOADED\");\n//\t }\n//\t \n//\t con.close();\n \n \n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void gerarRDF() throws SenseRDFException;", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "private void init() {\n\t\tthis.xpath = XPathFactory.newInstance().newXPath();\n\t\tthis.xpath.setNamespaceContext(new XPathNSContext());\n\t}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}" ]
[ "0.54429656", "0.5373587", "0.4996742", "0.49618423", "0.49618047", "0.48665795", "0.48391676", "0.48264715", "0.47948122", "0.47638422", "0.4719335", "0.47177625", "0.47127715", "0.4681459", "0.4655066", "0.46010706", "0.4598608", "0.4590565", "0.45861548", "0.4585318", "0.45725867", "0.45474547", "0.45367366", "0.45198596", "0.4515816", "0.44924527", "0.44746616", "0.4468726", "0.44199288", "0.44174662", "0.43969595", "0.4369691", "0.4362495", "0.435911", "0.43522745", "0.43272188", "0.43215722", "0.4288708", "0.42860714", "0.42856935", "0.42823002", "0.42733365", "0.42430392", "0.4239078", "0.42274365", "0.42250827", "0.4223068", "0.4217322", "0.4201915", "0.41884223", "0.41882372", "0.4180972", "0.41794068", "0.41751087", "0.41614357", "0.41488627", "0.41446155", "0.41285053", "0.4111554", "0.41014308", "0.4098337", "0.4096309", "0.40933096", "0.40825522", "0.40752319", "0.40732855", "0.40666837", "0.40627852", "0.4060654", "0.40524378", "0.4047385", "0.40461755", "0.4045926", "0.40413514", "0.40375155", "0.40323204", "0.40320536", "0.40292457", "0.4027405", "0.40240836", "0.40234238", "0.40214565", "0.40003955", "0.3999855", "0.39976597", "0.39960685", "0.39953497", "0.39953497", "0.39953497", "0.39953497", "0.39953497", "0.39953497", "0.39953497", "0.39953497", "0.39953497", "0.39951152", "0.39936927", "0.39936927", "0.39936927", "0.39936927" ]
0.52255094
2
Create contents of the window.
protected void createContents() { register Register = new register(); RegisterDAOImpl RDI = new RegisterDAOImpl(); load = new Shell(); load.setSize(519, 370); load.setText("XX\u533B\u9662\u6302\u53F7\u7CFB\u7EDF"); load.setLayout(new FormLayout()); Label name = new Label(load, SWT.NONE); FormData fd_name = new FormData(); fd_name.top = new FormAttachment(20); fd_name.left = new FormAttachment(45, -10); name.setLayoutData(fd_name); name.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); name.setText("\u59D3\u540D"); Label subjet = new Label(load, SWT.NONE); FormData fd_subjet = new FormData(); fd_subjet.left = new FormAttachment(44); fd_subjet.top = new FormAttachment(50); subjet.setLayoutData(fd_subjet); subjet.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); subjet.setText("\u79D1\u5BA4"); Label doctor = new Label(load, SWT.NONE); FormData fd_doctor = new FormData(); fd_doctor.top = new FormAttachment(60); fd_doctor.left = new FormAttachment(45, -10); doctor.setLayoutData(fd_doctor); doctor.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); doctor.setText("\u533B\u751F"); nametext = new Text(load, SWT.BORDER); nametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND)); nametext.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); FormData fd_nametext = new FormData(); fd_nametext.right = new FormAttachment(50, 94); fd_nametext.top = new FormAttachment(20); fd_nametext.left = new FormAttachment(50); nametext.setLayoutData(fd_nametext); Label titlelabel = new Label(load, SWT.NONE); FormData fd_titlelabel = new FormData(); fd_titlelabel.right = new FormAttachment(43, 176); fd_titlelabel.top = new FormAttachment(10); fd_titlelabel.left = new FormAttachment(43); titlelabel.setLayoutData(fd_titlelabel); titlelabel.setFont(SWTResourceManager.getFont("楷体", 18, SWT.BOLD)); titlelabel.setText("XX\u533B\u9662\u95E8\u8BCA\u6302\u53F7"); Label label = new Label(load, SWT.NONE); FormData fd_label = new FormData(); fd_label.top = new FormAttachment(40); fd_label.left = new FormAttachment(44, -10); label.setLayoutData(fd_label); label.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); label.setText("\u6302\u53F7\u8D39"); costtext = new Text(load, SWT.BORDER); costtext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND)); costtext.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); FormData fd_costtext = new FormData(); fd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT); fd_costtext.top = new FormAttachment(40); fd_costtext.left = new FormAttachment(50); costtext.setLayoutData(fd_costtext); Label type = new Label(load, SWT.NONE); FormData fd_type = new FormData(); fd_type.top = new FormAttachment(30); fd_type.left = new FormAttachment(45, -10); type.setLayoutData(fd_type); type.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); type.setText("\u7C7B\u578B"); Combo typecombo = new Combo(load, SWT.NONE); typecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND)); typecombo.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); FormData fd_typecombo = new FormData(); fd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT); fd_typecombo.top = new FormAttachment(30); fd_typecombo.left = new FormAttachment(50); typecombo.setLayoutData(fd_typecombo); typecombo.setText("\u95E8\u8BCA\u7C7B\u578B"); typecombo.add("普通门诊",0); typecombo.add("专家门诊",1); MySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext); typecombo.addSelectionListener(ms3); Combo doctorcombo = new Combo(load, SWT.NONE); doctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND)); doctorcombo.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); FormData fd_doctorcombo = new FormData(); fd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT); fd_doctorcombo.top = new FormAttachment(60); fd_doctorcombo.left = new FormAttachment(50); doctorcombo.setLayoutData(fd_doctorcombo); doctorcombo.setText("\u9009\u62E9\u533B\u751F"); Combo subject = new Combo(load, SWT.NONE); subject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND)); subject.setFont(SWTResourceManager.getFont("微软雅黑", 12, SWT.NORMAL)); fd_subjet.right = new FormAttachment(subject, -6); fd_subjet.top = new FormAttachment(subject, -1, SWT.TOP); FormData fd_subject = new FormData(); fd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT); fd_subject.top = new FormAttachment(50); fd_subject.left = new FormAttachment(50); subject.setLayoutData(fd_subject); subject.setText("\u79D1\u5BA4\uFF1F"); subject.add("神经内科", 0); subject.add("呼吸科", 1); subject.add("泌尿科", 2); subject.add("放射科", 3); subject.add("五官", 4); MySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl); subject.addSelectionListener(myselection); MySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI); doctorcombo.addSelectionListener(ms2); Button surebutton = new Button(load, SWT.NONE); FormData fd_surebutton = new FormData(); fd_surebutton.top = new FormAttachment(70); fd_surebutton.left = new FormAttachment(44); surebutton.setLayoutData(fd_surebutton); surebutton.setFont(SWTResourceManager.getFont("楷体", 12, SWT.BOLD)); surebutton.setText("\u786E\u5B9A"); surebutton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { Register register = new Register(); PatientDAOImpl patientdaoimpl = new PatientDAOImpl(); /* registerdaoimpl.Save(Register);*/ PatientInfo patientinfo = null; patientinfo = patientdaoimpl.findByname(nametext.getText()); if(patientinfo.getId() > 0 ){ MessageBox messagebox = new MessageBox(load); messagebox.setMessage("挂号成功!"); messagebox.open(); } else{ MessageBox messagebox = new MessageBox(load); messagebox.setMessage("此用户不存在,请先注册"); messagebox.open(); load.dispose(); register.open(); } } }); Button registerbutton = new Button(load, SWT.NONE); FormData fd_registerbutton = new FormData(); fd_registerbutton.top = new FormAttachment(70); fd_registerbutton.left = new FormAttachment(53); registerbutton.setLayoutData(fd_registerbutton); registerbutton.setFont(SWTResourceManager.getFont("楷体", 12, SWT.BOLD)); registerbutton.setText("\u6CE8\u518C"); registerbutton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { Register register = new Register(); load.close(); register.open(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "void createWindow();", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tnum1 = new Text(shell, SWT.BORDER);\n\t\tnum1.setBounds(32, 51, 112, 19);\n\t\t\n\t\tnum2 = new Text(shell, SWT.BORDER);\n\t\tnum2.setBounds(32, 120, 112, 19);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setBounds(32, 31, 92, 14);\n\t\tlblNewLabel.setText(\"First Number:\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(32, 100, 112, 14);\n\t\tlblNewLabel_1.setText(\"Second Number: \");\n\t\t\n\t\tfinal Label answer = new Label(shell, SWT.NONE);\n\t\tanswer.setBounds(35, 204, 60, 14);\n\t\tanswer.setText(\"Answer:\");\n\t\t\n\t\tButton plusButton = new Button(shell, SWT.NONE);\n\t\tplusButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint number1, number2;\n\t\t\t\ttry {\n\t\t\t\t\tnumber1 = Integer.parseInt(num1.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnumber2 = Integer.parseInt(num2.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint ans = number1 + number2;\n\t\t\t\tanswer.setText(\"Answer: \" + ans);\n\t\t\t}\n\t\t});\n\t\tplusButton.setBounds(29, 158, 56, 28);\n\t\tplusButton.setText(\"+\");\n\t\t\n\t\t\n\n\t}", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(764, 551);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.NONE);\n\t\tmntmFile.setText(\"File...\");\n\t\t\n\t\tMenuItem mntmEdit = new MenuItem(menu, SWT.NONE);\n\t\tmntmEdit.setText(\"Edit\");\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite.setLayout(null);\n\t\t\n\t\tGroup grpDirectorio = new Group(composite, SWT.NONE);\n\t\tgrpDirectorio.setText(\"Directorio\");\n\t\tgrpDirectorio.setBounds(10, 86, 261, 387);\n\t\t\n\t\tGroup grpListadoDeAccesos = new Group(composite, SWT.NONE);\n\t\tgrpListadoDeAccesos.setText(\"Listado de Accesos\");\n\t\tgrpListadoDeAccesos.setBounds(277, 86, 477, 387);\n\t\t\n\t\tLabel label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 479, 744, 2);\n\t\t\n\t\tButton btnNewButton = new Button(composite, SWT.NONE);\n\t\tbtnNewButton.setBounds(638, 491, 94, 28);\n\t\tbtnNewButton.setText(\"New Button\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(composite, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(538, 491, 94, 28);\n\t\tbtnNewButton_1.setText(\"New Button\");\n\t\t\n\t\tToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar.setBounds(10, 10, 744, 20);\n\t\t\n\t\tToolItem tltmAccion = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion.setText(\"Accion 1\");\n\t\t\n\t\tToolItem tltmAccion_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion_1.setText(\"Accion 2\");\n\t\t\n\t\tToolItem tltmRadio = new ToolItem(toolBar, SWT.RADIO);\n\t\ttltmRadio.setText(\"Radio\");\n\t\t\n\t\tToolItem tltmItemDrop = new ToolItem(toolBar, SWT.DROP_DOWN);\n\t\ttltmItemDrop.setText(\"Item drop\");\n\t\t\n\t\tToolItem tltmCheckItem = new ToolItem(toolBar, SWT.CHECK);\n\t\ttltmCheckItem.setText(\"Check item\");\n\t\t\n\t\tCoolBar coolBar = new CoolBar(composite, SWT.FLAT);\n\t\tcoolBar.setBounds(10, 39, 744, 30);\n\t\t\n\t\tCoolItem coolItem_1 = new CoolItem(coolBar, SWT.NONE);\n\t\tcoolItem_1.setText(\"Accion 1\");\n\t\t\n\t\tCoolItem coolItem = new CoolItem(coolBar, SWT.NONE);\n\n\t}", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}", "private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}", "public void createWindow(){\n JFrame frame = new JFrame(\"Baser Aps sick leave prototype\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(screenSize.width,screenSize.height);\n frame.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\n /**\n * Setting up the main layout\n */\n Container allContent = frame.getContentPane();\n allContent.setLayout(new BorderLayout()); //main layout is BorderLayout\n\n /**\n * Stuff in the content pane\n */\n JButton button = new JButton(\"Press\");\n JTextPane text = new JTextPane();\n text.setText(\"POTATO TEST\");\n text.setEditable(false);\n JMenuBar menuBar = new JMenuBar();\n JMenu file = new JMenu(\"File\");\n JMenu help = new JMenu(\"Help\");\n JMenuItem open = new JMenuItem(\"Open...\");\n JMenuItem saveAs = new JMenuItem(\"Save as\");\n open.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {\n fileChooser.showOpenDialog(frame);\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n\n }\n });\n file.add(open);\n file.add(saveAs);\n menuBar.add(file);\n menuBar.add(help);\n\n allContent.add(button, LINE_START); // Adds Button to content pane of frame at position LINE_START\n allContent.add(text, LINE_END); // Adds the text to the frame, at position LINE_END\n allContent.add(menuBar, PAGE_START);\n\n\n\n frame.setVisible(true);\n }", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}", "private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }", "public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}", "private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tLabel lblUsername = new Label(shell, SWT.NONE);\n\t\tlblUsername.setBounds(73, 30, 55, 15);\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\tLabel lblPassword = new Label(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(73, 78, 55, 15);\n\t\t\n\t\ttxtUsername = new Text(shell, SWT.BORDER);\n\t\ttxtUsername.setText(\"lisa\");\n\t\ttxtUsername.setBounds(139, 24, 209, 21);\n\t\t\n\t\ttxtPassword = new Text(shell, SWT.BORDER);\n\t\ttxtPassword.setText(\"password1\");\n\t\ttxtPassword.setBounds(139, 72, 209, 21);\n\t\t\n\t\tButton btnLogin = new Button(shell, SWT.NONE);\n\t\tbtnLogin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLogin.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tString usrname = txtUsername.getText();\n\t\t\t\tString usrpass = txtPassword.getText();\n\t\t\t\t\n\t\t\t\t// Call authenticate user credentials through authentication RMI server\n\t\t\t\tLoginInterface login;\n\t\t\t\ttry{\n\t\t\t\t\tlogin = (LoginInterface)Naming.lookup(\"rmi://localhost/login\");\n\t\t\t\t\t\n\t\t\t\t\tboolean authenticated = login.authenticate(usrname, usrpass);\n\t\t\t\t\tif(authenticated){\n\t\t\t\t\t\tSystem.out.println(\"User authenticated.\");\n\t\t\t\t\t\tclose();\n\n\t\t\t\t\t\tevaluator.EvaluatorClient.main(null);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t\tlblMsgOut.setText(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}catch(Exception e2){\n\t\t\t\t\tSystem.out.println(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t\tlblMsgOut.setText(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(272, 118, 75, 25);\n\t\tbtnLogin.setText(\"Login\");\n\t\t\n\t\tlblMsgOut = new Label(shell, SWT.BORDER | SWT.WRAP);\n\t\tlblMsgOut.setBounds(10, 174, 414, 77);\n\t\tlblMsgOut.setText(\"Output:\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(1200, 1100);\n\t\tshell.setText(\"Zagreb Montaža d.o.o\");\n\n\t\tfinal Composite cmpMenu = new Composite(shell, SWT.NONE);\n\t\tcmpMenu.setBackground(SWTResourceManager.getColor(119, 136, 153));\n\t\tcmpMenu.setBounds(0, 0, 359, 1061);\n\t\t\n\t\tFormToolkit formToolkit = new FormToolkit(Display.getDefault());\n\t\tfinal Section sctnCalculator = formToolkit.createSection(cmpMenu, Section.TWISTIE | Section.TITLE_BAR);\n\t\tsctnCalculator.setExpanded(false);\n\t\tsctnCalculator.setBounds(10, 160, 339, 23);\n\t\tformToolkit.paintBordersFor(sctnCalculator);\n\t\tsctnCalculator.setText(\"Kalkulator temperature preddgrijavanja\");\n\n\t\tfinal Section sctn10112ce = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112ce.setBounds(45, 189, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112ce);\n\t\tsctn10112ce.setText(\"1011-2 CE\");\n\t\tsctn10112ce.setVisible(false);\n\n\t\tfinal Section sctn10112cet = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112cet.setBounds(45, 218, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112cet);\n\t\tsctn10112cet.setText(\"1011-2 CET\");\n\t\tsctn10112cet.setVisible(false);\n\n\t\tfinal Section sctnAws = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctnAws.setBounds(45, 247, 304, 23);\n\t\tformToolkit.paintBordersFor(sctnAws);\n\t\tsctnAws.setText(\"AWS\");\n\t\tsctnAws.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112ce = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112ce.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112ce.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112cet = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112cet.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112cet.setVisible(false);\n\t\t\n\t\tfinal Composite compositeAws = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcompositeAws.setBounds(365, 0, 829, 1061);\n\t\tcompositeAws.setVisible(false);\n\t\t\n\t\tsctnCalculator.addExpansionListener(new IExpansionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t\tif (sctnCalculator.isExpanded() == false) {\n\t\t\t\t\tsctn10112ce.setVisible(true);\n\t\t\t\t\tsctn10112cet.setVisible(true);\n\t\t\t\t\tsctnAws.setVisible(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tsctnAws.setVisible(false);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tsctn10112ce.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112ce.isExpanded() == true) {\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112ce(composite10112ce, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctn10112cet.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112cet.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112cet(composite10112cet, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctnAws.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctnAws.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tnew FAws(compositeAws, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t}\n\t\t});\n\t}", "public Container createContentPane()\r\n\t{\r\n\t\t//add items to lvl choice\r\n\t\tfor(int g=1; g<21; g++)\r\n\t\t{\r\n\t\t\tcharLvlChoice.addItem(String.valueOf(g));\r\n\t\t}\r\n\r\n\t\t//add stuff to panels\r\n\t\tinputsPanel.setLayout(new GridLayout(2,2,3,3));\r\n\t\tdisplayPanel.setLayout(new GridLayout(1,1,8,8));\r\n\t\tinputsPanel.add(runButton);\r\n\t\tinputsPanel.add(clearButton);\r\n\t\t\ttimesPanel.add(timesLabel);\r\n\t\t\ttimesPanel.add(runTimesField);\r\n\t\tinputsPanel.add(timesPanel);\r\n\t\t\tlevelPanel.add(levelLabel);\r\n\t\t\tlevelPanel.add(charLvlChoice);\r\n\t\tinputsPanel.add(levelPanel);\r\n\t\t\trunTimesField.setText(\"1\");\r\n\t\tdisplay.setEditable(false);\r\n\r\n\t\trunButton.addActionListener(this);\r\n\t\tclearButton.addActionListener(this);\r\n\r\n\t\tdisplay.setBackground(Color.black);\r\n\t\tdisplay.setForeground(Color.white);\r\n\r\n\t\tsetTabsAndStyles(display);\r\n\t\tdisplay = addTextToTextPane();\r\n\t\t\tJScrollPane scrollPane = new JScrollPane(display);\r\n\t\t\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\t\tscrollPane.setPreferredSize(new Dimension(500, 200));\r\n\t\tdisplayPanel.add(scrollPane);\r\n\r\n\t\t//create Container and set attributes\r\n\t\tContainer c = getContentPane();\r\n\t\t\tc.setLayout(new BorderLayout());\r\n\t\t\tc.add(inputsPanel, BorderLayout.NORTH);\r\n\t\t\tc.add(displayPanel, BorderLayout.CENTER);\r\n\r\n\t\treturn c;\r\n\t}", "public void makeWindow(Container pane)\r\n\t{\r\n\t\tboard.display(pane, fieldArray);\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}", "private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(new Point(500, 360));\n\t\tshell.setMinimumSize(new Point(500, 360));\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setText(\"欢迎 \"+user.getName()+\" 同学使用学生成绩管理系统\");\n\t\tnew Label(shell, SWT.NONE);\n\t\t\n\t\tComposite compositeStdData = new Composite(shell, SWT.NONE);\n\t\tcompositeStdData.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdData = new GridLayout(2, false);\n\t\tgl_compositeStdData.verticalSpacing = 15;\n\t\tcompositeStdData.setLayout(gl_compositeStdData);\n\t\t\n\t\tLabel labelStdData = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdData.setAlignment(SWT.CENTER);\n\t\tlabelStdData.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdData.setText(\"成绩数据\");\n\t\t\n\t\tLabel labelStdDataNum = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataNum.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataNum.setText(\"学号:\");\n\t\t\n\t\ttextStdDataNum = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataNum.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataName.setText(\"姓名:\");\n\t\t\n\t\ttextStdDataName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataLine = new Label(compositeStdData, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabelStdDataLine.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdDataLine.setText(\"New Label\");\n\t\t\n\t\tLabel labelCourseName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelCourseName.setText(\"课程名\");\n\t\t\n\t\tLabel labelScore = new Label(compositeStdData, SWT.NONE);\n\t\tlabelScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelScore.setText(\"成绩\");\n\t\t\n\t\ttextCourseName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\ttextScore = new Text(compositeStdData, SWT.BORDER);\n\t\ttextScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataFill = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataFill.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tnew Label(compositeStdData, SWT.NONE);\n\t\t\n\t\tComposite compositeStdOp = new Composite(shell, SWT.NONE);\n\t\tcompositeStdOp.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdOp = new GridLayout(1, false);\n\t\tgl_compositeStdOp.verticalSpacing = 15;\n\t\tcompositeStdOp.setLayout(gl_compositeStdOp);\n\t\t\n\t\tLabel labelStdOP = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOP.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));\n\t\tlabelStdOP.setAlignment(SWT.CENTER);\n\t\tlabelStdOP.setText(\"操作菜单\");\n\t\t\n\t\tButton buttonStdOPFirst = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPFirst.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPFirst.setText(\"第一门课程\");\n\t\t\n\t\tButton buttonStdOPNext = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPNext.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPNext.setText(\"下一门课程\");\n\t\t\n\t\tButton buttonStdOPPrev = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPPrev.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPPrev.setText(\"上一门课程\");\n\t\t\n\t\tButton buttonStdOPLast = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPLast.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPLast.setText(\"最后一门课程\");\n\t\t\n\t\tCombo comboStdOPSele = new Combo(compositeStdOp, SWT.NONE);\n\t\tcomboStdOPSele.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tcomboStdOPSele.setText(\"课程名?\");\n\t\t\n\t\tLabel labelStdOPFill = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOPFill.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t}", "public void createPopupWindow() {\r\n \t//\r\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tshell.setSize(599, 779);\r\n\t\tshell.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tButton logoBtn = new Button(shell, SWT.NONE);\r\n\t\tlogoBtn.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tMainMenuKaff mm = new MainMenuKaff();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tmm.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tlogoBtn.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\logo for header button.png\"));\r\n\t\tlogoBtn.setBounds(497, 0, 64, 50);\r\n\r\n\t\tLabel headerLabel = new Label(shell, SWT.NONE);\r\n\t\theaderLabel.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\KaffPlatformheader.jpg\"));\r\n\t\theaderLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\theaderLabel.setBounds(0, 0, 607, 50);\r\n\r\n\t\tLabel bookInfoLabel = new Label(shell, SWT.NONE);\r\n\t\tbookInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\tbookInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\tbookInfoLabel.setAlignment(SWT.CENTER);\r\n\t\tbookInfoLabel.setBounds(177, 130, 192, 28);\r\n\t\tbookInfoLabel.setText(\"معلومات الكتاب\");\r\n\r\n\t\tLabel bookTitleLabel = new Label(shell, SWT.NONE);\r\n\t\tbookTitleLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookTitleLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookTitleLabel.setBounds(415, 203, 119, 28);\r\n\t\tbookTitleLabel.setText(\"عنوان الكتاب\");\r\n\r\n\t\tBookTitleTxt = new Text(shell, SWT.BORDER);\r\n\t\tBookTitleTxt.setBounds(56, 206, 334, 24);\r\n\r\n\t\tLabel bookIDLabel = new Label(shell, SWT.NONE);\r\n\t\tbookIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookIDLabel.setBounds(415, 170, 119, 32);\r\n\t\tbookIDLabel.setText(\"رمز الكتاب\");\r\n\r\n\t\tLabel editionLabel = new Label(shell, SWT.NONE);\r\n\t\teditionLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\teditionLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\teditionLabel.setBounds(415, 235, 119, 28);\r\n\t\teditionLabel.setText(\"إصدار الكتاب\");\r\n\r\n\t\teditionTxt = new Text(shell, SWT.BORDER);\r\n\t\teditionTxt.setBounds(271, 240, 119, 24);\r\n\r\n\t\tLabel lvlLabel = new Label(shell, SWT.NONE);\r\n\t\tlvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tlvlLabel.setText(\"المستوى\");\r\n\t\tlvlLabel.setBounds(415, 269, 119, 27);\r\n\r\n\t\tCombo lvlBookCombo = new Combo(shell, SWT.NONE);\r\n\t\tlvlBookCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\tlvlBookCombo.setBounds(326, 272, 64, 25);\r\n\t\tlvlBookCombo.select(0);\r\n\r\n\t\tLabel priceLabel = new Label(shell, SWT.NONE);\r\n\t\tpriceLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tpriceLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tpriceLabel.setText(\"السعر\");\r\n\t\tpriceLabel.setBounds(415, 351, 119, 28);\r\n\r\n\t\tGroup groupType = new Group(shell, SWT.NONE);\r\n\t\tgroupType.setBounds(56, 320, 334, 24);\r\n\r\n\t\tButton button = new Button(groupType, SWT.RADIO);\r\n\t\tbutton.setSelection(true);\r\n\t\tbutton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton.setBounds(21, 0, 73, 21);\r\n\t\tbutton.setText(\"مجاناً\");\r\n\r\n\t\tButton button_1 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_1.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_1.setBounds(130, 0, 73, 21);\r\n\t\tbutton_1.setText(\"إعارة\");\r\n\r\n\t\tButton button_2 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_2.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_2.setBounds(233, 0, 80, 21);\r\n\t\tbutton_2.setText(\"للبيع\");\r\n\r\n\t\tpriceTxtValue = new Text(shell, SWT.BORDER);\r\n\t\tpriceTxtValue.setBounds(326, 355, 64, 24);\r\n\r\n\t\tLabel ownerInfoLabel = new Label(shell, SWT.NONE);\r\n\t\townerInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\townerInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\townerInfoLabel.setText(\"معلومات صاحبة الكتاب\");\r\n\t\townerInfoLabel.setAlignment(SWT.CENTER);\r\n\t\townerInfoLabel.setBounds(147, 400, 242, 28);\r\n\r\n\t\tLabel ownerIDLabel = new Label(shell, SWT.NONE);\r\n\t\townerIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerIDLabel.setBounds(415, 441, 119, 34);\r\n\t\townerIDLabel.setText(\"الرقم الأكاديمي\");\r\n\r\n\t\townerIDValue = new Text(shell, SWT.BORDER);\r\n\t\townerIDValue.setBounds(204, 444, 186, 24);\r\n\t\t// need to check if the owner is already in the database...\r\n\r\n\t\tLabel nameLabel = new Label(shell, SWT.NONE);\r\n\t\tnameLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tnameLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tnameLabel.setBounds(415, 481, 119, 28);\r\n\t\tnameLabel.setText(\"الاسم الثلاثي\");\r\n\r\n\t\tnameTxt = new Text(shell, SWT.BORDER);\r\n\t\tnameTxt.setBounds(56, 485, 334, 24);\r\n\r\n\t\tLabel phoneLabel = new Label(shell, SWT.NONE);\r\n\t\tphoneLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tphoneLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tphoneLabel.setText(\"رقم الجوال\");\r\n\t\tphoneLabel.setBounds(415, 515, 119, 27);\r\n\r\n\t\tphoneTxt = new Text(shell, SWT.BORDER);\r\n\t\tphoneTxt.setBounds(204, 521, 186, 24);\r\n\r\n\t\tLabel ownerLvlLabel = new Label(shell, SWT.NONE);\r\n\t\townerLvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerLvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerLvlLabel.setBounds(415, 548, 119, 31);\r\n\t\townerLvlLabel.setText(\"المستوى\");\r\n\r\n\t\tCombo owneLvlCombo = new Combo(shell, SWT.NONE);\r\n\t\towneLvlCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\towneLvlCombo.setBounds(326, 554, 64, 25);\r\n\t\towneLvlCombo.select(0);\r\n\r\n\t\tLabel emailLabel = new Label(shell, SWT.NONE);\r\n\t\temailLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\temailLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\temailLabel.setBounds(415, 583, 119, 38);\r\n\t\temailLabel.setText(\"البريد الإلكتروني\");\r\n\r\n\t\temailTxt = new Text(shell, SWT.BORDER);\r\n\t\temailTxt.setBounds(56, 586, 334, 24);\r\n\r\n\t\tButton addButton = new Button(shell, SWT.NONE);\r\n\t\taddButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString bookQuery = \"INSERT INTO kaff.BOOK(bookID, bookTitle, price, level,available, type) VALUES (?, ?, ?, ?, ?, ?, ?)\";\r\n\t\t\t\t\tString bookEdition = \"INSERT INTO kaff.bookEdition(bookID, edition, year) VALUES (?, ?, ?)\";\r\n\t\t\t\t\tString ownerQuery = \"INSERT INTO kaff.user(userID, fname, mname, lastname, phone, level, personalEmail, email) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n\t\t\t\t\tString bookID = bookIDTxt.getText();\r\n\t\t\t\t\tString bookTitle = BookTitleTxt.getText();\r\n\t\t\t\t\tint bookLevel = lvlBookCombo.getSelectionIndex();\r\n\t\t\t\t\tString type = groupType.getText();\r\n\t\t\t\t\tdouble price = Double.parseDouble(priceTxtValue.getText());\r\n\t\t\t\t\tboolean available = true;\r\n\r\n\t\t\t\t\t// must error handle\r\n\t\t\t\t\tString[] ed = editionTxt.getText().split(\" \");\r\n\t\t\t\t\tString edition = ed[0];\r\n\t\t\t\t\tString year = ed[1];\r\n\r\n\t\t\t\t\tString ownerID = ownerIDValue.getText();\r\n\r\n\t\t\t\t\t// error handle if the user enters two names or just first name\r\n\t\t\t\t\tString[] name = nameTxt.getText().split(\" \");\r\n\t\t\t\t\tString fname = \"\", mname = \"\", lname = \"\";\r\n\t\t\t\t\tSystem.out.println(\"name array\" + name);\r\n\t\t\t\t\tif (name.length > 2) {\r\n\t\t\t\t\t\tfname = name[0];\r\n\t\t\t\t\t\tmname = name[1];\r\n\t\t\t\t\t\tlname = name[2];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString phone = phoneTxt.getText();\r\n\t\t\t\t\tint userLevel = owneLvlCombo.getSelectionIndex();\r\n\t\t\t\t\tString email = emailTxt.getText();\r\n\r\n\t\t\t\t\tDatabase.openConnection();\r\n\t\t\t\t\tPreparedStatement bookStatement = Database.getConnection().prepareStatement(bookQuery);\r\n\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, bookTitle);\r\n\t\t\t\t\tbookStatement.setInt(3, bookLevel);\r\n\t\t\t\t\tbookStatement.setString(4, type);\r\n\t\t\t\t\tbookStatement.setDouble(5, price);\r\n\t\t\t\t\tbookStatement.setBoolean(6, available);\r\n\r\n\t\t\t\t\tint bookre = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tbookStatement = Database.getConnection().prepareStatement(bookEdition);\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, edition);\r\n\t\t\t\t\tbookStatement.setString(3, year);\r\n\r\n\t\t\t\t\tint edResult = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tPreparedStatement ownerStatement = Database.getConnection().prepareStatement(ownerQuery);\r\n\t\t\t\t\townerStatement.setString(1, ownerID);\r\n\t\t\t\t\townerStatement.setString(2, fname);\r\n\t\t\t\t\townerStatement.setString(3, mname);\r\n\t\t\t\t\townerStatement.setString(4, lname);\r\n\t\t\t\t\townerStatement.setString(5, phone);\r\n\t\t\t\t\townerStatement.setInt(6, userLevel);\r\n\t\t\t\t\townerStatement.setString(7, ownerID + \"iau.edu.sa\");\r\n\t\t\t\t\townerStatement.setString(8, email);\r\n\t\t\t\t\tint ownRes = ownerStatement.executeUpdate();\r\n\r\n\t\t\t\t\tSystem.out.println(\"results: \" + ownRes + \" \" + edResult + \" bookre\");\r\n\t\t\t\t\t// test result of excute Update\r\n\t\t\t\t\tif (ownRes != 0 && edResult != 0 && bookre != 0) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is updated\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is not updated\");\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDatabase.closeConnection();\r\n\t\t\t\t} catch (SQLException sql) {\r\n\t\t\t\t\tSystem.out.println(sql);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\taddButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\taddButton.setBounds(54, 666, 85, 26);\r\n\t\taddButton.setText(\"إضافة\");\r\n\r\n\t\tButton backButton = new Button(shell, SWT.NONE);\r\n\t\tbackButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tAdminMenu am = new AdminMenu();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tam.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbackButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbackButton.setBounds(150, 666, 85, 26);\r\n\t\tbackButton.setText(\"رجوع\");\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(177, 72, 192, 21);\r\n\t\tlabel.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(22, 103, 167, 21);\r\n\t\t// get user name here to display\r\n\t\tString name = getUserName();\r\n\t\tlabel_1.setText(\"مرحباً ...\" + name);\r\n\r\n\t\tbookIDTxt = new Text(shell, SWT.BORDER);\r\n\t\tbookIDTxt.setBounds(271, 170, 119, 24);\r\n\r\n\t}", "public void createWindow() throws IOException {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"adminEditorWindow.fxml\"));\n AnchorPane root = (AnchorPane) loader.load();\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.setResizable(false);\n stage.setScene(scene);\n stage.setTitle(\"Administrative Password Editor\");\n stage.getIcons().add(new Image(\"resources/usm seal icon.png\"));\n stage.show();\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "public void createWindow(int x, int y, int width, int height, int bgColor, String title, String displayText) {\r\n\t\tWindow winnie = new Window(x, y, width, height, bgColor, title);\r\n\t\twinnie.add(displayText);\r\n\t\twindows.add(winnie);\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setModified(true);\n\t\tshell.setSize(512, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(null);\n\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);\n\t\tlabel.setBounds(253, 26, 2, 225);\n\n\t\tcomboCarBrandBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_1.setText(\"Selected\");\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandBuy.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandBuy.setBounds(87, 33, 123, 23);\n\t\tcomboCarBrandBuy.setText(\"--select--\");\n\n\t\tLabel lblCarBrand = new Label(shell, SWT.NONE);\n\t\tlblCarBrand.setAlignment(SWT.RIGHT);\n\t\tlblCarBrand.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarBrand.setBounds(12, 38, 71, 15);\n\t\tlblCarBrand.setText(\"Car Brand :\");\n\n\t\ttextCarNameBuy = new Text(shell, SWT.BORDER);\n\t\ttextCarNameBuy.setBounds(87, 67, 123, 21);\n\n\t\tLabel lblCarName = new Label(shell, SWT.NONE);\n\t\tlblCarName.setAlignment(SWT.RIGHT);\n\t\tlblCarName.setText(\"Car Name :\");\n\t\tlblCarName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarName.setBounds(12, 70, 71, 15);\n\n\t\tcomboCarModelBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelBuy.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelBuy.setBounds(87, 99, 91, 23);\n\t\tcomboCarModelBuy.setText(\"--select--\");\n\n\t\tLabel lblModelYear = new Label(shell, SWT.NONE);\n\t\tlblModelYear.setAlignment(SWT.RIGHT);\n\t\tlblModelYear.setText(\"Model :\");\n\t\tlblModelYear.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblModelYear.setBounds(12, 105, 71, 15);\n\n\t\tButton buttonBuy = new Button(shell, SWT.NONE);\n\t\tbuttonBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carName = textCarNameBuy.getText();\n\t\t\t\tString carModel = comboCarModelBuy.getText();\n\n\t\t\t\tif(comboCarBrandBuy.getText().equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tmarutiMap.put(carName, carModel);\n\t\t\t\t}\n\n\t\t\t\tlabel_1.setText(\"Added to Inventory\");\n\t\t\t\tSystem.out.println(marutiMap);\n\t\t\t}\n\t\t});\n\t\tbuttonBuy.setBounds(87, 138, 63, 25);\n\t\tbuttonBuy.setText(\"BUY\");\n\n\t\tlabel_1 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_1.setBounds(73, 198, 137, 19);\n\n\t\tLabel lblStatus = new Label(shell, SWT.NONE);\n\t\tlblStatus.setBounds(22, 198, 45, 15);\n\t\tlblStatus.setText(\"Status :\");\n\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\n\t\tlabel_2.setText(\"Car Brand :\");\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_2.setAlignment(SWT.RIGHT);\n\t\tlabel_2.setBounds(280, 38, 71, 15);\n\n\t\tcomboCarBrandSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carBrand = comboCarBrandSell.getText();\n\t\t\t\tcomboCarNameSell.clearSelection();\n\t\t\t\t\n\t\t\t\tif(carBrand.equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tSet<String> keyList = marutiMap.keySet();\n\t\t\t\t\tint i=0;\n\t\t\t\t\tfor(String key : keyList){\n\t\t\t\t\t\tcarNames.add(key);\n\t\t\t\t\t\t//comboCarNameSell.setItem(i, key);\n\t\t\t\t\t\t//i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] strArray = (String[]) carNames.toArray(new String[0]);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcomboCarNameSell.setItems(strArray);\n\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandSell.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandSell.setBounds(355, 33, 123, 23);\n\t\tcomboCarBrandSell.setText(\"--select--\");\n\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\n\t\tlabel_3.setText(\"Car Name :\");\n\t\tlabel_3.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_3.setAlignment(SWT.RIGHT);\n\t\tlabel_3.setBounds(280, 70, 71, 15);\n\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\n\t\tlabel_4.setText(\"Model :\");\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_4.setAlignment(SWT.RIGHT);\n\t\tlabel_4.setBounds(280, 105, 71, 15);\n\n\t\tCombo comboCarModelSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelSell.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelSell.setBounds(355, 99, 91, 23);\n\t\tcomboCarModelSell.setText(\"--select--\");\n\n\t\tButton buttonSell = new Button(shell, SWT.NONE);\n\t\tbuttonSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_5.setText(\"Sold Successfully\");\n\t\t\t}\n\t\t});\n\t\tbuttonSell.setText(\"SELL\");\n\t\tbuttonSell.setBounds(355, 138, 63, 25);\n\n\t\tlabel_5 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_5.setBounds(341, 198, 137, 19);\n\n\t\tLabel label_6 = new Label(shell, SWT.NONE);\n\t\tlabel_6.setText(\"Status :\");\n\t\tlabel_6.setBounds(290, 198, 45, 15);\n\n\t\tcomboCarNameSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarNameSell.setItems(new String[] {});\n\t\tcomboCarNameSell.setBounds(355, 65, 123, 23);\n\t\tcomboCarNameSell.setText(\"--select--\");\n\n\t}", "protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}", "private JFrame buildWindow() {\n frame = WindowFactory.mainFrame()\n .title(\"VISNode\")\n .menu(VISNode.get().getActions().buildMenuBar())\n .size(1024, 768)\n .maximized()\n .interceptClose(() -> {\n new UserPreferencesPersistor().persist(model.getUserPreferences());\n int result = JOptionPane.showConfirmDialog(panel, Messages.get().singleMessage(\"app.closing\"), null, JOptionPane.YES_NO_OPTION);\n return result == JOptionPane.YES_OPTION;\n })\n .create((container) -> {\n panel = new MainPanel(model);\n container.add(panel);\n });\n return frame;\n }", "public static void render()\n {\n JWindow win = new JWindow(); //NOTE is this focusable?\n //sets the layout to add things from top to bottom\n win.getContentPane().setLayout(new BoxLayout(win.getContentPane(), BoxLayout.Y_AXIS));\n win.getContentPane().add(new JScrollPane(aboutApp.editorPane())); //adds HTML text\n JButton close = new JButton(\"Close\"); //creates the close button\n win.getContentPane().add(close);\n close.addActionListener(new ActionListener() //listens for close\n {\n public void actionPerformed(ActionEvent e) //when button is clicked\n {\n win.dispose(); //close window\n }\n });\n win.setSize(new Dimension(500, 500));\n win.setFocusableWindowState(true); //allowa the window to be focused on\n win.setVisible(true); //makes window visible\n }", "protected void createContents() {\n\n\t}", "protected void createContents() throws UnknownHostException, IOException, InterruptedException {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tshlUser = new Shell();\r\n\t\tshlUser.setSize(450, 464);\r\n\t\tshlUser.setText(\"QQ聊天室\\r\\n\");\r\n\t\t\r\n\t\ttext = new Text(shlUser, SWT.BORDER);\r\n\t\ttext.setEnabled(false);\r\n\t\ttext.setBounds(0, 52, 424, 187);\r\n\t\t\r\n\t\t\r\n\t\ttext_1 = new Text(shlUser, SWT.BORDER);\t\t\r\n\t\ttext_1.setBounds(23, 263, 274, 23);\r\n\t\t\r\n\t\tButton button = new Button(shlUser, SWT.CENTER);\r\n\t\tbutton.setText(\"发送\");\r\n\t\tbutton.setBounds(321, 257, 80, 27);\r\n\t\t\r\n\t\ttext_2 = new Text(shlUser, SWT.BORDER);\r\n\t\ttext_2.setText(\"abc\");\r\n\t\ttext_2.setBounds(61, 7, 91, 23);\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(shlUser, SWT.NONE);\r\n\t\tlblNewLabel.setBounds(0, 10, 51, 17);\r\n\t\tlblNewLabel.setText(\"昵称:\");\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shlUser, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tnew Thread() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t// 连接服务器\r\n\t\t\t\t\t\t\t\tsocket = new Socket(\"127.0.0.1\", 8888);\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// 如果连不上服务器,说明服务器未启动,则启动服务器\r\n\t\t\t\t\t\t\t\tserver = new ServerSocket(8888);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"服务器启动完成,监听端口:8888\");\r\n\t\t\t\t\t\t\t\tsocket = server.accept();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t\t * 注意:所有在自定义线程中修改图形控件属性,\r\n\t\t\t\t\t\t\t * 都必须使用 shell.getDisplay().asyncExec() 方法\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tMessageBox mb = new MessageBox(shlUser,SWT.OK);\r\n\t\t\t\t\t\t\t\t\tmb.setText(\"系统提示\");\r\n\t\t\t\t\t\t\t\t\tmb.setMessage(\"连接成功!现在你可以开始聊天了!\");\r\n\t\t\t\t\t\t\t\t\tmb.open();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\ttalker = new Talker(socket, new MsgListener() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onMessage(String msg) {\r\n\t\t\t\t\t\t\t\t\t// 收到消息时,将消息更新到多行文本框\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onConnect(InetAddress addr) {\r\n\t\t\t\t\t\t\t\t\t// 连接成功时,显示对方IP\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tlblNewLabel.setText(\"好友IP:\" + addr.getHostAddress());\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttMsg = new Text(shlUser, SWT.BORDER);\r\n\t\ttMsg.setEnabled(false);\r\n\t\ttMsg.setBounds(10, 364, 414, 26);\r\n\r\n\t\t\r\n\t\tbtnNewButton.setBounds(324, 7, 80, 27);\r\n\t\tbtnNewButton.setText(\"连接服务器\");\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (tMsg.getText().trim().isEmpty() == false) {\r\n\t\t\t\t\t\tString msg = talker.send(text_2.getText(), tMsg.getText());\r\n\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\ttMsg.setText(\"\");\r\n\t\t\t\t\t\t// 设置焦点\r\n\t\t\t\t\t\ttMsg.setFocus();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}", "public void createWindow(int x, int y, int width, int height, int bgColor, String title, int n) {\r\n\t\tWindow winnie = new Window(x, y, width, height, bgColor, title);\r\n\t\twinnie.type = n;\r\n\t\twindows.add(winnie);\r\n\t}", "protected void createContents(Display display) {\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setSize(539, 648);\n\t\tshell.setText(\"SiSi - Security-aware Event Log Generator\");\n\t\tshell.setImage(new Image(shell.getDisplay(), \"imgs/shell.png\"));\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmOpenFile = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenFile.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tFileDialog dialog = new FileDialog(shell, SWT.OPEN);\n\n\t\t\t\tString[] filterNames = new String[] { \"PNML\", \"All Files (*)\" };\n\t\t\t\tString[] filterExtensions = new String[] { \"*.pnml\", \"*\" };\n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user.dir\"));\n\n\t\t\t\tdialog.setFilterNames(filterNames);\n\t\t\t\tdialog.setFilterExtensions(filterExtensions);\n\n\t\t\t\tString path = dialog.open();\n\t\t\t\tif( path != null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(path);\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load File.\", exception);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmOpenFile.setImage(new Image(shell.getDisplay(), \"imgs/open.png\"));\n\t\tmntmOpenFile.setText(\"Open File...\");\n\t\t\n\t\tMenuItem mntmOpenExample = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenExample.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(\"examples/kbv.pnml\");\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load Example.\", exception);\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmOpenExample.setImage(new Image(shell.getDisplay(), \"imgs/example.png\"));\n\t\tmntmOpenExample.setText(\"Open Example\");\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.SEPARATOR);\n\t\tmntmNewItem.setText(\"Separator1\");\n\t\t\n\t\tMenuItem mntmExit = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmExit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.getDisplay().dispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmntmExit.setImage(new Image(shell.getDisplay(), \"imgs/exit.png\"));\n\t\tmntmExit.setText(\"Exit\");\n\t\t\n\t\tmainComposite = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tmainComposite.setExpandHorizontal(true);\n\t\tmainComposite.setExpandVertical(true);\n\t\t\n\t\tactiveComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridLayout gl_activeComposite = new GridLayout(1, true);\n\t\tgl_activeComposite.marginWidth = 10;\n\t\tgl_activeComposite.marginHeight = 10;\n\t\tactiveComposite.setLayout(gl_activeComposite);\n\t\t\n\t\tLabel lblWelcomeToSisi = new Label(activeComposite, SWT.NONE);\n\t\tlblWelcomeToSisi.setFont(SWTResourceManager.getFont(\"Segoe UI\", 30, SWT.BOLD));\n\t\tGridData gd_lblWelcomeToSisi = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblWelcomeToSisi.verticalIndent = 50;\n\t\tlblWelcomeToSisi.setLayoutData(gd_lblWelcomeToSisi);\n\t\tlblWelcomeToSisi.setText(\"Welcome to SiSi!\");\n\t\t\n\t\tLabel lblSecurityawareEvent = new Label(activeComposite, SWT.NONE);\n\t\tlblSecurityawareEvent.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tlblSecurityawareEvent.setText(\"- A security-aware Event Log Generator -\");\n\t\t\n\t\tLabel lblToGetStarted = new Label(activeComposite, SWT.NONE);\n\t\tlblToGetStarted.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.ITALIC));\n\t\tGridData gd_lblToGetStarted = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblToGetStarted.verticalIndent = 150;\n\t\tlblToGetStarted.setLayoutData(gd_lblToGetStarted);\n\t\tlblToGetStarted.setText(\"To get started load a file or an example\");\n\t\t\n\t\tmainComposite.setContent(activeComposite);\n\t\tmainComposite.setMinSize(activeComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\t}", "protected void createContents() {\n\t\tshlFaststone = new Shell();\n\t\tshlFaststone.setImage(SWTResourceManager.getImage(Edit.class, \"/image/all1.png\"));\n\t\tshlFaststone.setToolTipText(\"\");\n\t\tshlFaststone.setSize(944, 479);\n\t\tshlFaststone.setText(\"kaca\");\n\t\tshlFaststone.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tComposite composite = new Composite(shlFaststone, SWT.NONE);\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm = new SashForm(composite, SWT.VERTICAL);\n\t\t//\n\t\tMenu menu = new Menu(shlFaststone, SWT.BAR);\n\t\tshlFaststone.setMenuBar(menu);\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setSelection(true);\n\t\tmenuItem.setText(\"\\u6587\\u4EF6\");\n\t\t\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\t\t\n\t\tfinal Canvas down=new Canvas(shlFaststone,SWT.NONE|SWT.BORDER|SWT.DOUBLE_BUFFERED);\n\t\t\n\t\tComposite composite_4 = new Composite(sashForm, SWT.BORDER);\n\t\tcomposite_4.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_3 = new SashForm(composite_4, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_3);\n\t\tformToolkit.paintBordersFor(sashForm_3);\n\t\t\n\t\tToolBar toolBar = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.WRAP | SWT.RIGHT);\n\t\ttoolBar.setToolTipText(\"\");\n\t\t\n\t\tToolItem toolItem_6 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_6.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_2.notifyListeners(SWT.Selection,event1);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6253\\u5F00.jpg\"));\n\t\ttoolItem_6.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t\n\t\ttltmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttltmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\ttltmNewItem.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t//关闭\n\t\tToolItem tltmNewItem_4 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttltmNewItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttltmNewItem_4.setText(\"\\u5173\\u95ED\");\n\t\t\n\t\t\n\t\t\n\t\tToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//缩放\n\t\t\n\t\t\n\t\ttltmNewItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u653E\\u5927.jpg\"));\n\t\t\n\t\t//工具栏:放大\n\t\t\n\t\ttltmNewItem_1.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t//工具栏:缩小\n\t\ttltmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\ttltmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F29\\u5C0F.jpg\"));\n\t\ttltmNewItem_2.setText(\"\\u7F29\\u5C0F\");\n\t\tToolItem toolItem_5 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttoolItem_5.setText(\"\\u9000\\u51FA\");\n\t\t\n\t\tToolBar toolBar_1 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\tformToolkit.adapt(toolBar_1);\n\t\tformToolkit.paintBordersFor(toolBar_1);\n\t\t\n\t\tToolItem toolItem_7 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:标题\n\t\ttoolItem_7.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_7.setText(\"\\u6807\\u9898\");\n\t\ttoolItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6807\\u9898.jpg\"));\n\t\t\n\t\tToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:调整大小\n\t\ttoolItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_1.setText(\"\\u8C03\\u6574\\u5927\\u5C0F\");\n\t\ttoolItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u8C03\\u6574\\u5927\\u5C0F.jpg\"));\n\t\t\n\t\tToolBar toolBar_2 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tformToolkit.adapt(toolBar_2);\n\t\tformToolkit.paintBordersFor(toolBar_2);\n\t\t\n\t\tToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:裁剪\n\t\ttoolItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_2.setText(\"\\u88C1\\u526A\");\n\t\ttoolItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u88C1\\u526A.jpg\"));\n\t\t\n\t\tToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:剪切\n\t\ttoolItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_3.setText(\"\\u526A\\u5207\");\n\t\ttoolItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u526A\\u5207.jpg\"));\n\t\t\n\t\tToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\n\t\t//工具栏:粘贴\n\t\ttoolItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tcomposite_3.layout();\n\t\t\t\tFile f=new File(\"src/picture/beauty.jpg\");\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tButton lblNewLabel_3 = null;\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcomposite_3.layout();\n\t\t\t}\n\t\t});\n\t\t//omposite;\n\t\t//\n\t\t\n\t\ttoolItem_4.setText(\"\\u590D\\u5236\");\n\t\ttoolItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u590D\\u5236.jpg\"));\n\t\t\n\t\tToolItem tltmNewItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\ttltmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\ttltmNewItem_3.setText(\"\\u7C98\\u8D34\");\n\t\tsashForm_3.setWeights(new int[] {486, 165, 267});\n\t\t\n\t\tComposite composite_1 = new Composite(sashForm, SWT.NONE);\n\t\tformToolkit.adapt(composite_1);\n\t\tformToolkit.paintBordersFor(composite_1);\n\t\tcomposite_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_1 = new SashForm(composite_1, SWT.VERTICAL);\n\t\tformToolkit.adapt(sashForm_1);\n\t\tformToolkit.paintBordersFor(sashForm_1);\n\t\t\n\t\tComposite composite_2 = new Composite(sashForm_1, SWT.NONE);\n\t\tformToolkit.adapt(composite_2);\n\t\tformToolkit.paintBordersFor(composite_2);\n\t\tcomposite_2.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(composite_2, SWT.NONE);\n\t\ttabFolder.setTouchEnabled(true);\n\t\tformToolkit.adapt(tabFolder);\n\t\tformToolkit.paintBordersFor(tabFolder);\n\t\t\n\t\tTabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem.setText(\"\\u65B0\\u5EFA\\u4E00\");\n\t\t\n\t\tTabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_1.setText(\"\\u65B0\\u5EFA\\u4E8C\");\n\t\t\n\t\tTabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_2.setText(\"\\u65B0\\u5EFA\\u4E09\");\n\t\t\n\t\tButton button = new Button(tabFolder, SWT.CHECK);\n\t\tbutton.setText(\"Check Button\");\n\t\t\n\t\tcomposite_3 = new Composite(sashForm_1, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\t\n\t\tformToolkit.adapt(composite_3);\n\t\tformToolkit.paintBordersFor(composite_3);\n\t\tcomposite_3.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tLabel lblNewLabel_3 = new Label(composite_3, SWT.NONE);\n\t\tformToolkit.adapt(lblNewLabel_3, true, true);\n\t\tlblNewLabel_3.setText(\"\");\n\t\tsashForm_1.setWeights(new int[] {19, 323});\n\t\t\n\t\tComposite composite_5 = new Composite(sashForm, SWT.NONE);\n\t\tcomposite_5.setToolTipText(\"\");\n\t\tcomposite_5.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_2 = new SashForm(composite_5, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_2);\n\t\tformToolkit.paintBordersFor(sashForm_2);\n\t\t\n\t\tLabel lblNewLabel = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel, true, true);\n\t\tlblNewLabel.setText(\"1/1\");\n\t\t\n\t\tLabel lblNewLabel_2 = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_2, true, true);\n\t\tlblNewLabel_2.setText(\"\\u5927\\u5C0F\\uFF1A1366*728\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(sashForm_2, SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_1, true, true);\n\t\tlblNewLabel_1.setText(\"\\u7F29\\u653E\\uFF1A100%\");\n\t\t\n\t\tLabel label = new Label(sashForm_2, SWT.NONE);\n\t\tlabel.setAlignment(SWT.RIGHT);\n\t\tformToolkit.adapt(label, true, true);\n\t\tlabel.setText(\"\\u5494\\u5693\\u5DE5\\u4F5C\\u5BA4\\u7248\\u6743\\u6240\\u6709\");\n\t\tsashForm_2.setWeights(new int[] {127, 141, 161, 490});\n\t\tsashForm.setWeights(new int[] {50, 346, 22});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u65B0\\u5EFA.jpg\"));\n\t\tmntmNewItem.setText(\"\\u65B0\\u5EFA\");\n\t\t\n\t\tmntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t//Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);\n\t\t\t\t//Canvas c=new Canvas(shlFaststone,SWT.BALLOON);\n\t\t\t\t\n\t\t\t\tFileDialog dialog = new FileDialog(shlFaststone,SWT.OPEN); \n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user_home\"));//设置初始路径\n\t\t\t\tdialog.setFilterNames(new String[] {\"文本文档(*txt)\",\"所有文档\"}); \n\t\t\t\tdialog.setFilterExtensions(new String[]{\"*.exe\",\"*.xls\",\"*.*\"});\n\t\t\t\tString path=dialog.open();\n\t\t\t\tString s=null;\n\t\t\t\tFile f=null;\n\t\t\t\tif(path==null||\"\".equals(path)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t f=new File(path);\n\t\t\t\tbyte[] bs=Fileutil.readFile(f);\n\t\t\t s=new String(bs,\"UTF-8\");\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tMessageDialog.openError(shlFaststone, \"出错了\", \"打开\"+path+\"出错了\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t \n\t\t\t\ttext = new Text(composite_4, SWT.BORDER | SWT.WRAP\n\t\t\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL\n\t\t\t\t\t\t| SWT.MULTI);\n\t\t\t\ttext.setText(s);\n\t\t\t\tcomposite_1.layout();\n\t\t\t\tshlFaststone.setText(shlFaststone.getText()+\"\\t\"+f.getName());\n\t\t\t\t\t\n\t\t\t\tFile f1=new File(path);\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f1));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u6253\\u5F00.jpg\"));\n\t\tmntmNewItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_1.setText(\"\\u4ECE\\u526A\\u8D34\\u677F\\u5BFC\\u5165\");\n\t\t\n\t\tMenuItem mntmNewItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\tmntmNewItem_3.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t\n\t\t mntmNewItem_5 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t boolean result=MessageDialog.openConfirm(shlFaststone,\"退出\",\"是否确认退出\");\n\t\t\t\t if(result) {\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u4FDD\\u5B58.jpg\"));\n\t\tmntmNewItem_5.setText(\"\\u5173\\u95ED\");\n\t\tevent2=new Event();\n\t\tevent2.widget=mntmNewItem_5;\n\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u6355\\u6349\");\n\t\t\n\t\tMenu menu_2 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_2);\n\t\t\n\t\tMenuItem mntmNewItem_6 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_6.setText(\"\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_7 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6355\\u6349\\u7A97\\u53E3\\u6216\\u5BF9\\u8C61.jpg\"));\n\t\tmntmNewItem_7.setText(\"\\u6355\\u6349\\u7A97\\u53E3\\u5BF9\\u8C61\");\n\t\t\n\t\tMenuItem mntmNewItem_8 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_8.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.jpg\"));\n\t\tmntmNewItem_8.setText(\"\\u6355\\u6349\\u77E9\\u5F62\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_9 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_9.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u624B\\u7ED8\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_9.setText(\"\\u6355\\u6349\\u624B\\u7ED8\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_10 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_10.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6574\\u4E2A\\u5C4F\\u5E55.jpg\"));\n\t\tmntmNewItem_10.setText(\"\\u6355\\u6349\\u6574\\u4E2A\\u5C4F\\u5E55\");\n\t\t\n\t\tMenuItem mntmNewItem_11 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_11.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_11.setText(\"\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_12 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_12.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_12.setText(\"\\u6355\\u6349\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349.jpg\"));\n\t\tmenuItem_1.setText(\"\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349\");\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_2.setText(\"\\u7F16\\u8F91\");\n\t\t\n\t\tMenu menu_3 = new Menu(menuItem_2);\n\t\tmenuItem_2.setMenu(menu_3);\n\t\t\n\t\tMenuItem mntmNewItem_14 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_14.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_14.setText(\"\\u64A4\\u9500\");\n\t\t\n\t\tMenuItem mntmNewItem_13 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_13.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_13.setText(\"\\u91CD\\u505A\");\n\t\t\n\t\tMenuItem mntmNewItem_15 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_15.setText(\"\\u9009\\u62E9\\u5168\\u90E8\");\n\t\t\n\t\tMenuItem mntmNewItem_16 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_16.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7F16\\u8F91.\\u88C1\\u526A.jpg\"));\n\t\tmntmNewItem_16.setText(\"\\u88C1\\u526A\");\n\t\t\n\t\tMenuItem mntmNewItem_17 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_17.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u526A\\u5207.jpg\"));\n\t\tmntmNewItem_17.setText(\"\\u526A\\u5207\");\n\t\t\n\t\tMenuItem mntmNewItem_18 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_18.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u590D\\u5236.jpg\"));\n\t\tmntmNewItem_18.setText(\"\\u590D\\u5236\");\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_3, SWT.NONE);\n\t\tmenuItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\tmenuItem_4.setText(\"\\u7C98\\u8D34\");\n\t\t\n\t\tMenuItem mntmNewItem_19 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_19.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_3.setText(\"\\u7279\\u6548\");\n\t\t\n\t\tMenu menu_4 = new Menu(menuItem_3);\n\t\tmenuItem_3.setMenu(menu_4);\n\t\t\n\t\tMenuItem mntmNewItem_20 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_20.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6C34\\u5370.jpg\"));\n\t\tmntmNewItem_20.setText(\"\\u6C34\\u5370\");\n\t\t\n\t\tPanelPic ppn = new PanelPic();\n\t\tMenuItem mntmNewItem_21 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_21.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tflag[0]=true;\n\t\t\t\tflag[1]=false;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t\tdown.addMouseListener(new MouseAdapter(){\n\t\t\tpublic void mouseDown(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=true;\n\t\t\t\tpt=new Point(e.x,e.y);\n\t\t\t\tif(flag[1])\n\t\t\t\t{\n\t\t\t\t\trect=new Composite(down,SWT.BORDER);\n\t\t\t\t\trect.setLocation(e.x, e.y);\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=false;\n\t\t\t\tif(flag[1]&&dirty)\n\t\t\t\t{\n\t\t\t\t\trexx[n-1]=rect.getBounds();\n\t\t\t\t\trect.dispose();\n\t\t\t\t\tdown.redraw();\n\t\t\t\t\tdirty=false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdown.addMouseMoveListener(new MouseMoveListener(){\n\t\t\t@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n if(mouseDown)\n {\n \t dirty=true;\n\t\t\t\tif(flag[0])\n\t\t\t {\n \t GC gc=new GC(down);\n gc.drawLine(pt.x, pt.y, e.x, e.y);\n list.add(new int[]{pt.x,pt.y,e.x,e.y});\n pt.x=e.x;pt.y=e.y;\n\t\t\t }\n else if(flag[1])\n {\n \t if(rect!=null)\n \t rect.setSize(rect.getSize().x+e.x-pt.x, rect.getSize().y+e.y-pt.y);\n// \t down.redraw();\n \t pt.x=e.x;pt.y=e.y;\n }\n }\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tdown.addPaintListener(new PaintListener(){\n\t\t\t@Override\n\t\t\tpublic void paintControl(PaintEvent e) {\n\t\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t\t{\n\t\t\t\t\tint a[]=list.get(i);\n\t\t\t\t\te.gc.drawLine(a[0], a[1], a[2], a[3]);\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(rexx[i]!=null)\n\t\t\t\t\t\te.gc.drawRectangle(rexx[i]);\n\t\t\t\t}\n\t\t\t}});\n\n\t\t\n\t\tmntmNewItem_21.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6587\\u5B57.jpg\"));\n\t\tmntmNewItem_21.setText(\"\\u753B\\u7B14\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_1 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_1.setText(\"\\u67E5\\u770B\");\n\t\t\n\t\tMenu menu_5 = new Menu(mntmNewSubmenu_1);\n\t\tmntmNewSubmenu_1.setMenu(menu_5);\n\t\t\n\t\tMenuItem mntmNewItem_24 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_24.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u653E\\u5927.jpg\"));\n\t\tmntmNewItem_24.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tMenuItem mntmNewItem_25 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_25.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u7F29\\u5C0F.jpg\"));\n\t\tmntmNewItem_25.setText(\"\\u7F29\\u5C0F\");\n\t\t\n\t\tMenuItem mntmNewItem_26 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_26.setText(\"\\u5B9E\\u9645\\u5C3A\\u5BF8\\uFF08100%\\uFF09\");\n\t\t\n\t\tMenuItem mntmNewItem_27 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_27.setText(\"\\u9002\\u5408\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_28 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_28.setText(\"100%\");\n\t\t\n\t\tMenuItem mntmNewItem_29 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_29.setText(\"200%\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_2.setText(\"\\u8BBE\\u7F6E\");\n\t\t\n\t\tMenu menu_6 = new Menu(mntmNewSubmenu_2);\n\t\tmntmNewSubmenu_2.setMenu(menu_6);\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_5.setText(\"\\u5E2E\\u52A9\");\n\t\t\n\t\tMenu menu_7 = new Menu(menuItem_5);\n\t\tmenuItem_5.setMenu(menu_7);\n\t\t\n\t\tMenuItem menuItem_6 = new MenuItem(menu_7, SWT.NONE);\n\t\tmenuItem_6.setText(\"\\u7248\\u672C\");\n\t\t\n\t\tMenuItem mntmNewItem_23 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_23.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\t\n\t\tMenuItem mntmNewItem_30 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_30.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\n\t}", "private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "public abstract void createContents(Panel mainPanel);", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "protected void createContents() {\n\t\tmainShell = new Shell();\n\t\tmainShell.addDisposeListener(new DisposeListener() {\n\t\t\tpublic void widgetDisposed(DisposeEvent arg0) {\n\t\t\t\tLastValueManager manager = LastValueManager.getInstance();\n\t\t\t\tmanager.setLastAppEngineDirectory(mGAELocation.getText());\n\t\t\t\tmanager.setLastProjectDirectory(mAppRootDir.getText());\n\t\t\t\tmanager.setLastPythonBinDirectory(txtPythonLocation.getText());\n\t\t\t\tmanager.save();\n\t\t\t}\n\t\t});\n\t\tmainShell.setSize(460, 397);\n\t\tmainShell.setText(\"Google App Engine Launcher\");\n\t\tmainShell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite mainComposite = new Composite(mainShell, SWT.NONE);\n\t\tmainComposite.setLayout(new GridLayout(1, false));\n\t\t\n\t\tComposite northComposite = new Composite(mainComposite, SWT.NONE);\n\t\tnorthComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));\n\t\tGridLayout gl_northComposite = new GridLayout(1, false);\n\t\tgl_northComposite.verticalSpacing = 1;\n\t\tnorthComposite.setLayout(gl_northComposite);\n\t\t\n\t\tComposite pythonComposite = new Composite(northComposite, SWT.NONE);\n\t\tpythonComposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblPython = new Label(pythonComposite, SWT.NONE);\n\t\tlblPython.setText(\"Python : \");\n\t\t\n\t\ttxtPythonLocation = new Text(pythonComposite, SWT.BORDER);\n\t\ttxtPythonLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\ttxtPythonLocation.setText(\"/usr/bin/python2.7\");\n\t\t\n\t\tLabel lblGaeLocation = new Label(pythonComposite, SWT.NONE);\n\t\tlblGaeLocation.setText(\"GAE Location :\");\n\t\t\n\t\tmGAELocation = new Text(pythonComposite, SWT.BORDER);\n\t\tmGAELocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tmGAELocation.setText(\"/home/zelon/Programs/google_appengine\");\n\t\t\n\t\tLabel lblProject = new Label(pythonComposite, SWT.NONE);\n\t\tlblProject.setText(\"Project : \");\n\t\t\n\t\tmAppRootDir = new Text(pythonComposite, SWT.BORDER);\n\t\tmAppRootDir.setSize(322, 27);\n\t\tmAppRootDir.setText(\"/home/zelon/workspaceIndigo/box.wimy.com\");\n\t\t\n\t\tComposite ActionComposite = new Composite(northComposite, SWT.NONE);\n\t\tActionComposite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tActionComposite.setLayout(new GridLayout(2, true));\n\t\t\n\t\tButton btnTestServer = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnTestServer = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnTestServer.widthHint = 100;\n\t\tbtnTestServer.setLayoutData(gd_btnTestServer);\n\t\tbtnTestServer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.startTestServer(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText(), 8080);\n\t\t\t}\n\t\t});\n\t\tbtnTestServer.setText(\"Test Server\");\n\t\t\n\t\tButton btnDeploy = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnDeploy = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDeploy.widthHint = 100;\n\t\tbtnDeploy.setLayoutData(gd_btnDeploy);\n\t\tbtnDeploy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.deploy(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText());\n\t\t\t}\n\t\t});\n\t\tbtnDeploy.setText(\"Deploy\");\n\t\tActionComposite.setTabList(new Control[]{btnTestServer, btnDeploy});\n\t\tnorthComposite.setTabList(new Control[]{ActionComposite, pythonComposite});\n\t\t\n\t\tComposite centerComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridData gd_centerComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);\n\t\tgd_centerComposite.heightHint = 200;\n\t\tcenterComposite.setLayoutData(gd_centerComposite);\n\t\tcenterComposite.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tlog = new StyledText(centerComposite, SWT.BORDER | SWT.V_SCROLL);\n\t\tlog.setAlignment(SWT.CENTER);\n\t}", "public static void createAndShowStartWindow() {\n\n\t\t// Create and set up the window.\n\n\t\tstartMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// panel will hold the buttons and text\n\t\tJPanel panel = new JPanel() {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t// Fills the panel with a red/black gradient\n\t\t\tprotected void paintComponent(Graphics grphcs) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) grphcs;\n\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n\t\t\t\tColor color1 = new Color(119, 29, 29);\n\t\t\t\tColor color2 = Color.BLACK;\n\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, color1, 0, getHeight() - 100, color2);\n\t\t\t\tg2d.setPaint(gp);\n\t\t\t\tg2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(grphcs);\n\t\t\t}\n\t\t};\n\n\t\tpanel.setOpaque(false);\n\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n\t Font customFont = null;\n\t \n\n\t\ttry {\n\t\t customFont = Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")).deriveFont(32f);\n\n\t\t GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")));\n\t\t\n\n\t\t} catch (IOException|FontFormatException e) {\n\t\t //Handle exception\n\t\t}\n\t\t\n\n\t\t\n\t\t// Some info text at the top of the window\n\t\tJLabel welcome = new JLabel(\"<html><center><font color='white'> Welcome to <br> Ultimate Checkers! </font></html>\",\n\t\t\t\tSwingConstants.CENTER);\n\t\twelcome.setFont(customFont);\n\t\n\n\t\twelcome.setPreferredSize(new Dimension(200, 25));\n\t\twelcome.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n\n\t\t// \"Rigid Area\" is used to align everything\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 40)));\n\t\tpanel.add(welcome);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 50)));\n\t\t//panel.add(choose);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\n\t\t// The start Window will have four buttons\n\t\t// Button1 will open a new window with a standard checkers board\n\t\tJButton button1 = new JButton(\"New Game (Standard Setup)\");\n\n\t\tbutton1.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\tNewGameSettings.createAndShowGameSettings();\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\t\t// Setting up button1\n\t\tbutton1.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton1.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button2 will open a new window where a custom setup can be created\n\t\tJButton button2 = new JButton(\"New Game (Custom Setup)\");\n\t\tbutton2.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Begin creating custom game board setup for checkers\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button2\n\t\tbutton2.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton2.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button3 is not implemented yet, it will be used to load a saved game\n\t\tJButton button3 = new JButton(\"Load A Saved Game\");\n\t\tbutton3.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton3.setMaximumSize(new Dimension(250, 40));\n\t\tbutton3.addActionListener(new ActionListener() {\n\n\t\t\tfinal JFrame popupWrongFormat = new PopupFrame(\n\t\t\t\t\t\"Wrong Format!\",\n\t\t\t\t\t\"<html><center>\"\n\t\t\t\t\t\t\t+ \"The save file is in the wrong format! <br><br>\"\n\t\t\t\t\t\t\t+ \"Please make sure the load file is in csv format with an 8x8 table, \"\n\t\t\t\t\t\t\t+ \"followed by whose turn it is, \"\n\t\t\t\t\t\t\t+ \"the white player type and the black player type.\"\n\t\t\t\t\t\t\t+ \"</center></html>\");\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// This will create the file chooser\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser();\n\n\t\t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"CSV Files\", \"csv\");\n\t\t\t\t\t\tchooser.setFileFilter(filter);\n\n\t\t\t\t\t\tint returnVal = chooser.showOpenDialog(startMenu);\n\t\t\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t\tFile file = chooser.getSelectedFile();\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcheckAndPlay(file);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tpopupWrongFormat.setVisible(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Do nothing. Load cancelled by user.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Button4 closes the game\n\t\tJButton button4 = new JButton(\"Exit Ultimate Checkers\");\n\t\tbutton4.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button4\n\t\tbutton4.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton4.setMaximumSize(new Dimension(250, 40));\n\n\t\t// The four buttons are added to the panel and aligned\n\t\tpanel.add(button1);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button2);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button3);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 80)));\n\t\tpanel.add(button4);\n\n\t\t// Setting up the start Menu\n\t\tstartMenu.setSize(400, 600);\n\t\tstartMenu.setResizable(false);\n\n\t\t// Centers the window with respect to the user's screen resolution\n\t\tDimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint x = (int) ((dimension.getWidth() - startMenu.getWidth()) / 2);\n\t\tint y = (int) ((dimension.getHeight() - startMenu.getHeight()) / 2);\n\t\tstartMenu.setLocation(x, y);\n\n\t\tstartMenu.add(panel, BorderLayout.CENTER);\n\t\tstartMenu.setVisible(true);\n\n\t}", "private void createAndShowGUI() {\n setSize(300, 200);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n addContent(getContentPane());\n\n //pack();\n setVisible(true);\n }", "public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}", "protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }", "public void open() {\n\t\tthis.createContents();\n\n\t\tWindowBuilder delegate = this.getDelegate();\n\t\tdelegate.setTitle(this.title);\n\t\tdelegate.setContents(this);\n\t\tdelegate.setIcon(this.iconImage);\n\t\tdelegate.setMinHeight(this.minHeight);\n\t\tdelegate.setMinWidth(this.minWidth);\n\t\tdelegate.open();\n\t}", "@Override\r\n\tprotected final void createAppWindows() {\r\n \t//Instantiate only DD-specific windows. SFDC-scope windows (such as mainWindow) are static\r\n \t// objects in the EISTestBase class\r\n \tmyDocumentsPopUp = createWindow(\"WINDOW_MY_DOCUMENTS_POPUP_PROPERTIES_FILE\");\r\n }", "protected void createContents() {\n\n\t\tfinal FileServeApplicationWindow appWindow = this;\n\n\t\tthis.shlFileServe = new Shell();\n\t\tthis.shlFileServe.setSize(450, 300);\n\t\tthis.shlFileServe.setText(\"File Serve - Server\");\n\t\tthis.shlFileServe.setLayout(new BorderLayout(0, 0));\n\n\t\tthis.composite = new Composite(this.shlFileServe, SWT.NONE);\n\t\tthis.composite.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tthis.composite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.composite.setLayout(new FormLayout());\n\n\t\tthis.lblServerTcpPort = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerTcpPort = new FormData();\n\t\tfd_lblServerTcpPort.top = new FormAttachment(0, 10);\n\t\tfd_lblServerTcpPort.left = new FormAttachment(0, 10);\n\t\tthis.lblServerTcpPort.setLayoutData(fd_lblServerTcpPort);\n\t\tthis.lblServerTcpPort.setText(\"Server TCP Port:\");\n\n\t\tthis.serverTCPPortField = new Text(this.composite, SWT.BORDER);\n\t\tthis.serverTCPPortField.setTextLimit(5);\n\t\tthis.serverTCPPortField.addVerifyListener(new VerifyListener() {\n\t\t\t@Override\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\te.doit = true;\n\t\t\t\tfor(int i = 0; i < e.text.length(); i++) {\n\n\t\t\t\t\tchar c = e.text.charAt(i);\n\n\t\t\t\t\tboolean b = false;\n\n\t\t\t\t\tif(c >= '0' && c <= '9') {b = true;}\n\t\t\t\t\telse if(c == SWT.BS) {b = true;}\n\t\t\t\t\telse if(c == SWT.DEL) {b = true;}\n\n\t\t\t\t\tif(b == false) {\n\t\t\t\t\t\te.doit = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tFormData fd_serverTCPPortField = new FormData();\n\t\tfd_serverTCPPortField.top = new FormAttachment(0, 7);\n\t\tfd_serverTCPPortField.right = new FormAttachment(100, -54);\n\t\tfd_serverTCPPortField.left = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tthis.serverTCPPortField.setLayoutData(fd_serverTCPPortField);\n\n\t\tthis.btnStartServer = new Button(this.composite, SWT.NONE);\n\t\tFormData fd_btnStartServer = new FormData();\n\t\tfd_btnStartServer.bottom = new FormAttachment(100, -10);\n\t\tfd_btnStartServer.right = new FormAttachment(100, -10);\n\t\tthis.btnStartServer.setLayoutData(fd_btnStartServer);\n\t\tthis.btnStartServer.setText(\"Start Server\");\n\n\t\tthis.lblServerStatus = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerStatus = new FormData();\n\t\tfd_lblServerStatus.right = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_lblServerStatus.top = new FormAttachment(this.btnStartServer, 5, SWT.TOP);\n\t\tfd_lblServerStatus.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblServerStatus.setLayoutData(fd_lblServerStatus);\n\t\tthis.lblServerStatus.setText(\"Server Status: Stopped\");\n\n\t\tthis.text = new Text(this.composite, SWT.BORDER);\n\t\tFormData fd_text = new FormData();\n\t\tfd_text.top = new FormAttachment(this.serverTCPPortField, 6);\n\t\tthis.text.setLayoutData(fd_text);\n\n\t\tthis.lblHighestDirectory = new Label(this.composite, SWT.NONE);\n\t\tfd_text.left = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tFormData fd_lblHighestDirectory = new FormData();\n\t\tfd_lblHighestDirectory.top = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tfd_lblHighestDirectory.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblHighestDirectory.setLayoutData(fd_lblHighestDirectory);\n\t\tthis.lblHighestDirectory.setText(\"Highest Directory:\");\n\n\t\tthis.button = new Button(this.composite, SWT.NONE);\n\n\t\tfd_text.right = new FormAttachment(100, -54);\n\t\tFormData fd_button = new FormData();\n\t\tfd_button.left = new FormAttachment(this.text, 6);\n\t\tthis.button.setLayoutData(fd_button);\n\t\tthis.button.setText(\"...\");\n\n\t\tthis.grpConnectionInformation = new Group(this.composite, SWT.NONE);\n\t\tfd_button.bottom = new FormAttachment(this.grpConnectionInformation, -1);\n\t\tthis.grpConnectionInformation.setText(\"Connection Information:\");\n\t\tthis.grpConnectionInformation.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_grpConnectionInformation = new FormData();\n\t\tfd_grpConnectionInformation.bottom = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_grpConnectionInformation.right = new FormAttachment(this.btnStartServer, 0, SWT.RIGHT);\n\t\tfd_grpConnectionInformation.top = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tfd_grpConnectionInformation.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.grpConnectionInformation.setLayoutData(fd_grpConnectionInformation);\n\n\t\tthis.scrolledComposite = new ScrolledComposite(this.grpConnectionInformation, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tthis.scrolledComposite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.scrolledComposite.setExpandHorizontal(true);\n\t\tthis.scrolledComposite.setExpandVertical(true);\n\n\t\tthis.table = new Table(this.scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tthis.table.setLinesVisible(true);\n\t\tthis.table.setHeaderVisible(true);\n\t\tthis.scrolledComposite.setContent(this.table);\n\t\tthis.scrolledComposite.setMinSize(this.table.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "public PastDataWindow(){\n // Set the title\n setTitle(\"Past CS Data Viewer\");\n\n //Create a new BorderLayout manager\n setLayout(new BorderLayout());\n\n // Centers the window\n setLocationRelativeTo(null);\n \n //Build the view panel\n buildViewPanel();\n \n //Add text area to the window\n add(viewPanel, BorderLayout.CENTER);\n \n //Clean up and display the window\n pack();\n setVisible(true);\n }", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(447, 310);\n\t\tshell.setText(\"Verisure ASCII Node\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\t\n\t\tTabItem basicItem = new TabItem(tabFolder, SWT.NONE);\n\t\tbasicItem.setText(\"Basic\");\n\t\t\n\t\tComposite basicComposite = new Composite(tabFolder, SWT.NONE);\n\t\tbasicItem.setControl(basicComposite);\n\t\tbasicComposite.setLayout(null);\n\t\t\n\t\tButton btnDelMeasurments = new Button(basicComposite, SWT.NONE);\n\t\t\n\t\tbtnDelMeasurments.setToolTipText(\"Delete the measurements from the device.\");\n\t\tbtnDelMeasurments.setBounds(269, 192, 159, 33);\n\t\tbtnDelMeasurments.setText(\"Delete measurements\");\n\t\t\n\t\tButton btnGetMeasurement = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetMeasurement.setToolTipText(\"Get the latest measurement from the device.\");\n\t\t\n\t\tbtnGetMeasurement.setBounds(0, 36, 159, 33);\n\t\tbtnGetMeasurement.setText(\"Get new bloodvalue\");\n\t\t\n\t\tfinal StyledText receiveArea = new StyledText(basicComposite, SWT.BORDER | SWT.WRAP);\n\t\treceiveArea.setLocation(167, 30);\n\t\treceiveArea.setSize(259, 92);\n\t\treceiveArea.setToolTipText(\"This is where the measurement will be displayd.\");\n\t\t\n\t\tButton btnBase64 = new Button(basicComposite, SWT.RADIO);\n\t\tbtnBase64.setToolTipText(\"Show the latest blood value (base64 encoded).\");\n\t\tbtnBase64.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\t\n\t\tbtnDelMeasurments.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Deleting measurements, please wait...\");\n\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"DEL\";\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\tSystem.out.println(\"Sov i tre sekunder.\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\treceiveArea.setText(\"Deleted measurements from device.\");\n\t\t\t}\n\t\t});\n\t\tbtnBase64.setSelection(true);\n\t\tbtnBase64.setBounds(137, 130, 74, 25);\n\t\tbtnBase64.setText(\"base64\");\n\t\t\n\t\tButton btnHex = new Button(basicComposite, SWT.RADIO);\n\t\tbtnHex.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t\t\t\ttype = 2;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\tbtnHex.setToolTipText(\"Show the measurement in hex.\");\n\t\tbtnHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnHex.setBounds(217, 130, 50, 25);\n\t\tbtnHex.setText(\"hex\");\n\t\t\n\t\tButton btnAscii = new Button(basicComposite, SWT.RADIO);\n\t\t\n\t\tbtnAscii.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 1;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Return that the value should be represented as base64.\n\t\t * \n\t\t */\n\t\t\n\t\tbtnBase64.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 0;\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnAscii.setToolTipText(\"Show the measurement in ascii.\");\n\t\tbtnAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnAscii.setBounds(269, 130, 53, 25);\n\t\tbtnAscii.setText(\"ascii\");\n\t\t\n\t\tLabel label = new Label(basicComposite, SWT.NONE);\n\t\tlabel.setText(\"A master thesis project by Pétur and David\");\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlabel.setBounds(10, 204, 192, 21);\n\t\t\n\t\tButton btnGetDbValue = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetDbValue.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting latest measurements from db, please wait...\");\n\t\t\t}\n\t\t});\n\t\tbtnGetDbValue.setBounds(0, 71, 159, 33);\n\t\tbtnGetDbValue.setText(\"Get latest bloodvalue\");\n\t\t\n\t\t/*\n\t\t *Get measurement from device event handler \n\t\t *\n\t\t *@param The Mouse Adapter\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\tbtnGetMeasurement.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\tpublic void MouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Getting measurement from device, please wait...\");\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"LOG\";\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(2000);\n\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting measurements from device, please wait...\");\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t/*\n\t\t * The advanced tab section\n\t\t */\n\t\t\n\t\tTabItem advancedItem = new TabItem(tabFolder, SWT.NONE);\n\t\tadvancedItem.setText(\"Advanced\");\n\t\t\n\t\tComposite advComposite = new Composite(tabFolder, SWT.NONE);\n\t\tadvancedItem.setControl(advComposite);\n\t\tadvComposite.setLayout(null);\n\t\t\n\t\tButton advSendButton = new Button(advComposite, SWT.NONE);\n\t\t\n\t\n\t\tadvSendButton.setToolTipText(\"Send arbitary data to the device.\");\n\t\n\t\tadvSendButton.setBounds(307, 31, 121, 33);\n\t\tadvSendButton.setText(\"Send Data\");\n\t\t\n\t\tLabel lblNewLabel = new Label(advComposite, SWT.NONE);\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(10, 204, 192, 21);\n\t\tlblNewLabel.setText(\"A master thesis project by Pétur and David\");\n\t\t\n\t\tfinal StyledText advSendArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvSendArea.setToolTipText(\"This is where you type your arbitary data to send to the device.\");\n\t\tadvSendArea.setBounds(10, 31, 291, 33);\n\t\t\n\t\tButton advReceiveButton = new Button(advComposite, SWT.NONE);\n\t\t\n\n\t\t\n\t\tadvReceiveButton.setToolTipText(\"Receive data from the database.\");\n\t\tadvReceiveButton.setBounds(10, 70, 99, 33);\n\t\tadvReceiveButton.setText(\"Receive Data\");\n\t\t\n\t\tfinal StyledText advReceiveArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvReceiveArea.setToolTipText(\"This is where the receive data will be presented.\");\n\t\tadvReceiveArea.setBounds(115, 67, 313, 70);\n\t\t\n\t\tButton advAscii = new Button(advComposite, SWT.RADIO);\n\t\tadvAscii.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tadvReceiveButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receiving the data, please wait...\");\n\t\t\t\tXBNConnection xbn = new XBNConnection();\n\t\t\t\tString text = xbn.getNodeFaults(advType);\n\t\t\t\tadvReceiveArea.setText(text);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receivng data from device, please wait\");\n\t\t\t}\n\t\t});\n\t\tadvAscii.setSelection(true);\n\t\tadvAscii.setToolTipText(\"Show the database results as ascii.\");\n\t\tadvAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvAscii.setBounds(10, 109, 54, 25);\n\t\tadvAscii.setText(\"ascii\");\n\t\t\n\t\tButton advHex = new Button(advComposite, SWT.RADIO);\n\t\tadvHex.setToolTipText(\"Show the database results as hex.\");\n\t\tadvHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvHex.setBounds(66, 109, 43, 25);\n\t\tadvHex.setText(\"hex\");\n\t\tadvHex.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnDeleteDatabase = new Button(advComposite, SWT.NONE);\n\t\tbtnDeleteDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tdb.deleteMessages();\n\t\t\t\tadvReceiveArea.setText(\"Deleted data from database\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnDeleteDatabase.setToolTipText(\"Delete entries in the database.\");\n\t\tbtnDeleteDatabase.setText(\"Delete database\");\n\t\tbtnDeleteDatabase.setBounds(269, 192, 159, 33);\n\t\t\n\t\n\t\t\n\n\t\t/*\n\t\t * This is the advanced send button. Can send arbitary text to the device.\n\t\t */\n\t\t\n\t\tadvSendButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\t//advSendArea.setText(\"Sending: '\"+advSendArea.getText()+\"' to the device, please wait...\");\n\t\t\t\tString theText = advSendArea.getText();\n\t\t\t\tSystem.out.println(\"Texten som ska skickas är: \" + theText);\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tString chunkText = \"\";\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tStringBuilder sb = new StringBuilder(theText);\n\t\t\t\t// Add and @ to be sure that there will never be two strings that are\n\t\t\t\t// the same in a row.\n\t\t\t\t// for (int i = 3; i < sb.toString().length(); i += 6) {\n\t\t\t\t// sb.insert(i, \"@\");\n\t\t\t\t// }\n\t\t\t\t// theText = sb.toString();\n\t\t\t\tSystem.out.println(theText);\n\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\tif (theText.length() < 3) {\n\t\t\t\t\t\tchunkText = theText.substring(0, theText.length());\n\t\t\t\t\t\tint pad = theText.length() % 3;\n\t\t\t\t\t\tif (pad == 1) {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunkText = theText.substring(0, 3);\n\t\t\t\t\t}\n\n\t\t\t\t\ttheText = theText.substring(3);\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\trest.doPut(chunkText);\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile (theText.length() > 0 && db.getAck(chunkText, rest));\n\t\t\t\tadvSendArea.setText(\"Data sent to the device.\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\n\t}", "public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell(SWT.APPLICATION_MODAL|SWT.CLOSE);\r\n\t\tshell.setSize(800, 600);\r\n\t\tshell.setText(\"租借/归还车辆\");\r\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\r\n\r\n\t\t/**换肤功能已经实现*/\r\n\t\tString bgpath = ChangeSkin.getCurrSkin();\r\n\t\tInputStream bg = this.getClass().getResourceAsStream(bgpath);\r\n\t\t\r\n\t\tInputStream reimg = this.getClass().getResourceAsStream(\"/Img/icon1.png\");\r\n\t\tshell.setBackgroundImage(new Image(display,bg));\r\n\t\tshell.setImage(new Image(display, reimg));\r\n\t\t\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(52, 48, 168, 20);\r\n\t\tlabel.setText(\"\\u8BF7\\u60A8\\u8BA4\\u771F\\u586B\\u5199\\u79DF\\u8D41\\u4FE1\\u606F:\");\r\n\t\t\r\n\t\tLabel lblid = new Label(shell, SWT.NONE);\r\n\t\tlblid.setBounds(158, 180, 61, 20);\r\n\t\tlblid.setText(\"\\u8F66\\u8F86ID\");\r\n\t\t\r\n\t\tui_car_id = new Text(shell, SWT.BORDER);\r\n\t\tui_car_id.setBounds(225, 177, 129, 26);\r\n\t\t\r\n\t\tui_renter = new Text(shell, SWT.BORDER);\r\n\t\tui_renter.setBounds(225, 228, 129, 26);\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(159, 231, 61, 20);\r\n\t\tlabel_1.setText(\"\\u79DF\\u8D41\\u4EBA\");\r\n\t\t\r\n\t\tDateTime ui_start = new DateTime(shell, SWT.BORDER);\r\n\t\tui_start.setBounds(225, 271, 129, 28);\r\n\t\t\r\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setBounds(144, 271, 76, 20);\r\n\t\tlabel_2.setText(\"\\u5F00\\u59CB\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setBounds(144, 326, 76, 20);\r\n\t\tlabel_3.setText(\"\\u7ED3\\u675F\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setBounds(559, 97, 76, 20);\r\n\t\tlabel_4.setText(\"\\u5F53\\u524D\\u8D39\\u7528:\");\r\n\t\t\r\n\t\tLabel ui_count_price = new Label(shell, SWT.BORDER | SWT.CENTER);\r\n\t\tui_count_price.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 16, SWT.NORMAL));\r\n\t\tui_count_price.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tui_count_price.setBounds(539, 205, 156, 77);\r\n\t\tui_count_price.setText(\"0.00\");\r\n\t\t\r\n\t\tDateTime ui_end = new DateTime(shell, SWT.BORDER);\r\n\t\tui_end.setBounds(225, 318, 129, 28);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentser = new RentService();\r\n\t\t\t\tdouble day_pri = rentser.rentPrice(ui_car_id.getText());\r\n\t\t\t\t/*当前仅能计算一个月以内的租用情况\r\n\t\t\t\t * @Time 10/09/15.03\r\n\t\t\t\t * \r\n\t\t\t\t * **/\r\n\t\t\t\t//不管当月几天,都按照30天计算\r\n\t\t\t\tint month = ui_end.getMonth()-ui_start.getMonth();\r\n\t\t\t\tint day = (ui_end.getDay() - ui_start.getDay()) +\r\n\t\t\t\t\t\tmonth * 30\r\n\t\t\t\t\t\t;\r\n\t\t\t\tif(day_pri > 0) {\r\n\t\t\t\t\tui_count_price.setText(String.valueOf(day*day_pri));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"数据非法\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(122, 393, 141, 30);\r\n\t\tbutton.setText(\"\\u4F30\\u7B97\\u5F53\\u524D\\u79DF\\u8D41\\u4EF7\\u683C\");\r\n\t\t\r\n\t\tButton button_1 = new Button(shell, SWT.NONE);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentService = new RentService();\r\n\t\t\t\tString sdate = ui_start.getDay()+\"-\"+ui_start.getMonth()+\"月-\"+ui_start.getYear();\r\n\t\t\t\tString edate = ui_end.getDay()+\"-\"+ui_end.getMonth()+\"月-\"+ui_end.getYear();\r\n\t\t\t\t/**这个地方可能有问题*/\r\n\t\t\t\tboolean rentCar = rentService.rentCar(ui_car_id.getText(),sdate , edate, ui_count_price.getText());\r\n\t\t\t\tif(rentCar) {\r\n\t\t\t\t\tui_count_price.setText(\"租借成功!\");\r\n\t\t\t\t\t/**租借成功,就该让信息表中的数据减1**/\r\n\t\t\t\t\tCarService cars = new CarService();\r\n\t\t\t\t\tcars.minusCar(ui_car_id.getText());\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"租借失败!\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(292, 393, 98, 30);\r\n\t\tbutton_1.setText(\"\\u79DF\\u501F\");\r\n\t\t\r\n\t\r\n\r\n\t}", "private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }", "private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }", "private void buildContentPane() {\n\t\t// The JPanel that will become the content pane\n\t\tJPanel cp = new JPanel();\n\t\tcp.setLayout(new BoxLayout(cp, BoxLayout.PAGE_AXIS));\n\n\t\tlanguagePanel = initLanguagePanel();\n\t\tcp.add(languagePanel);\n\n\t\tinputPanel = initInputPanel();\n\t\tcp.add(inputPanel);\n\n\t\tJPanel btnPanel = initBtnPanel();\n\t\tcp.add(btnPanel);\n\n\t\toutputPanel = initOutputPanel();\n\t\tcp.add(outputPanel);\n\n\t\tJPanel picturePanel = initPicturePanel();\n\t\tif(picturePanel == null) {\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_SMALL_HEIGHT);\n\t\t}\n\t\telse {\n\t\t\tcp.add(picturePanel);\n\t\t}\n\n\t\tLanguage selectedLang = languagePanel.getSelectedLanguage();\n\t\tsetLanguage(selectedLang);\n\n\t\tframe.setContentPane(cp);\n\t}", "protected void createContents() throws Exception\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(755, 592);\n\t\tshell.setText(\"Impresor - Documentos v1.2\");\n\t\t\n\t\tthis.commClass.centrarVentana(shell);\n\t\t\n\t\tlistComandos = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.COLOR_WHITE);\n\t\tlistComandos.setBounds(72, 22, 628, 498);\n\t\tlistComandos.setVisible(false);\n\n//Boton que carga los documentos\t\t\n\t\tButton btnLoaddocs = new Button(shell, SWT.NONE);\n\t\tbtnLoaddocs.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tloadDocs(false, false);\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.setBounds(10, 20, 200, 26);\n\t\tbtnLoaddocs.setText(\"Cargar documentos a imprimir\");\n\t\t\n//Browser donde se muestra el documento descargado\n\t\tbrowser = new Browser(shell, SWT.BORDER);\n\t\tbrowser.setBounds(10, 289, 726, 231);\n\t\tbrowser.addProgressListener(new ProgressListener() \n\t\t{\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// Cuando cambia.\t\n\t\t\t}\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\t/* Cuando se completo \n\t\t\t\t Se usa para parsear el documento una vez cargado, el documento\n\t\t\t\t puede ser un doc xml que contiene un mensaje de error\n\t\t\t\t o un doc html que dara error de parseo Xml,es decir,\n\t\t\t\t ante este error entendemos que se cargo bien el doc HTML.\n\t\t\t\t Paradojico verdad? */\n\t\t\t\tleerDocumentoCargado();\n\t\t\t}\n\t\t });\n\n///Boton para iniciar impresion\t\t\n\t\tButton btnIniPrintW = new Button(shell, SWT.NONE);\n\t\tbtnIniPrintW.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.setBounds(337, 532, 144, 26);\n\t\tbtnIniPrintW.setText(\"Iniciar impresion\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 52, 885, 2);\n\t\t\n\t\tButton btnSalir = new Button(shell, SWT.NONE);\n\t\tbtnSalir.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.setBounds(659, 532, 77, 26);\n\t\tbtnSalir.setText(\"Salir\");\n\t\t\n\t\tthreadLabel = new Label(shell, SWT.BORDER);\n\t\tthreadLabel.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t//mostrar / ocultar el historial de mensajes\n\t\t\t\tMOCmsgHist();\n\t\t\t}\n\t\t});\n\t\tthreadLabel.setAlignment(SWT.CENTER);\n\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\tthreadLabel.setBounds(10, 0, 891, 18);\n\t\tthreadLabel.setText(\"\");\n\t\t\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel_1.setBounds(10, 281, 726, 2);\n\n\t\ttablaDocs = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttablaDocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.setBounds(10, 52, 726, 215);\n\t\ttablaDocs.setHeaderVisible(true);\n\t\ttablaDocs.setLinesVisible(true);\n\t\tcrearColumnas(tablaDocs);\n\t\t\n//Label que muestra los mensajes\n\t\tmensajeTxt = new Label(shell, SWT.NONE);\n\t\tmensajeTxt.setAlignment(SWT.CENTER);\n\t\tmensajeTxt.setBounds(251, 146, 200, 26);\n\t\tmensajeTxt.setText(\"Espere...\");\n\t\t\n//Listado donde se muestran los documentos cargados\n\t\tlistaDocumentos = new List(shell, SWT.BORDER);\n\t\tlistaDocumentos.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.setBounds(10, 82, 726, 77);\n\t\t\n\t\tButton btnShowPreview = new Button(shell, SWT.CHECK);\n\t\tbtnShowPreview.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tmostrarPreview = true;\n\t\t\t\t}else{\n\t\t\t\t\tmostrarPreview = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShowPreview.setBounds(215, 28, 118, 18);\n\t\tbtnShowPreview.setText(\"Mostrar preview\");\n\t\t\n\t\tButton btnAutoRefresh = new Button(shell, SWT.CHECK);\n\t\tbtnAutoRefresh.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tautoRefresh = true;\n\t\t\t\t\tbeginTarea();\n\t\t\t\t}else{\n\t\t\t\t\tautoRefresh = false;\n\t\t\t\t\tponerMsg(\"Carga automática desactivada\");\n\t\t\t\t\tfinishTarea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAutoRefresh.setBounds(353, 28, 128, 18);\n\t\tbtnAutoRefresh.setText(\"Recarga Automática\");\n\t\t\n\t\ttareaBack(this, autoRefresh).start();\n\t\tloadDocs(false, false);\n\t}", "private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"FrameDemo\");\n frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n\n //main input TextArea\n JTextArea mainIn = new JTextArea(\"Type your Command here.\", 3, 1);\n \n //main Output Display Displays htmlDocuments\n JTextPane mainOut = new JTextPane(new HTMLDocument());\n mainOut.setPreferredSize(new Dimension(800, 600));\n \n //add components to Pane\n frame.getContentPane().add(mainOut);\n frame.getContentPane().add(mainIn);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void buildAndShowWindow() {\n SwingUtilities.invokeLater(() -> {\n buildWindow().setVisible(true);\n });\n }", "private static void createAndShowGUI() {\n\t\tint width = 500, height = 300;\n\t\tJFrame frame = new JFrame(\"Text File Reader\");\n\t\tframe.setSize(new Dimension(width, height));\n\t\tframe.setContentPane(new MainExecutor(width, height)); /* Adds the panel to the frame */\n\n\t\t/* Centralizing the frame */\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint upperLeftCornerX = (screenSize.width - frame.getWidth()) / 2;\n\t\tint upperLeftCornerY = (screenSize.height - frame.getHeight()) / 2;\n\t\tframe.setLocation(upperLeftCornerX, upperLeftCornerY);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n\t\t/* Shows the GUI */\n\t\tframe.setVisible(true);\n\t}", "public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }", "public void CreateTheFrame()\n {\n setSize(250, 300);\n setMaximumSize( new Dimension(250, 300) );\n setMinimumSize(new Dimension(250, 300));\n setResizable(false);\n\n pane = getContentPane();\n insets = pane.getInsets();\n\n // Apply the null layout\n pane.setLayout(null);\n }", "public Scene Window(){\n Area.setPrefHeight(177);\n Area.setPrefWidth(650);\n Area.setOpacity(0.5);\n Area.setEditable(false);\n Area.setText(\"\\n\\nThe application is used for PV(photovoltaics) sizing to power a RO(Reverse osmosis) desalination unit\" +\n \"\\nThe system depends on batteries to store energy.\" +\n \"\\n\\nTo use this application without problems, you must have the following information\\n\" +\n \"\\t*The location of the desalination unit;\\n\" +\n \"\\t*Amount of power required to operate the unit in kilowatts;\\n\" +\n \"\\t*Time of operating for RO;\\n\" +\n \"\\t*Detailed specification information of the pv modules;\\n\" +\n \"\\t*The number of people the Ro unit will provide water for,and the average water consumption for regular person\");\n\n boxPane.setPrefHeight(44);\n boxPane.setPrefWidth(650);\n\n //Go user map selection interface\n nextWindow.setPrefHeight(30);\n nextWindow.setPrefWidth(300);\n nextWindow.setMnemonicParsing(false);\n nextWindow.setText(\"NEXT\");\n\n\n //HBox.setMargin(nextWindow, new Insets(5,0,5,0));\n // boxPane.getChildren().addAll(nextWindow);\n boxPane.setAlignment(Pos.CENTER);\n\n //Load text area and button to the container\n rootPane.setCenter(Area);\n rootPane.setBottom(boxPane);\n\n scene = new Scene(rootPane,640,300);\n return scene;\n }", "private static void createAndShowGUI() {\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame(\"Color test\");\n\t\tframe.setPreferredSize(new Dimension(700, 700));\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//Create and set up the content pane.\n\t\tJComponent newContentPane = new ColorTest();\n\t\tnewContentPane.setOpaque(true); //content panes must be opaque\n\t\tframe.setContentPane(newContentPane);\n\n\t\t//Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}" ]
[ "0.78568476", "0.770408", "0.77024", "0.75711876", "0.747748", "0.7446512", "0.7418617", "0.74041", "0.7305366", "0.72465086", "0.7217618", "0.7171157", "0.71683043", "0.7142865", "0.71213007", "0.71075344", "0.7094211", "0.7083325", "0.707515", "0.69683087", "0.69569373", "0.69435936", "0.69432276", "0.69396424", "0.6924243", "0.6895419", "0.6850218", "0.68276834", "0.68074876", "0.68025005", "0.67898977", "0.67841756", "0.67757124", "0.674601", "0.67445385", "0.6740135", "0.6739461", "0.6706772", "0.6685774", "0.66814446", "0.66730106", "0.66603976", "0.6653801", "0.66439974", "0.6635548", "0.6622658", "0.66165483", "0.6613815", "0.66127455", "0.6610833", "0.6604642", "0.6603116", "0.65947884", "0.6588881", "0.65808713", "0.65702486", "0.6568938", "0.6566003", "0.65533143", "0.6551275", "0.65337104", "0.6527361", "0.65089124", "0.6486221", "0.64831036", "0.6473845", "0.6466729", "0.64224565", "0.6418808", "0.64153755", "0.63810664", "0.6373637", "0.6366111", "0.63491476", "0.63487905", "0.63265365", "0.6314956", "0.63062686", "0.6295113", "0.6278655", "0.6273466", "0.62667793", "0.6245354", "0.6240118", "0.62346804", "0.62346417", "0.6215663", "0.62077373", "0.620583", "0.6200544", "0.6182369", "0.61820024", "0.61793536", "0.61787826", "0.6165086", "0.6160475", "0.6158696", "0.6157515", "0.615536", "0.6149862" ]
0.6324279
76
TODO Autogenerated method stub
public void widgetSelected(SelectionEvent e) { doctorcombo.removeAll(); int i = subject.getSelectionIndex(); if(i == 0){ int j = pdtabledaoimpl.findByname1(subject.getItem(0)); for (int k = 0; k < j; k++){ String ss = pdtabledaoimpl.findByname2(subject.getItem(0),j,k); doctorcombo.add(ss, k); } } else if(i == 1){ int j = pdtabledaoimpl.findByname1(subject.getItem(1)); for (int k = 0; k < j; k++){ String ss = pdtabledaoimpl.findByname2(subject.getItem(1),j,k); doctorcombo.add(ss, k); } } else if(i == 2){ int j = pdtabledaoimpl.findByname1(subject.getItem(2)); for(int k = 0; k< j; k++){ String ss = pdtabledaoimpl.findByname2(subject.getItem(2),j,k); doctorcombo.add(ss, k); } } else if(i == 3){ int j = pdtabledaoimpl.findByname1(subject.getItem(3)); for(int k = 0; k< j; k++){ String ss = pdtabledaoimpl.findByname2(subject.getItem(3),j,k); doctorcombo.add(ss, k); } } else if(i == 4){ int j = pdtabledaoimpl.findByname1(subject.getItem(4)); for(int k = 0; k< j; k++){ String ss = pdtabledaoimpl.findByname2(subject.getItem(4),j,k); doctorcombo.add(ss, k); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void widgetSelected(SelectionEvent e) { int i = doctorcombo.getSelectionIndex(); int j = subject.getSelectionIndex(); Register.setName(nametext.getText()); Register.setSubject(subject.getItem(j)); Register.setDoctor(doctorcombo.getItem(i)); RDI.Save(Register); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void widgetSelected(SelectionEvent e) { int i = typecombo.getSelectionIndex(); if(i == 0){ costtext.setText("3元"); } else if(i == 1){ costtext.setText("5元"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.config_input_layout); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
This method is to sort the data based on map value (count of the word)
public static Map<String, Integer> sortByCount(Map<String, Integer> countMap) { LOG.info("counterUtil::sortByCount:start"); //Below logic will sort the map based on "max count" value and will store sorted map in a LinkedHashMap Map<String, Integer> sortedMap = countMap.entrySet().stream(). sorted(Collections.reverseOrder(comparingByValue())). collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2, LinkedHashMap::new)); LOG.info("counterUtil::sortByCount:end"); return sortedMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortCount() {\n\t\tfor(Entry<String, TreeMap<String, Integer>> entry:map.entrySet()){\r\n\t\t\tTreeMap<String, Integer> tmap = entry.getValue();\r\n\t\t\tList<Entry<String, Integer>> sorttmap = MapSort.sortMapByIntegerValue(tmap);\r\n\t\t\t int flag=0;\r\n for(Entry<String, Integer> word:sorttmap){ \r\n \tflag++;\r\n \tkeyword.add(word.getKey());\r\n// System.out.println(mapping.getKey()+\":\"+mapping.getValue()); \r\n \tif(flag==5)\r\n \t\tbreak;\r\n } \r\n\t\t}\r\n\t\r\n\t}", "public static void main(String[] args) {\n\n\t\tList<String> list = Arrays.asList(\"I\", \"Love\", \"Word\", \"I\", \"Love\");\n\t\tMap<String, Long> map = list.stream()\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));\n\t\t//map.entrySet().stream().sorted(Comparator.(Entry.comparingByValue()).thenComparing(Entry.comparingByKey()))\n\t\t// I - 2, \"Word\" -1, \"Love\"- 2\n\t\t\n\t}", "private List<StringCountDto> getSortedStatistics() {\n return STRING_STATISTICS.entrySet()\n .stream()\n .sorted(Map.Entry.<String, CounterInfo>comparingByValue().reversed())\n .map(entry -> new StringCountDto(entry.getKey(), entry.getValue().getCount()))\n .collect(Collectors.toList());\n }", "public HashMap<String, Integer> getOrder(){\n\t\t\n\t\tHashMap<String, Integer> hm2 = getHashMap();\n\t\n\t\tArrayList fq = new ArrayList<>();\n\t\t\n\t\tHashMap<String, Integer> top10 = new HashMap<String, Integer>();\n\t\t\n\t\tfor(String key : hm2.keySet()){\n\t\t\t\n\t\t\tfq.add(hm2.get(key));\n\t\t}\n\t\t// use Collection to get the order of frequency\n\t\tCollections.sort(fq);\n \tCollections.reverse(fq);\n \t\n \tfor(int i = 0; i<11; i++){\n \t\t\n \t\tfor(String key : hm2.keySet()){\n \t\t// make sure the word not equals to balck space\n \t\tif(hm2.get(key) == fq.get(i) && !key.equals(\"\") ){\n \t\t\t\n \t\t top10.put(key, hm2.get(key));\n \t\t\t\t\n \t\t}\n \t}\t\n\t}\n\t\treturn top10;\n\t}", "public static PriorityQueue<WordCount> sortWords(HashMap<String, Integer> counts){\n\t\tPriorityQueue<WordCount> words = new PriorityQueue<WordCount>(99999, new wordCountComparator());\n\t\tWordCount wc = null;\n\t\tfor(Map.Entry<String, Integer> entry : counts.entrySet()){\n\t\t\twc = new WordCount(entry.getKey(), entry.getValue());\n\t\t\twords.add(wc);\n\t\t}\n\t\treturn words;\n\t}", "public String[] topHotWords( int count ){\r\n //If the number put in the arguments is greater than the number of distinct hotwords\r\n //in the document, limit it to distinctCount\r\n if (count > distinctCount()){\r\n count = distinctCount();\r\n }\r\n //Creating the array that will hold all the hotwords in order of number of appearances \r\n String[] topWord = new String[words.size()];\r\n //This is the subset of the array above that will return the amount specified by the count argument\r\n String[] output = new String[count];\r\n //Fills the array with blank strings\r\n Arrays.fill(topWord, \"\");\r\n //Iterator for moving through topWord for assignment\r\n int iterator = 0;\r\n //Loop through every hotword in words and puts those words in topWord\r\n for(String key: words.keySet()){\r\n topWord[iterator] = key;\r\n iterator++;\r\n }\r\n //Sorts the words in topword\r\n for(int i = 0; i < words.size(); i++){\r\n for(int j = words.size()-1; j > 0; j-- ){\r\n \r\n if(count(topWord[j]) > count(topWord[i])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[j];\r\n topWord[j] = temp;\r\n }\r\n \r\n }\r\n }\r\n //Does a secondary check to be certain all words are in proper appearance number order\r\n for(int i = words.size()-1; i >0; i--){\r\n if(count(topWord[i]) > count(topWord[i-1])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[i-1];\r\n topWord[i-1] = temp;\r\n }\r\n }\r\n //Orders the words with the same number of appearances by order of appearance in the document\r\n for (int i = 0; i < words.size(); i++){\r\n for(int j = i+1; j < words.size(); j++){\r\n if (count(topWord[i]) == count(topWord[j])){\r\n if (consec.indexOf(topWord[j]) < consec.indexOf(topWord[i])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[j];\r\n topWord[j] = temp;\r\n }\r\n }\r\n }\r\n }\r\n //Gets the subset requested for return\r\n for (int i = 0; i < count; i++){\r\n output[i] = topWord[i];\r\n }\r\n return output;\r\n\t}", "public Map<String, Integer> findUnicalWord(ArrayList<Word> text)\n {\n String[] words=new String[text.size()];\n for(int i=0; i<text.size(); i++){\n words[i]=text.get(i).toString();\n }\n HashMap<String, Integer> myWordsCount = new HashMap<>();\n for (String s : words){\n if (myWordsCount.containsKey(s)) myWordsCount.replace(s, myWordsCount.get(s) + 1);\n else myWordsCount.put(s, 1);\n }\n\n Map<String, Integer> newWordsCount = myWordsCount\n .entrySet()\n .stream()\n .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n .collect(\n toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n LinkedHashMap::new));\n\n return newWordsCount;\n\n }", "private static SortingMachine<Pair<String, Integer>> sortWords(\n Map<String, Integer> words, int numberOfWords) {\n AlphabeticalComparator stringComp = new AlphabeticalComparator();\n IntComparator intComp = new IntComparator();\n\n SortingMachine<Pair<String, Integer>> intMachine = new SortingMachine1L<>(\n intComp);\n SortingMachine<Pair<String, Integer>> stringMachine = new SortingMachine1L<>(\n stringComp);\n\n for (Map.Pair<String, Integer> pair : words) {\n intMachine.add(pair);\n }\n\n intMachine.changeToExtractionMode();\n\n for (int i = 0; i < numberOfWords; i++) {\n Pair<String, Integer> pair = intMachine.removeFirst();\n System.out.println(pair);\n stringMachine.add(pair);\n }\n\n stringMachine.changeToExtractionMode();\n\n return stringMachine;\n }", "void Create(){\n map = new TreeMap<>();\r\n\r\n // Now we split the words up using punction and spaces\r\n String wordArray[] = wordSource.split(\"[{ \\n\\r.,]}}?\");\r\n\r\n // Now we loop through the array\r\n for (String wordArray1 : wordArray) {\r\n String key = wordArray1.toLowerCase();\r\n // If this word is not present in the map then add it\r\n // and set the word count to 1\r\n if (key.length() > 0){\r\n if (!map.containsKey(map)){\r\n map.put(key, 1);\r\n }\r\n else {\r\n int wordCount = map.get(key);\r\n wordCount++;\r\n map.put(key, wordCount);\r\n }\r\n }\r\n } // end of for loop\r\n \r\n // Get all entries into a set\r\n // I think that before this we just have key-value pairs\r\n entrySet = map.entrySet();\r\n \r\n }", "static String[] sortWordsByScore(String[] words) {\n\n if(words.length == 0) return new String[0];\n String[] sorted = new String[words.length];\n\n int minScore = -1; //minScore(words[0]);\n int currentIndex = 1;\n int index = 0;\n\n getMinScoreWordIndex(words, minScore);\n\n System.out.println(tracker);\n while(currentIndex <= tracker.size()){\n\n\n System.out.println(tracker.get(index));\n \n sorted[index] = words[tracker.get(index)];\n\n index++;\n currentIndex++;\n// tracker.clear();\n }\n\n return sorted;\n }", "private static void sortMap(HashMap<Integer, Integer> map) {\n\t\t\n\t}", "public void sortWordTokens (String [] list, int count){\n \n String[] sortedWordsCopy = new String[count];\n \n \n //Makes a copy of list and stores it in sortedWordsCopy\n for (int i = 0; i < count; i++)\n sortedWordsCopy[i] = list[i];\n \n //Sorts sortedWordsCopy which is a copy of list\n Arrays.sort(sortedWordsCopy);\n \n //Copies the sorted list back out to list\n for (int i = 0; i < count; i++)\n list[i] = sortedWordsCopy[i];\n \n }", "public static void main(String[] args) {\n LinkedHashMap<String, Integer> capitals = new LinkedHashMap<>();\n capitals.put(\"Nepal\", 2);\n capitals.put(\"India\", 100);\n capitals.put(\"United States\", 5);\n capitals.put(\"England\", 10);\n capitals.put(\"Australia\", 50);\n capitals.put(\"India\", 100);\n\n // call the sortMap() method to sort the map\n Map<String, Integer> result = sortMap(capitals);\n\n for (Map.Entry<String, Integer> entry : result.entrySet()) {\n System.out.print(\"Key: \" + entry.getKey());\n System.out.println(\" Value: \" + entry.getValue());\n }\n }", "public void processFile(File rootFile) throws IOException {\n\t\tBufferedReader bf=new BufferedReader(new FileReader(rootFile));\r\n\t\tString lineTxt = null;\r\n\t\tint pos=1;\r\n\t\twhile((lineTxt = bf.readLine()) != null){\r\n String[] line=lineTxt.split(\" \");\r\n// System.out.println(line[0]);\r\n String hscode=line[0];\r\n \r\n \r\n TreeMap<String,Integer> word=null;\r\n if(!map.containsKey(hscode)){\r\n word=new TreeMap<String,Integer>();\r\n for(int i=1;i<line.length;i++){\r\n \tString key=line[i];\r\n \tif (word.get(key)!=null){\r\n \t\tint value= ((Integer) word.get(key)).intValue();\r\n \t\tvalue++;\r\n \t\tword.put(key, value);\r\n \t}else{\r\n \t\tword.put(key, new Integer(1));\r\n \t}\r\n }\r\n map.put(hscode, word);\r\n }\r\n else{\r\n //\tSystem.out.println(\"sss\");\r\n \tword = map.get(hscode);\r\n \tfor(int i=1;i<line.length;i++){\r\n \t\tString key=line[i];\r\n \tif (word.get(key)!=null){\r\n \t\tint value= ((Integer) word.get(key)).intValue();\r\n \t\tvalue++;\r\n \t\tword.put(key, value);\r\n \t}else{\r\n \t\tword.put(key, new Integer(1));\r\n \t}\r\n \t}\r\n \t\r\n \tmap.put(hscode, word);\r\n \t\r\n }\r\n\t\t}\r\n\t\tbf.close();\r\n//\t\tfor(Entry<String, TreeMap<String, Integer>> entry:map.entrySet()){\r\n//// \tSystem.out.println(\"hscode:\"+entry.getKey());\r\n// \tTreeMap<String, Integer> value = entry.getValue();\r\n// \tfor(Entry<String,Integer> e:value.entrySet()){\r\n//// \tSystem.out.println(\"单词\"+e.getKey()+\" 词频是\"+e.getValue());\r\n// \t}\r\n// }\r\n\t}", "private static HashMap<String,Integer> sortByEditDistance(String keyword, PreSearch ps) {\r\n\t\tHashMap<String, Integer> indexDistance = new HashMap<String,Integer>();\r\n\t\tIterator<Entry<String,HashSet<Integer>>> iterator = ps.index.entrySet().iterator();\r\n\t\twhile(iterator.hasNext()) \r\n\t\t{ \t\t\t\r\n\t\t\tMap.Entry<String, HashSet<Integer>> me = (Map.Entry<String, HashSet<Integer>>)iterator.next();\r\n\t\t\tString word = me.getKey().toString();\t\t\t\r\n\t\t\tint distance = Sequences.editDistance(word, keyword);\r\n\t\t\tif(distance<3 && distance!=0) {\r\n\t\t\t\tindexDistance.put(word, distance);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tHashMap<String,Integer> sortedDistance = SortResultsByRank.sortValues(indexDistance);\r\n\t\treturn sortedDistance;\r\n\t}", "@Override\n\t\t public int compare(Map<String, Object> o1,Map<String, Object> o2) {\n\t\t\t int countO1 = Integer.valueOf(o1.get(\"count\").toString());\n\t\t\t int countO2 = Integer.valueOf(o2.get(\"count\").toString());\n\t\t\t double distanceO1 = Double.valueOf(o1.get(\"distance\").toString());\n\t\t\t double distanceO2 = Double.valueOf(o2.get(\"distance\").toString());\n\t\t\t\t\t\n\t\t\t //先排距离,再排接单数\n\t\t\t if(distanceO1 < distanceO2){\n\t\t\t\t return -1;\n\t\t\t }else if(countO1 < countO2){\n\t\t\t\t return -1;\n\t\t\t }else return 0;\n\t\t }", "public List<DictionaryData> frequencyOrderedList() {\n List<DictionaryData> wordlist = alphabeticalList();\r\n\r\n //using insertion sort\r\n int j;\r\n DictionaryData k;\r\n for (int i = 1; i < wordlist.size(); i++) {\r\n j = i;\r\n\r\n while (j > 0 && compare_dictdata(wordlist.get(j), wordlist.get(j - 1))) {\r\n k = wordlist.get(j);\r\n wordlist.set(j, wordlist.get(j - 1));\r\n wordlist.set(j - 1, k);\r\n j--;\r\n\r\n }\r\n //i++;\r\n }\r\n return wordlist;\r\n }", "SortComparator(Map<Integer, Integer> tFreqMap) { \n this.freqMap = tFreqMap; \n }", "public static void main(String args[]){\r\n\t\t\r\n\t\t\r\n\t\tint arr[] = {2,5,2,8,5,6,8,8};\r\n\t\t\r\n\t\tMap<Integer, Integer> freqMap = new LinkedHashMap<Integer,Integer>();\r\n\t\t\r\n\t\tfor(int i = 0; i< arr.length;i++){\r\n\t\t\tif(freqMap.containsKey(arr[i])){\r\n\t\t\t\tint count = freqMap.get(arr[i]);\r\n\t\t\t\tfreqMap.put(arr[i],count + 1);\r\n\t\t\t}else{\r\n\t\t\t\tfreqMap.put(arr[i], 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//2-2,5-2,6-1,8-3\r\n\t\t\r\n\t\tMap<Integer,ArrayList<Integer>> sortedList = new TreeMap<Integer, ArrayList<Integer>>(new Comparator<Integer>(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Integer arg0, Integer arg1) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn arg1.compareTo(arg0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tfor(Entry<Integer, Integer> entry : freqMap.entrySet()){\r\n\t\t\tint key = entry.getKey();\r\n\t\t\tint val = entry.getValue();\r\n\t\t\tif(sortedList.containsKey(val)){\r\n\t\t\t\tArrayList<Integer> list = sortedList.get(val);\r\n\t\t\t\tfor(int j = 0; j<val ; j++)\r\n\t\t\t\t\tlist.add(key);\r\n\t\t\t}else{\r\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\tfor(int j = 0; j<val ; j++)\r\n\t\t\t\t\tlist.add(key);\r\n\t\t\t\tsortedList.put(val, list);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(sortedList.values());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void execute(Tuple tuple) {\n\t String word = tuple.getStringByField(\"word\");\n\t Integer count = tuple.getIntegerByField(\"count\");\n\n\t if (_topNMap.size() < _n) {\n\t \t//add word and count if less than N elements in top N\n\t \t_topNMap.put(word, count);\n\t } else {//if (_topNMap.size() > _n) {\n\t\tfor (String w : _topNMap.keySet()) {\n\t\t\tInteger c = _topNMap.get(w);\n\t\t\tif (_topNTreeMap.get(c) == null || _topNTreeMap.get(c).compareTo(w) < 0) {\n\t\t\t\t_topNTreeMap.put(c, w);\n\t\t\t}\n\t\t}\n\t\tInteger minCount = _topNTreeMap.firstKey();\n\t\tString minWord = _topNTreeMap.get(minCount);\n\t \tif (count > minCount) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t} else if (count == minCount && word.compareTo(minWord) > 0) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t}\n\t\t_topNTreeMap.clear();\n\t\t \n\t\tString topNList = \"\";\n\t\tint c = 0;\n\t \tfor (String key : _topNMap.keySet()) {\n\t\t\ttopNList += key + \", \";\n\t\t\tc++;\n\t \t}\n\t \ttopNList = topNList.substring(0, topNList.length() - 2);\n\t \tif (c == _n) {\n\t \t\tcollector.emit(new Values(\"top-N\", topNList));\n\t \t}\n\t }\n }", "private static void addEntriesToMap(\n\t\tMap<Character,Integer> map,String toSort, String poolOfOccurances\n\t\t){\n\n\t\t//Loop the toStort\n\t\tfor(int i=0;i<toSort.length();i++){\n\t\t\tmap.put(toSort.charAt(i),new Integer(getCharacterFrequence(toSort.charAt(i),poolOfOccurances)));\n\t\t}\n\n\t}", "public void sortByTagCount() {\r\n this.addSortField(\"\", \"*\", SORT_DESCENDING, \"count\");\r\n }", "public static List<String> sortUniqueWords(HashMap<String, Integer> tracker, List<String> allWords) {\n List<Integer> frequency = new ArrayList<>(tracker.values());\n frequency.sort(Collections.reverseOrder());\n List<String> result = new ArrayList<>();\n\n while(!tracker.isEmpty()){\n for (String key : allWords) {\n if(frequency.size()!= 0 && frequency.get(0) == tracker.get(key)){\n frequency.remove(0);\n\n result.add(key + \" \" + tracker.get(key));\n tracker.remove(key);\n }\n\n }\n }\n return result;\n\n\n }", "public void count(String dataFile) {\n\t\tScanner fileReader;\n\t\ttry {\n\t\t\tfileReader= new Scanner(new File(dataFile));\n\t\t\twhile(fileReader.hasNextLine()) {\n\t\t\t\tString line= fileReader.nextLine().trim(); \n\t\t\t\tString[] data= line.split(\"[\\\\W]+\");\n\t\t\t\tfor(String word: data) {\n\t\t\t\t\tthis.wordCounter= map.get(word);\n\t\t\t\t\tthis.wordCounter= (this.wordCounter==null)?1: ++this.wordCounter;\n\t\t\t\t\tmap.put(word, this.wordCounter);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\tcatch(FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"File\" +dataFile+ \"can not be found.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void apply(GlobalWindow window, Iterable<String> values, \n Collector<Tuple2<String,Integer>> out) throws Exception {\n \t HashMap <String,Integer> countWord = new HashMap<String,Integer>();\n \n for (String value : values) {\n \t \n \t String[] tokens = value.toLowerCase().split(\"\\\\W+\");\n \t for (String token : tokens)\n \t {\t if (token.length() >0) {\n \t\t if (countWord.get(token) != null)\n { countWord.put(token, countWord.get(token)+1);}\n else\n {countWord.put(token, 1);}\n \t }\n \t\t \n \t }\n }\n \n \n //Comparator to sort in reverse\n \t\t\tComparator<String> comparator = new Comparator<String>() {\n \t\t\t public int compare(String o1, String o2) {\n \t\t\t return countWord.get(o1).compareTo(countWord.get(o2));\n \t\t\t }\n \t\t\t};\n\n \t\t\tArrayList<String> words = new ArrayList<String>();\n \t\t\twords.addAll(countWord.keySet());\n\n \t\t\tCollections.sort(words,comparator);\n \t\t\tCollections.reverse(words);\n \t\t\t\n// System.out.println(Arrays.asList(words));\n \t\t\tSystem.out.println(\"10 most frequent words per stream\");\n System.out.println(\"-----------\");\n \n for(int i = 0; i < 10; i++) {\n \tSystem.out.println(words.get(i) + \" : \" + countWord.get(words.get(i)));\n }\n \n \n System.out.println(\"\\n\");\n \n }", "public static void main(String[] args) {\n\t\tint[] i = new int[100];\n\t\tint unique = 0;\n\t\tfloat ratio = 0;\n\t\tList<String> inputWords = new ArrayList<String>();\n\t\tMap<String,List<String>> wordcount = new HashMap<String,List<String>>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"/Users/huziyi/Documents/NLP file/Assignment1/Twitter messages.txt\"));\n\t\t\tString str;\n\t\t\twhile((str = in.readLine())!=null){\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\t\n\t\t\t\tString[] words = str.split(\"\\\\s+\");\n\t\t\t\t\n\t\t\t//\tSystem.out.println(words);\n\t\t\t//\tSystem.out.println(\"1\");\n\t\t\t\tfor(String word:words){\n\t\t\t\t\t\n\t\t\t//\t\tString word = new String();\n\t\t\t\t\t\n\t\t\t\t\tword = word.replaceAll(\"[^a-zA-Z]\", \"\");\n\t\t\t\t\tinputWords.add(word);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfor(int k=0;k<inputWords.size()-1;k++){\n\t\t\tString thisWord = inputWords.get(k);\n\t\t\tString nextWord = inputWords.get(k+1);\n\t\t\tif(!wordcount.containsKey(thisWord)){\n\t\t\t\twordcount.put(thisWord, new ArrayList<String>());\n\t\t\t}\n\t\t\twordcount.get(thisWord).add(nextWord);\n\t\t}\n\t\t for(Entry e : wordcount.entrySet()){\n\t// System.out.println(e.getKey());\n\t\tMap<String, Integer>count = new HashMap<String, Integer>();\n List<String>words = (List)e.getValue();\n for(String s : words){\n if(!count.containsKey(s)){\n count.put(s, 1);\n }\n else{\n count.put(s, count.get(s) + 1);\n }\n }\n \t\n // for(Entry e1 : wordcount.entrySet()){\n for(Entry f : count.entrySet()){\n \n // \tint m = 0;\n //\tint[] i = new int[100];\n //\ti[m] = (Integer) f.getValue();\n \tint n = (Integer) f.getValue();\n \tn = (Integer) f.getValue();\n // \tList<String> values = new ArrayList<String>();\n \t\t// values.addAll(count.g());\n \tif(n>=120){\n \tif(!(e.getKey().equals(\"\"))&&!(f.getKey().equals(\"\"))){\n //\t\t int a = (Integer) f.getValue();\n //\t\t Arrays.sort(a);\n System.out.println(e.getKey()+\" \"+f.getKey() + \" : \" + f.getValue());\n \n \t}\n \t}\n //\tm++;\n \t }\n\t\t }\n\t\t \n\t\n\t\t \n\t\t// Arrays.sort(i);\n\t\t //System.out.println(i[0]+i[1]);\n/*\n\t\t ArrayList<String> values = new ArrayList<String>();\n\t\t values.addAll(count.values());\n\n\t\t Collections.sort(values, Collections.reverseOrder());\n\n\t\t int last_i = -1;\n\n\t\t for (Integer i : values.subList(0, 99)) { \n\t\t if (last_i == i) \n\t\t continue;\n\t\t last_i = i;\n\n\n\n\n\t\t for (String s : wordcount.keySet()) { \n\n\t\t if (wordcount.get(s) == i)\n\t\t \n\t\t \tSystem.out.println(s+ \" \" + i);\n\n\t\t }\n\t\t \n\t\t\t}*/\n\t}", "static void sortByFreq(int arr[], int n){\n Map<Integer, Integer> map = new HashMap<>(); \n List<Integer> outputArray = new ArrayList<>(); \n \n // Assign elements and their count in the list and map \n for (int current : arr) { \n int count = map.getOrDefault(current, 0); \n map.put(current, count + 1); \n outputArray.add(current); \n } \n \n // Compare the map by value \n SortComparator comp = new SortComparator(map); \n \n // Sort the map using Collections CLass \n Collections.sort(outputArray, comp); \n \n // Final Output \n for (Integer i : outputArray) { \n System.out.print(i + \" \"); \n }\n }", "public static void main(String[] args) {\n\r\n\t\tSortByValue sbv = new SortByValue();\r\n\t\tsbv.setValueOnMap(12, \"Aarti\");\r\n\t\tsbv.setValueOnMap(15, \"Sonam\");\r\n\t\tsbv.setValueOnMap(17, \"Anita\");\r\n\t\tsbv.setValueOnMap(13, \"Premlata\");\r\n\t\tsbv.setValueOnMap(14, \"Komal\");\r\n\t\tsbv.setValueOnMap(20, \"Namita\");\r\n\t\tsbv.setValueOnMap(25, \"Babita\");\r\n\t\t\r\n\t\tMap<Integer, String> _map = sbv.getValueFromMap();\r\n\t\t/*Iterator<Map.Entry<Integer, String>> _it = _map.entrySet().iterator();\r\n\t\twhile(_it.hasNext()){\r\n\t\t\tMap.Entry<Integer, String> _map_value = _it.next();\r\n\t\t\tSystem.out.println(_map_value.getKey()+\"|\"+_map_value.getValue());\r\n\t\t}*/\r\n\t\t\r\n\t\tSet<Entry<Integer, String>> set = _map.entrySet();\r\n\t\tList<Entry<Integer, String>> list = new ArrayList<Entry<Integer, String>>(set);\r\n\t\tSystem.out.println(\"HashMap values Before sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(list, new Comparator<Map.Entry<Integer, String>>(){\r\n\t\t\tpublic int compare(Map.Entry<Integer, String> value1, Map.Entry<Integer, String> value2){\r\n\t\t\t\treturn value1.getValue().compareTo(value2.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tSystem.out.println(\"HashMap values After sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t}", "private static Map<String, Integer> getWords(){\n\t\tMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor(Status status : statusList){\n\t\t\tStringTokenizer tokens = new StringTokenizer(status.getText());\n\t\t\twhile(tokens.hasMoreTokens()){\n\t\t\t\tString token = tokens.nextToken();\n\t\t\t\tif(!token.equals(\"RT\")){\n\t\t\t\t\tif(map.containsKey(token)){\n\t\t\t\t\t\tint count = map.get(token);\n\t\t\t\t\t\tmap.put(token, ++count);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(token, 1);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn map;\n\t}", "static void countSort(List<List<String>> arr) {\n StringBuilder rs = new StringBuilder(\"\");\n int len = arr.size();\n StringBuilder[] sList = new StringBuilder[100];\n for (int i = 0; i < 100; i++) {\n sList[i] = new StringBuilder(\"\");\n }\n for (int i = 0; i < len; i++) {\n int n = Integer.parseInt(arr.get(i).get(0));\n if (i < len / 2) {\n sList[n].append(\"- \");\n } else {\n sList[n].append(arr.get(i).get(1) + \" \");\n }\n }\n for (StringBuilder ls : sList) {\n rs.append(ls);\n }\n System.out.println(rs.toString());\n }", "public void sortMatches();", "void countSortG(char[] str) {\n\t\tchar[] output = new char[str.length];\n\n\t\t// Create a count array to store count of inidividul characters and\n\t\t// initialize count array as 0\n\t\tint[] count = new int[RANGEG + 1];\n\t\t;\n\t\tint i = 0;\n\n\t\t// Store count of each character\n\t\tfor (i = 0; i < str.length; ++i)\n\t\t\t++count[str[i]];\n\n\t\t// Change count[i] so that count[i] now contains actual position of\n\t\t// this character in output array\n\t\tfor (i = 1; i <= RANGE; ++i)\n\t\t\tcount[i] += count[i - 1];\n\n\t\t// Build the output character array\n\t\tfor (i = 0; i < str.length; ++i) {\n\t\t\toutput[count[str[i]] - 1] = str[i];\n\t\t\t--count[str[i]];\n\t\t}\n\n\t\t// Copy the output array to str, so that str now\n\t\t// contains sorted characters\n\t\tfor (i = 0; i < str.length; ++i)\n\t\t\tstr[i] = output[i];\n\n\t\tSystem.out.println();\n\t}", "public LinkedHashMap<Word, Integer> sortByValue() {\n\t\tList<Map.Entry<Word, Integer>> list = new ArrayList<>(result.entrySet());\n\t\tlist.sort(new ValueKeyComparator<Word,Integer>());\n\t\tLinkedHashMap<Word, Integer> sortedMap = new LinkedHashMap<>();\n \tlist.forEach(e -> sortedMap.put(e.getKey(), e.getValue()));\n return sortedMap;\n }", "public static String Sorts(Map<Integer,Double> docsInfo) {\n Map<Integer, Double> sorted = docsInfo.entrySet().stream().sorted(Map.Entry.comparingByValue()).collect(Collectors.toMap(e -> e.getKey(), e -> e.getValue(), (e1, e2) -> e2,\n LinkedHashMap::new));\n String ans = \"\";\n sorted = docsInfo\n .entrySet()\n .stream()\n .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n .collect(\n Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n LinkedHashMap::new));\n for(Map.Entry<Integer, Double> en : sorted.entrySet()) {\n ans = ans + (\"doc.Id ---> \" + en.getKey() +\"\\n\");\n }\n GUI.count = String.valueOf(sorted.size());\n return ans;\n }", "public static void main(String args[]) throws Exception{\n Pattern patron = Pattern.compile(\"\\\\s+\");\n\n //leer todas las lineas del archivo\n Stream<String> lineas = Files.lines(Paths.get(\"./data/alicia.txt\"),StandardCharsets.ISO_8859_1);\n\n //eliminamos signos de puntuacion\n Stream<String> lineasProcesadas = lineas.map(linea -> linea.replaceAll(\"(?!')\\\\p{Punct}\", \"\"));\n\n //trocear las lineas para tratar con palabras\n\n Stream<String> palabras = lineasProcesadas.flatMap(linea -> patron.splitAsStream(linea));\n\n //filtrar palabras vacias\n\n Stream<String> sinVacias = palabras.filter(palabra -> !palabra.isEmpty());\n\n // generar un diccionario con entradas tipo <palabra, numero de ocurrencias>\n // queremos que el diccionario sea tipo TreeMap\n\n TreeMap<String,Long> mapa = sinVacias.collect(Collectors.groupingBy(String::toLowerCase, TreeMap::new,Collectors.counting()));\n\n\n //Ahora todo compactado\n\n TreeMap<String,Long> mapa2 = Files.lines(Paths.get(\"./data/alicia.txt\"),StandardCharsets.ISO_8859_1).\n map(linea -> linea.replaceAll(\"(?!')\\\\p{Punct}\", \"\")).\n flatMap(linea -> patron.splitAsStream(linea)).\n filter(palabra -> !palabra.isEmpty()).\n collect(Collectors.groupingBy(String::toLowerCase, TreeMap::new,Collectors.counting()));\n\n\n mapa2.forEach(\n (palabra, numero) -> System.out.println(palabra + \" : \" + numero)\n );\n\n //Con esto pedo crear un stream\n //mapa2.entrySet().stream().forEach();\n\n\n //agrupamiento por inicales, todas las palabras con dicha inicial y contadores\n\n TreeMap<Character, List<Map.Entry<String,Long>>> mapa3 = mapa2.\n entrySet().\n stream().\n collect(Collectors.groupingBy(entrada -> entrada.getKey().charAt(0),TreeMap::new,Collectors.toList()));\n\n mapa3.forEach((inicial,listaPalabras) -> {\n System.out.printf(\"%n%c%n\", inicial);\n listaPalabras.stream().forEach( entrada -> {\n System.out.printf(\"%13s: %d%n\", entrada.getKey(), entrada.getValue());\n });\n });\n\n\n\n\n }", "public static void main(String[] args) \r\n\t{\r\n\t\tMap<String, String> voting=new HashMap<String, String>();\r\n\t\tvoting.put(\"101\", \"BJP\");\r\n\t\tvoting.put(\"102\", \"ShivSena\");\r\n\t\tvoting.put(\"103\", \"NCP\");\r\n\t\tvoting.put(\"104\", \"Congress\");\r\n\t\tvoting.put(\"105\", \"Other\");\r\n\t\tvoting.put(\"106\", \"BJP\");\r\n\t\tvoting.put(\"107\", \"ShivSena\");\r\n\t\tvoting.put(\"108\", \"NCP\");\r\n\t\tvoting.put(\"109\", \"Congress\");\r\n\t\tvoting.put(\"110\", \"Other\");\r\n\t\tvoting.put(\"111\", \"BJP\");\r\n\t\tvoting.put(\"112\", \"ShivSena\");\r\n\t\tvoting.put(\"113\", \"NCP\");\r\n\t\tvoting.put(\"114\", \"Congress\");\r\n\t\tvoting.put(\"115\", \"Other\");\r\n\t\tvoting.put(\"116\", \"Other\");\r\n\t\tvoting.put(\"117\", \"Other\");\r\n\t\tvoting.put(\"118\", \"BJP\");\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(voting);\r\n\t\t\r\n\t\tMap<String, Integer> countVoting=new HashMap();\r\n\t\t\r\n\t\tfor(Map.Entry<String, String> mapitr:voting.entrySet())\r\n\t\t{\r\n\t\t\t//System.out.println(mapitr.getValue());\r\n\t\t\t\r\n\t\t\tint count=1;\r\n\t\t\t\r\n\t\t\tif(countVoting.containsKey(mapitr.getValue()))\r\n\t\t\t{\r\n\t\t\t\tcount=countVoting.get(mapitr.getValue());\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tcountVoting.put(mapitr.getValue(),count);\r\n\t\t\t//System.out.println(countVoting);\r\n\t\t}\r\n\t\tSystem.out.println(countVoting);\r\n\t\t\r\n\t}", "public static TreeMap<Integer, ArrayList<String>> countOccur(Map<String,Integer> map){\n\t\tTreeMap<Integer,ArrayList<String>> num_map = new TreeMap<Integer,ArrayList<String>>();\n\t\tfor(String key : map.keySet()) {\n\t\t\tInteger i = map.get(key);\n\t\t\tif(!num_map.containsKey(i)) {\n\t\t\t\tnum_map.put(i, new ArrayList<String>());\n\t\t\t\tnum_map.get(i).add(key);\n\t\t\t} else {\n\t\t\t\tnum_map.get(i).add(key);\n\t\t\t}\n\t\t}\n\t\treturn num_map;\n\t}", "private List<Tuple> charCountMap(Tuple input) {\n \n String[] words = input.snd().replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\"\\\\s+\");\n \n List<Tuple> output = new ArrayList<Tuple>();\n \n for(String word : words) {\n Integer chars = word.length();\n output.add(new Tuple(chars.toString(),\"1\"));\n }\n \n lolligag();\n \n //<charCount, 1>, <charCount, 1> ...\n return output;\n }", "public static void sortbyValue()\n {\n //1. Create a list from elements of HashMap\n List<Map.Entry<Integer,String>> list = new LinkedList<>(map.entrySet());\n\n //2. Sort the list -- >Sory via Value\n //Collections.sort(list, (Map.Entry<Integer,String> o1,Map.Entry<Integer,String> o2) -> (o1.getKey().compareTo(o2.getKey())));\n\n //2. Sort the list -- >Sory via Key\n Collections.sort(list, (Map.Entry<Integer,String> o1,Map.Entry<Integer,String> o2) -> (o1.getValue().compareTo(o2.getValue())));\n\n \n //3. Put data from sorted list to map\n Map<Integer,String> temp = new LinkedHashMap<Integer,String>();\n\n for(Map.Entry<Integer,String> entry : list)\n {\n temp.put(entry.getKey(), entry.getValue());\n }\n\n //4. Printing the data from map\n for(Map.Entry<Integer,String> entry : temp.entrySet())\n {\n System.out.println(entry.getKey()+\" \"+entry.getValue());\n }\n }", "private static ArrayList<sri.Pair<String,Integer>> mostFrequentWords(String path) throws IOException {\r\n PriorityQueue<Pair<String, Integer>> listOfWords = new PriorityQueue<>(10,(o1, o2) -> {\r\n return ((int) o2.getSecond() - (int) o1.getSecond());\r\n });\r\n\r\n HashMap<String,Integer> mapOfWords = new HashMap<>();\r\n\r\n BufferedReader br;\r\n String word;\r\n ArrayList outputList = new ArrayList();\r\n\r\n File file = new File(path);\r\n\r\n br = new BufferedReader(new FileReader(file));\r\n\r\n while ( (word = br.readLine()) != null) {\r\n if (mapOfWords.containsKey(word)) {\r\n mapOfWords.put(word, mapOfWords.get(word) + 1);\r\n } else {\r\n mapOfWords.put(word, 1);\r\n }\r\n }\r\n\r\n for (Map.Entry<String,Integer> entry: mapOfWords.entrySet()){\r\n sri.Pair<String,Integer> tuple = new sri.Pair<String,Integer>(entry.getKey(),entry.getValue());\r\n listOfWords.offer(tuple);\r\n }\r\n\r\n for (int i = 0; i < 5; i++){\r\n outputList.add(new sri.Pair<String,Integer>(listOfWords.peek().getFirst(),listOfWords.poll().getSecond()));\r\n }\r\n\r\n return outputList;\r\n\r\n\r\n }", "public static void main(String[] args) {\n\t\tList<Developer> listDevs = getDevelopers();\r\n\r\n\t\tSystem.out.println(\"Before Sort\");\r\n\t\tfor (Developer developer : listDevs) {\r\n\t\t\tSystem.out.println(developer.getName());\r\n\t\t}\r\n\t\t\r\n\t\tlistDevs.sort( new Comparator<Developer>(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Developer o1, Developer o2) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn o2.getAge()-o1.getAge();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tlistDevs.sort((Developer o1, Developer o2) -> o1.getName().compareTo(o2.getName()));\r\n\t\t\r\n\t\tSystem.out.println(\"Aftrer Sort\");\r\n\t\tfor (Developer developer : listDevs) {\r\n\t\t\tSystem.out.println(developer.getName());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\":::::::::::::::\");\r\n\t\tList<String> lines = Arrays.asList(\"spring\", \"node\", \"mkyong\",\"spring\",\"spring\");\r\n\t\t\r\n\t\tlines.stream().filter(line -> line.equals(\"spring\")).forEach(line -> System.out.println(\"line::\"+line));\r\n\t\tSystem.out.println(\":::::::::::::::\");\r\n\t\tMap<String, Long> result = lines.stream().collect(Collectors.groupingBy(Function.identity(),Collectors.counting()));\r\n\t\t\r\n\t\tSystem.out.println(\":::::::::::::::\");\r\n\t\t//System.out.println(result.entrySet().stream().sorted(Map.Entry.<String,Integer>comparingByKey().reversed()).);\r\n\t\t\r\n\t\tStream<String> language = Stream.of(\"java\", \"python\", \"node\", null, \"ruby\", null, \"php\");\r\n\t\tList langList = language.collect(Collectors.toList());\r\n\t\tlangList.forEach(new Consumer<String>()\r\n\t\t{\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void accept(String t) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(t!=null)\r\n\t\t\t\tSystem.out.println(\"length::\"+t.length());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tlangList.forEach(x -> System.out.println(\"value of x::\"+x));\r\n\t\t\r\n\t}", "@Override\r\n\t\t\t\tpublic int compare(Map.Entry<String, Integer> o1, Map.Entry<String, Integer> o2) {\n\t\t\t\t\treturn (o2.getValue()).compareTo(o1.getValue());\r\n\t\t\t\t}", "private static void wordCountWithMap() throws FileNotFoundException {\n Map<String, Integer> wordCounts = new HashMap<String, Integer>();\n\n Scanner input = new Scanner(new File(fileLocation));\n while (input.hasNext()) {\n String word = input.next();\n if (!wordCounts.containsKey(word)) {\n wordCounts.put(word, 1);\n } else {\n int oldValue = wordCounts.get(word);\n wordCounts.put(word, oldValue + 1);\n }\n }\n\n String term = \"test\";\n System.out.println(term + \" occurs \" + wordCounts.get(term));\n\n // loop over the map\n for (String word : wordCounts.keySet()) {\n int count = wordCounts.get(word);\n if (count >= 500) {\n System.out.println(word + \", \" + count + \" times\");\n }\n }\n\n }", "private static void printTable(int numberOfDocs) {\n \n Gson gs = new Gson();\n String json = gs.toJson(wor);\n // System.out.println(json);\n \n List<String> queryWords = new ArrayList();\n //to test it for other query word you can change the following two words\n //queryWords.add(\"carpet\");\n //queryWords.add(\"hous\");\n queryWords.add(\"the\");\n queryWords.add(\"crystallin\");\n queryWords.add(\"len\");\n queryWords.add(\"vertebr\");\n queryWords.add(\"includ\");\n \n \n FrequencySummary frequencySummary = new FrequencySummary();\n frequencySummary.getSummary(json,docName, queryWords);\n \n System.exit(0);\n \n Hashtable<Integer,Integer> g = new Hashtable<>();\n \n /* wor.entrySet().forEach((wordToDocument) -> {\n String currentWord = wordToDocument.getKey();\n Map<String, Integer> documentToWordCount = wordToDocument.getValue();\n freq.set(0);\n df.set(0);\n documentToWordCount.entrySet().forEach((documentToFrequency) -> {\n String document = documentToFrequency.getKey();\n Integer wordCount = documentToFrequency.getValue();\n freq.addAndGet(wordCount);\n System.out.println(\"Word \" + currentWord + \" found \" + wordCount +\n \" times in document \" + document);\n \n if(g.getOrDefault(currentWord.hashCode(), null)==null){\n g.put(currentWord.hashCode(),1);\n \n }else {\n System.out.println(\"Hello\");\n \n int i = g.get(currentWord.hashCode());\n System.out.println(\"i \"+i);\n g.put(currentWord.hashCode(), i++);\n }\n // System.out.println(currentWord+\" \"+ g.get(currentWord.hashCode()));\n // g.put(currentWord.hashCode(), g.getOrDefault(currentWord.hashCode(), 0)+wordCount);\n \n });\n // System.out.println(freq.doubleValue());\n \n // System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/freq.doubleValue())));\n });\n // System.out.println(g.get(\"plai\".hashCode()));\n //System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/(double)g.get(\"plai\".hashCode()))));\n */\n }", "public static LinkedHashMap<Integer, Integer> sortByValuesFromMap(\n\t\t\t\t\tMap<Integer, Integer> labelCountMap) {\n\t\t\t\t// long startTime = System.nanoTime();\n\t\t\t\tList<Integer> mapKeys = new ArrayList<Integer>(labelCountMap.keySet());\n\t\t\t\tList<Integer> mapValues = new ArrayList<Integer>(labelCountMap.values());\n\t\t\t\tCollections.sort(mapValues, new MyComparator());\n\n\t\t\t\tCollections.sort(mapKeys);\n\n\t\t\t\tLinkedHashMap<Integer, Integer> sortedMap = new LinkedHashMap<Integer, Integer>();\n\n\t\t\t\tIterator<Integer> valueIt = mapValues.iterator();\n\t\t\t\twhile (valueIt.hasNext()) {\n\t\t\t\t\tInteger val = (Integer) valueIt.next();\n\t\t\t\t\tIterator<Integer> keyIt = mapKeys.iterator();\n\n\t\t\t\t\twhile (keyIt.hasNext()) {\n\t\t\t\t\t\tInteger key = (Integer) keyIt.next();\n\t\t\t\t\t\tInteger val1 = labelCountMap.get(key);\n\t\t\t\t\t\tInteger val2 = val;\n\n\t\t\t\t\t\tif (val2.equals(val1)) {\n\t\t\t\t\t\t\tmapKeys.remove(key);\n\t\t\t\t\t\t\tsortedMap.put((Integer) key, (Integer) val);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// long endTime = System.nanoTime();\n\t\t\t\t// System.out.println(\"The time taken to sort TF -IDF values is:\"+(endTime-startTime)/Math.pow(10,\n\t\t\t\t// 9));\n\t\t\t\treturn sortedMap;\n\t\t\t}", "private static Map<String, Integer> sortByComparator(Map<String, Integer> unsortMap) {\n\t\tList<Map.Entry<String, Integer>> list = \n\t\t\tnew LinkedList<Map.Entry<String, Integer>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<String, Integer>> comparator;\n\t\tcomparator=Collections.reverseOrder(new Comparator<Map.Entry<String, Integer>>() {\n\t\t\tpublic int compare(Map.Entry<String, Integer> o1,\n Map.Entry<String, Integer> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<String, Integer> sortedMap = new LinkedHashMap<String, Integer>();\n\t\tfor (Iterator<Map.Entry<String, Integer>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<String, Integer> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "private static Map<String, Double> sortByComparator(Map<String, Double> unsortMap, final boolean order)\n {\n\n List<Entry<String, Double>> list = new LinkedList<Entry<String, Double>>(unsortMap.entrySet());\n\n // Sorting the list based on values\n Collections.sort(list, new Comparator<Entry<String, Double>>()\n {\n public int compare(Entry<String, Double> o1,\n Entry<String, Double> o2)\n {\n if (order)\n {\n return o1.getValue().compareTo(o2.getValue());\n }\n else\n {\n return o2.getValue().compareTo(o1.getValue());\n\n }\n }\n });\n\n int rank = 1;\n // Maintaining insertion order with the help of LinkedList\n Map<String, Double> sortedMap = new LinkedHashMap<String, Double>();\n for (Entry<String, Double> entry : list)\n {\n \tif(rank<=1000){\n \t\n \t\tsortedMap.put(entry.getKey() +\" \"+ String.valueOf(rank), entry.getValue());\n \t\trank++;\n \t}\n \telse break;\n }\n \n //Map<string, Double> updatedRank = new LinkedHashMap<String, Double>();\n\n return sortedMap;\n }", "private String getWordStatsFromList(List<String> wordList) {\n\t\tif (wordList != null && !wordList.isEmpty()) {\n\t\t\tList<String> wordsUsedCaps = new ArrayList<>(); \n\t\t\tList<String> wordsExcludedCaps = new ArrayList<>(); \n\t\t\tListIterator<String> iterator = wordList.listIterator();\n\t\t\tMap<String, Integer> wordToFreqMap = new HashMap<>();\n\t\t\t// iterate on word List using listIterator to enable edits and removals\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tString origWord = iterator.next();\n\t\t\t\t// remove quotes from word e.g. change parents' to parents; \n\t\t\t\t// change children's to children; change mark'd to mark\n\t\t\t\tString curWord = stripQuotes(origWord);\n\t\t\t\tif (!curWord.equals(origWord)) {\n\t\t\t\t\titerator.set(curWord);\n\t\t\t\t}\n\t\t\t\tString curWordCaps = curWord.toUpperCase();\n\t\t\t\t// remove words previously used (to prevent duplicates) or previously\n\t\t\t\t// excluded (compare capitalized version)\n\t\t\t\tif (wordsExcludedCaps.contains(curWordCaps)) {\n\t\t\t\t\titerator.remove();\n\t\t\t\t}\n\t\t\t\telse if (wordsUsedCaps.contains(curWordCaps)) {\n\t\t\t\t\t// if word was previously used then update wordToFreqMap to increment\n\t\t\t\t\t// its usage frequency\n\t\t\t\t\tSet<String> wordKeys = wordToFreqMap.keySet();\n\t\t\t\t\tfor (String word : wordKeys) {\n\t\t\t\t\t\tif (curWord.equalsIgnoreCase(word)) {\n\t\t\t\t\t\t\twordToFreqMap.put(word, wordToFreqMap.get(word).intValue() + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\titerator.remove();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// invoke checkIfEligible() with algorithm described in Challenge 2 to see if word not\n\t\t\t\t\t// previously used/excluded should be kept. If kept in list \n\t\t\t\t\t// then add to wordsUsedCaps list; if not qualified then add to\n\t\t\t\t\t// wordsExcludedCaps list to prevent checkIfEligible() having to be \n\t\t\t\t\t// called again\n\t\t\t\t\tif (checkIfEligible(curWordCaps)) {\n\t\t\t\t\t\twordsUsedCaps.add(curWordCaps);\n\t\t\t\t\t\twordToFreqMap.put(curWord, 1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\twordsExcludedCaps.add(curWordCaps);\n\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// sort words in list in order of length\n\t\t\twordList.sort(Comparator.comparingInt(String::length));\n\t\t\t// sort wordToFreqMap by value (frequency) and choose the last sorted map element\n\t\t\t// to get most frequently used word\n\t\t\tList<Map.Entry<String, Integer>> mapEntryWtfList = new ArrayList<>(wordToFreqMap.entrySet());\n\t\t\tmapEntryWtfList.sort(Map.Entry.comparingByValue());\n\t\t\tMap<String, Integer> sortedWordToFreqMap = new LinkedHashMap<>();\n\t\t\tsortedWordToFreqMap.put(mapEntryWtfList.get(mapEntryWtfList.size()-1).getKey(), mapEntryWtfList.get(mapEntryWtfList.size()-1).getValue());\t\n\t\t\t// set up Json object to be returned as string\n\t\t\t// the code below is self-explaining\n\t\t\tJSONObject json = new JSONObject();\n\t\t\ttry {\n\t\t\t\tjson.put(\"remaining words ordered by length\", wordList);\n\t\t\t\tjson.put(\"most used word\", mapEntryWtfList.get(mapEntryWtfList.size()-1).getKey());\n\t\t\t\tjson.put(\"number of uses\", mapEntryWtfList.get(mapEntryWtfList.size()-1).getValue());\n\t\t\t} catch(JSONException je) {\n\t\t\t\tje.printStackTrace();\n\t\t\t}\n\t\t\treturn json.toString();\n\t\t\t\n\t\t}\n\t\treturn \"\";\n\t}", "public void sortByWordLengthDesc() {\r\n\t\tcomparator = new WordLengthDesc();\r\n\t}", "public Map<String, Map<String, Integer>> countWordsPerSentence(Map<String, String> data) {\n Map<String, Map<String, Integer>> result = new LinkedHashMap<>();\n if (data == null || data.size() == 0) {\n return result;\n }\n\n for (Map.Entry<String, String> entry : data.entrySet()) {\n result.put(entry.getKey(), getWordCountPerSentenceMap(getSentences(entry.getValue().trim())));\n }\n return result;\n }", "@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n StringTokenizer tokenizer = new StringTokenizer(value.toString());\n while (tokenizer.hasMoreTokens()) {\n String word = tokenizer.nextToken();\n if (buffer.containsKey(word)) {\n buffer.put(word, buffer.get(word) + 1);\n } else {\n buffer.put(word, 1);\n }\n }\n }", "public void countByAlpha() {\n if (super.getInput() == null) {\n return;\n }\n FileInputStream is;\n try {\n is = new FileInputStream(super.getInput());\n NxParser nxp = new NxParser();\n System.out.println(\"Parsing \" + super.getInput() + \"...\");\n nxp.parse(is);\n for (Node[] nx : nxp) {\n String nodeid = nx[0].toString();\n String predicate = nx[1].getLabel();\n if (!PredicateUtils.isSchemaOrgEvent(predicate)) {\n continue;\n }\n predicate = PredicateUtils.fixSchemaOrg(predicate);\n if (!ATTR.equalsIgnoreCase(PredicateUtils.getEventProperty(predicate))) {\n continue;\n }\n String obj = nx[2].getLabel();\n obj = NGramUtils.removePunctuaion(obj);\n int length = obj.length();\n Integer count = mapEvents.get(nodeid);\n mapEvents.put(nodeid, (count == null ? length : count + length));\n Integer countLength = mapLengths.get(String.valueOf(length));\n mapLengths.put(String.valueOf(length), (countLength == null ? 1 : countLength + 1));\n }\n System.out.println(\"The total number of lines: \" + nxp.lineNumber());\n System.out.println(\"The total number of events: \" + mapEvents.size());\n System.out.println(\"Start sorting mapEvents...\");\n Map<String, Integer> mapEvent = VectorUtils.sortByValue(mapEvents, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"event\"), mapEvent);\n System.out.println(\"Start sorting mapLengths...\");\n Map<String, Integer> mapLength = VectorUtils.sortByValue(mapLengths, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"length\"), mapLength);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static void pageRankmain() {\n\t\t\t\n\t\t\tstopWordStore();\n\t\t\t//File[] file_read= dir.listFiles();\n\t\t\t//textProcessor(file_read);// Will be called from LinkCrawler\n\t\t\t//queryProcess();\n\t\t\t//System.out.println(\"docsave \"+ docsave);\n\t\t\t/*for ( Map.Entry<String, ArrayList<String>> entry : docsave.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t List<String> values = entry.getValue();\n\t\t\t System.out.print(\"Key = \" + key);\n\t\t\t System.out.println(\" , Values = \"+ values);\n\t\t\t}*/\n\t\t\t//########## RESPOINSIBLE FOR CREATING INVERTED INDEX OF TERMS ##########\n\t\t\tfor(int i=0;i<vocabulary.size();i++) {\n\t\t\t\tint count=1;\n\t\t\t\tMap<String, Integer> nestMap = new HashMap<String, Integer>();\n\t\t\t\tfor ( Map.Entry<String, ArrayList<String>> entry : docsave.entrySet()) {\n\t\t\t\t String keyMain = entry.getKey();\n\t\t\t\t List<String> values = entry.getValue();\n\t\t\t\t if(values.contains(vocabulary.get(i)))\n\t\t\t\t \t{\n\t\t\t\t \tentryDf.put(vocabulary.get(i), count);//entryDf stores documents frequency of vocabulary word \\\\it increase the count value for specific key\n\t\t\t\t \tcount++;\n\t\t\t\t \t}\n\t\t\t\t \n\t\t\t\t nestMap.put(keyMain, Collections.frequency(values,vocabulary.get(i)));\n\t\t\t \t\n\t\t\t \t//System.out.println(\"VOC \"+ vocabulary.get(i)+ \" KeyMain \" +keyMain+ \" \"+ Collections.frequency(values,vocabulary.get(i)));\n\t\t\t\t\t}\n\t\t\t\t\ttfList.put(vocabulary.get(i), nestMap);\n\t\t\t}\n\t\t\t//########## RESPOINSIBLE FOR CREATING A MAP \"storeIdf\" TO STORE IDF VALUES OF TERMS ##########\n\t\t\tfor ( Map.Entry<String, Integer> endf : entryDf.entrySet()) {\n\t\t\t\tString keydf = endf.getKey();\n\t\t\t\tint valdf = endf.getValue();\n\t\t\t\t//System.out.print(\"Key = \" + \"'\"+keydf+ \"'\");\n\t\t\t //System.out.print(\" , Values = \"+ valdf);\n\t\t\t double Hudai = (double) (docsave.size())/valdf;\n\t\t\t //System.out.println(\"docsave size \"+docsave.size()+ \" valdf \"+ valdf + \" Hudai \"+ Hudai+ \" log Value1 \"+ Math.log(Hudai)+ \" log Value2 \"+ Math.log(2));\n\t\t\t double idf= Math.log(Hudai)/Math.log(2);\n\t\t\t storeIdf.put(keydf, idf);\n\t\t\t //System.out.print(\" idf-> \"+ idf);\n\t\t\t //System.out.println();\n\t\t\t} \n\t\t\t\n\t\t\t//############ Just for Printing ##########NO WORK HERE########\n\t\t\tfor (Map.Entry<String, Map<String, Integer>> tokTf : tfList.entrySet()) {\n\t\t\t\tString keyTf = tokTf.getKey();\n\t\t\t\tMap<String, Integer> valTF = tokTf.getValue();\n\t\t\t\tSystem.out.println(\"Inverted Indexing by Key Word = \" + \"'\"+keyTf+ \"'\");\n\t\t\t\tfor (Map.Entry<String, Integer> nesTf : valTF.entrySet()) {\n\t\t\t\t\tString keyTF = nesTf.getKey();\n\t\t\t\t\tInteger valTf = nesTf.getValue();\n\t\t\t\t\tSystem.out.print(\" Document Consists This Key Word = \" + \"'\"+ keyTF+ \"'\");\n\t\t\t\t\tSystem.out.println(\" , Term Frequencies in This Doc = \"+ valTf);\n\t\t\t\t} \n\t\t\t}\n\t\t\t//########### FOR CALCULATING DOCUMENT LENTH #############//\n\t\t\tfor ( Map.Entry<String, ArrayList<String>> entry_new : docsave.entrySet()) // Iterating Number of Documents\n\t\t\t{\n\t\t\t\tString keyMain_new = entry_new.getKey();\n\t\t\t\t//int countStop=0;\n\t\t\t\tdouble sum=0;\n\t\t\t\t for(Map.Entry<String, Map<String, Integer>> tokTf_new : tfList.entrySet()) // Iterating through the vocabulary\n\t\t\t\t { \n\t\t\t\t\t Map<String, Integer> valTF_new = tokTf_new.getValue();\n\t\t\t\t\t for (Map.Entry<String, Integer> nesTf_new : valTF_new.entrySet()) // Iterating Through the Documents\n\t\t\t\t\t {\n\t\t\t\t\t\t if(keyMain_new.equals(nesTf_new.getKey())) // Only doc name EQUAL with docsave name can enter here\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t double val = nesTf_new.getValue()* (Double) storeIdf.get(tokTf_new.getKey());\n\t\t\t\t\t\t\t sum = sum+ Math.pow(val, 2);\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t\t //countStop++;\n\t\t\t\t }\n\t\t\t\t docLength.put(keyMain_new, Math.sqrt(sum));\n\t\t\t\t sum=0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Document Length \"+ docLength);\n\t\t\t//System.out.println(\"tfList \"+tfList);\n\t\t\t\n\t\t\t //########### FOR CALCULATING QUERY LENTH #############///\n\t\t\t\tdouble qrySum=0;\n\t\t\t\t for(String qryTerm: queryList) // Iterating through the vocabulary\n\t\t\t\t {\n\t\t\t\t\t//entryQf.put(qryTerm, Collections.frequency(queryList,qryTerm));// VUl ase\n\t\t\t\t\t \n\t\t\t\t\t\t if(storeIdf.get(qryTerm) != null) \n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t entryQf.put(qryTerm, Collections.frequency(queryList,qryTerm));\n\t\t\t\t\t\t\t double val = entryQf.get(qryTerm)* (Double) storeIdf.get(qryTerm);\n\t\t\t\t\t\t\t qrySum = qrySum+ Math.pow(val, 2);\n\t\t\t\t\t\t }\n\t\t\t\t\t System.out.println(qryTerm+\" \"+entryQf.get(qryTerm)+ \" \"+ (Double) storeIdf.get(qryTerm));\n\t\t\t\t }\n\t\t\t\t qrySum=Math.sqrt(qrySum);\n\t\t\t\t System.out.println(\"qrySum \" + qrySum);\n\t\t\t\t \n\t\t\t\t//########### FOR CALCULATING COSINE SIMILARITY #############///\n\t\t\t\t for ( Map.Entry<String, ArrayList<String>> entry_dotP : docsave.entrySet()) // Iterating Number of Documents\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble sumProduct=0;\n\t\t\t\t\t\tdouble productTfIdf=0;\n\t\t\t\t\t\tString keyMain_new = entry_dotP.getKey(); //Geting Doc Name\n\t\t\t\t\t\t for(Map.Entry<String, Integer> qryTermItr : entryQf.entrySet()) // Iterating through the vocabulary\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Map<String, Integer> matchTerm = tfList.get(qryTermItr.getKey()); // Getting a map of doc Names by a Query Term as value of tfList\n\n\t\t\t\t\t\t\t\t if(matchTerm.containsKey(keyMain_new)) // Only doc name EQUAL with docsave name can enter here\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t //System.out.println(\"Test \"+ matchTerm.get(keyMain_new) +\" keyMain_new \" + keyMain_new);\n\t\t\t\t\t\t\t\t\t double docTfIdf= matchTerm.get(keyMain_new) * storeIdf.get(qryTermItr.getKey());\n\t\t\t\t\t\t\t\t\t double qryTfIdf= qryTermItr.getValue() * storeIdf.get(qryTermItr.getKey());\n\t\t\t\t\t\t\t\t\t productTfIdf = docTfIdf * qryTfIdf;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t sumProduct= sumProduct+productTfIdf;\n\t\t\t\t\t\t\t //System.out.println(\"productTfIdf \"+productTfIdf+\" sumProduct \"+ sumProduct);\n\t\t\t\t\t\t\t productTfIdf=0;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t cosineProd.put(entry_dotP.getKey(), sumProduct/(docLength.get(entry_dotP.getKey())*qrySum));\n\t\t\t\t\t\t sumProduct=0;\n\t\t\t\t\t\t //System.out.println(entry_dotP.getKey()+ \" \" + docLength.get(entry_dotP.getKey()));\n\t\t\t\t\t}\n\t\t\t\t System.out.println(\"cosineProd \"+ cosineProd);\n\t\t\t\t \n\t\t\t\t System.out.println(\"Number of Top Pages you want to see\");\n\t\t\t\t int topRank = Integer.parseInt(scan.nextLine());\n\t\t\t\t Map<String, Double> result = cosineProd.entrySet().stream()\n\t\t\t .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder())).limit(topRank)\n\t\t\t .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue,\n\t\t\t (oldValue, newValue) -> oldValue, LinkedHashMap::new));\n\n\t\t\t\t scan.close();\n\t\t\t //Alternative way\n\t\t\t //Map<String, Double> result2 = new LinkedHashMap<>();\n\t\t\t //cosineProd.entrySet().stream().sorted(Map.Entry.<String, Double>comparingByValue().reversed()).limit(2).forEachOrdered(x -> result2.put(x.getKey(), x.getValue()));\n\n\t\t\t System.out.println(\"Sorted...\");\n\t\t\t System.out.println(result);\n\t\t\t //System.out.println(result2);\n\t}", "public void doCount(ArrayList<String> liste){\n\t\tint j;\n\t\t\n\t\tfor (int i = 0; i < liste.size(); i++) {\n\t\t\t// check if string already exists\n\t\t\tif(!map.containsKey(liste.get(i))){\n\t\t\t\t// check frequency of the given string\n\t\t\t\tj = Collections.frequency(liste, liste.get(i));\t\n\t\t\t\t\n\t\t\t\t// underscore instead of blank space\n\t\t\t\tif(liste.get(i).equals(\" \"))\n\t\t\t\t\tmap.put(\"_\", j);\t\n\t\t\t\telse\n\t\t\t\t\tmap.put(liste.get(i), j);\t// (char, frequency)\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t\n\t\t//return map;\n\t}", "private static void sortNoun() throws Exception{\r\n\t\tBufferedReader[] brArray = new BufferedReader[ actionNumber ];\r\n\t\tBufferedWriter[] bwArray = new BufferedWriter[ actionNumber ];\r\n\t\tString line = null;\r\n\t\tfor(int i = 0; i < actionNameArray.length; ++i){\r\n\t\t\tSystem.out.println(\"sorting for \" + actionNameArray[ i ]);\r\n\t\t\tbrArray[ i ] = new BufferedReader( new FileReader(TFIDF_URL + actionNameArray[ i ] + \".tfidf\"));\r\n\t\t\tHashMap<String, Double> nounTFIDFMap = new HashMap<String, Double>();\r\n\t\t\tint k = 0;\r\n\t\t\t// 1. Read tfidf data\r\n\t\t\twhile((line = brArray[ i ].readLine())!=null){\r\n\t\t\t\tnounTFIDFMap.put(nounList.get(k), Double.parseDouble(line));\r\n\t\t\t\tk++;\r\n\t\t\t}\r\n\t\t\tbrArray[ i ].close();\r\n\t\t\t// 2. Rank according to tfidf\r\n\t\t\tValueComparator bvc = new ValueComparator(nounTFIDFMap);\r\n\t\t\tTreeMap<String, Double> sortedMap = new TreeMap<String, Double>(bvc);\r\n\t\t\tsortedMap.putAll(nounTFIDFMap);\r\n\t\t\t\r\n\t\t\t// 3. Write to disk\r\n\t\t\tbwArray[ i ] = new BufferedWriter(new FileWriter( SORTED_URL + actionNameArray[ i ] + \".sorted\"));\r\n\t\t\tfor(String nounKey : sortedMap.keySet()){\r\n\t\t\t\tbwArray[ i ].append(nounKey + \"\\t\" + nounTFIDFMap.get(nounKey) + \"\\n\");\r\n\t\t\t}\r\n\t\t\tbwArray[ i ].close();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner info = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the phrase:\");\r\n\t\tString sentence = info.nextLine();\r\n\t\t\r\n\t\tsentence = sentence.trim().toUpperCase();\r\n\t\t\r\n\t\tfor (int i = 0; i < sentence.length(); i++) {\r\n\t\t\tif (sentence.charAt(i) <'A' || sentence.charAt(i) > 'Z' ) {\r\n\t\t\t\tsentence = sentence.replace(\"\"+sentence.charAt(i), \"/\");\r\n//\t\t\t\tSystem.out.println(sentence);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString[] word = sentence.split(\"/\") ;\r\n\t\t\r\n\t\tint total = 0;\r\n\t\tif (word.length < 1) {\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\r\n\t\t\tHashMap hMap = new HashMap();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (word[0].length() > 0) {\r\n\t\t\t\thMap.put(word[0].length(), 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (int i = 1; i < word.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\t\tif (word[i].length() == word[j].length()) {\r\n\t\t\t\t\t\tint cnt = (int) hMap.get(word[i].length());\r\n\t//\t\t\t\t\tSystem.out.println(\"cnt==>\"+cnt);\r\n\t\t\t\t\t\thMap.put(word[i].length(),++cnt);\r\n\t\t\t\t\t\t\t\r\n\t//\t\t\t\t\tSystem.out.println(word[i].length()+\"==>\"+hMap.get(word[i].length()));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (j == (i-1)){\r\n\t\t\t\t\t\t\thMap.put(word[i].length(), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSet<Integer> keys1 = hMap.keySet();\r\n\t\r\n\t\t\tfor(int key:keys1) {\r\n\t\t\t\tif (key !=0) {\r\n\t\t\t\t\tSystem.out.println(hMap.get(key)+\" \"+key +\" letter words\");\r\n\t\t\t\t\ttotal += (int)hMap.get(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(total+\" total words\");\r\n\t\t\r\n\t}", "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }", "public void countByCharacter() {\n if (super.getInput() == null) {\n return;\n }\n FileInputStream is;\n try {\n is = new FileInputStream(super.getInput());\n NxParser nxp = new NxParser();\n System.out.println(\"Parsing \" + super.getInput() + \"...\");\n nxp.parse(is);\n for (Node[] nx : nxp) {\n String nodeid = nx[0].toString();\n String predicate = nx[1].getLabel();\n if (!PredicateUtils.isSchemaOrgEvent(predicate)) {\n continue;\n }\n predicate = PredicateUtils.fixSchemaOrg(predicate);\n if (!ATTR.equalsIgnoreCase(PredicateUtils.getEventProperty(predicate))) {\n continue;\n }\n String obj = nx[2].getLabel();\n int length = obj.length();\n Integer count = mapEvents.get(nodeid);\n mapEvents.put(nodeid, (count == null ? length : count + length));\n Integer countLength = mapLengths.get(String.valueOf(length));\n mapLengths.put(String.valueOf(length), (countLength == null ? 1 : countLength + 1));\n }\n System.out.println(\"The total number of lines: \" + nxp.lineNumber());\n System.out.println(\"The total number of events: \" + mapEvents.size());\n System.out.println(\"Start sorting mapEvents...\");\n Map<String, Integer> mapEvent = VectorUtils.sortByValue(mapEvents, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"event\"), mapEvent);\n System.out.println(\"Start sorting mapLengths...\");\n Map<String, Integer> mapLength = VectorUtils.sortByValue(mapLengths, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"length\"), mapLength);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static void avarageNum() throws IOException\n\t{\n\t\t// Read data from text file\n\t\tHashMap<String, Integer> wordCountMap = new HashMap<String, Integer>();\n\t \n BufferedReader reader = null;\n \n try\n {\n //Creating BufferedReader object\n \n reader = new BufferedReader(new FileReader(\"NumOUTPUT.txt\"));\n \n //Reading the first line into currentLine\n \n String currentLine = reader.readLine();\n \n while (currentLine != null)\n { \n // Splitting the currentLine into words \n String[] numbers = currentLine.toLowerCase().split(\" \");\n \n // Iterating each word\n for (String word : numbers)\n {\n // If word is already present in wordCountMap, updating its count\n \n if(wordCountMap.containsKey(word))\n { \n wordCountMap.put(word, wordCountMap.get(word) + 1);\n }\n \n // Otherwise inserting the word as key and 1 as its value\n else\n {\n wordCountMap.put(word, 1);\n }\n }\n \n // Reading next line into currentLine \n currentLine = reader.readLine();\n }\n \n // Getting the most repeated word and its occurrence \n String mostRepeatedNum = null;\n \n int count = 0;\n \n Set<java.util.Map.Entry<String, Integer>> entrySet = wordCountMap.entrySet();\n \n for (java.util.Map.Entry<String, Integer> entry : entrySet)\n {\n if(((java.util.Map.Entry<String, Integer>) entry).getValue() > count)\n { \n \t\tmostRepeatedNum = entry.getKey(); \n count = entry.getValue(); \n }\n }\n \n System.out.println(\"The most repeated number is : \" + mostRepeatedNum);\n \n System.out.println(\"Times repeated : \" + count);\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n reader.close(); //Closing the reader\n }\n catch (IOException e) \n {\n e.printStackTrace();\n }\n }\n\t\t\n\t}", "public void ArtistAndSource() throws IOException{\r\n List<String> ArrangersAndTheirSongs=new ArrayList<>();\r\n HashMap <String,Integer> SongCountMap= new HashMap<>();\r\n String allsongs=\"\";\r\n String sourcesong=\"\";\r\n for(int id: ArrangersMap.keySet()){\r\n String ArrangerName=ArrangersMap.get(id);\r\n for(String song:ArrangerLinesList){\r\n String perform[];\r\n perform=song.split(\"/\");\r\n int arrangeid=Integer.parseInt(perform[1]);\r\n if(id==arrangeid){\r\n int songid= Integer.parseInt(perform[0]);\r\n String songname=test.getsongName(songid);\r\n sourcesong=test.SongToSource(songname);\r\n allsongs+=sourcesong+\",\";\r\n if (SongCountMap.get(sourcesong) !=null){ \r\n SongCountMap.put(sourcesong, SongCountMap.get(sourcesong)+1);\r\n }\r\n else{\r\n SongCountMap.put(sourcesong, 1);\r\n }\r\n } \r\n }\r\n for(String song:SongCountMap.keySet()){\r\n //System.out.println(song);\r\n }\r\n HashMap <String,Integer> SortedMap= sortByValues(SongCountMap);\r\n SongCountMap.clear();\r\n String allsongs2=\"\";\r\n for(String song:SortedMap.keySet()){\r\n //System.out.println(\"Number\"+SortedMap.get(song)+\"The song is\"+song);\r\n allsongs2+=\"#occurences:\"+SortedMap.get(song)+\"The song is\"+song+\"\\n\";\r\n //System.out.println(\"Number of times:\"+SortedMap.get(song)+\"The song is\"+song);\r\n }\r\n //System.out.println(allsongs2);\r\n // ArrangersAndTheirSongs.add(\"The Arrangers Name is:\"+ArrangerName+ \" Their songs are:\"+allsongs);\r\n ArrangersAndTheirSongs.add(\"The Arrangers Name is:\"+ArrangerName+ \" Their songs are: \"\r\n + \"\"+allsongs2);\r\n allsongs=\"\";\r\n SortedMap.clear();\r\n allsongs2=\"\";\r\n }\r\n //method is broken\r\n writeListToTextFile(\"d:\\\\documents\\\\textfiles\\\\ArrangersAndTheirSources.txt\",ArrangersAndTheirSongs);\r\n System.out.println(\"The size of the list is:\"+ArrangersAndTheirSongs.size());\r\n System.out.println(\"Artist and Their Source Complete\");\r\n }", "@Override\n public int compare(Map<String, Object> o1, Map<String, Object> o2) {\n if(!descflag){\n return String.valueOf(o2.get(orderField)).compareTo(String.valueOf(o1.get(orderField)));\n }else {\n return String.valueOf(o1.get(orderField)).compareTo(String.valueOf(o2.get(orderField)));\n }\n // return 0;//加一个默认返回\n }", "public static void sortStringsNumAs( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] A = a.split(\"\");\n String[] B = b.split(\"\");\n int acount = 0;\n int bcount = 0;\n for (String i : A){\n if (i == \"a\" || i == \"A\"){\n acount += 1;\n }\n }\n for (String i : B){\n if (i == \"a\" || i == \"A\"){\n bcount += 1;\n }\n }\n\n if (acount > bcount) return true;\n else return false;\n };\n sortStrings(lst, p);\n \n }", "@Override\n protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n \n String[] inputArray = value.toString().split(\"::\");\n inputKey.set(Integer.parseInt(inputArray[1]));\n intValue.set(Integer.parseInt(inputArray[2]));\n SortedMapWritable inputValue = new SortedMapWritable();\n inputValue.put(intValue, count);\n context.write(inputKey, inputValue);\n }", "private void getWordCounts() {\n Map<String, List<String>> uniqueWordsInClass = new HashMap<>();\n List<String> uniqueWords = new ArrayList<>();\n\n for (ClassificationClass classificationClass : classificationClasses) {\n uniqueWordsInClass.put(classificationClass.getName(), new ArrayList<>());\n }\n\n for (Document document : documents) {\n String[] terms = document.getContent().split(\" \");\n\n for (String term : terms) {\n if (term.isEmpty()) {\n continue;\n }\n if (!uniqueWords.contains(term)) {\n uniqueWords.add(term);\n }\n\n for (ClassificationClass docClass : document.getClassificationClasses()) {\n if (!uniqueWordsInClass.get(docClass.getName()).contains(term)) {\n uniqueWordsInClass.get(docClass.getName()).add(term);\n }\n if (totalWordsInClass.containsKey(docClass.getName())) {\n this.totalWordsInClass.put(docClass.getName(), this.totalWordsInClass.get(docClass.getName()) + document.getFeatures().get(term));\n } else {\n this.totalWordsInClass.put(docClass.getName(), document.getFeatures().get(term));\n }\n }\n }\n }\n\n this.totalUniqueWords = uniqueWords.size();\n }", "public String frequencySort(String s) {\n\n\t\t// prepare a frequency map\n\t\tMap<Character, Integer> m = new HashMap<Character, Integer>();\n\t\tfor (char c : s.toCharArray())\n\t\t\tm.put(c, m.getOrDefault(c, 0) + 1);\n\n\t\tPriorityQueue<CKEntry1> pq = new PriorityQueue<>();\n\t\tfor (Entry<Character, Integer> e : m.entrySet()) {\n\t\t\tpq.add(new CKEntry1(e.getKey(), e.getValue()));\n\t\t}\n\t\t\n\t\t// prepare the output now\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile(!pq.isEmpty()) {\n\t\t\tCKEntry1 temp = pq.poll();\n\t\t\tchar[] tempC = new char[temp.count];\n\t\t\tArrays.fill(tempC, temp.c); // repeat c count' times\n\t\t\tsb.append(tempC);\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\n\t}", "public static WordFrq[] sort(WordFrq b[]){\n WordFrq temp;\n int i=0;\n while (i < 3) {\n for (i = 1; i < 3; i++) {\n if (b[i-1].count > b[i].count) {\n temp = b[i];\n b[i] = b[i-1];\n b[i-1] = temp;\n break;\n }\n }\n }\n\n\n return b;\n\n\n\n\n\n }", "public void sortByWordLengthAsc() {\r\n\t\tcomparator = new WordLengthAsc();\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tint arr[]={2, 3, 2, 4, 5, 12, 2, 3, 3, 3, 12};\r\n\t\tMap<Integer,Data> map = new HashMap<>();\r\n\t\tfor(int a :arr)\r\n\t\t{\r\n\t\t\tif(map.containsKey(a))\r\n\t\t\t{\r\n\t\t\t\tmap.get(a).incrementFrequency();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmap.put(a, new Data(a));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSet<Data> sortedData = new TreeSet<>(map.values());\r\n\t\tList<Integer> result = new ArrayList<>();\r\n\t\tfor(Data d : sortedData)\r\n\t\t{\r\n\t\t\tfor(int i=0;i<d.frequency;i++)\r\n\t\t\t\tresult.add(d.number);\r\n\t\t}\r\n\t\tSystem.out.println(result);\r\n\t}", "public static void main(String[] args) {\n\t\tString character = \"fsdkjfklsdjfksdlkjdsfoweiopriewfklsdkfldksaflkdsafldkfsieoirwpoiroewofkdsfksldkf\";\n\t\tMap<Character,Integer> map = new HashMap<Character, Integer>();\n\t\tmap = countChars(character);\n\t\tSortMap(map);\n\t}", "public Map<String, Integer> getWordFrequencies(SortOrder sortBy) {\n ArrayList<Map.Entry<String, MutableInteger>> entries =\n new ArrayList<Map.Entry<String, MutableInteger>>(wordFrequency.entrySet());\n if (sortBy == SortOrder.ALPHABETICALLY_ASCENDING) {\n Collections.sort(entries, SORT_ALPHABETICALLY_ASCENDING);\n } else {\n Collections.sort(entries, SORT_BY_FREQUENCY_DESCENDING);\n }\n \n Map<String, Integer> wordFrequencies = new HashMap<String, Integer>();\n ValueComparator bvc = new ValueComparator(wordFrequencies);\n TreeMap<String, Integer> sorted_map = new TreeMap(bvc);\n \n for (Map.Entry<String, MutableInteger> entry : entries) {\n wordFrequencies.put(entry.getKey(), entry.getValue().getInteger());\n }\n \n sorted_map.putAll(wordFrequencies);\n\n return sorted_map;\n }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "Map<String, Double> sortByValues(Map<String, Double> map_to_sort){\n\tList<Map.Entry<String,Double>> ranklist = new LinkedList<Map.Entry<String,Double>>(map_to_sort.entrySet());\n\tCollections.sort(ranklist, new Comparator<Map.Entry<String, Double>>(){\n\t\tpublic int compare(Map.Entry<String,Double> o1, Map.Entry<String,Double> o2){\n\t\t\treturn o2.getValue().compareTo((double)o1.getValue() );\n\t\t}\n\t});\n\t\n\tMap<String, Double> sortedRank = new LinkedHashMap<String,Double>();\n\tfor(Map.Entry<String, Double> rank : ranklist){\n\t\tsortedRank.put(rank.getKey(), rank.getValue());\t\t\t\n\t}\n\t\n\treturn sortedRank;\n\t}", "private void initiateWordCount(){\n for(String key: DataModel.bloomFilter.keySet()){\n WordCountHam.put(key, 0);\n WordCountSpam.put(key, 0);\n }\n }", "public static void customSort(List<Integer> array) {\n Map<Integer, Integer> map = new HashMap<>();\n List<Integer> outputArray = new ArrayList<>();\n int ii = 0;\n for (int current : array) {\n if (ii==0){\n ii++;\n continue;\n }\n int count = map.getOrDefault(current, 0);\n map.put(current, count + 1);\n outputArray.add(current);\n ii++;\n }\n\n Set<Map.Entry<Integer, Integer>> entries = map.entrySet();\n for (Map.Entry<Integer, Integer> entry : entries) {\n entry.getKey();\n }\n\n // Compare the map by value\n SortComparator comp = new SortComparator(map);\n\n // Sort the map using Collections CLass\n Collections.sort(outputArray,comp);\n\n // Final Output\n for (Integer i : outputArray) {\n System.out.print(i + \" \");\n }\n System.out.println();\n\n }", "public void countWord() {\n\t\tiniStorage();\n\t\tWordTokenizer token = new WordTokenizer(\"models/jvnsensegmenter\",\n\t\t\t\t\"data\", true);\n\t\t// String example =\n\t\t// \"Nếu bạn đang tìm kiếm một chiếc điện thoại Android? Đây là, những smartphone đáng để bạn cân nhắc nhất. Thử linh tinh!\";\n\t\t// token.setString(example);\n\t\t// System.out.println(token.getString());\n\n\t\tSet<Map.Entry<String, String>> crawlData = getCrawlData().entrySet();\n\t\tIterator<Map.Entry<String, String>> i = crawlData.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry<String, String> pageContent = i.next();\n\t\t\tSystem.out.println(pageContent.getKey());\n\t\t\tPageData pageData = gson.fromJson(pageContent.getValue(),\n\t\t\t\t\tPageData.class);\n\t\t\ttoken.setString(pageData.getContent().toUpperCase());\n\t\t\tString wordSegment = token.getString();\n\t\t\tString[] listWord = wordSegment.split(\" \");\n\t\t\tfor (String word : listWord) {\n\t\t\t\taddToDictionary(word, 1);\n\t\t\t\tDate date;\n\t\t\t\ttry {\n\t\t\t\t\tdate = simpleDateFormat.parse(pageData.getTime().substring(\n\t\t\t\t\t\t\t0, 10));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\taddToStatByDay(date, word, 1);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\n //challenge 1:\n\n List<String> topNames2015 = Arrays.asList(\n \"Amelia\",\n \"Olivia\",\n \"emily\",\n \"Isla\",\n \"Ava\",\n \"oliver\",\n \"Jack\",\n \"Charlie\",\n \"harry\",\n \"Jacob\"\n );\n\n Function<List<String>, List<String>> upperCase = (List<String> WordList) -> {\n for (String word : WordList) {\n String capitalWord = word.substring(0, 1).toUpperCase() + word.substring(1);\n WordList.set(WordList.indexOf(word), capitalWord);\n }\n return WordList;\n };\n\n Comparator<String> titleComparator = (FirstWord, SecondWord) -> FirstWord.compareTo(SecondWord);\n\n // makes the first letter upper case\n List<String> UppercaseWordList = upperCase.apply(topNames2015);\n // sorts the list in natural ordering\n Collections.sort(UppercaseWordList, titleComparator);\n for (String word : UppercaseWordList) {\n System.out.println(word);\n }\n\n //Challenge 2:\n\n List<String> topNames2016 = Arrays.asList(\n \"Amelia\",\n \"Olivia\",\n \"emily\",\n \"Isla\",\n \"Ava\",\n \"oliver\",\n \"Jack\",\n \"Charlie\",\n \"harry\",\n \"Jacob\"\n );\n\n // solution to challenge 2 it is commented out to allow for challenge 3\n// topNames2016.stream()\n// .map(obj -> {\n// String capitalWord = obj.substring(0, 1).toUpperCase() + obj.substring(1);\n// return capitalWord;\n// })\n// .sorted()\n// .forEach(System.out::println);\n//\n// }\n\n // challenge 3\n long countValue= topNames2016.stream()\n .map(obj -> {\n String capitalWord = obj.substring(0, 1).toUpperCase() + obj.substring(1);\n return capitalWord;\n })\n .filter(s -> s.startsWith(\"A\"))\n .count();\n\n System.out.println(\"Th number of names starting with A is: \"+countValue);\n\n }", "private static Map<Long, Long> sortByComparatorGift(Map<Long, Long> unsortMap) {\n\t\tList<Map.Entry<Long, Long>> list = \n\t\t\tnew LinkedList<Map.Entry<Long, Long>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<Long, Long>> comparator;\n\t\tcomparator = Collections.reverseOrder(new Comparator<Map.Entry<Long, Long>>() {\n\t\t\tpublic int compare(Map.Entry<Long, Long> o1,\n Map.Entry<Long, Long> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<Long, Long> sortedMap = new LinkedHashMap<Long, Long>();\n\t\tfor (Iterator<Map.Entry<Long, Long>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<Long, Long> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "private List<Content> sortContentMapByVolumeAndBarcode(Map<Integer, List<Content>> unOrderderdContentMap) {\n\n\t\tList<Content> contentsLongList = new LinkedList<>();\n\n\t\tfor (Map.Entry<Integer, List<Content>> entry : unOrderderdContentMap.entrySet())\n\t\t\tfor (Content content : entry.getValue())\n\t\t\t\tcontentsLongList.add(content);\n\n\t\tCollections.sort(contentsLongList, (c1, c2) -> {\n\t\t\tInteger c1Volume = c1.getVolume();\n\t\t\tInteger c2Volume = c2.getVolume();\n\t\t\tString c1Barcode = c1.getBarcode();\n\t\t\tString c2Barcode = c2.getBarcode();\n\n\t\t\treturn c2Volume - c1Volume != 0 ? c2Volume - c1Volume : c1Barcode.compareTo(c2Barcode);\n\t\t});\n\n\t\treturn contentsLongList;\n\t}", "@Override\n\t\t\tpublic int compare(Entry<String, Integer> o1, Entry<String, Integer> o2) {\n\t\t\t\treturn o2.getValue().compareTo(o1.getValue());\n\t\t\t}", "private Map<String,Integer> maxCountsMapMerge(Map<String,Integer> map1, Map<String,Integer> map2) {\n\t\tfor (String name : map1.keySet()) {\n\t\t\t// If name is already in map, then just take the higher count.\n\t\t\tInteger map1Count = map1.get(name);\n\t\t\tif (map2.containsKey(name)) {\n\t\t\t\tInteger map2Count = map2.get(name);\n\t\t\t\tif (map1Count > map2Count) {\n\t\t\t\t\tmap2.put(name,map1Count);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmap2.put(name,map1Count);\n\t\t\t}\n\t\t}\t\n\t\treturn map2;\n\t}", "public static void countSort(char seq[])\n {\n Arrays.sort(seq); \n }", "public static ArrayList<JsonNode> sortData(ArrayList<JsonNode> wordList) {\n Collections.sort( wordList, new Comparator<JsonNode>() {\n @Override\n public int compare(JsonNode a, JsonNode b) {\n int valA = Integer.parseInt(a.get(\"weight\").asText());\n int valB = Integer.parseInt(b.get(\"weight\").asText());\n return valB - valA; //Sort in order of largest to smallest\n }\n });\n\n return wordList;\n }", "private static String mostCommonWord(String paragraph, String[] banned) {\n\t String [] words =paragraph.replaceAll(\"[^a-zA-Z\\\\s+]\", \" \").toLowerCase().split(\"\\\\s+\");\r\n\t \r\n\t Set<String> bannedSet = new HashSet<String>();\r\n\t HashMap<String,Integer> map = new HashMap<String,Integer>();\r\n\t \r\n\t for (String string : banned) {\r\n\t \tbannedSet.add(string);\r\n\t }\r\n\t \r\n\t \r\n\t for (String string : words) {\r\n\t\t\t\r\n\t \tif(!bannedSet.contains(string)) {\r\n\t \t\tmap.put(string, map.getOrDefault(string, 0)+1);\r\n\t \t}\r\n\t \t \r\n\t\t}\r\n\t\t \r\n\t List list = new LinkedList(map.entrySet());\r\n\t\t// Defined Custom Comparator here\r\n\t\tCollections.sort(list, new Comparator() {\r\n\t\t\tpublic int compare(Object o1, Object o2) {\r\n\t\t\t\treturn ((Comparable) ((Map.Entry) (o2)).getValue()).compareTo(((Map.Entry) (o1)).getValue());\r\n\t\t\t}\r\n\t\t});\r\n\t \r\n\t\t//System.out.println(map);\r\n\t\t//System.out.println(list);\r\n\t\t\r\n\t\t return (String) ((Map.Entry) list.get(0)).getKey();\t\t\r\n\t}", "public void mergefiles()\n {\n LinkedHashMap<String, Integer> count = new LinkedHashMap<>();\n for(int i=0;i<files_temp.size();i++)\n {\n \t\t\n //System.out.println(\"here in merge files for\");\n \t//int index = files_temp.get(i).lastIndexOf(\"\\\\\");\n\t\t\t//System.out.println(index);\n \tSystem.out.println(files_temp.get(i));\n File file = new File(files_temp.get(i)+\"op.txt\");\n Scanner sc;\n try {\n //System.out.println(\"here in merge files inside try\");\n sc = new Scanner(file);\n sc.useDelimiter(\" \");\n while(sc.hasNextLine())\n {\n //System.out.println(\"Inwhile \");\n List<String> arr = new ArrayList<String>();\n arr=Arrays.asList(sc.nextLine().replaceAll(\"[{} ]\", \"\").replaceAll(\"[=,]\", \" \").split(\" \"));\n //System.out.println(arr.get(0));\n for(int j=0;j<arr.size()-1;j=j+2) \n {\n System.out.println(arr.get(j));\n if(arr.get(j).length()!=0 && arr.get(j+1).length()!=0)\n {\n if (count.containsKey(arr.get(j))) \n {\n int c = count.get(arr.get(j));\n count.remove(arr.get(j));\n count.put(arr.get(j),c + Integer.valueOf(arr.get(j+1)));\n }\n else \n {\n count.put(arr.get(j),Integer.valueOf(arr.get(j+1)));\n }\n }\n }\n }\n }\n catch(Exception E) \n {\n System.out.println(E);\n }\n }\n //System.out.println(count);\n count.entrySet()\n .stream()\n .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))\n .forEachOrdered(x -> sorted.put(x.getKey(), x.getValue()));\n System.out.println(sorted);\n PrintWriter writer;\n\t\ttry {\n\t\t\twriter = new PrintWriter(\"results.txt\", \"UTF-8\");\n\t\t\tIterator it = sorted.entrySet().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tMap.Entry pairs = (Map.Entry) it.next();\n\t\t\t\t\twriter.println(pairs.getValue() + \" : \" + pairs.getKey());\n\t\t\t\t\tthis.result.println(pairs.getValue() + \" : \" + pairs.getKey());\n\t\t\t}\n\t\t writer.close();\n\t\t}\n catch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n }", "public void getCounts() {\t\r\n\t\t\r\n\t\tfor(int i = 0; i < 4; i++)\r\n\t\t\tfor(int j = 0; j < 3; j++)\r\n\t\t\t\tthecounts[i][j] = 0;\r\n\t\t\r\n\t\tfor(int i=0;i<maps.length-1;i++) {\r\n\t\t\tif(maps.Array1.charAt(i) == 'H' && maps.Array1.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[0][0]++;\r\n\t\t\telse if(maps.Array1.charAt(i) == 'E' && maps.Array1.charAt(i+1) =='-') \r\n\t\t\t\tthecounts[0][1]++;\r\n\t\t\telse if(maps.Array1.charAt(i) == '-' && maps.Array1.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[0][2]++;\r\n\t\t\tif(maps.Array2.charAt(i) == 'H' && maps.Array2.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[1][0]++;\r\n\t\t\telse if(maps.Array2.charAt(i) == 'E' && maps.Array2.charAt(i+1) == '-') \r\n\t\t\t\tthecounts[1][1]++;\r\n\t\t\telse if(maps.Array2.charAt(i) == '-' && maps.Array2.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[1][2]++;\r\n\t\t\tif(maps.Array3.charAt(i) == 'H' && maps.Array3.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[2][0]++;\r\n\t\t\telse if(maps.Array3.charAt(i) == 'E' && maps.Array3.charAt(i+1) == '-') \r\n\t\t\t\tthecounts[2][1]++;\r\n\t\t\telse if(maps.Array3.charAt(i) == '-' && maps.Array3.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[2][2]++;\r\n\t\t\tif(maps.Array4.charAt(i) == 'H' && maps.Array4.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[3][0]++;\r\n\t\t\telse if(maps.Array4.charAt(i) == 'E'&&maps.Array4.charAt(i+1) == '-') \r\n\t\t\t\tthecounts[3][1]++;\r\n\t\t\telse if(maps.Array4.charAt(i) == '-' && maps.Array1.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[3][2]++;\r\n\t\t}\r\n\t\t\r\n\t\t//Getting transition value between 1 and 0\r\n\t\tfor(int i=0;i<4;i++) {\r\n\t\t\tfor(int j=0;j<3;j++) {\r\n\t\t\t\tthecounts[i][j]/=maps.length;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Displaying the obtained values\r\n\t\tSystem.out.println(\"\\nTRANSITION\");\r\n\t\tSystem.out.println(\"HYDROPHOBICITY: 1->2: \" + thecounts[0][0] + \" 2->3: \" + thecounts[0][1] + \" 3->1: \" + thecounts[0][2]);\r\n\t\tSystem.out.println(\"POLARIZABILITY: 1->2: \" + thecounts[1][0] + \" 2->3: \" + thecounts[1][1] + \" 3-1: \" + thecounts[1][2]);\r\n\t\tSystem.out.println(\"POLARITY: 1->2: \" + thecounts[2][0] + \" 2->3: \" + thecounts[2][1] + \" 3->1: \" + thecounts[2][2]);\r\n\t\tSystem.out.println(\"VAN DER WALLS VOLUME: 1->2: \" + thecounts[3][0] + \" 2->3: \" + thecounts[3][1] + \" 3->1: \" + thecounts[3][2]);\r\n\t\t\r\n\t}", "@Override\n\tpublic void map(Object key, Text value, Context context)\n\tthrows IOException, InterruptedException {\n\tString[] words = value.toString().split(\"[ \\t]+\");\n\tfor(String originalWord:words)\n\t{\n\t\t//Remove all alphanumeric characters\n\t\toriginalWord = originalWord.replaceAll(\"[^a-zA-Z0-9]\",\"\");\n\t\t\n\t\t//Convert the words to lower case\n\t\t//word = word.toLowerCase();\n\t\n\t\tchar[] chars = originalWord.toCharArray();\n\t\tArrays.sort(chars);\n\t\tString sortedWord= new String(chars);\n\t\tcontext.write(new Text(sortedWord), new Text(originalWord));\n\t\tSystem.err.println(\"RKUMLOG:This is a mapper.\");\n\t}\n\t}", "private static void feedMapWithWordList(List<String> wordList, HashMap<String, Long> dataMap) {\n\n\t\tfor(int i = 0, size = wordList.size(); i < size; i++) { // Go through the list of words being fed - if a word already exists, add 1 to its frequency; otherwise, create a new key and give it a value of 1\n\n\t\t\tfinal String word = wordList.get(i);\n\n\t\t\tif(dataMap.containsKey(word))\n\n\t\t\t\tdataMap.replace(word, dataMap.get(word) + 1);\n\n\t\t\telse\n\n\t\t\t\tdataMap.put(word, 1L);\n\t\t}\n\t}", "@Override\n public void sortAndCount() {\n Insertion.reset();\n Insertion.sort(arrayForTests);\n comp = Sort.getComparisonOperations(); // Sort.getComp();\n copy = Sort.getCopyOperations(); // Sort.getCopy();\n }", "public static void main(String[] args) {\n\r\n\t\tString input = \"4451234485213\";\r\n\r\n\t\tHashMap<Integer, Integer> compareMap = new HashMap<Integer, Integer>();\r\n\t\tSet<Character> dupSet = new HashSet<Character>();\r\n\r\n\t\tfor (char temp : input.toCharArray()) {\r\n\r\n\t\t\tboolean finder = dupSet.add(temp);\r\n\r\n\t\t\tif (finder) {\r\n\t\t\t\t// Element not in set first occurence\r\n\t\t\t\tcompareMap.put(Character.getNumericValue(temp), 1);\r\n\t\t\t} else {\r\n\t\t\t\tcompareMap.put(Character.getNumericValue(temp),\r\n\t\t\t\t\t\tcompareMap.get(Character.getNumericValue(temp)) + 1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * for(int finalshit:compareMap.keySet()) {\r\n\t\t * System.out.println(\"Key--> \"+finalshit + \" Occurence-->\" +\r\n\t\t * compareMap.get(finalshit));\r\n\t\t * //compareMap2.put(compareMap.get(finalshit), finalshit); }\r\n\t\t */\r\n\r\n\t\tList<Map.Entry<Integer, Integer>> list = new LinkedList<Map.Entry<Integer, Integer>>(\r\n\t\t\t\tcompareMap.entrySet());\r\n\r\n\t\tCollections.sort(list, new customComparator());\r\n\r\n\t\t// System.out.println(compareMap2);\r\n\r\n\t\tHashMap<Integer, Integer> temp = new LinkedHashMap<Integer, Integer>();\r\n\t\tfor (Map.Entry<Integer, Integer> aa : list) {\r\n\t\t\ttemp.put(aa.getKey(), aa.getValue());\r\n\t\t}\r\n\r\n\t\tfor (int a : temp.keySet()) {\r\n\t\t\tSystem.out.println(\"Key = \" + a + \" value=\" + temp.get(a));\r\n\t\t}\r\n\r\n\t}", "@Override\n public int compareTo(Word other){\n int value = other.Count()-this.Count();\n if (value == 0) return 1;\n return value;\n }", "private List<String> getTop(Map<String, AtomicLong> map, int count){\n\t\tMap<String, Long> convertedMap = map.entrySet().stream().collect(\r\n\t\t\t\tCollectors.toMap(\tMap.Entry::getKey, \r\n\t\t\t\t\t\t\t\t\te -> Long.valueOf(e.getValue().get())));\r\n\t\t\r\n\t\treturn Util.getTopByValue(convertedMap, count);\r\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\n \n \n File textBank = new File(\"textbank/\");\n Hashtable<Integer,Integer> frequency;\n Hashtable<Integer, String> table;\n table = new Hashtable<>();\n frequency = new Hashtable<>();\n Scanner input = new Scanner(new File(\"stoplist.txt\"));\n int max=0;\n while (input.hasNext()) {\n String next;\n next = input.next();\n if(next.length()>max)\n max=next.length();\n table.put(next.hashCode(), next); //to set up the hashmap with the wordsd\n \n }\n \n System.out.println(max);\n \n Pattern p0=Pattern.compile(\"[\\\\,\\\\=\\\\{\\\\}\\\\\\\\\\\\\\\"\\\\_\\\\+\\\\*\\\\#\\\\<\\\\>\\\\!\\\\`\\\\-\\\\?\\\\'\\\\:\\\\;\\\\~\\\\^\\\\&\\\\%\\\\$\\\\(\\\\)\\\\]\\\\[]\") \n ,p1=Pattern.compile(\"[\\\\.\\\\,\\\\@\\\\d]+(?=(?:\\\\s+|$))\");\n \n \n \n wor = new ConcurrentSkipListMap<>();\n \n ConcurrentMap<String , Map<String,Integer>> wordToDoc = new ConcurrentMap<String, Map<String, Integer>>() {\n @Override\n public Map<String, Integer> putIfAbsent(String key, Map<String, Integer> value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean remove(Object key, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean replace(String key, Map<String, Integer> oldValue, Map<String, Integer> newValue) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> replace(String key, Map<String, Integer> value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public int size() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean isEmpty() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean containsKey(Object key) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean containsValue(Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> get(Object key) {\n return wor.get((String)key);//To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> put(String key, Map<String, Integer> value) {\n wor.put(key, value); // this saving me n \n //if(frequency.get(key.hashCode())== null)\n \n //frequency.put(key.hashCode(), )\n return null;\n }\n\n @Override\n public Map<String, Integer> remove(Object key) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public void putAll(Map<? extends String, ? extends Map<String, Integer>> m) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public void clear() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Set<String> keySet() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Collection<Map<String, Integer>> values() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Set<Map.Entry<String, Map<String, Integer>>> entrySet() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n totalFiles = textBank.listFiles().length;\n for (File textFile : textBank.listFiles()) {\n totalReadFiles++;\n //checking whether file has txt extension and file size is higher than 0\n if(textFile.getName().contains(\".txt\") && textFile.length() > 0){\n docName.add(textFile.getName().replace(\".txt\", \".stp\"));\n StopListHandler sp = new StopListHandler(textFile, table,System.currentTimeMillis(),p0,p1,wordToDoc);\n sp.setFinished(() -> {\n \n tmp++;\n \n if(tmp==counter)\n //printTable(counter);\n \n if(totalReadFiles == totalFiles)\n {\n printTable(counter);\n }\n \n });\n \n sp.start();\n counter ++;}\n \n \n }\n System.out.println(counter);\n //while(true){if(tmp==counter-1) break;}\n System.out.println(\"s\");\n \n }", "private static String frequencySort(String s) {\n if (s == null || s.isEmpty()) { return s; }\n\n int[] freq = new int[256];\n for (char c : s.toCharArray()) {\n freq[c]++;\n }\n\n PriorityQueue<Pair<Character, Integer>> pq = new PriorityQueue<>((a, b) -> b.getValue() - a.getValue());\n for (int i = 0; i < freq.length; i++) {\n if (freq[i] == 0) { continue; }\n Pair<Character, Integer> pair = new Pair<>((char) (i), freq[i]);\n pq.offer(pair);\n }\n\n StringBuilder sb = new StringBuilder();\n while (!pq.isEmpty()) {\n Pair<Character, Integer> pair = pq.poll();\n for (int i = 0; i < pair.getValue(); i++) {\n sb.append(pair.getKey());\n }\n }\n return sb.toString();\n }", "public static void main(String[] args) {\n\t\tString input = \"이유덕,이재영,권종표,이재영,박민호,강상희,이재영,김지완,최승혁,이성연,박영서,박민호,전경헌,송정환,김재성,이유덕,전경헌\";\r\n\t\tString[] names = input.split(\",\");\r\n\t\t\r\n\t\tint count_kim = 0;\r\n\t\tint count_lee = 0;\r\n\t\tint count_ljy = 0;\r\n\t\t\r\n\t\tArrayList<String> name_list = new ArrayList<String>();\r\n\t\t\r\n\t\tfor (int i=0; i<names.length ;i++) {\r\n\t\t\tif(names[i].startsWith(\"김\")) count_kim++;\r\n\t\t\tif(names[i].startsWith(\"이\")) count_lee++;\r\n\t\t\tif(names[i].equals(\"이재영\")) count_ljy++;\r\n\t\t\tif(!name_list.contains(names[i])) name_list.add(names[i]);\r\n\t\t\t\r\n\t\t}\r\n\t\tString[] name_arr = name_list.toArray(new String[name_list.size()]);\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"김씨: \"+count_kim);\r\n\t\tSystem.out.println(\"이씨: \"+count_lee);\r\n\t\tSystem.out.println(\"이재영: \"+count_ljy);\r\n\t\t\r\n\t\tSystem.out.print(\"중복 제거: \");\r\n\t\tfor ( int i =0; i< name_arr.length; i++) \r\n\t\t\tSystem.out.print(name_arr[i] + ((name_arr.length == i+1)? \"\\n\":\",\"));\r\n\t\t\t\r\n\t\tArrays.sort(name_arr);\r\n\t\tSystem.out.print(\"중복 제거(오름차순): \");\r\n\t\tfor ( int i =0; i< name_arr.length; i++) \r\n\t\t\tSystem.out.print(name_arr[i] + ((name_arr.length == i+1)? \"\\n\":\",\"));\r\n\t}", "public static void countingSort(Person[] persons) {\n Map<Integer, Integer> keyCounts = Arrays.stream(persons)\n .collect(Collectors.groupingBy(person -> person.key, Collectors.reducing(0, e -> 1, Integer::sum)));\n\n int baseOffset = 0;\n Map<Integer, Integer> keyOffsets = new HashMap<>();\n for (int key : keyCounts.keySet()) {\n keyOffsets.put(key, baseOffset);\n baseOffset += keyCounts.get(key);\n }\n\n Stream.iterate(persons[0], (Person person) -> {\n int offset = keyOffsets.get(person.key);\n Person tmpPerson = persons[offset];\n persons[offset] = person;\n keyOffsets.put(person.key, keyOffsets.get(person.key) + 1);\n return tmpPerson;\n }).limit(persons.length).count();\n\n// Person person = persons[0];\n// for (int i = 0; i < persons.length - 1; i++) {\n// int offset = keyOffsets.get(person.key);\n// Person tmpPerson = persons[offset];\n// persons[offset] = person;\n// keyOffsets.put(person.key, keyOffsets.get(person.key) + 1);\n// person = tmpPerson;\n// }\n }", "@SuppressWarnings(\"unchecked\")\r\n public static HashMap<Integer,TreeMap<Integer,Double>> word_distribute(Corpus c, SparseBackoffTree [] sbtToOutput) throws Exception{\n @SuppressWarnings(\"rawtypes\")\r\n HashMap<Integer,HashMap<Integer,Double>> word_givenTopic = new HashMap();\r\n for(int i = 0; i < c._pWord.length; i++) {\r\n if(c._pWord[i] > 0.0) {\r\n TIntDoubleHashMap hm = sbtToOutput[i].getLeafCounts();\r\n TIntDoubleIterator it = hm.iterator();\r\n while(it.hasNext()) {\r\n it.advance();\r\n int sId = it.key();\r\n double val = it.value()/c._pWord[i];\r\n if(word_givenTopic.containsKey(sId)){\r\n HashMap<Integer,Double> sublist = word_givenTopic.get(sId);\r\n sublist.put(i,val);\r\n }else{\r\n @SuppressWarnings(\"rawtypes\")\r\n HashMap<Integer,Double> sublist = new HashMap();\r\n sublist.put(i,val);\r\n word_givenTopic.put(sId,sublist);\r\n }\r\n }\r\n }\r\n }\r\n\r\n //sort the hash map by value.\r\n @SuppressWarnings(\"rawtypes\")\r\n HashMap<Integer,TreeMap<Integer,Double>> final_result = new HashMap();\r\n for(Entry<Integer, HashMap<Integer, Double>> entry : word_givenTopic.entrySet()) {\r\n int key = entry.getKey();\r\n HashMap<Integer,Double> word_distribution = entry.getValue();\r\n ByValueComparator bvc = new ByValueComparator(word_distribution);\r\n TreeMap<Integer, Double> sorted_word_distribution = new TreeMap<Integer, Double>(bvc);\r\n sorted_word_distribution.putAll(word_distribution);\r\n final_result.put(key,sorted_word_distribution);\r\n } \r\n return final_result;\r\n}", "public static void main(String[] args) {\n\t\tMap<String,Integer> m = new HashMap<String, Integer>();\n\t\tm.put(\"ssid1\", 3);\n\t\tm.put(\"ssid2\", 5);\n\t\tm.put(\"ssid3\", 1);\n\t\tm.put(\"dd\", 10);\n\t\tm.put(\"aa\", 3);\n\t\tSystem.out.println(m);\n\t\tm = sortByValue(m, true);\n\t\tSystem.out.println(m);\n\n\t}", "public void sort() {\n documents.sort();\n }", "@Override\n\t\t\tpublic int compare(Entry<Character, Integer> o1, Entry<Character, Integer> o2) {\n\t\t\t\treturn o2.getValue() - o1.getValue();\n\t\t\t}", "private Map<String, Integer> sortByValue(ConcurrentHashMap<String, Integer> popularJavaScriptLibrariesMap) {\n List<Map.Entry<String, Integer>> list =\n new LinkedList<>(popularJavaScriptLibrariesMap.entrySet());\n\n // Sort the list\n Collections.sort(list, (o1, o2) -> (o2.getValue()).compareTo(o1.getValue()));\n\n // put data from sorted list to hashmap\n HashMap<String, Integer> temp = new LinkedHashMap<>();\n for (Map.Entry<String, Integer> aa : list) {\n temp.put(aa.getKey(), aa.getValue());\n }\n return temp;\n }" ]
[ "0.79435146", "0.68662196", "0.66006964", "0.65846974", "0.6444091", "0.6391401", "0.63496", "0.6317239", "0.61740464", "0.6131436", "0.61019415", "0.6095848", "0.6079106", "0.6069243", "0.6068115", "0.60467523", "0.60240704", "0.6011698", "0.59836197", "0.5980837", "0.59721833", "0.5969572", "0.5941497", "0.59324247", "0.59099245", "0.5897767", "0.5850653", "0.5830902", "0.58281887", "0.58266324", "0.5823772", "0.5820011", "0.58066505", "0.57922107", "0.57732934", "0.5769745", "0.5732551", "0.5732294", "0.57261455", "0.5722037", "0.57165337", "0.5697967", "0.5696107", "0.56918114", "0.56816244", "0.5647593", "0.5641376", "0.563838", "0.5617414", "0.5609431", "0.5602185", "0.5600571", "0.5596122", "0.5594527", "0.5593045", "0.558812", "0.5583033", "0.5581393", "0.5581333", "0.55760586", "0.5571816", "0.5571102", "0.5569402", "0.5567151", "0.5565075", "0.555879", "0.5558409", "0.55482346", "0.55445075", "0.5535129", "0.5530027", "0.552017", "0.5518653", "0.55100805", "0.54895467", "0.5488656", "0.54790056", "0.5474691", "0.5473671", "0.5471102", "0.54674685", "0.54644376", "0.54643315", "0.5457407", "0.54530543", "0.5452324", "0.54522294", "0.54503214", "0.54486763", "0.5447752", "0.54425895", "0.54360384", "0.54334277", "0.54318124", "0.54275763", "0.5422337", "0.54060394", "0.54024404", "0.54019254", "0.54002535" ]
0.64452785
4
Constructor, that initializes the graph.
public FacebookGraph(int size) { super(size, false); this.vertexNames = new HashMap<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Graph() {\r\n\t\tinit();\r\n\t}", "public Graph() {\n }", "public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}", "public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }", "public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}", "public Graphs() {\n graph = new HashMap<>();\n }", "public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}", "public Graph() {\n\t\tdictionary=new HashMap<>();\n\t}", "public Graph()\n\t{\n\t\tthis.map = new HashMap<Object, SinglyLinkedList>();\n\t}", "public Graph() {\r\n\t\tnodePos = new HashMap<Integer, Vec2D>();\r\n\t\tconnectionLists = new HashMap<Integer, List<Connection>>();\r\n\t\t//screenWidth = Config.SCREEN_WIDTH;\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic Graph() {\r\n \tthis.vertex = new HashMap<T, Vertex>();\r\n \tthis.edge = new HashMap<Integer, Edge>();\r\n }", "public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}", "Graph(){\n\t\tadjlist = new HashMap<String, Vertex>();\n\t\tvertices = 0;\n\t\tedges = 0;\n\t\tkeys = new ArrayList<String>();\n\t}", "public GraphInfo(){}", "public JXGraph() {\r\n this(0.0, 0.0, -1.0, 1.0, -1.0, 1.0, 0.2, 4, 0.2, 4);\r\n }", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public Graph() {\n\t\tthis(new PApplet());\n\t}", "public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }", "public WeightedGraph() {\n super();\n }", "public HashGraph()\n {\n graph = new HashMap <>();\n }", "public UGraph()\r\n {\r\n uNodes = new HashMap<Integer , UNode>();\r\n uEdges = new HashMap<Integer, UEdge>();\r\n }", "public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}", "public Graph(){//constructor\n //edgemap\n srcs=new LinkedList<>();\n maps=new LinkedList<>();\n chkIntegrity(\"edgemap\");\n \n nodes=new LinkedList<>();\n //m=new EdgeMap();\n }", "Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}", "public DFSGraph() {\n this(new HashMap<>(), HashMap::new, HashSet::new, HashSet::new);\n }", "public GraphWrapper() {\n\t\tthis.graph = new Graph<T,E>();\n\t}", "public DSAGraph()\n\t{\n\t\tvertices = new DSALinkedList();\n\t\tedgeCount = 0;\n\t}", "@Override\r\n public void init(weighted_graph g) {\r\n this.Graph = g;\r\n }", "public SubGraph(){\r\n\t\tsuper();\r\n\t}", "public Graph(PApplet p) {\n\t\tvertices = new HashMap<Integer, Vertex>();\n\t\tedges = new HashSet<Edge>();\n\t\tparent = p;\n\t}", "public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }", "private GraphParser(){ \n\t}", "public Graph(int numberOfVertices){\r\n this.numberOfVertices = numberOfVertices;\r\n this.adjacencyList = new TreeMap<>();\r\n }", "GraphObj() {\n this._V = 0;\n this._E = 0;\n inListArray = new ArrayList<>();\n inListArray.add(null);\n outListArray = new ArrayList<>();\n outListArray.add(null);\n selfEdges = new ArrayList<>();\n selfEdges.add(-1);\n edgeList = new ArrayList<>();\n edgeList.add(null);\n }", "VertexNetwork() {\r\n /* This constructor creates an empty list of vertex locations. \r\n read The transmission range is set to 0.0. */\r\n transmissionRange = 0.0;\r\n location = new ArrayList<Vertex>(0);\r\n }", "public samJGraph()\n {\n super(new GraphPane( new GraphModel(), new samGraphController() ) );\n }", "@Override\n\tpublic void init() {\n\t\tGraph<Number,Number> ig = Graphs.<Number,Number>synchronizedDirectedGraph(new DirectedSparseMultigraph<Number,Number>());\n\t\tObservableGraph<Number,Number> og = new ObservableGraph<Number,Number>(ig);\n\t\tog.addGraphEventListener(new GraphEventListener<Number,Number>() {\n\n\t\t\tpublic void handleGraphEvent(GraphEvent<Number, Number> evt) {\n\t\t\t\tSystem.err.println(\"got \"+evt);\n\n\t\t\t}});\n\t\tthis.g = og;\n\n\t\tthis.timer = new Timer();\n\t\tthis.layout = new FRLayout2<Number,Number>(g);\n\t\t// ((FRLayout)layout).setMaxIterations(200);\n\t\t// create a simple pickable layout\n\t\tthis.vv = new VisualizationViewer<Number,Number>(layout, new Dimension(600,600));\n\n\n\n\t}", "public WGraph_DS()\n {\n modeCount=0;\n edges=0;\n HashMap<Integer,node_info>nodesHash=new HashMap<>();\n HashMap<Integer,Neighbors>edgesHash=new HashMap<>();\n }", "private Moneygraph() {\n super(\"moneygraph\", null);\n }", "public SGraphValidator() {\r\n\t\tsuper();\r\n\t}", "public Builder() {\n this(Graphs.<N, E>createUndirected());\n }", "public DiGraphReader() {\n // Configure the graph reader here\n g = null;\n e = null;\n }", "private void initializeGraph() {\r\n map = new HashMap<>();\r\n graph = new List[n];\r\n for (int i = 0; i < n; i++) graph[i] = new ArrayList<>();\r\n\r\n\r\n }", "Graph() {\r\n\t\tvertices = new LinkedList<Vertex>();\r\n\t\tedges = 0;\r\n\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\t// ASCII value of 'A' is 65\r\n\t\t\tVertex vertex = new Vertex((char) (i + 65));\r\n\t\t\tvertices.add(vertex);\r\n\t\t}\r\n\t\tcurrentVertex = vertices.get(0);\r\n\t\tseen = new boolean[26];\r\n\t}", "public void buildGraph(){\n\t}", "public Scheduler()\r\n {\r\n town = new Graph<String>();\r\n }", "AdjacencyGraph(){\r\n vertices = new HashMap<>();\r\n }", "private Graph<Node, DefaultEdge> initialiseSpaceGraph() {\n Graph<Node, DefaultEdge> g = new SimpleGraph<>(DefaultEdge.class);\n g = addNodes(g);\n g = addEdges(g);\n return g;\n }", "private TbusRoadGraph() {}", "public UniGraph()\r\n/* 14: */ {\r\n/* 15: 28 */ this.map = new HashMap();\r\n/* 16: 29 */ assert (checkRep());\r\n/* 17: */ }", "public GraphEdge()\r\n {\r\n cost = 1.0;\r\n indexFrom = -1;\r\n indexTo = -1;\r\n }", "public ExportGraph()\n {\n }", "@Override\n\tpublic void init(graph g) {\n\t\tthis.GA = g;\n\t}", "public Graph(int V){\n this.V = V;\n this.E = 0;//no edge at initial condition.\n //initialize the adjacency list\n this.adj = new Queue[V];\n //initialize the Queue\n for(int i=0;i<adj.length;i++) {\n //each element in adj is a Queue that stores all vertexes connected with the index i of adj.\n adj[i] = new Queue<Integer>();\n }\n }", "protected AbstractTreeAdjacencyGraph()\n\t{\n\t\tsuper();\n\t}", "public CachedSubsumptionGraph() {\n }", "private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}", "public AbstractListMapGraph()\n\t{\n\t\tsuper();\n\t\tedgeList = new ArrayList<ET>();\n\t\tnodeList = new ArrayList<N>();\n\t\tgcs = new GraphChangeSupport<N, ET>(this);\n\t\tnodeEdgeMap = new HashMap<N, Set<ET>>();\n\t}", "public RoutingResourceGraph() {\n ex = new RunGraph(3,2);\n squares = new JLabel[ex.getGraphSize()][ex.getGraphSize()];\n squares_sinks = new JLabel[ex.getGraphSize()][ex.getGraphSize()];\n squares_wires = new JLabel[2 * ex.getGraphSize() * ex.getGraphSize()][ex.getWireSize()];\n switches = new JToggleButton[ex.getGraphSize()][ex.getGraphSize()];\n ex.initialize();\n initComponents();\n initialize();\n add_edge();\n ex.find_shortest_path();\n showCong();\n showGraph();\n }", "private CGraphInliner() {\n }", "public WeightedAdjacencyGraph() {\n this.vertices = new HashMap<>();\n }", "Vertex(){}", "public void constructGraph(){\r\n\t\tmyGraph = new Graph();\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tmyGraph.addVertex(allSpots[i]);\r\n\t\t}\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tint th = i;\r\n\t\t\twhile(th%6!=0) {\r\n\t\t\t\tth--;\r\n\t\t\t}\r\n\t\t\tfor(int h=th;h<=th+5;h++) {\r\n\t\t\t\tif(h!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[h])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[h]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint tv=i;\r\n\t\t\twhile(tv-6>0) {\r\n\t\t\t\ttv=tv-6;\r\n\t\t\t}\r\n\t\t\tfor(int v=tv;v<36; v=v+6) {\r\n\t\t\t\tif(v!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[v])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[v]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Add verticies that store the Spot objects\r\n\t\t//Add edges to connect spots that share a property along an orthogonal direction\r\n\r\n\t\t//This is the ONLY time it is ok to iterate the array.\r\n\t\t\r\n\t\t//myGraph.addVert(...);\r\n\t\t//myGraph.addEdge(...);\r\n\t}", "public FollowGraph() {\r\n users = new ArrayList<>();\r\n connections = new boolean[MAX_USERS][MAX_USERS];\r\n }", "public Network () {\n buildNetwork();\n }", "public GraphImpl(int[][] g) {\n\t\tanzKnoten = g.length;\n\t\tgraph = g;\n\t}", "public ArangoDBVertex() {\n\t\tsuper();\n\t}", "public Graph(int numVertices) {\n myAdjLists = new LinkedList[numVertices];\n myStartVertex = 0;\n for (int k = 0; k < numVertices; k++) {\n myAdjLists[k] = new LinkedList<Edge>();\n }\n myVertexCount = numVertices;\n }", "public Graph(int numVertices) {\r\n myAdjLists = new LinkedList[numVertices];\r\n myStartVertex = 0;\r\n for (int k = 0; k < numVertices; k++) {\r\n myAdjLists[k] = new LinkedList<Edge>();\r\n }\r\n myVertexCount = numVertices;\r\n }", "public MyVertex( ) {\n // Set ID and increment so next Vertex count++\n id = count;\n count++;\n\n // Set color to NULL initially\n color = null;\n\n // Create new Lists\n incidentEdges = new ArrayList< Edge >( );\n adjacentVertices = new ArrayList< Vertex >( );\n }", "public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }", "public Network() {\n\t\t\n\t\t//Initialize new hashmap for nodes and neighbors\n\t\tnodes = new HashSet<Node>();\n\t\t\n\t\t//Initialize new arraylist for messages in network\n\t\tmessages = new ArrayList<Message>();\n\t\t\n\t\t//Set the network to open for accepting messages \n\t\tthis.open = true;\n\t\t\n\t}", "public void init() {\n\t\t// Read the data text file and load up the local database\n\t\tinitData();\n\n\t\t// Create the labels and the textbox\n\t\taddNameLabel();\n\t\taddNameBox();\n\t\taddGraphButton();\n\t\taddClearButton();\n\n\t\t// Set up the graph object\n\t\tgraph = new NameSurferGraph();\n\t\tadd(graph);\n\n\t}", "public HistoryGraph() {\n revisions = new HashSet<Revision>();\n orderedRevisions = new ArrayList<Revision>();\n }", "public Population(Graph graph)\r\n/* 13: */ {\r\n/* 14:36 */ g = graph.cloneGraph();\r\n/* 15: */ }", "public VISNode() {\n this.model = new VISNodeModel();\n }", "public Graph( String xLabel, String yLabel )\r\n {\r\n //default x and y name, start, range, and scaling\r\n initX(xLabel, 0, 10, 1);\r\n initY(yLabel, 0, 10, 1);\r\n }", "public Node() {\n }", "public GraphNode(D data) {\n successors = new ArrayList<>();\n this.data = data;\n }", "public WeightedDiGraphAPI() {\r\n\t\tthis.mVisitStatus = new HashMap<Integer,Boolean>();\r\n\t\tthis.mVertexList = new TreeSet<Integer>();\r\n\t\tthis.mEdgeList = new PriorityQueue<DirectedEdge>();\r\n\t\tthis.adjList = new HashMap<Integer,List<DirectedEdge>>();\r\n\t\tthis.mMSTedgeList = new ArrayList<DirectedEdge>();\r\n\t}", "public SAP(Digraph graph) {\n this.graph = graph;\n ancestor = -1;\n distance = Integer.MAX_VALUE;\n }", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public Vertex(){\n\n }", "public DirectedAcyclicGraphImpl() {\r\n super();\r\n topologicalsorting = new TopologicalSorting( this );\r\n }", "Graph(int size) {\n n = size;\n V = new Vertex[size + 1];\n // create an array of Vertex objects\n for (int i = 1; i <= size; i++)\n V[i] = new Vertex(i);\n }", "public NodeNetwork() {\n\t\tnodes = new ArrayList<>();\n\t\tconnections = new ArrayList<>();\n\t}", "public FlowNodeInstance() {\n\t}", "public Node() {\n\t}", "public Graph(String start, String end) {\n findCoordinates(findTime(start, end));\n constructGraph();\n }", "public Graph(int numVertices) {\n adjLists = new LinkedList[numVertices];\n startVertex = 0;\n for (int k = 0; k < numVertices; k++) {\n adjLists[k] = new LinkedList<Edge>();\n }\n vertexCount = numVertices;\n }", "private void initializeFromGraph(Graph<HyperNode, DefaultEdge> graph) {\n Map<HyperNode, Node> nodesMap = addNodes(graph);\n addEdges(graph, nodesMap);\n }", "public UniGraph(UniGraph<N, E> g)\r\n/* 20: */ {\r\n/* 21: 39 */ this.map = new HashMap(g.map);\r\n/* 22: 40 */ assert (checkRep());\r\n/* 23: */ }", "public void init(weighted_graph g);", "public Node(){\n }", "public Graph(int n) {\n this.n = n;\n edge = new List[n];\n for (int i = 0; i < n; i++)\n edge[i] = new List(0, 0, 0); // dummy node\n }", "public Node(){}", "public void initialize() {\n\n\t\tthis.subNetGenes = getSubNetGenes(species, xmlFile);\n\t\tthis.subNetwork = getSubNetwork(subNetGenes, oriGraphFile);\n\t\tHPNUlilities.dumpLocalGraph(subNetwork, subNetFile);\n\t\t/* Create level file for the original graph */\n\t\tHPNUlilities.createLevelFile(codePath, oriGraphFile, oriLevel,\n\t\t\t\tglobalLevelFile, penaltyType, partitionSize);\n\n\t}", "public Node(){\n\n\t\t}", "public DijkstraAlg(){\n \n }" ]
[ "0.8964114", "0.85065985", "0.8181761", "0.81676596", "0.8120438", "0.81054187", "0.79376686", "0.79150784", "0.77717483", "0.77358496", "0.76750386", "0.7648295", "0.7617152", "0.76164573", "0.757493", "0.75721735", "0.75721735", "0.75604093", "0.75213397", "0.7488886", "0.7467342", "0.74460065", "0.7388274", "0.7341686", "0.7277979", "0.7263371", "0.7259316", "0.72585994", "0.71617883", "0.71279407", "0.71101755", "0.7107783", "0.7051954", "0.7042635", "0.70409316", "0.6971349", "0.6970216", "0.6967257", "0.6952978", "0.6950775", "0.6944947", "0.693215", "0.69102854", "0.6896529", "0.6884143", "0.6861786", "0.6856887", "0.6856407", "0.6785754", "0.6768976", "0.6767979", "0.6749408", "0.67312217", "0.6703181", "0.6670535", "0.6655459", "0.6638151", "0.66300434", "0.66138935", "0.66033095", "0.6587938", "0.657243", "0.65403134", "0.6537745", "0.6537482", "0.6534754", "0.6513086", "0.6499634", "0.64873904", "0.6443483", "0.64238524", "0.6419509", "0.6405641", "0.63975275", "0.6391244", "0.63833475", "0.63765305", "0.6374012", "0.6365803", "0.6357637", "0.63557416", "0.6348612", "0.6339501", "0.6339501", "0.63370436", "0.63309145", "0.6328763", "0.63270414", "0.6320081", "0.6316541", "0.6314704", "0.6309054", "0.63088787", "0.6299648", "0.6297423", "0.6280825", "0.62807107", "0.62791526", "0.62768483", "0.6273225", "0.62673396" ]
0.0
-1
Adds a friendship to the graph.
public void addFriendShip(String firstPerson, String secondPerson) { Integer fromIndex = this.vertexNames.get(firstPerson); if (fromIndex == null) { fromIndex = this.indexCounter; this.indexCounter++; this.vertexNames.put(firstPerson, fromIndex); } Integer toIndex = this.vertexNames.get(secondPerson); if (toIndex == null) { toIndex = this.indexCounter; this.indexCounter++; this.vertexNames.put(secondPerson, toIndex); } super.addEdge(fromIndex, toIndex, 1.0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void add() {\n\t\tperson.addRelationship(\"Friend\", friend);\n\t}", "public void addFriend(String friend){\n friends.add(friend);\n }", "public void addFriendship(int u1, int u2) {\n\t\tUser usr=users.get(u1);\n\t\tUser friend=users.get(u2);\n\t\tif(usr!=null &&friend!=null) {\n\t\t\tusr.addFriend(friend);\n\t\t}else {\n\t\t\tSystem.err.printf(\"user(%d) or friend(%d) doesn't exist\\n\",u1,u2);\n\t\t}\n\t}", "public void addFriendship(String username1, String username2)\n\t\t\tthrows ElementAlreadyExistsException,\n\t\t\tDatabaseUnkownFailureException, InvalidParameterException,\n\t\t\tReflexiveFriendshipException;", "public void addFriend(Profile p)\n {\n\n friendslist.add(p);\n }", "public void addFriend(String friendName) {\n\t if(friends.contains(friendName)) {\n\t\t return;\n\t }\n\t friends.add(friendName);\n }", "@Deprecated\n public void addFriend(Friend fr);", "public void addFriend(String friend)\n\t{\n\t\tif(m_friends.size() < 10)\n\t\t{\n\t\t\tm_friends.add(friend);\n\t\t\tm_database.query(\"INSERT INTO `pn_friends` VALUES ((SELECT id FROM `pn_members` WHERE username = '\" + MySqlManager.parseSQL(m_username)\n\t\t\t\t\t+ \"'), (SELECT id FROM `pn_members` WHERE username = '\" + MySqlManager.parseSQL(friend) + \"')) ON DUPLICATE KEY UPDATE friendId = (SELECT id FROM `pn_members` WHERE username = '\"\n\t\t\t\t\t+ MySqlManager.parseSQL(friend) + \"');\");\n\t\t\tServerMessage addFriend = new ServerMessage(ClientPacket.FRIEND_ADDED);\n\t\t\taddFriend.addString(friend);\n\t\t\tgetSession().Send(addFriend);\n\t\t}\n\t}", "public void addFriendToList(String friend)\r\n\t{\r\n\t\ttheGridView.addFriendToList(friend);\r\n\t}", "public void addFriendUI() throws IOException\n {\n System.out.println(\"Add friendship: id user1;id user2\");\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n Long id1 = Long.parseLong(a[0]);\n Long id2 = Long.parseLong(a[1]);\n Friendship friendship = new Friendship();\n friendship.setId(new Tuple<>(id1, id2));\n try\n {\n Friendship newFriendship = service.addFriendship(friendship);\n if(newFriendship != null)\n System.out.println(\"Friendship already exists for \" + friendship.getId().toString());\n else\n System.out.println(\"Friendship added successfully!\");\n }\n catch (ValidationException ex)\n {\n System.out.println(ex.getMessage());\n }\n catch (IllegalArgumentException ex)\n {\n System.out.println(ex.getMessage());\n }\n }", "void addFriendWithPhoneNumber(Friend friend, String phoneNumber);", "public synchronized void addFriendRequest(FriendRequest req) {\n \t\t((List<FriendRequest>) getVariable(\"friendRequest\")).add(req);\n \t}", "public void addFriendList(FriendList list);", "private void addFriend() {\n \tif (!friend.getText().equals(\"\")) {\n\t\t\tif (currentProfile != null) {\n\t\t\t\tif (!database.containsProfile(friend.getText())) {\n\t\t\t\t\tcanvas.showMessage(friend.getText() + \" profile does not exists\");\n\t\t\t\t} else if (isfriendsBefore()) {\n\t\t\t\t\tcanvas.showMessage(friend.getText() + \" is already a friend\");\n\t\t\t\t} else {\n\t\t\t\t\tmakeTheTwoFriends();\n\t\t\t\t\tcanvas.displayProfile(currentProfile);\n\t\t\t\t\tcanvas.showMessage(friend.getText() + \" added as friend\");\n\t\t\t\t}\n\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcanvas.showMessage(\"Select a profile to add friends\");\n\t\t\t}\n\t\t}\n\t}", "public boolean addFriend(String requester, String recipientNick) {\n if (requester == null\n || recipientNick == null\n || requester.equals(recipientNick)\n ) {\n return false;\n }\n User requesterUser = this.onlineUsers.get(requester);\n if (requesterUser == null\n || !this.exists(recipientNick)\n || requesterUser.hasFriend(recipientNick)\n ) {\n return false;\n }\n requesterUser.addFriend(recipientNick);\n User recipientUser = this.loadUserOnlineInfo(recipientNick);\n recipientUser.addFriend(requester);\n List<User> updates = new ArrayList<>(2);\n // This section implements the storage updates policy\n if (this.policy == Policy.IMMEDIATELY) {\n updates.add(recipientUser);\n updates.add(requesterUser);\n } else if (Policy.ON_SESSION_CLOSE.equals(this.policy)\n && !this.isOnline(recipientNick)\n ) {\n updates.add(recipientUser);\n }\n // In general do not add anything to the collection\n if (!updates.isEmpty()) {\n this.writeLock.lock();\n try {\n JSONMapper.copyAndUpdate(\n this.onlinePath,\n updates,\n UserViews.Online.class\n );\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n } finally {\n this.writeLock.unlock();\n }\n }\n return true;\n }", "public void addFriend(Customer c) {\n if (c == null) {\n throw new IllegalArgumentException(\"Customer can not be null\");\n }\n if (!friends.contains(c)) {\n friends.add(c);\n }\n }", "public void addFriend(String name, String friendsSchedule) {\n\n // loads the friend's schedule from the passed in friendsSchedule xml\n // stream\n // writes to the model\n Schedule temp = readWrite.loadSchedules(friendsSchedule, this);\n Log.i(TAG, \"temp is: \" + temp);\n buddies.add(temp);\n\n Log.i(TAG, \"buddies.size() - 1 is: \" + (buddies.size() - 1));\n Log.i(TAG, \"buddies.size() - 1 is: \" + buddies.get(buddies.size() - 1));\n // gets the just added friend's schedule and changes its name to\n // the passed in value\n // necessary because all schedules are sent as \"MySchedule\"\n buddies.get(buddies.size() - 1).setWhosSchedule(name);\n\n\n // update observers\n setChanged();\n notifyObservers();\n }", "public static void addFriendToList(String username, String friend)\r\n\t{\r\n\t\tFriendsList friends = friendsLists.get(username);\r\n\t\tif(friends == null)\r\n\t\t{\r\n\t\t\t// make sure we don't have a null friends list\r\n\t\t\tfriends = new FriendsList();\r\n\t\t}\r\n\t\t\r\n\t\t// add the friend to the list\r\n\t\tfriends.add(friend);\r\n\t\t\r\n\t\t// put the friends list back into the HashMap\r\n\t\taddFriendsList(username, friends);\r\n\t}", "public void acceptFriendRequest(Friend friend);", "public void addFriend(String friendName, String user, boolean online){\n try {\n statement = connection.createStatement();\n //add the friend in the database table of the user\n if (online){\n statement.executeUpdate(\"INSERT INTO \" + user + \"(friend,online) VALUES('\" + friendName +\n \"','online')\");\n }\n else {\n statement.executeUpdate(\"INSERT INTO \" + user + \"(friend,online) VALUES('\" + friendName +\n \"','offline')\");\n }\n\n statement.close();\n }catch (SQLException ex){ex.printStackTrace();}\n }", "public int Add_Friend(String username,Object friend) {\n\t\tif(friend!=null && friend instanceof valueobject.Friend){\r\n\t\t\tDAO.all_interface friendDao = DB.ObjectFactory.getFriendDao();\r\n\t\t\tUser one = DB.ObjectFactory.getUserObject();\r\n\t\t\tone.setName(username);\r\n\t\t\tint userid = this.GetKey(one);\r\n\t\t\tFriend frd = (Friend)friend;\r\n\t\t\tfrd.setUserid(userid);\r\n\t\t\tint i = friendDao.Add((Object)frd);\r\n\t\t\tif(i==friendDao.OPERATE_SUCCESS){\r\n\t\t\t\treturn this.OPERATE_OK;\r\n\t\t\t}else if(i==friendDao.OPERATE_ERROR){\r\n\t\t\t\treturn this.OPERATE_ERROR;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.OTHER_ERROR;\r\n\t}", "public void addFriend(String userId, String friendUserId, String sourceGameId, Date date){\n\n BasicDBObject obj = new BasicDBObject();\n obj.put(DBConstants.F_FRIENDID, new ObjectId(friendUserId));\n obj.put(DBConstants.F_CREATE_DATE, date);\n obj.put(DBConstants.F_TYPE, relationType);\n obj.put(DBConstants.F_MEMO, null);\n obj.put(DBConstants.F_SOURCE, sourceGameId);\n\n insertObject(userId, obj, DBConstants.F_CREATE_DATE, false, false);\n }", "public void addShip(Ship ship){\n\n ship.setGamePlayers(this);\n myships.add(ship);\n }", "private void appendFriendToExistingFriendsTree(DatabaseReference friendsReference) {\n int number = 818181;\n String name = \"Vicky Victoria\";\n String key = friendsReference.push().getKey();\n Friend friend = new Friend(number, name);\n friendsReference.child(key).setValue(friend);\n }", "void addNewFriend(String actorId, String objectId, Date eventTime);", "@Override\n\tpublic Boolean addfriend(Profile profile, Boolean isRelative) throws Exception {\n\t\tif (isRelative) {\n\t\t\t_friendlist.add(profile);\n\t\t\treturn true;\n\t\t}\n\n\t\t/// to maintain the age difference condition\n\t\tint agediff = Math.abs(this.getage() - profile.getage());\n\t\tif (profile.getage() < 16 && agediff < 3) {\n\t\t\t_friendlist.add(profile);\n\t\t} else {\n\t\t\tthrow new NotToBeFriendsException(\n\t\t\t\t\t\"You are not allowed to add a friend more than 3 years older than yourself\");\n\t\t}\n\t\treturn true;\n\t}", "public void addFriend() {\n\n /* if (ageOK == true) {\n for (int i = 0; i < listRelationships.size(); i++) {\n if (firstFriend.equalsIgnoreCase(list.get(i).getFirstFriend())) {\n listRelationships.get(i).setFriends(secondFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n\n } else if (secondFriend.equalsIgnoreCase(list.get(i).getSecondFriend())) {\n listRelationships.get(i).setFriends(firstFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n }\n }\n } */\n }", "@RequestMapping(method = RequestMethod.POST, value = \"/friendship/{userId}/{friendId}\")\n public ResponseEntity<Friendship> newFriendship(\n @PathVariable(value = \"userId\") Long userId,\n @PathVariable(value = \"friendId\") Long friendId) {\n\n // TODO re-implement to be able to retrieve Long ID values from POST body\n\n // handle bad, malformed, and absent fields in input\n if (!isValidIdValue(userId) || !isValidIdValue(friendId)) {\n return new ResponseEntity(null, null, HttpStatus.NOT_ACCEPTABLE);\n }\n\n // TODO check that friendship does not exist already before adding a new one\n boolean isFriend = friendshipService.isFriend(userId, friendId);\n\n Friendship newFriendship = new Friendship(userId, friendId);\n Friendship createdFriend = friendshipService.newFriendship(newFriendship);\n return new ResponseEntity(createdFriend, null, HttpStatus.CREATED);\n\n }", "public Future<Person> createRelationship( String personId, String friendId );", "public static ExecutionResult lookupFriendship(Universe universe, Node person, Node friend) {\n ExecutionEngine engine = new ExecutionEngine(universe.getGraphDb());\n String query = \"START p=node(\" + person.getId() + \"), s=node(\" + friend.getId() + \") MATCH (p)-[r:\" + RelationshipTypes.FRIENDS_WITH + \"]->s RETURN s.name\";\n return engine.execute(query);\n }", "public void addNeighbour(final Vertex neighbour){\n\t\tneighbours.add(neighbour);\n\t}", "public void friends( int user1, int user2 ) {\n\n\t//Get each user from list of all users\n FacebookUser A = users.get(user1);\n FacebookUser B = users.get(user2);\n\n //Every time a new friendship is added, circles change\n this.circlesUpToDate = false;\n\n //Add userA to userB's friends list and vice versa\n A.friendsList.add(B);\n B.friendsList.add(A);\n }", "public interface FriendshipGraph extends MyGraph\n{\n /** Distance value for source and target vertex pairs that are disconnected. */\n public static final int disconnectedDist = -1;\n \n \n /**\n * Returns the set of neighbours for a vertex. If vertex doesn't exist, then a warning to System.err should be issued.\n *\n * @param vertLabel Vertex to find the neighbourhood for.\n *\n * @returns The set of neighbours of vertex 'vertLabel'.\n */\n public abstract ArrayList<String> neighbours(String vertLabel);\n\t\n\t\n\t/**\n\t * Computes the shortest path distance between two vertices. If one or both of the vertices doesn't exist, then a warning to System.err should be issued.\n\t *\n\t * Note for undirected graph, which vertex is the origin and which is the destination doesn't matter, i.e., distance(A,B) = distance (B,A).\n\t *\n\t * @param vertLabel1 Origin vertex to compute shortest path distance from. \n\t * @param vertLabel2 Destination vertex to compute shortest path distance to.\n\t *\n\t * @returns Shortest path distance. If there is no path between the vertices, then the value of FriendshipGraph.disconnectedDist should be returned.\n\t */\n\tpublic abstract int shortestPathDistance(String vertLabel1, String vertLabel2);\n\t\n}", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "public boolean addFriend(Neighbor requestedTo){\n boolean isAdded=false;\n try{\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"Username\", requestedTo.getInstanceName());\n values.put(\"deviceID\", requestedTo.getDeviceAddress());\n values.put(\"IP\", requestedTo.getIpAddress().getHostAddress());\n Log.i(TAG,\"Adding.. \"+requestedTo.getDeviceAddress());\n isAdded=database.insert(\"Friend\", null, values)>0;\n dbH.close();\n\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return isAdded;\n }", "public void setFriendRelationship(boolean friendRelationship) {\n this.friendRelationship = friendRelationship;\n }", "public Builder addFriend(protocol.Data.Friend.FriendItem value) {\n if (friendBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendIsMutable();\n friend_.add(value);\n onChanged();\n } else {\n friendBuilder_.addMessage(value);\n }\n return this;\n }", "public static void addFriendsList(String username, FriendsList friends)\r\n\t{\r\n\t\tfriendsLists.put(username, friends);\r\n\t}", "public RelationshipView add(@Nonnull Relationship relationship) {\n return addRelationship(relationship);\n }", "public Builder addFriendList(com.vine.vinemars.net.pb.SocialMessage.FriendObj value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n\n return this;\n }", "public Report insertFriend(MyFriend friend) {\n\t\treturn insertFriend(friend, TABLE_FRIEND);\n\t}", "public void addNeighbor(Node node){\n neighbors.add(node);\n liveNeighbors.add(node);\n }", "public void addFollower(Follower follower) {\n follower_list.add(follower);\n }", "public void addNeighbor(MyNode myNode){\r\n if (!neighbors.contains(myNode)) {\r\n neighbors.add(myNode);\r\n }\r\n }", "@Test\r\n\tpublic void testAddFriend() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tFriend p2 = new Friend(\"Dave\");\r\n\t\tassertTrue(p1.addFriend(p2));\r\n\t\tassertFalse(p1.addFriend(p2));\r\n\t}", "public void connectShipToBoard(Ship ship){\n ships.add(ship);\n }", "public void addNeighbor(final Cell neighbor) {\n if (neighbor != null) {\n this.neighbors.add(neighbor);\n }\n }", "protected void addMember() {\n\t\tString mPhoneNumber = phoneEditView.getText().toString();\n\t\t\n\t\tApiProxy apiProxy = new ApiProxy(this);\n\t\tapiProxy.addMember(mPhoneNumber);\n\t\t\n\t\tgoToFriendListPage();\n\t}", "void addVertex(Vertex v, ArrayList<Vertex> neighbors, ArrayList<Double> weights) throws VertexNotInGraphException;", "void acceptRequest(Friend pendingRequest);", "private boolean friendAlreadyAdded(User user, Object requestedUser) {\n List<UserContact> friendList = null;\n User friendToBe = null;\n try {\n DAO dao = new Query();\n friendList = user.getFriends(dao);\n dao.open();\n if (requestedUser instanceof String) {\n friendToBe = (User) dao.get(User.class, (String) requestedUser);\n } else if (requestedUser instanceof Request) {\n Request request = (Request) requestedUser;\n friendToBe = (User) dao.get(User.class, request.getFromId());\n }\n dao.close();\n } catch (Exception e) {\n //e.printStackTrace();\n }\n if (friendList != null && friendToBe != null) {\n if (friendList.contains(friendToBe.asContact())) {\n return true;\n }\n }\n return false;\n }", "@Override\n public void onListFragmentInteraction(FriendContent item) {\n addFriend(item);\n //TODO: On pop up interaction, add user to friends list\n }", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "private AddFriend(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "public Builder setAddFriendAToServer(AddFriend.AToServer value) {\n copyOnWrite();\n instance.setAddFriendAToServer(value);\n return this;\n }", "public Builder addFriend(\n int index, protocol.Data.Friend.FriendItem value) {\n if (friendBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendIsMutable();\n friend_.add(index, value);\n onChanged();\n } else {\n friendBuilder_.addMessage(index, value);\n }\n return this;\n }", "public boolean isAlreadyAdd(Friend friend){\n List<Friend> friendList = Resources.owner.getFriendList();\n boolean isYou = Resources.owner.getUsername().equals(friend.getUsername());\n return friendList.contains(friend) || isYou;\n }", "public void addAdj(BoardCell adj) {\n\t\tadjList.add(adj);\t\t\t\t\t\t\t\t\t\t\t\t\t\t// adding the cell to the adjacency set\n\t}", "public void addPlayerShip()\n\t{\n\t\t//if a PlayerShip is already spawned, a new one will not be added\n\t\tif(shipSpawned)\n\t\t{\n\t\t\t\tSystem.out.println(\"A player ship is already spawned\");\n\t\t\t\treturn;\n\t\t}\n\t\tgameObj.add(new PlayerShip(getHeight(), getWidth()));\n\t\tSystem.out.println(\"Player ship added\");\n\t\tshipSpawned = true;\n\t\tnotifyObservers();\n\t}", "public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}", "public <T> void addFamily(Family f) {\n\t\tassert f != null;\n\t\tMap<String, Object> parameters = new HashMap<>();\n\t\tparameters.put(\"name\", f.getName());\n\t\tsession.query(GraphQueries.ADD_FAMILY, parameters);\n\t}", "public Builder addFriendList(\n int index, com.vine.vinemars.net.pb.SocialMessage.FriendObj value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(index, value);\n\n return this;\n }", "void addEdge(int x,int y) {\n adj[x].add(y);\n }", "private void addFriendList(\n int index, People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(index, value);\n }", "public boolean placeShipUser(Ship ship) {\r\n return fieldUser.addShip(ship);\r\n }", "public void connect(int first, int second) {\n\t\tvertex.get(first).add(second);\n\t}", "void addEdge(int source, int destination, int weight);", "void addNeighbour(Territory neighbour) {\n\t\tneighbours.add(neighbour);\n\t}", "public Friend createFriend();", "public boolean addShip(Ships ship) {\n\t\tfor (int i = 0; i < this.aliveShips.length; i++) {\r\n\t\t\tif (this.aliveShips[i] == null) {\r\n\t\t\t\tthis.aliveShips[i] = ship;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public AddPermissionResult addPermission(AddPermissionRequest request) {\n request = beforeClientExecution(request);\n return executeAddPermission(request);\n }", "public void addToFollowedUsers(String followedUsers);", "protected void increaseFriendshipScore(long userId, long friendId) {\n\t\tUser owner = dao.get(KeyFactory.createKey(\"User\", userId), User.class);\n\n\t\towner.increaseFriendshipScore(friendId);\n\n\t\tdao.save(owner);\n\n\t}", "public void addFriendRequest(String from)\r\n\t{\r\n\t\t// TODO: Play a sound\r\n\t\tmessagesAnimationLabel.setVisible(true);\r\n\t\trepaint();\r\n\t\t\r\n\t\ttheGridView.addFriendRequest(from);\r\n\t}", "public void addEdge(Entity entityFirst, Entity entitySecond) {\n\t\tIterator<Entity> iteratorObj1 = Processing.nodeSet.iterator();\t//Iterating list of questions\n\t\twhile (iteratorObj1.hasNext()) {\n\t\t\tif(iteratorObj1.next().getEmail().equals(entitySecond.getEmail())){\n\t\t\t\tif(Processing.friendMap.containsKey(entityFirst.getEmail())) {\n\t\t\t\t\tif(!Processing.friendMap.get(entityFirst.getEmail()).contains(entitySecond.getEmail())) {\n\t\t\t\t\t\tProcessing.friendMap.get(entityFirst.getEmail()).add(entitySecond.getEmail());\n\t\t\t\t\t\tSystem.out.println(entitySecond.getEmail()+\" is now friend of you\");\n\t\t\t\t\t}else if(Processing.friendMap.get(entityFirst.getEmail()).contains(entitySecond.getEmail())){\n\t\t\t\t\t\tSystem.out.println(entitySecond.getEmail()+\" is already friend of you\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(entitySecond.getEmail()+\" does not exist\");\n\t\t\t\t\t}\n\t\t\t\t} else{\n\t\t\t\t\tIterator<Entity> iteratorObj2 = Processing.nodeSet.iterator();\t//Iterating list of questions\n\t\t\t\t\twhile (iteratorObj2.hasNext()) {\n\t\t\t\t\t\tif(iteratorObj2.next().getEmail().equals(entityFirst.getEmail())){\n\t\t\t\t\t\t\tSet<String> set=new HashSet<String>();\n\t\t\t\t\t\t\tset.add(entitySecond.getEmail());\n\t\t\t\t\t\t\tProcessing.friendMap.put(entityFirst.getEmail(),set);\n\t\t\t\t\t\t\tSystem.out.println(entitySecond.getEmail()+\" is now friend of you\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void addRelationship(String node1, String node2, String relation)\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MATCH (j:Node {value: {x}})\\n\" +\n \"MATCH (k:Node {value: {y}})\\n\" +\n \"MERGE (j)-[r:\" + relation + \"]->(k)\", parameters(\"x\", node1, \"y\", node2));\n tx.success(); // Mark this write as successful.\n }\n }\n }", "@Override\n\tpublic void addGoal(Goal g) {\n\t\t\n\t}", "public void addNewFriend(View v) {\n final EditText editText = (EditText) findViewById(R.id.editText);\n String friendUsername = editText.getText().toString();\n //System.out.println(\"Add friend: \" + friendUsername);\n UserProfileManager.getInstance().addFriend(friendUsername);\n }", "public void addPlayerShip()\n\t{\n\t\t//if a PlayerShip is already spawned, a new one will not be added\n\t\tif (gameObj[1].size() == 0)\n\t\t{\n\t\t\tgameObj[1].add(new PlayerShip());\n\t\t\tSystem.out.println(\"PlayerShip added\");\n\t\t}else{\n\t\t\tSystem.out.println(\"A player ship is already spawned\");\n\t\t}\n\t\t\n\t}", "void add(Vertex vertex);", "protected abstract void addBonusToShip(Ship ship);", "void addRelation(IViewRelation relation);", "public void addVertex();", "void addEdge(int x, int y);", "public boolean add(int node) {\n\t\tif (memberHashSet.contains(node))\n\t\t\treturn false;\n\t\t\n\t\t/* Things will change, invalidate the cached values */\n\t\tinvalidateCache();\n\t\t\n\t\t/* First, increase the internal and the boundary weights with the\n\t\t * appropriate amounts */\n\t\ttotalInternalEdgeWeight += inWeights[node];\n\t\ttotalBoundaryEdgeWeight += outWeights[node] - inWeights[node];\n\t\t\n\t\t/* For each edge adjacent to the given node, make some adjustments to inWeights and outWeights */\n\t\tfor (int adjEdge: graph.getAdjacentEdgeIndicesArray(node, Directedness.ALL)) {\n\t\t\tint adjNode = graph.getEdgeEndpoint(adjEdge, node);\n\t\t\tif (adjNode == node)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tdouble weight = graph.getEdgeWeight(adjEdge);\n\t\t\tinWeights[adjNode] += weight;\n\t\t\toutWeights[adjNode] -= weight;\n\t\t}\n\t\t\n\t\t/* Add the node to the nodeset */\n\t\tmemberHashSet.add(node);\n\t\tmembers.add(node);\n\t\t\n\t\treturn true;\n\t}", "private void addFriend(String userId, String ownId) {\n String error = \"Adding friend failed!\";\n Map<String, Object> requested = new HashMap<>();\n requested.put(\"id\", userId);\n requested.put(\"status\", \"requested\");\n\n UserDatabase userDb = new UserDatabase(ownId);\n userDb.getChildCollection(\"friends\").document(userId).set(requested)\n .addOnSuccessListener(success -> {\n requested.clear();\n requested.put(\"id\", ownId);\n requested.put(\"status\", \"pending\");\n\n UserDatabase userDb1 = new UserDatabase(userId);\n userDb1.getChildCollection(\"friends\").document(ownId)\n .set(requested)\n .addOnSuccessListener(success1 -> userDb1.getChildCollection(\"unmessaged\")\n .document(ownId)\n .delete()\n .addOnSuccessListener(success2 -> userDb.getChildCollection(\"unmessaged\")\n .document(userId)\n .delete()\n .addOnSuccessListener(success3 -> {\n Map<String, Object> notification = new HashMap<>();\n notification.put(\"userId\", Login.getUserId());\n notification.put(\"notificationType\", \"New Friend\");\n Date mDate = new Date();\n long timeInMilliseconds = mDate.getTime();\n notification.put(\"createdAt\", timeInMilliseconds);\n\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"users\" + \"/\" + userId + \"/notifications\")\n .add(notification);\n\n buttonCancelRequest(userId, ownId);\n })\n .addOnFailureListener(fail -> handleError(error, fail)))\n .addOnFailureListener(fail -> handleError(error, fail)));\n })\n .addOnFailureListener(fail -> handleError(error, fail));\n }", "public void addFriends(Double x) {\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\tTurtle newTurtle = new Turtle(screen, image);\n\t\t\tnewTurtle.setID(screen.getTurtleFriends().size() + 1);\n\t\t\tscreen.getTurtleFriends().add(newTurtle);\n\t\t}\n\t}", "GameBoardVertex(GameBoardVertex neighbor){this.neighbors.add(neighbor);}", "public boolean isFriendRelationship() {\n return friendRelationship;\n }", "public void addObstacle(Coord obstacleCoord);", "public boolean addNode(GraphNode node){\n if(!graphNodes.contains(node)){\n graphNodes.add(node);\n return true;\n }\n return false;\n }", "public void addFan(int aid, int uid, int weight) {\n\t\tUser usr=users.get(uid);\n\t\tArtist artist=artists.get(aid);\n\t\tif(usr!=null &&artists!=null) {\n\t\t\tusr.addArtist(artist,weight);\n\t\t\tartist.addFan(usr);\n\t\t}else {\n\t\t\tSystem.err.printf(\"user(%d) or friend(%d) doesn't exist\\n\",uid,aid);\n\t\t}\n\t}", "public Builder setAddFriendFromOtherRsp(AddFriendFromOther.Rsp value) {\n copyOnWrite();\n instance.setAddFriendFromOtherRsp(value);\n return this;\n }", "private static void addFriend(Scanner scanner) {\n String firstName = inputStringHelper(scanner, \"first name\");\n String lastName = inputStringHelper(scanner, \"last name\");\n String phone = inputStringHelper(scanner, \"phone number\");\n String address = inputStringHelper(scanner, \"address\");\n\n Friend friend = new Friend(firstName, lastName, phone, address);\n\n friendList.addFirst(friend);\n System.out.println(\"Friend: \" + firstName + \" \" + lastName + \" was added to your friend list.\");\n\n runApplication(scanner);\n }", "public void addMember(Player player) {\n\t\tif (members.isEmpty()) {\n\t\t\tcacheParty(this); // Caches the party if it went from empty to not empty\n\t\t}\n\t\tmembers.add(player.getUniqueId());\n\t}", "public static Task<Void> addUserFriend(String userId, String friendId) {\n // map to contain the friend id\n Map<String, Object> data = new HashMap<>();\n data.put(Const.FRIEND_ID_KEY, friendId);\n\n // add the friend to the friends sub-collection\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_FRIENDS_COLLECTION)\n .document(friendId)\n .set(data);\n }", "void addFlight(Node toNode);", "public void AddItem(View view) {\n /*adds a new friend to the friends tree*/\n appendFriendToExistingFriendsTree(friendsDatabaseReference);\n }", "void addEdge(String origin, String destination, double weight){\n\t\tadjlist.get(origin).addEdge(adjlist.get(destination), weight);\n\t\tedges++;\n\t}", "public void addRelation(int from, int to){\n this.setAdjacencyMatrixEntry(from, to, 1);\n }" ]
[ "0.7180649", "0.6976792", "0.652185", "0.6517498", "0.64496136", "0.6402619", "0.6317091", "0.62916166", "0.6234614", "0.60988814", "0.6074945", "0.6067912", "0.59435976", "0.5936244", "0.5893524", "0.5776257", "0.5755539", "0.5753941", "0.5742265", "0.5726149", "0.5716073", "0.5668083", "0.5661782", "0.5650994", "0.56381845", "0.5636618", "0.5631855", "0.5626414", "0.5525933", "0.5520602", "0.5490298", "0.54892695", "0.54856765", "0.5433016", "0.54256064", "0.5413572", "0.53818864", "0.53783673", "0.5370706", "0.5350826", "0.53457266", "0.53251696", "0.5315479", "0.53135383", "0.53067625", "0.52824724", "0.5281675", "0.527912", "0.52680326", "0.5256236", "0.5255213", "0.5253717", "0.52254665", "0.52000207", "0.519304", "0.5185806", "0.5171295", "0.51578766", "0.51515216", "0.5139869", "0.5113249", "0.5096088", "0.5079677", "0.5076855", "0.5070462", "0.5053135", "0.5051633", "0.50506485", "0.5049711", "0.5049145", "0.5043747", "0.5039015", "0.50358003", "0.5021218", "0.501586", "0.5015427", "0.5011853", "0.5002389", "0.4999312", "0.4999218", "0.49972728", "0.49472144", "0.49401158", "0.49376786", "0.49353832", "0.49275565", "0.4925305", "0.49247876", "0.49193263", "0.49181217", "0.49099824", "0.489889", "0.48938963", "0.48890406", "0.48818973", "0.48809475", "0.48799196", "0.48771638", "0.48701343", "0.4869692" ]
0.69515365
2
From the given index finds the name of the person.
public String getNameFromIndex(int index) { for (Map.Entry<String, Integer> entry : this.vertexNames.entrySet()) { if (entry.getValue().equals(index)) { return entry.getKey(); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String userNameIndex(int index){\n index = index-1;\n String userName1 = \"\";\n userName1 = user[index].getUserName();\n return userName1;\n }", "public NameRecord getName(int index){\n\t\treturn list.get(index);\n\t}", "People getUser(int index);", "public Person getPerson(int index) {\r\n return this.personList.get(index);\r\n }", "public String returnPeople(int index)\n\t{\n\t\treturn(peopleList.get(index).toString());\n\t}", "public String getFullNameOfPerson(int index, String file)\n\t\t\tthrows FileNotFoundException, IOException, ParseException {\n\t\tarrayList = pareseFile(file);\n\n\t\tJSONObject jsonObject = (JSONObject) arrayList.get(index);\n\t\tString fullName = (String) jsonObject.get(\"firstName\") + \" \" + (String) jsonObject.get(\"lastName\");\n\t\t//System.out.println(arrayList.toString());\n\t\treturn fullName;\n\t}", "public People getUser(int index) {\n return instance.getUser(index);\n }", "public int nameIndex();", "com.ljzn.grpc.personinfo.PersoninfoMessage getPersonInfo(int index);", "public String getName() {\n return _index.getName();\n }", "Name findNameByPersonPrimary(int idPerson);", "java.lang.String getParticipants(int index);", "public String getName(int idx) {\n\t\treturn (String) nvPairs.get(idx << 1);\n\t}", "public String getName(int index)\n {\n return getQName(index);\n }", "@Override\n public Object getElementAt(int index) {\n Object resultado = null;\n resultado = nodos.get(index).getCentroTrabajo().getNombre();\n \n return resultado;\n }", "public People getUser(int index) {\n return user_.get(index);\n }", "public int getPersonIndex(String name) {\r\n for (int i = 0; i < this.personList.size(); i++) {\r\n if (this.personList.get(i).getName().equals(name)) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }", "People getFriendList(int index);", "public String itemAt(int index) {\n int counter = 1;\n LinkedList i = this;\n\n while (i.next != null && counter < index) {\n i = i.next;\n counter++;\n }\n return i.name;\n }", "public String getInputName(int index) {\n\t\tswitch(index) {\n\t\t\tcase 0:\n\t\t\t\treturn \"population\";\n\t\t\tdefault: return \"NO SUCH INPUT!\";\n\t\t}\n\t}", "public void setNameIndex(int index);", "public Member getMember(int index) {\n return members.get(index);\n }", "public Student getStudent(int index)\n {\n return students.get(index);\n }", "Species getSpeciesById(int index);", "com.demo.springprotobuff.Demoproto.Student getStudent(int index);", "public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}", "public String getUser(int index) {\n return ranking.get(index).getkey();\n }", "public Person getPerson(String personName)\n {\n Person currentPerson = characters.get(0);\n // get each person object in characters's array list.\n for (Person person : characters){\n if (person.getName().equals(personName)){\n currentPerson = person;\n }\n }\n return currentPerson;\n }", "public String NameofIndex(int index, int game_number)\n\t{\n\t\treturn gametype[game_number].player_queue.get(index);\n\t}", "String get(int index);", "com.ljzn.grpc.personinfo.PersoninfoMessageOrBuilder getPersonInfoOrBuilder(\n int index);", "public String searchByIndex(int index){\n if(hashMap.containsKey(index))\n return hashMap.get(index).toString();\n else\n return \"Cannot Find index given\";\n }", "public List<Product> findByName(String name, int index) {\r\n return em.createQuery(\"SELECT p FROM Product p \"\r\n + \"WHERE p.name IS NOT NULL AND p.name \"\r\n + \"LIKE :name ORDER BY p.price\")\r\n .setParameter(\"name\", \"%\" + name + \"%\")\r\n .setFirstResult(index)\r\n .setMaxResults(3)\r\n .getResultList();\r\n }", "public void getName(ArrayList<String> document) {\r\n name = \"\";\r\n int atIndex = address.indexOf('@');\r\n String username = address.substring(0, atIndex);\r\n for(int i = 0; i < document.size(); i++)\r\n {\r\n String[] words = document.get(i).split(\" \");\r\n for(int j = 0; j < words.length; j++)\r\n {\r\n if(username.contains(words[j].toLowerCase()))\r\n {\r\n name = document.get(i);\r\n break;\r\n }\r\n }\r\n if(!name.equals(\"\"))\r\n {\r\n break;\r\n }\r\n } \r\n }", "public String getParameterName(int index) {\n List<? extends VariableElement> parameters = executable.getParameters();\n String name = parameters.get(index).getSimpleName().toString();\n return name;\n }", "public String searchPerson(String name){\n String string = \"\";\n ArrayList<Person> list = new ArrayList<Person>();\n \n for(Person person: getPersons().values()){\n String _name = person.getName();\n if(_name.contains(name)){\n list.add(person);\n }\n }\n list.sort(Comparator.comparing(Person::getName));\n for (int i = 0; i < list.size(); i++){\n string += list.get(i).toString();\n }\n\n return string;\n }", "private String _getName(int classType, int index) {\n String name;\n\n switch (classType) {\n case CS_C_UNIV:\n name = _getRelativeName(classType, index);\n break;\n case CS_C_DEPT:\n name = _getRelativeName(classType, index) + INDEX_DELIMITER +\n (instances_[CS_C_UNIV].count - 1);\n break;\n //NOTE: Assume departments with the same index share the same pool of courses and researches\n case CS_C_COURSE:\n case CS_C_GRADCOURSE:\n case CS_C_RESEARCH:\n name = _getRelativeName(classType, index) + INDEX_DELIMITER +\n (instances_[CS_C_DEPT].count - 1);\n break;\n default:\n name = _getRelativeName(classType, index) + INDEX_DELIMITER +\n (instances_[CS_C_DEPT].count - 1) + INDEX_DELIMITER +\n (instances_[CS_C_UNIV].count - 1);\n break;\n }\n\n return name;\n }", "public static String bName(int index) {\n\t\treturn ((IdentifierResolver) bIdents.get(index)).getBName();\n\t}", "String clientTypeName(final int index);", "@Override\r\n\tpublic Student getStudent(int index) {\n\t\treturn this.students[index];\r\n\t}", "java.lang.String getMetadata(int index);", "java.lang.String getMetadata(int index);", "@Override\n public Person lookup(final int i) {\n if(i >= size() || i < 0) throw new IndexOutOfBoundsException();\n return mData.get(i);\n }", "public String getParameterName(int index) {\n\treturn (String) _parameters.get(index);\n }", "public List<Product> findByNameCriteria(String name, int index) {\r\n CriteriaBuilder cb = em.getCriteriaBuilder();\r\n CriteriaQuery<Product> cq = cb.createQuery(Product.class);\r\n Root<Product> product = cq.from(Product.class);\r\n ParameterExpression<String> p = cb.parameter(String.class);\r\n\r\n cq.select(product)\r\n .where(\r\n cb.like(product.get(\"name\"), p),\r\n cb.isNull(product.get(\"name\")),\r\n cb.isNull(product.get(\"id\"))\r\n )\r\n .orderBy(cb.asc(product.get(\"price\")));\r\n\r\n TypedQuery<Product> q = em.createQuery(cq);\r\n q.setParameter(p, \"%\" + name + \"%\");\r\n q.setFirstResult(index);\r\n q.setMaxResults(3);\r\n return q.getResultList();\r\n }", "java.lang.String getAuthorities(int index);", "public com.demo.springprotobuff.Demoproto.Student getStudent(int index) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\treturn student_.get(index);\n\t\t\t\t} else {\n\t\t\t\t\treturn studentBuilder_.getMessage(index);\n\t\t\t\t}\n\t\t\t}", "public int getNameIndex(String arg0) {\n\t\treturn 0;\n\t}", "private PersonNameAuthority getPersonNameAuthority(Document document)\r\n\t{\r\n\t\tPersonNameAuthority personNameAuthority = null;\r\n\r\n\t\tLong nameAuthorityId = new Long(document.get(DefaultNameAuthorityIndexService.PERSON_NAME_AUTHORITY_ID));\r\n\t\t\r\n\t\tpersonNameAuthority = personService.getAuthority(nameAuthorityId, false);\r\n\t\t\r\n\t\treturn personNameAuthority;\r\n\t}", "public static String getColNameFromIndex(int index, ArrayList<ArrayList<String>> datas) {\n\r\n String columnHeaderName = datas.get(0).get(index);\r\n return columnHeaderName;\r\n }", "public abstract SmartObject findIndividualName(String individualName);", "public com.demo.springprotobuff.Demoproto.Student getStudent(int index) {\n\t\t\treturn student_.get(index);\n\t\t}", "Page<Contact> searchContactsByName(String name, int index, int size);", "public String getSectionName( final int index )\n\t{\n\t\treturn null;\n\t}", "Person findPerson(String name);", "public String get(int index){\n\t\treturn list.get(index);\n\t}", "public Person get(int index) {\r\n\t\t// if the queue size is 0 then return null\r\n\t\tif(q.size() == 0)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn q.get(index);\r\n\t}", "@SuppressWarnings({\"unchecked\"})\n List<Name> findNameByIdPerson(int idPerson);", "public java.lang.String getParticipants(int index) {\n return participants_.get(index);\n }", "public Person getPerson(String personName) {\n \tqueryExecutor.select(personName);\n return personMap.get(personName);\n }", "public static String getTitleFromAnObjectInTheList(By byObj, int index)\t{\n\t\tString text = \"\";\n\t\ttry\t{\n\t\t\ttext = driver.findElements(byObj).get(index).getAttribute(\"title\");\n\t\t}\n\t\tcatch (Exception e)\t{\n\t\t\ttext = \"\";\n\t\t}\n\t\treturn text;\n\t}", "public int getNameIndex() {\n\t\treturn nameIndex;\n\t}", "public void getPlayerName(long account_id, final int index, final PlayerNameCallback callback){\n String url = STEAM_USER_API_BASE_URL + USER_PROFILE + \"?\" + STEAM_API_KEY_PARAMETER +\n mContext.getResources().getString(R.string.steam_api_key) +\n \"&\" + STEAM_IDS_PARAMETER + convert32IdTo64(account_id);\n JsonObjectRequest getRequest = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>()\n {\n @Override\n public void onResponse(JSONObject response) {\n // display response\n Log.d(\"Response\", response.toString());\n Gson gson = new Gson();\n PlayerSummaryResult.PlayerSummaryResultContainer container = gson.fromJson(\n response.toString(), PlayerSummaryResult.PlayerSummaryResultContainer.class);\n List<SteamPlayer> players = container.getResponse().getPlayers();\n if(players.size() > 0) {\n callback.onPlayerNameResponse(players.get(0).getPersonaname(), index);\n }\n else{\n callback.onPlayerNameResponse(\"Unknown\", index);\n }\n\n }\n },\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \" getMatchDetail Error.Response\");\n error.printStackTrace();\n }\n }\n );\n mRequestQueue.add(getRequest);\n }", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public People getFriendList(int index) {\n return instance.getFriendList(index);\n }", "private int getIndexForName(String teammateName) {\r\n\t\tfor (int x = 0; x < targetTracking.size(); x++) {\r\n\t\t\tif (targetTracking.get(x).getAlly().getName().equals(teammateName)) {\r\n\t\t\t\treturn x;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "JsonObject getIndex(final String index);", "public String getName(){\n return personName;\n }", "public String getFieldName(int nFieldIndex) {\n\treturn null;\n}", "public String getString(int index);", "public String returnPerson(String person)\n\t{\n\t\tfor(int i = 0; i < peopleList.size(); i++)\n\t\t{\n\t\t\t// getSurname is a method defined in the Person class and return a persons last name\n\t\t\t// Compares the last name you typed in with the last name of each person in the peopleList list\n\t\t\t// if the last names are equal then return the person with the appropriate toString method\n\t\t\tif(person.equalsIgnoreCase(peopleList.get(i).getSurname())) \n\t\t\t{\n\t\t\t\treturn(peopleList.get(i).toString());\n\t\t\t}\n\t\t}\n\t\t// If the person looked for is not in the \"peopleList\" list; return the string \"notFound\" that is defined above\n\t\treturn notFound;\n\t}", "public java.lang.String getParticipants(int index) {\n return participants_.get(index);\n }", "public String getPersonName(int id) throws SQLException {\n\t\tquery = \"SELECT name FROM person WHERE id=\" + id;\n\t\treturn stmt.executeQuery(query).getString(\"name\");\n\t}", "static int searchByFirstName(String firstName) {\n for (Contact c : contact)\n if (c.getFirstName().contains(firstName)) //if the firstName is the same then print out the index!\n return contact.indexOf(c);\n\n return -1; //if it did not find the index then you return -1\n }", "public String getColumnName(int index) {\n\t\treturn columnNames[index];\n\t}", "public Individual getIndividualByName(String name) throws ObjectNotFoundException{\n \t\n\t\tList<Individual> individualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter = 0;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\n\t\t\tif (individual.getName().equals(name)) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (size == individualList.size() && counter == 0)\n\t\t\tthrow new ObjectNotFoundException(\"individual\", \"name\", name);\n\n\t\treturn individual;\n\n\n }", "String getSkill( String key, Integer index ) {\n return developer.skills.get( index );\n }", "java.lang.String getSurname();", "public Name getNameAt(int arg0) {\n\t\treturn null;\n\t}", "private static String findNode(int index){\n return indexTable.get(index);\n }", "public void findPersonById(int i) {\n\t\t\n\t}", "public void patientadder (String index, String email){\n String test2 = email;\n for(int i = 0; i < doctorsList.size(); i++){\n String test = doctorsList.get(i).getEmail();\n if(test.equals(test2)){\n patients.add(index);\n }\n }\n }", "String getEntityName();", "long getParticipants(int index);", "static public Person searchPerson(String name) {\n return personMap.get(name);\n }", "static int searchFirstname(String firstName) {\n for (Person p : people) {\n if (p.getFirstName().contains(firstName))\n return people.indexOf(p);//returns the index of people in the list.\n\n }\n return -1;\n }", "String getName( String name );", "Resolvable<String> getKey(int index);", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.7261797", "0.70663136", "0.6959868", "0.6829712", "0.6755247", "0.6550049", "0.6377572", "0.6339841", "0.63322324", "0.6279457", "0.6275357", "0.62494534", "0.61170876", "0.60990536", "0.60457873", "0.59577286", "0.5921107", "0.5896075", "0.5862625", "0.5861854", "0.5859392", "0.5859374", "0.5842978", "0.5800467", "0.57995164", "0.5794112", "0.57864994", "0.5784216", "0.5744619", "0.57247883", "0.57228786", "0.5721444", "0.5700807", "0.56844246", "0.56493914", "0.5643667", "0.5641964", "0.5626431", "0.56045806", "0.5570901", "0.5562922", "0.5562922", "0.5551037", "0.5540655", "0.55379814", "0.5537563", "0.55295175", "0.5524758", "0.5522502", "0.5521074", "0.55171025", "0.5509754", "0.55007964", "0.5496684", "0.5493249", "0.5486194", "0.54843616", "0.5454733", "0.5442013", "0.5433173", "0.5431237", "0.5422681", "0.5419893", "0.5418446", "0.5418446", "0.5415929", "0.5409547", "0.5404288", "0.5399128", "0.5392501", "0.53912514", "0.5374808", "0.53680557", "0.53662694", "0.53651345", "0.53502536", "0.53436035", "0.5339862", "0.53352815", "0.5330261", "0.53299356", "0.5329142", "0.53273493", "0.5320168", "0.531958", "0.5304633", "0.5293041", "0.52915686", "0.528867", "0.5288162", "0.5288162", "0.5288162", "0.5288162", "0.5288162", "0.5288162", "0.5288162", "0.5288162", "0.5288162", "0.5288162", "0.5288162" ]
0.62100464
12
private int [][] pattern_index_trips; Default constructor for serialization only. Do not use.
public Achterbahn() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pattern(Collection<Delta> pattern)\n {\n assert(! pattern.isEmpty());\n\n _pattern = (Delta[]) pattern.toArray();\n _index = 0;\n }", "public Object[] getPattern(){\n return pattern;\n }", "public int getPatternIndex(){\n\t\treturn this.indexPattern;\n\t}", "public PatternObject(int[][] _pixels) {\n\t\tpixels = _pixels;\n\t\toffset = 0;\n\t}", "public Map(){\n this.matrix = new int[10][10];\n }", "public TilePatternTile(int tileIndex)\n\t{\n\t\tthis.tileIndex = tileIndex;\n\t\ttileConnections = new int[3][3];\n\t\tfor(int yi=0; yi<3; yi++)\n\t\t{\n\t\t\tfor(int xi=0; xi<3; xi++)\n\t\t\t{\n\t\t\t\ttileConnections[xi][yi] = EITHER;\n\t\t\t}\n\t\t}\n\t\ttileConnections[1][1] = OCCUPIED;\n\t}", "private StationPartition(int[] tab) {\n this.links = tab.clone();\n }", "public Generator() {\n identificationNumbers = new int[100][31];\n }", "public boolean[][] getPattern()\n {\n return pattern;\n }", "public int getPatternSetIndex(){\n\t\treturn this.indexPatternSet;\n\t}", "public void setPattern(int pack) {\n boolean alternate = false;\n String[] patternSplitter = patternPacks[pack].split(\",\");\n patternLevel = patternSplitter[0].trim();\n for(int i = 1 ; i <= 32 ; i ++){\n int index = ((i-1)/2);\n if(!alternate){\n patternRow[index] = Integer.parseInt(patternSplitter[i]);\n //System.out.println(\"R: \"+patternRow[index]);\n alternate = true;\n }\n else if(alternate){\n patternCol[index] = Integer.parseInt(patternSplitter[i]);\n //System.out.println(\"C: \"+patternCol[index]);\n alternate = false;\n }\n }\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn pattern.hashCode();\n\t\t// just enough fields for a reasonable distribution\n\t}", "public SudokuTemplate(){\n\t\tsudoku = new int[9][9];\n\t}", "private void setIndexData() {\n // allocate connectivity\n final int tris = 4 * ((zSamples - 2) * (radialSamples) + 2);\n setTriangleIndicesSize (tris);\n\n // generate connectivity\n int index = 0;\n for ( int iZ = 0, iZStart = 0; iZ < (zSamples - 3); iZ++ ) {\n int i0 = iZStart;\n int i1 = i0 + 1;\n iZStart += (radialSamples + 1);\n int i2 = iZStart;\n int i3 = i2 + 1;\n for ( int i = 0; i < radialSamples; i++, index += 6 ) {\n if ( !viewInside ) {\n putTriangleIndex (i0++, i1, i2);\n putTriangleIndex (i1++, i3++, i2++);\n } else // inside view\n {\n putTriangleIndex (i0++, i2, i1);\n putTriangleIndex (i1++, i2++, i3++);\n }\n }\n }\n\n /*\n * // south pole triangles for ( int i = 0; i < radialSamples; i++,\n * index += 3 ) { if ( !viewInside ) { putTriangleIndex (i,\n * getVertexCount () - 2, i + 1); } else // inside view {\n * putTriangleIndex (i, i + 1, getVertexCount () - 2); } }\n *\n * // north pole triangles final int iOffset = (zSamples - 3) *\n * (radialSamples + 1); // (zSamples - 3) * (radialSamples + 1); // +1\n * for ( int i = 0; i < radialSamples; i++, index += 3 ) { if (\n * !viewInside ) { putTriangleIndex (i + iOffset, i + 1 + iOffset,\n * getVertexCount () - 1); } else // inside view { putTriangleIndex (i +\n * iOffset, getVertexCount () - 1, i + 1 + iOffset); } }\n */\n }", "public Maze(byte[] arrayByte){\n start=new Position(toDecimal(0,arrayByte),toDecimal(numOfBits,arrayByte));\n goal=new Position(toDecimal(numOfBits*2,arrayByte),toDecimal(numOfBits*3,arrayByte));\n maze=new int[toDecimal(numOfBits*4,arrayByte)][toDecimal(numOfBits*5,arrayByte)];\n int counter=numOfBits*6;\n for(int i=0;i<maze.length;i++){\n for (int j=0;j<maze[0].length;j++){\n maze[i][j]=arrayByte[counter];\n counter++;\n }\n }\n mazeID=toByteArray().toString().hashCode();\n }", "public A339355() {\n super(1, \"[[0],[35,32,10,1],[2,8,2],[3,0,-2,-1]]\",\"8\", 0);\n }", "public Map(int[] lattice){\n\t\tthis.lattice = lattice;\n\t\tvisited = new boolean[lattice.length];\n\t\t\n\t\t//unique case [end/start]\n\t\tif(lattice[6] != -1)\n\t\t\ta2Nodes.add(6);\n\t\tvisited[6] = true;\n\t\tif(lattice[224] != -1)\n\t\t\ta2Nodes.add(224);\n\t\tvisited[224] = true;\n\t\t\n\t\t\n\t\tfor(int i = 0; i < 6;i++){ //top cases A3NODES\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta3Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\tif(lattice[14] != -1) // unique case due to corner cut[CC]\n\t\t\ta3Nodes.add(14);\n\t\tvisited[14] = true;\n\t\t\n\t\tfor(int i = 225; i < 231;i++){//bottom cases A3NODES\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta3Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\tif(lattice[216] != -1) //index 218, accounts for CC\n\t\t\ta3Nodes.add(216);\n\t\tvisited[216] = true;\n\t\t\n\t\tfor(int i = 29; i < 210; i+=15){ //side cases A4NODES\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta4Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\t\n\t\tfor(int i = 21; i < 202; i+=15){\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta4Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\tif(lattice[7] != -1) //unique side cases due to CC\n\t\t\ta4Nodes.add(7);\n\t\tvisited[7] = true;\n\t\tif(lattice[223] != -1)\n\t\t\ta4Nodes.add(223);\n\t\tvisited[223] = true;\n\t\t\n\t\t\n\t\tfor(int i = 8; i < 14; i++){ //Bottom-top cases A5NODES\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta5Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\t\n\t\tfor(int i = 217; i < 223; i++){\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta5Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < lattice.length; i++){ //All A6Nodes\n\t\t\tif(visited[i])\n\t\t\t\tcontinue;\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta6Nodes.add(i);\n\t\t}\n\t\t\n\t\tcreateNodes();\n\t}", "public Transformation_001(int[] theNodes){\n this.theNodes=theNodes;\n }", "public Tile[] getAdjs(){\r\n return adjTiles;\r\n }", "static Tour sequence() {\r\n\t\tTour tr = new Tour();\r\n\t\tfor (int i = 0; i < tr.length(); i++) {\r\n\t\t\ttr.index[i] = i;\r\n\t\t}\r\n\t\ttr.distance = tr.distance();\r\n\t\treturn tr;\r\n\t}", "private void genPattern(int[] rowKeyLink) {\n ptnKeys = new HashMap<Integer, Integer>();\n pattern = new byte[patternSize];\n ptnLink = new int[patternSize * rowSize * 2];\n final int rowBitsSize = 6;\n final int zeroBitsSize = 4;\n\n /* starts with 4000 // 6 bits each\n 0400\n 0040\n 0003 | 3 (4 bits for zero row index)\n total 4 x 6 bits + 4 bits = 28 bits for combo */\n int initCombo = 0;\n for (int i = 0; i < rowSize - 1; i++) {\n int key = rowSize << ((rowSize - i - 1) * 3);\n initCombo = (initCombo << rowBitsSize) | rowKeys.get(key);\n }\n initCombo = (initCombo << rowBitsSize) | rowKeys.get(rowSize - 1);\n initCombo = (initCombo << zeroBitsSize) | (rowSize - 1);\n int ctPtn = 0;\n byte moves = 0;\n int[] ptnKeys2combo = new int[patternSize];\n\n ptnKeys2combo[ctPtn] = initCombo;\n ptnKeys.put(initCombo, ctPtn);\n pattern[ctPtn++] = moves;\n boolean loop = true;\n int top = 0;\n int top2 = 0;\n int end = 1;\n int end2 = 1;\n\n while (loop) {\n moves++;\n top = top2;\n end = end2;\n top2 = end2;\n loop = false;\n\n for (int i = top; i < end; i++) {\n int currPtn = ptnKeys2combo[i];\n int ptnCombo = currPtn >> zeroBitsSize;\n int zeroRow = currPtn & 0x000F;\n int zeroIdx = getRowKey(ptnCombo, zeroRow);\n int linkBase = i * rowSize * 2;\n\n // space down, tile up\n if (zeroRow < rowSize - 1) {\n int lowerIdx = getRowKey(ptnCombo, zeroRow + 1);\n for (int j = 0; j < rowSize; j++) {\n if (rowKeyLink[lowerIdx * rowSize + j] != -1) {\n int newPtn = 0;\n int pairKeys = (rowKeyLink[zeroIdx * rowSize + j] << rowBitsSize)\n | rowKeyLink[lowerIdx * rowSize + j];\n\n switch (zeroRow) {\n case 0:\n newPtn = (pairKeys << 2 * rowBitsSize)\n | (ptnCombo & partialPattern[0]);\n break;\n case 1:\n newPtn = (ptnCombo & partialPattern[1])\n | (pairKeys << rowBitsSize)\n | (ptnCombo & partialPattern[2]);\n break;\n case 2:\n newPtn = (ptnCombo & partialPattern[3]) | pairKeys;\n break;\n default:\n System.err.println(\"ERROR\");\n }\n\n newPtn = (newPtn << zeroBitsSize) | (zeroRow + 1);\n if (ptnKeys.containsKey(newPtn)) {\n ptnLink[linkBase + j * 2] = ptnKeys.get(newPtn);\n } else {\n ptnKeys2combo[ctPtn] = newPtn;\n ptnKeys.put(newPtn, ctPtn);\n pattern[ctPtn] = moves;\n ptnLink[linkBase + j * 2] = ctPtn++;\n loop = true;\n end2++;\n }\n } else {\n ptnLink[linkBase + j * 2] = -1;\n }\n }\n } else {\n ptnLink[linkBase] = -1;\n ptnLink[linkBase + 2] = -1;\n ptnLink[linkBase + 4] = -1;\n ptnLink[linkBase + 6] = -1;\n }\n\n // space up, tile down\n if (zeroRow > 0) {\n int upperIdx = getRowKey(ptnCombo, zeroRow - 1);\n for (int j = 0; j < rowSize; j++) {\n if (rowKeyLink[upperIdx * rowSize + j] != -1) {\n int newPtn = 0;\n int pairKeys = (rowKeyLink[upperIdx * rowSize + j] << rowBitsSize)\n | rowKeyLink[zeroIdx * rowSize + j];\n\n switch (zeroRow) {\n case 1:\n newPtn = (ptnCombo & partialPattern[0])\n | (pairKeys << 2 * rowBitsSize);\n break;\n case 2:\n newPtn = (ptnCombo & partialPattern[1])\n | (pairKeys << rowBitsSize)\n | (ptnCombo & partialPattern[2]);\n break;\n case 3:\n newPtn = (ptnCombo & partialPattern[3]) | pairKeys;\n break;\n default:\n System.err.println(\"ERROR\");\n }\n\n newPtn = (newPtn << zeroBitsSize) | (zeroRow - 1);\n if (ptnKeys.containsKey(newPtn)) {\n ptnLink[linkBase + j * 2 + 1] = ptnKeys.get(newPtn);\n } else {\n ptnKeys2combo[ctPtn] = newPtn;\n ptnKeys.put(newPtn, ctPtn);\n pattern[ctPtn] = moves;\n ptnLink[linkBase + j * 2 + 1] = ctPtn++;\n loop = true;\n end2++;\n }\n } else {\n ptnLink[linkBase + j * 2 + 1] = -1;\n }\n }\n } else {\n ptnLink[linkBase + 1] = -1;\n ptnLink[linkBase + 3] = -1;\n ptnLink[linkBase + 5] = -1;\n ptnLink[linkBase + 7] = -1;\n }\n }\n }\n }", "com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints getScansArray(int i);", "public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }", "private static int[] computeTemporaryArray(String pattern)\r\n\t{\r\n\t\t// Temp array is of the same size of the pattern.\r\n\t\t// Every point tells us what is the longest suffix length which is also the prefix in this temp array.\r\n\t\tint [] lps = new int[pattern.length()];\r\n\t\t\r\n\t\t// First point is always 0\r\n\t\tint j =0;\r\n\r\n\t\t// Note that there is no i++ here in this for()\r\n\t\tfor(int i=1; i < pattern.length();)\r\n\t\t{\r\n\t\t\t// Match is found\r\n\t\t\tif(pattern.charAt(i) == pattern.charAt(j))\r\n\t\t\t{\r\n\t\t\t\tlps[i] = j + 1;\r\n\t\t\t\tj++;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\r\n\t\t\t// Match is not found\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// If j is not at zero, move back and do not increase i\r\n\t\t\t\tif(j != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tj = lps[j-1];\r\n\t\t\t\t}\r\n\t\t\t\t// If j is at zero, there is no other option but to proceed further and mark that cell as zero\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tlps[i] =0;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lps;\r\n\t}", "public ZiplineLightData() {\n\t\tsamplePoints = new int[SAMPLE_POINTS];\n\t\tArrays.fill(samplePoints, -1);\n\t}", "private void setUpRouteIDsAndIndexes() {\n\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n routeIDSet.add(routeID);\n }\n }\n\n buildHash();\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIndexes = new ArrayList<>();\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n int routeIndex = (int) routeIDMap.get(routeID);\n routeIndexes.add(routeIndex);\n }\n routeIndexesOfBillboards.add(routeIndexes);\n }\n }", "public Pattern(Delta... pattern)\n {\n assert(pattern.length > 0);\n\n _pattern = pattern;\n _index = 0;\n }", "static int getNumPatterns() { return 64; }", "public String[] getPatterns()\n/* */ {\n/* 92 */ return this.patterns;\n/* */ }", "public ArrayWorld(Pattern pattern) {\n super(pattern);\n world = new boolean[getHeight()][getWidth()];\n deadRow = new boolean[getWidth()];\n int check = 0;\n pattern.initialise(this);\n for (int i = 0; i < world.length; i++) {\n for (int j = 0; j < world[i].length; j++) {\n if (world[i][j]) {\n check++;\n }\n }\n if (check == 0) {\n world[i] = deadRow;\n }\n }\n }", "public RandomizedSet_380() {\n elementsList = new ArrayList<>();\n valToIndex = new HashMap<>();\n }", "public IntMap(int size){\r\n hashMask=size-1;\r\n indexMask=(size<<1)-1;\r\n data=new int[size<<1];\r\n }", "public Rotation(){\n\t\timageData = new int[][] {{1,2,3,4}, {5,6,7,8},{9, 10, 11, 12},{13, 14, 15 ,16}};\n\t\tn = 4;\n\t}", "public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }", "public ArrayListOfIntsWritable(int[] arr)\n {\n super(arr);\n }", "@Override\n\tpublic int[] toArray() {\n\t\treturn null;\n\t}", "public BagOfPatterns() {\r\n\t\tthis.PAA_intervalsPerWindow = -1;\r\n\t\tthis.SAX_alphabetSize = -1;\r\n\t\tthis.windowSize = -1;\r\n\r\n\t\t\r\n\t\tknn = new kNN(); // defaults to 1NN, Euclidean distance\r\n\t\tuseParamSearch = true;\r\n\t}", "public Board(int[][] values) {\n tiles = new int[3][];\n for (int i = 0; i < 3; i++) {\n tiles[i] = Arrays.copyOf(values[i], 3);\n }\n }", "public Maze(byte[] arr)\n {\n try {\n\n int rowSizeInt;\n int colSizeInt;\n int entryRowInt;\n int entryColInt;\n int exitRowInt;\n int exitColInt;\n\n byte[] RowSizeBytes = Arrays.copyOfRange(arr, 0, 4);\n byte[] ColSizeBytes = Arrays.copyOfRange(arr, 4, 8);\n\n byte[] StartRowBytes = Arrays.copyOfRange(arr, 8, 12);\n byte[] StartColBytes = Arrays.copyOfRange(arr, 12, 16);\n\n byte[] EndRowBytes = Arrays.copyOfRange(arr, 16, 20);\n byte[] EndColBytes = Arrays.copyOfRange(arr, 20, 24);\n\n rowSizeInt = ByteBuffer.wrap(RowSizeBytes).getInt();\n colSizeInt = ByteBuffer.wrap(ColSizeBytes).getInt();\n entryRowInt = ByteBuffer.wrap(StartRowBytes).getInt();\n entryColInt = ByteBuffer.wrap(StartColBytes).getInt();\n exitRowInt = ByteBuffer.wrap(EndRowBytes).getInt();\n exitColInt = ByteBuffer.wrap(EndColBytes).getInt();\n\n this.data = new int[rowSizeInt][colSizeInt];\n\n //Sets the visual int matrix\n int byteArrIndex = 24;\n for (int i = 0; i < rowSizeInt; i++)\n {\n for (int j = 0; j < colSizeInt; j++)\n {\n this.data[i][j] = arr[byteArrIndex++];\n }\n }\n\n this.PositionMatrix = new Position[rowSizeInt / 2 + 1][colSizeInt / 2 + 1];\n int counter = 0;\n for (int i = 0; i < rowSizeInt / 2 + 1; i++)\n {\n for (int j = 0; j < colSizeInt / 2 + 1; j++)\n {\n this.PositionMatrix[i][j] = new Position(i, j);\n this.PositionMatrix[i][j].setId(counter);\n counter++;\n }\n }\n\n this.data[entryRowInt * 2][entryColInt * 2] = 0;\n this.data[exitRowInt * 2][exitColInt * 2] = 0;\n\n intToPositionArr(this.PositionMatrix, data);\n\n this.data[entryRowInt * 2][entryColInt * 2] = 83;\n this.data[exitRowInt * 2][exitColInt * 2] = 69;\n\n this.entry = PositionMatrix[entryRowInt][entryColInt];\n this.exit = PositionMatrix[exitRowInt][exitColInt];\n }\n\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public Maze3d(byte[] b)\r\n\t{\r\n\t\tthis.maze = new int[(int)b[0]][(int)b[1]][(int)b[2]];\r\n\t\tthis.setStartPosition((int)b[3], (int)b[4], (int)b[5]);\r\n\t\tthis.setGoalPosition((int)b[6],(int)b[7],(int)b[8]);\r\n\t\tint counter = 9;\r\n\t\tfor(int i = 0;i<b[0];i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0;j<b[1];j++)\r\n\t\t\t{\r\n\t\t\t\tfor(int k = 0;k<b[2];k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.maze[i][j][k] = (int)b[counter];\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Board(int[][] tiles) {\n _N = tiles.length;\n _tiles = new int[_N][_N];\n _goal = new int[_N][_N];\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n _tiles[i][j] = tiles[i][j];\n _goal[i][j] = 1 + j + i * _N;\n }\n }\n _goal[_N-1][_N-1] = 0;\n }", "public Row(int index) {\n this.index=index;\n row = new ArrayList<>(8);\n }", "public abstract void setCells(int x, int y, int [][] pattern);", "public BandedArraySolution(int[][] a) {\n\t\tsuper(a);\n\t}", "protected abstract void initPatternRepresentation(String[] paramArrayOfString)\n/* */ throws IllegalArgumentException;", "GARoute(){\n cityIndex = new ArrayList<Integer>();\n }", "public Espai(int a, int b){\n matriuElements = new Object[a][b];\n referencies = new Hashtable<Integer,Pos>();\n }", "public static String[][] createPattern()\n {\n //the game is more like a table of 6 columns and 6 rows\n\t\n\t//we're going to have to make a 2D array of 7 rows \n\n String[][] f = new String[7][15];\n\n //Time to loop over each row from up to down\n\n for (int i = 0; i < f.length; i++)\n { \n for (int j = 0; j < f[i].length; j++)\n {\n if (j % 2 == 0) f[i][j] =\"|\";\n\n else f[i][j] = \" \";\n \n if (i==6) f[i][j]= \"-\";\n } \n }\n return f;\n }", "public StarsMesh() {\r\n\r\n\t\tvertices = new float[star_count * 3];\r\n\t\tindices = new short[star_count];\r\n\r\n\t\tRandom gen = new Random(System.currentTimeMillis());\r\n\r\n\t\tfor (int x = 0; x < star_count * 3; x += 3) {\r\n\t\t\tint rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(250) - 125) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x] = rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(130) - 65) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x + 1] = rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(200) - 100) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x + 2] = rand;\r\n\r\n\t\t\t// vertices[x+2] = 0;\r\n\r\n\t\t\tindices[x / 3] = (short) ((short) x / 3);\r\n\t\t}\r\n\r\n\t\tByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4);\r\n\t\tvbb.order(ByteOrder.nativeOrder());\r\n\t\tvertexBuffer = vbb.asFloatBuffer();\r\n\t\tvertexBuffer.put(vertices);\r\n\t\tvertexBuffer.position(0);\r\n\r\n\t\tByteBuffer ibb = ByteBuffer.allocateDirect(indices.length * 2);\r\n\t\tibb.order(ByteOrder.nativeOrder());\r\n\t\tindexBuffer = ibb.asShortBuffer();\r\n\t\tindexBuffer.put(indices);\r\n\t\tindexBuffer.position(0);\r\n\t}", "public Map(){\r\n map = new Square[0][0];\r\n }", "NBLK(int[][] origMap) {\r\n\r\n\t\t\r\n\t\t// suppose it's a matrix for numberlink\r\n\t\tn_row = origMap.length;\r\n\t\tn_col = origMap[0].length;\r\n\t\tlength = n_row * n_col;\r\n\t\tadjaMatrix=new int[length][length];\r\n\t\tStartPoint=new HashMap<Integer, Node>();\r\n\t\tEndPoint=new HashMap<Integer, Node>();\r\n\t\tnowMap= new HashMap<Integer,LinkedList<Integer>>();\r\n\t\t\r\n\t\tpaths=new HashMap<Integer, Stack<Node>>();\r\n\t\tallNodes= new HashMap<Integer,Node>();\r\n\t\t\r\n\t\t\r\n\t\tlastPath=0;\r\n\t\t\r\n\t\tcount=0;\r\n\t\tfor (int i = 0; i < n_row; i++) {\r\n\t\t\tfor (int j = 0; j < n_col; j++) {\r\n\t\t\t\tif (origMap[i][j] > -1) {\r\n\t\t\t\t\t//we can use that point to represent a blocked point (i,j) as matrix[i][j]=-1\r\n\t\t\t\t\tint index = i * n_col + j;\r\n\t\t\t\t\tNode n = new Node(i, j, index, origMap[i][j]);\r\n\t\t\t\t\tallNodes.put(index, n);\r\n\t\t\t\t\tLinkedList<Integer> neibors = new LinkedList<Integer>();\r\n\r\n\t\t\t\t\tif (i > 0 && origMap[i-1][j] > -1) {\r\n\t\t\t\t\t\t//left\r\n\t\t\t\t\t\tadjaMatrix[index][(i - 1) * n_col + j] = 1;\r\n\t\t\t\t\t\tadjaMatrix[(i - 1) * n_col + j][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast((i - 1) * n_col + j);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i < n_row - 1 && origMap[i+1][j] > -1) {\r\n\t\t\t\t\t\t//right\r\n\t\t\t\t\t\tadjaMatrix[index][(i + 1) * n_col + j] = 1;\r\n\t\t\t\t\t\tadjaMatrix[(i + 1) * n_col + j][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast((i + 1) * n_col + j);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j > 0 && origMap[i][j-1] > -1) {\r\n\t\t\t\t\t\t//top\r\n\t\t\t\t\t\tadjaMatrix[index][i * n_col + j - 1] = 1;\r\n\t\t\t\t\t\tadjaMatrix[i * n_col + j - 1][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast(i * n_col + j - 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j < n_col - 1 && origMap[i][j+1] > -1) {\r\n\t\t\t\t\t\t//bottom\r\n\t\t\t\t\t\tadjaMatrix[index][i * n_col + j + 1] = 1;\r\n\t\t\t\t\t\tadjaMatrix[i * n_col + j + 1][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast(i * n_col + j + 1);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnowMap.put(index, neibors);\r\n\t\t\t\t\tif (origMap[i][j] > 0) {\r\n\r\n\t\t\t\t\t\tif (!StartPoint.containsKey(origMap[i][j])) {\r\n\t\t\t\t\t\t\tStartPoint.put(origMap[i][j], n);\r\n\t\t\t\t\t\t\tStack<Node> tp = new Stack<Node>();\r\n\t\t\t\t\t\t\ttp.push(n);\r\n\t\t\t\t\t\t\tpaths.put(origMap[i][j], tp);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tEndPoint.put(origMap[i][j], n);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public List_inArraySlots() {\n intElements = new int[INITIAL_CAPACITY];\n doubleElements = new double[INITIAL_CAPACITY];\n stringElements = new String[INITIAL_CAPACITY];\n\n typeOfElements = new int[INITIAL_CAPACITY];\n }", "public Board(int[][] tiles) {\n N = tiles.length;\n L = N * N;\n\n short[] res1d = new short[L];\n short k = 0;\n for (short i = 0; i < N; i++) {\n for (short j = 0; j < N; j++) {\n res1d[k] = (short) tiles[i][j];\n if (res1d[k] == 0) {\n blank_r = i;\n blank_c = j;\n }\n k++;\n }\n }\n arr1d = res1d;\n }", "public Sudoku(int[][] state) {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tthis.initialState[i][j] = this.currentState[i][j] = state[i][j];\n\t\t\t}\n\t\t}\n\t}", "public void constructArray(){\n\t\tfor (int col = 0; col < cols; col++){\n\t\t\tfor (int row = 0; row < rows; row++){\n\t\t\t\tmap[col][row] = new Pixel();\n\t\t\t}\n\t\t}\n\t}", "public Board(){\r\n \r\n //fill tile list with tile objects\r\n tiles.add(new Tile(new Coordinate(0,0)));\r\n tiles.add(new Tile(new Coordinate(0,1)));\r\n tiles.add(new Tile(new Coordinate(0,2)));\r\n tiles.add(new Tile(new Coordinate(1,0)));\r\n tiles.add(new Tile(new Coordinate(1,1)));\r\n tiles.add(new Tile(new Coordinate(1,2)));\r\n tiles.add(new Tile(new Coordinate(1,3)));\r\n tiles.add(new Tile(new Coordinate(2,0)));\r\n tiles.add(new Tile(new Coordinate(2,1)));\r\n tiles.add(new Tile(new Coordinate(2,2)));\r\n tiles.add(new Tile(new Coordinate(2,3)));\r\n tiles.add(new Tile(new Coordinate(2,4)));\r\n tiles.add(new Tile(new Coordinate(3,1)));\r\n tiles.add(new Tile(new Coordinate(3,2)));\r\n tiles.add(new Tile(new Coordinate(3,3)));\r\n tiles.add(new Tile(new Coordinate(3,4)));\r\n tiles.add(new Tile(new Coordinate(4,2)));\r\n tiles.add(new Tile(new Coordinate(4,3)));\r\n tiles.add(new Tile(new Coordinate(4,4)));\r\n \r\n //fills corner list with corner objects\r\n List<Coordinate> cornercoords = new ArrayList<>();\r\n for(Tile t : tiles){\r\n for(Coordinate c : t.getAdjacentCornerCoords()){\r\n if(cornercoords.contains(c)==false) cornercoords.add(c);\r\n }\r\n }\r\n for(Coordinate c : cornercoords){\r\n corners.add(new Corner(c));\r\n }\r\n \r\n //fills adjacent corner/tile fields\r\n for(Tile t: tiles){\r\n t.fillAdjacents(tiles,corners);\r\n }\r\n for(Corner c: corners){\r\n c.fillAdjacents(tiles,corners);\r\n }\r\n \r\n //generates an edge between each corner and fills the list of edges\r\n //results in lots of duplicates\r\n for(Corner c: corners){\r\n for(Corner adjacent: c.getAdjacentCorners()){\r\n edges.add(new Edge(c,adjacent));\r\n }\r\n }\r\n \r\n //hopefully removes duplicates from the edge list\r\n Iterator<Edge> iter = edges.iterator();\r\n boolean b = false;\r\n while (iter.hasNext()) {\r\n Edge e = iter.next();\r\n for(Edge edge : edges){\r\n if(e.sharesCorners(edge)==true && edge!=e){\r\n b = true;\r\n }\r\n }\r\n if(b==true) iter.remove();\r\n b = false;\r\n }\r\n \r\n //give each tile a token number and resource type \r\n ArrayList<Tile> randomtiles = randomize(tiles);\r\n int sheep = 3;\r\n int wood = 3;\r\n int rock = 2;\r\n int brick = 2;\r\n int wheat = 3;\r\n for(Tile t : randomtiles){\r\n if(sheep>0){\r\n t.setResource(Resource.SHEEP);\r\n sheep--;\r\n }\r\n if(wood>0){\r\n t.setResource(Resource.WOOD);\r\n wood--;\r\n }\r\n if(brick>0){\r\n t.setResource(Resource.CLAY);\r\n brick--;\r\n }\r\n if(wheat>0){\r\n t.setResource(Resource.WHEAT);\r\n wheat--;\r\n }\r\n if(rock>0){\r\n t.setResource(Resource.ROCK);\r\n rock--;\r\n }\r\n else t.setResource(Resource.DESERT); \r\n } \r\n randomtiles = randomize(randomtiles);\r\n int twos = 1;\r\n int twelves = 1;\r\n int threes = 2;\r\n int fours = 2;\r\n int fives = 2;\r\n int sixes = 2;\r\n int sevens = 2;\r\n int eights = 2;\r\n int nines = 2;\r\n int tens = 2;\r\n int elevens = 2; \r\n for(Tile t : randomtiles){\r\n if(t.getResource() != Resource.DESERT){\r\n if(twos != 0){\r\n t.setToken(2);\r\n twos--;\r\n }\r\n else if(threes !=0){\r\n t.setToken(3);\r\n threes--;\r\n }\r\n else if(fours !=0){\r\n t.setToken(4);\r\n fours--;\r\n } \r\n else if(fives !=0){\r\n t.setToken(5);\r\n fives--;\r\n } \r\n else if(sixes !=0){\r\n t.setToken(6);\r\n sixes--;\r\n } \r\n else if(sevens !=0){\r\n t.setToken(7);\r\n sevens--;\r\n } \r\n else if(eights !=0){\r\n t.setToken(8);\r\n eights--;\r\n } \r\n else if(nines !=0){\r\n t.setToken(9);\r\n nines--;\r\n } \r\n else if(tens !=0){\r\n t.setToken(10);\r\n tens--;\r\n } \r\n else if(elevens !=0){\r\n t.setToken(11);\r\n elevens--;\r\n } \r\n else if(twelves !=0){\r\n t.setToken(12);\r\n twelves--;\r\n } \r\n }\r\n }\r\n }", "public int[][] toCloneMatrix(String[] array, int length){\n\t\tint[][] matrix = new int[length][4];\n\t\tfor(int i = 0; i < length; i++){\t\t\n\t\t\tfor(int j = 0; j < 6; j++){\t\n\t\t\t\tif(j == 0){\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(toWord(array[i])[0]); //matrix[i][0] = array[i][0] CLONE ID\n\t\t\t\t}\n\t\t\t\telse if(j == 1){\n\t\t\t\t\tString temp = toWord(array[i])[1];\n\t\t\t\t\tString[] tempArray = temp.split(\"\\\\.\");\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(tempArray[0]); //matrix[i][1] = array[i][1] FILE ID\n\t\t\t\t}\n\t\t\t\telse if(j == 2){\n\t\t\t\t\tString temp = toWord(array[i])[1];\n\t\t\t\t\tString[] tempArray = temp.split(\"\\\\.\");\n\t\t\t\t\ttemp = tempArray[1]; //bg-end\n\t\t\t\t\ttempArray = temp.split(\"\\\\-\");\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(tempArray[0]); //matrix[i][2] = array[i][2] SL\n\t\t\t\t}\n\t\t\t\telse if(j == 3){\n\t\t\t\t\tString temp = toWord(array[i])[1];\n\t\t\t\t\tString[] tempArray = temp.split(\"\\\\.\");\n\t\t\t\t\ttemp = tempArray[1]; //bg-end\n\t\t\t\t\ttempArray = temp.split(\"\\\\-\");\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(tempArray[1]); //matrix[i][3] = array[i][3] EL\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn matrix;\n\t}", "String[][] packData();", "public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }", "private static void generateReplica() {\r\n\t\tArrayList<String> rep = new ArrayList<String>();\r\n\t\trep.add(NamespaceMap.get(5));\r\n\t\trep.add(NamespaceMap.get(6));\r\n\t\tReplicationMap.put(1, rep);\r\n\t\trep.set(0, NamespaceMap.get(6));\r\n\t\trep.set(1, NamespaceMap.get(1));\r\n\t\tReplicationMap.put(2, rep);\r\n\t\trep.set(0, NamespaceMap.get(1));\r\n\t\trep.set(1, NamespaceMap.get(2));\r\n\t\tReplicationMap.put(3, rep);\r\n\t\trep.set(0, NamespaceMap.get(2));\r\n\t\trep.set(1, NamespaceMap.get(3));\r\n\t\tReplicationMap.put(4, rep);\r\n\t\trep.set(0, NamespaceMap.get(3));\r\n\t\trep.set(1, NamespaceMap.get(4));\r\n\t\tReplicationMap.put(5, rep);\r\n\t\trep.set(0, NamespaceMap.get(4));\r\n\t\trep.set(1, NamespaceMap.get(5));\r\n\t\tReplicationMap.put(6, rep);\r\n\t}", "public Matrix(int[][] array)\n {\n matrix = array;\n }", "public StateofPancakes(StateofPancakes state) {\r\n N = state.N;\r\n\tcurr_state = new int[N];\r\n for(int i=0; i<N; i++) \r\n curr_state[i] = state.curr_state[i];\r\n}", "public Sudoku() {\n this.board = new int[size][size];\n }", "public ArrayListOfIntsWritable()\n {\n super();\n }", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public WeetArray() {\n count = 0;\n nullCount = 0;\n }", "@Override\n\tpublic void initialize(int nodeCount, int patternCount, int matrixCount, boolean integrateCategories) {\n\n this.nodeCount = nodeCount;\n this.patternCount = patternCount;\n this.matrixCount = matrixCount;\n\n this.integrateCategories = integrateCategories;\n\n if (integrateCategories) {\n partialsSize = patternCount * stateCount * matrixCount;\n } else {\n partialsSize = patternCount * stateCount;\n }\n\n partials = new double[2][nodeCount][];\n// storedPartials = new double[2][nodeCount][];\n\n currentMatricesIndices = new int[nodeCount];\n storedMatricesIndices = new int[nodeCount];\n\n currentPartialsIndices = new int[nodeCount];\n storedPartialsIndices = new int[nodeCount];\n\n// states = new int[nodeCount][];\n\n for (int i = 0; i < nodeCount; i++) {\n partials[0][i] = null;\n partials[1][i] = null;\n\n// states[i] = null;\n }\n\n matrixSize = stateCount * stateCount;\n\n matrices = new double[2][nodeCount][matrixCount * matrixSize];\n }", "public purchaseDesign()\n {\n priceArray = new int[5][4];\n }", "private static int[] preprocessPattern(String pattern) {\n\t\t\n\t\tint[] b = new int[pattern.length()+1];\n\t\tb[0] = -1;\n\t\t\n\t\tfor(int i = 0, j = -1; i < pattern.length(); i++, j++, b[i]=j) {\n\t\t\t\n\t\t\twhile (j>=0 && pattern.charAt(i) != pattern.charAt(j)) {\n\t\t\t\tj=b[j];\n\t\t\t}\n\t \n\t\t}\n\n\t\treturn b;\n\t}", "private int[][] initGraph() {\r\n\t\tint[][] graph = new int[8][8];\r\n\t\tgraph[0] = new int[] { 0, 1, 1, MAX, MAX, MAX, MAX, MAX };\r\n\t\tgraph[1] = new int[] { 1, 0, MAX, 1, 1, MAX, MAX, MAX };\r\n\t\tgraph[2] = new int[] { 1, MAX, 0, MAX, MAX, 1, 1, MAX };\r\n\t\tgraph[3] = new int[] { MAX, 1, MAX, 0, MAX, MAX, MAX, 1 };\r\n\t\tgraph[4] = new int[] { MAX, 1, MAX, MAX, 0, MAX, MAX, 1 };\r\n\t\tgraph[5] = new int[] { MAX, MAX, 1, MAX, MAX, 0, 1, MAX };\r\n\t\tgraph[6] = new int[] { MAX, MAX, 1, MAX, MAX, 1, 0, MAX };\r\n\t\tgraph[7] = new int[] { MAX, MAX, MAX, 1, 1, MAX, MAX, 0 };\r\n\t\treturn graph;\r\n\t}", "public Weight( int[] init )\n {\n // Construct the array the same length\n // as that referenced by init.\n data = new int[init.length];\n\n // Copy values from the\n // input data to data.\n for ( int j = 0; j < init.length; j++ )\n {\n data[j] = init[j];\n }\n }", "public void setPattern(boolean[][] p)\n {\n pattern = p;\n }", "public TableSorter() {\n indexes = new int[0];\n }", "protected abstract int[][] getPossiblePositions();", "private int[][] initialStateMatrix() {\n return new int[][]{{2,1,-1,3,0,-1},\n {2,-1,-1,3,-1,-1},\n {2,-1,5,4,8,-1},\n {4,-1,-1,-1,-1,-1},\n {4,-1,5,-1,8,-1},\n {7,6,-1,-1,-1,-1},\n {7,-1,-1,-1,-1,-1},\n {7,-1,-1,-1,8,-1},\n {-1,-1,-1,-1,8,-1}};\n }", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public int[][] getMazeMatrix(){ return maze;}", "public SuperArray() { \n \t_data = new Comparable[10];\n \t_lastPos = -1; //flag to indicate no lastpos yet\n \t_size = 0;\t\n }", "public ArrBag()\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n }", "public GenericDynamicArray() {this(11);}", "public Question12Review() {\n int gridSize = 8;\n int[] columns = new int[gridSize];\n ArrayList<Integer[]> results = new ArrayList<>();\n place(gridSize, new int[gridSize], 0, results);\n }", "public LISTry(int[] arr, int teta) {\n this.arr = arr;\n this.teta = teta;\n this.n = arr.length;\n this.help = new int[n];\n this.mat = new int[n][];\n this.numOfAll = -1;\n this.length = -1;\n }", "public DynamicArray() {\n this(16);\n }", "public TrapTiles()\r\n {\r\n id = 604 ; \r\n }", "void setArrayGeneric(int paramInt)\n/* */ {\n/* 1062 */ this.length = paramInt;\n/* 1063 */ this.datums = new Datum[paramInt];\n/* 1064 */ this.pickled = null;\n/* 1065 */ this.pickledCorrect = false;\n/* */ }", "public WellFormTemplate(int index, String pattern) {\n \tthis.patternIndex = index;\n \tthis.testingPattern = pattern;\n }", "DS (int size) {sz = size; p = new int [sz]; for (int i = 0; i < sz; i++) p[i] = i; R = new int[sz];}", "public Board(int[][] b) {\n neighbors = new LinkedList<>();\n tiles = b;\n n = b.length;\n goal = new int[n][n];\n\n int counter = 1;\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n goal[x][y] = counter;\n counter++;\n }\n }\n goal[n-1][n-1] = 0;\n }", "public JaggedArrayIterator(int[][] array) {\n this.array = array;\n }", "public StackArray(int cells) {\n this.items = new int[cells];\n }", "public _No_706_DesignHashMap() {\n// Arrays.fill(arr, -1);\n }", "private static Map<Integer, List<String>> getIpPatternMap()\n\t{\n\t\tMap<Integer, List<String>> map = new HashMap<>();\n\t\tfor(int a = 1; a <= 3; a++)\n\t\t{\n\t\t\tfor( int b = 1; b <= 3; b++)\n\t\t\t{\n\t\t\t\tfor(int c = 1 ; c <= 3; c++)\n\t\t\t\t{\n\t\t\t\t\tfor( int d = 1; d <= 3; d++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int patternCount = a + b + c + d;\n\t\t\t\t\t\tList<String> patterns;\n\t\t\t\t\t\tif(!map.containsKey(patternCount))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpatterns = new ArrayList<>();\n\t\t\t\t\t\t\tmap.put(patternCount, patterns);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpatterns = map.get(patternCount);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpatterns.add(String.format(\"%1$d%2$d%3$d%4$d\", a,b,c,d));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn map;\n\t}", "private UniqueChromosomeReconstructor() { }", "public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }", "Solver(int grille[][]){\r\n\t\tthis.grille = grille;\r\n\t}", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "void create(){\n // I assign zero value to each element of the array.\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n array[i][j]= 0;\n }\n }\n // I create random values for mines indexes\n int min = 0;\n int max = this.row;\n Random random = new Random();\n int randRow, randColumn, count=0;\n //I generate random mines quarter of the size of the array and assign it into the array.\n while(count != (this.row*this.column/4)){\n randRow = random.nextInt(max + min) + min;\n randColumn = random.nextInt(max + min) + min;\n if (array[randRow][randColumn] != -1){\n array[randRow][randColumn]= -1;\n count++;\n }\n }\n // I show the all minesweeper map\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n if (array[i][j]==0)\n System.out.print(\"0 \");\n else\n System.out.print(\"* \");\n }\n System.out.println();\n }\n }", "public Matrix(int[][] array){\n this.matriz = array;\n }", "public WeightedAdjMatGraph(){\n this.edges = new int[DEFAULT_CAPACITY][DEFAULT_CAPACITY];\n this.n = 0;\n this.vertices = (T[])(new Object[DEFAULT_CAPACITY]);\n }", "public Queens(int[] riesenie) {\n this.riesenie = riesenie.clone();\n }", "UArraysKt___UArraysKt$withIndex$2(long[] jArr) {\n super(0);\n this.$this_withIndex = jArr;\n }" ]
[ "0.5916236", "0.5851705", "0.5663132", "0.56056184", "0.5597825", "0.5588136", "0.55870736", "0.5577206", "0.55656916", "0.5444862", "0.5444647", "0.54442817", "0.5429018", "0.5427571", "0.5371524", "0.5370929", "0.5345032", "0.531852", "0.52902937", "0.52753645", "0.5274949", "0.5254874", "0.52290565", "0.52107966", "0.5204948", "0.5194417", "0.5194096", "0.5185332", "0.51837087", "0.5169711", "0.516869", "0.51550907", "0.5143194", "0.5140934", "0.5134393", "0.5120704", "0.5112228", "0.51089597", "0.5107006", "0.5099859", "0.5091285", "0.50878215", "0.5079081", "0.5065758", "0.50616986", "0.50498885", "0.50333685", "0.5029926", "0.50241375", "0.5019886", "0.501627", "0.5009699", "0.50072455", "0.50065976", "0.49978888", "0.49934274", "0.498892", "0.4984448", "0.49806434", "0.49760875", "0.4972649", "0.49719882", "0.49694064", "0.49642396", "0.49572682", "0.49533442", "0.4943811", "0.49424645", "0.4938318", "0.49382082", "0.49335882", "0.49316987", "0.4923119", "0.4922788", "0.49217403", "0.49204656", "0.49170887", "0.4908028", "0.49077192", "0.4903328", "0.49018818", "0.49015564", "0.48930183", "0.4892637", "0.4888963", "0.4888901", "0.48881248", "0.48871922", "0.4873838", "0.48673105", "0.48587847", "0.48573732", "0.4854917", "0.484814", "0.48460254", "0.48423445", "0.48385754", "0.4830773", "0.4830637", "0.48292226", "0.48242015" ]
0.0
-1
Created by fy on 2017/3/14.
public interface IClientGoodsService { void del(int id); void update(ClientGoods t); boolean add(ClientGoods t); ClientGoods get(int id); ClientGoods load(int id); /** * 根据类别查询 * * @param categories * @return */ List<ClientGoods> goodsListByCategories(int categories, int storeId); /** * 根据商品编号查找商品 * * @param goodsNo * @param storeId * @return */ ClientGoods findByGoodsNo(String goodsNo, int storeId); /** * 查找店铺下所有商品 * * @param storeId * @return */ List<ClientGoods> findAll(int storeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void getExras() {\n }", "private void init() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n public int describeContents() { return 0; }", "protected boolean func_70814_o() { return true; }", "@Override\n public void init() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void m50366E() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n protected void init() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo4359a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "private Rekenhulp()\n\t{\n\t}", "private void init() {\n\n\n\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\t\tpublic void init() {\n\t\t}", "public void mo6081a() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n public int getSize() {\n return 1;\n }" ]
[ "0.59465915", "0.5748163", "0.57470757", "0.5709492", "0.5709492", "0.570567", "0.563516", "0.5604836", "0.5580672", "0.5578508", "0.55661994", "0.55372214", "0.55303365", "0.55247116", "0.5508082", "0.5504222", "0.5503837", "0.54888135", "0.5481856", "0.5480588", "0.5480588", "0.5480588", "0.5480588", "0.5480588", "0.54705954", "0.54498833", "0.5445399", "0.54342294", "0.54321444", "0.54224885", "0.54175466", "0.54154754", "0.5409272", "0.540504", "0.53911704", "0.5387109", "0.53855044", "0.5378591", "0.53716165", "0.5363218", "0.5361994", "0.5358513", "0.5358513", "0.5358513", "0.5353482", "0.5353482", "0.5347257", "0.5345693", "0.53445846", "0.5341417", "0.5341417", "0.5341417", "0.5341417", "0.5341417", "0.5341417", "0.5336601", "0.5336601", "0.5336601", "0.5335567", "0.53307956", "0.5330593", "0.5330593", "0.5326978", "0.5326978", "0.5326978", "0.53159636", "0.5314705", "0.5300173", "0.5288351", "0.5280796", "0.5276084", "0.5276084", "0.52743757", "0.52638435", "0.52590686", "0.52570593", "0.52561855", "0.52483135", "0.52431893", "0.5238849", "0.5230292", "0.5217054", "0.52126396", "0.5206078", "0.5205769", "0.5199441", "0.51986396", "0.51942194", "0.5183707", "0.5183707", "0.5183707", "0.5183707", "0.5183707", "0.5183707", "0.5183707", "0.5162263", "0.516068", "0.51573825", "0.51557976", "0.5155285", "0.51520693" ]
0.0
-1
Creates new form GlowneOkno
public GlowneOkno() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "public FormInserir() {\n initComponents();\n }", "public Crear() {\n initComponents();\n \n \n this.getContentPane().setBackground(Color.WHITE);\n txtaPR.setEnabled(false); \n txtFNocmbre.requestFocus();\n \n \n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public void createNewSoundBoard() {\n\n dialogCreateSoundBoard = new Dialog(this);\n dialogCreateSoundBoard.setContentView(R.layout.soundboard_create);\n dialogCreateSoundBoard.setTitle(\"Create board\");\n dialogCreateSoundBoard.setCancelable(true);\n\n\n sbName = (EditText) dialogCreateSoundBoard.findViewById(R.id.textfieldcreatesoundboardname);\n sbName.setHint(\"Name\");\n Button createOkButton = (Button) dialogCreateSoundBoard.findViewById(R.id.createSoundBoardButton);\n createOkButton.setOnClickListener(createSoundBoardListener);\n\n Button createCancelButton = (Button) dialogCreateSoundBoard.findViewById(R.id.cancelSoundBoardButton);\n createCancelButton.setOnClickListener(cancelButtonCreateSoundBoardListener);\n\n dialogCreateSoundBoard.show();\n }", "public TorneoForm() {\n initComponents();\n }", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "private void newNetworkDialogCreateButton(){\n //Create new networkData object here based on the field info\n LabData.NetworkData newNetworkData = new LabData.NetworkData(\n NetworkAddDialogNameTextfield.getText().toUpperCase(),\n NetworkAddDialogMaskTextfield.getText(),\n NetworkAddDialogGatewayTextfield.getText(),\n (int)NetworkAddDialogMacVLanExtSpinner.getValue(),\n (int)NetworkAddDialogMacVLanSpinner.getValue(),\n NetworkAddDialogIPRangeTextfield.getText(),\n NetworkAddDialogTapRadioButton.isSelected()\n );\n \n // Update the list of labs in the current UI data object\n labDataCurrent.getNetworks().add(newNetworkData);\n \n // Add the network into the UI \n addNetworkPanel(newNetworkData);\n \n // Update the Container Config dialogs to include the new network\n updateNetworkReferenceInContainerConfigDialogs(\"Add\", NetworkAddDialogNameTextfield.getText().toUpperCase(), null);\n }", "public void newGame()\n\t{\n\t\tthis.setVisible(false);\n\t\tthis.playingField = null;\n\t\t\n\t\tthis.playingField = new PlayingField(this);\n\t\tthis.setSize(new Dimension((int)playingField.getSize().getWidth()+7, (int)playingField.getSize().getHeight() +51));\n\t\tthis.setLocation(new Point(200,20));\n\t\tthis.setContentPane(playingField);\n\t\t\n\t\tthis.setVisible(true);\n\t}", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}", "private void btnCreateHeroActionPerformed() {// GEN-FIRST:event_btnCreateHeroActionPerformed\r\n\t\tdispose();\r\n\t\tHero h = new Hero(txtCreateName.getText());\r\n\t\tnew MainForm().setVisible(true);\r\n\t\tMainForm.setHero(h);\r\n\t\tMainForm.makeOpponents();\r\n\t\th = null;\r\n\t}", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public Project_Create() {\n initComponents();\n }", "public void saveAndCreateNew() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"saveAndCreateNew\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "Compuesta createCompuesta();", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(this.CANCEL);\n this.btnCancel.setActionCommand(\"cancel\");\n this.btnCancel.setToolTipText(\"Cancelar la Operación\");\n \n // Agregar los eventos a los botones\n this.btnOK.addActionListener(this);\n this.btnCancel.addActionListener(this);\n }", "public CrearGrupos() throws SQLException {\n initComponents();\n setTitle(\"Crear Grupos\");\n setSize(643, 450);\n setLocationRelativeTo(this);\n cargarModelo();\n }", "public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}", "public void crearAbonar(){\n \t\n getContentPane().setLayout(new BorderLayout());\n \n p1 = new JPanel();\n\t\tp2 = new JPanel();\n \n\t\t// Not used anymore\n\t\t//String[] a={\"Regresar\",\"Continuar\"},c={\"Cuenta\",\"Monto\"};\n \n\t\t// Layout : # row, # columns\n\t\tp1.setLayout(new GridLayout(1,2));\n \n\t\t// Create the JTextField : Cuenta\n\t\t// And add it to the panel\n tf = new JTextField(\"Cuenta\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n\n\t\t// Create the JTextField : Monto\n\t\t// And add it to the panel\n tf = new JTextField(\"Monto\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n \n // Add the panel to the Frame layout\n add(p1, BorderLayout.NORTH);\n \n // Create the button Regresar\n buttonRegresar = new JButton(\"Regresar\");\n botones.add(buttonRegresar);\n\n // Create the button Continuar\n buttonContinuar = new JButton(\"Continuar\");\n botones.add(buttonContinuar);\n \n // Layout : 1 row, 2 columns\n p2.setLayout(new GridLayout(1,2));\n \n // Add the buttons to the layout\n for(JButton x:botones){\n x.setPreferredSize(new Dimension(110,110));\n p2.add(x);\n }\n \n // Add the panel to the Frame layout\n add(p2, BorderLayout.SOUTH);\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public void create(ActionEvent actionEvent) {\n String grName = groupName.getText();\n ObservableList memList = addList.getCheckModel().getCheckedItems();\n\n if (memList == null) return;\n\n String memName = \"\";\n for (Object obj : memList ) {\n memName += obj.toString() + \"\\n\";\n }\n if (memName != \"\") {\n sender.requestNewGroup(grName, memName);\n chatUIController.newGr(grName);\n }\n return;\n }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public AvtekOkno() {\n initComponents();\n }", "public void crearVentana3(){\n \n marco = new JFrame(\"ventana\");\n panel = new JPanel();\n boton = new JButton(\"boton 1\");\n boton2 = new JButton(\"boton 2\");\n etiqueta = new JLabel(\"\");\n liTexto = new JTextField(30);\n \n \n //le damos caracteristicas a a los componentes\n marco.setSize(900, 500);\n panel.setSize(800, 400);\n panel.setBackground(Color.cyan);\n etiqueta.setText(\"Nome\");\n \n etiqueta.setBounds(50, 100, 50, 10);\n \n liTexto.setBounds(100, 100, 300, 20);\n liTexto.setText(\"Nombre?\");\n \n boton.setBounds(200, 300, 100, 50);\n boton2.setBounds(400, 300, 100,50);\n \n\n \n panel.setLayout(null);\n \n\n //engadimos os componenetes\n panel.add(etiqueta);\n panel.add(liTexto);\n panel.add(boton);\n panel.add(boton2);\n marco.add(panel);\n \n \n marco.setVisible(true);\n marco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "Compleja createCompleja();", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}", "public void create() {\n\t\t\n\t}", "public void create(){}", "public void createNewTeam(ActionEvent actionEvent) throws IOException {\n createTeamPane.setDisable(false);\n createTeamPane.setVisible(true);\n darkPane.setDisable(false);\n darkPane.setVisible(true);\n\n teamNameCreateField.setText(\"\");\n abbrevationCreateField.setText(\"\");\n chooseCityBoxCreate.getSelectionModel().clearSelection();\n chooseLeagueBoxCreate.getSelectionModel().clearSelection();\n chooseAgeGroupCreate.getSelectionModel().clearSelection();\n chooseLeagueTeamBoxCreate.getSelectionModel().clearSelection();\n\n chooseLeagueBoxCreate.setDisable(true);\n chooseLeagueTeamBoxCreate.setDisable(true);\n }", "public void newGame() {\n // this.dungeonGenerator = new TowerDungeonGenerator();\n this.dungeonGenerator = cfg.getGenerator();\n\n Dungeon d = dungeonGenerator.generateDungeon(cfg.getDepth());\n Room[] rooms = d.getRooms();\n\n String playername = JOptionPane.showInputDialog(null, \"What's your name ?\");\n if (playername == null) playername = \"anon\";\n System.out.println(playername);\n\n this.player = new Player(playername, rooms[0], 0, 0);\n player.getCurrentCell().setVisible(true);\n rooms[0].getCell(0, 0).setEntity(player);\n\n frame.showGame();\n frame.refresh(player.getCurrentRoom().toString());\n frame.setHUD(player.getGold(), player.getStrength(), player.getCurrentRoom().getLevel());\n }", "public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}", "private void launchCreateGame() {\n\t\tString name = nameText.getText().toString();\n\t\tString cycle = cycleText.getText().toString();\n\t\tString scent = scentText.getText().toString();\n\t\tString kill = killText.getText().toString();\n\t\t\n\t\tif (name.equals(\"\")){\n\t\t\tname = defaultName;\n\t\t} \n\t\tif (cycle.equals(\"\")) {\n\t\t\tcycle = \"720\";\n\t\t} \n\t\tif (scent.equals(\"\")) {\n\t\t\tscent = \"1.0\";\n\t\t}\n\t\tif (kill.equals(\"\")) {\n\t\t\tkill = \".5\";\n\t\t}\n\t\t\n\t\t\t\n\t\tAsyncJSONParser pewpew = new AsyncJSONParser(this);\n\t\tpewpew.addParameter(\"name\", name);\n\t\tpewpew.addParameter(\"cycle_length\", cycle);\n\t\tpewpew.addParameter(\"scent_range\", scent);\n\t\tpewpew.addParameter(\"kill_range\", kill);\n\t\tpewpew.execute(WerewolfUrls.CREATE_GAME);\n\t\t\n\t\tsetProgressBarEnabled(true);\n\t\tsetErrorMessage(\"\");\n\t}", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "@Override\n public void Create() {\n\n initView();\n }", "public ProductCreate() {\n initComponents();\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }", "public newRelationship() {\n initComponents();\n }", "public Creacion() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@Override\r\n\t\tpublic void create() {\n\t\t\tsuper.create();\r\n\t\t\tsuper.getOKButton().setEnabled(false);\r\n\t\t\tsuper.setTitle(Messages.MoveUnitsWizardPage1_Topolog__2);\r\n\t\t\tsuper.setMessage(Messages.MoveUnitsWizardPage1_Select_a_name_source_folder_and_a_);\r\n\t\t\tsuper.getShell().setText(Messages.MoveUnitsWizardPage1_Topolog__2);\r\n\t\t}", "@Override\n\tpublic void startCreateNewGame() \n\t{\t\n\t\tgetNewGameView().setTitle(\"\");\n\t\tgetNewGameView().setRandomlyPlaceHexes(false);\n\t\tgetNewGameView().setRandomlyPlaceNumbers(false);\n\t\tgetNewGameView().setUseRandomPorts(false);\n\t\tif(!getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().showModal();\n\t\t}\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public JajarGenjang() {\n initComponents();\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "private void create() {\n\t\tGridLayout grid = new GridLayout(3,2);\n\t\tthis.setLayout(grid);\n\t\tthis.setBackground(Color.WHITE);\n\t\t\n\t\tadd(new JLabel(\"Username/Library Card #:\", SwingConstants.LEFT), grid);\n\t\tusername.setPreferredSize(new Dimension(1, 12));\n\t\tadd(username,grid);\n\t\t\n\t\tadd(new JLabel(\"Password:\", SwingConstants.LEFT), grid);\n\t\tadd(password, grid);\n\t\t\n\t\tLoginAction();\n\t\tadd(submit, grid);\n\t}", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "public void onCreate() {\r\n Session session = sessionService.getCurrentSession();\r\n Map<String, Region> items = ControlUtility.createForm(Pc.class);\r\n\r\n ControlUtility.fillComboBox((ComboBox<Kind>) items.get(\"Kind\"), session.getCampaign().getCampaignVariant().getKinds());\r\n ControlUtility.fillComboBox((ComboBox<Race>) items.get(\"Race\"), session.getCampaign().getCampaignVariant().getRaces());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Ability>) items.get(\"SavingThrows\"), Arrays.asList(Ability.values()));\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Proficiency>) items.get(\"Proficiencies\"), session.getCampaign().getCampaignVariant().getProficiencies());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Feature>) items.get(\"Features\"), session.getCampaign().getCampaignVariant().getFeatures());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Trait>) items.get(\"Traits\"), session.getCampaign().getCampaignVariant().getTraits());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Equipment>) items.get(\"Equipment\"), session.getCampaign().getCampaignVariant().getEquipments());\r\n\r\n Campaign campaign = session.getCampaign();\r\n\r\n Dialog<String> dialog = ControlUtility.createDialog(\"Create Playable Character\", items);\r\n dialog.show();\r\n\r\n dialog.setResultConverter(buttonType -> {\r\n if (buttonType != null) {\r\n Pc pc = null;\r\n try {\r\n pc = ControlUtility.controlsToValues(Pc.class, items);\r\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if (pc != null) {\r\n try {\r\n characterService.createPlayerCharacter(pc);\r\n } catch (SessionAlreadyExists | IndexAlreadyExistsException sessionAlreadyExists) {\r\n sessionAlreadyExists.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n Player player = playerManagementService.getRegisteredPlayer();\r\n campaign.addPlayer(player);\r\n campaign.addCharacter(pc);\r\n if (campaignListingService.campaignExists(campaign.getId())) {\r\n manipulationService.updateCampaign(campaign);\r\n } else {\r\n manipulationService.createCampaign(campaign);\r\n }\r\n } catch (MultiplePlayersException | EntityNotFoundException | SessionAlreadyExists | IndexAlreadyExistsException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n } catch (MultiplePlayersException | EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), pc.getId());\r\n sessionService.updateCampaign(campaign);\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n render();\r\n return pc.toString();\r\n }\r\n }\r\n return null;\r\n });\r\n }", "public createclass() {\n initComponents();\n this.setLocationRelativeTo(null);\n getdata();\n }", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "protected void doNew() {\n\t\tgetRegisterView().clearTableSelection();\n\t\tclear();\n\t\tenableForm(true);\n\t\tgetForm().getButton(EDIT).setEnabled(false);\n\t\tgetForm().getField(CHECK_NUMBER).requestFocus();\n\t}", "public CrearProductos() {\n initComponents();\n }", "public Angkot createAngkot(Angkot angkot) {\n \n // membuat sebuah ContentValues, yang berfungsi\n // untuk memasangkan data dengan nama-nama\n // kolom pada database\n ContentValues values = new ContentValues();\n values.put(HelperAngkot.COLUMN_NAME, angkot.getName());\n values.put(HelperAngkot.COLUMN_DESCRIPTION, angkot.getDescription());\n values.put(HelperAngkot.COLUMN_TIME, angkot.getTime());\n \n // mengeksekusi perintah SQL insert data\n // yang akan mengembalikan sebuah insert ID \n long insertId = database.insert(HelperAngkot.TABLE_NAME, null,\n values);\n \n // setelah data dimasukkan, memanggil perintah SQL Select \n // menggunakan Cursor untuk melihat apakah data tadi benar2 sudah masuk\n // dengan menyesuaikan ID = insertID \n Cursor cursor = database.query(HelperAngkot.TABLE_NAME,\n allColumns, HelperAngkot.COLUMN_ID + \" = \" + insertId, null,\n null, null, null);\n \n // pindah ke data paling pertama \n cursor.moveToFirst();\n \n // mengubah objek pada kursor pertama tadi\n // ke dalam objek barang\n Angkot newAngkot = cursorToAngkot(cursor);\n \n // close cursor\n cursor.close();\n \n // mengembalikan barang baru\n return newAngkot;\n }", "@FXML\n\tpublic void createClient(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString names = txtClientNames.getText();\n\t\tString surnames = txtClientSurnames.getText();\n\t\tString id = txtClientId.getText();\n\t\tString adress = txtClientAdress.getText();\n\t\tString phone = txtClientPhone.getText();\n\t\tString observations = txtClientObservations.getText();\n\n\t\tif (!names.equals(empty) && !surnames.equals(empty) && !id.equals(empty) && !adress.equals(empty)\n\t\t\t\t&& !phone.equals(empty) && !observations.equals(empty)) {\n\t\t\tcreateClient(names, surnames, id, adress, phone, observations, 1);\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public FGlavna() {\n initComponents();\n pripremiFormu();\n }", "public void crearRetirar(){ \n \t// Es necesario crear 2 metodos que son exactamente las mismas?? (crearAbonar = crearRetirar)\n \t// TODO FACTORIZE!?\n \t\n getContentPane().setLayout(new BorderLayout());\n \n p1 = new JPanel();\n\t\tp2 = new JPanel();\n \n\t\t// Not used anymore\n\t\t//String[] a={\"Regresar\",\"Continuar\"},c={\"Cuenta\",\"Monto\"};\n \n\t\t// Layout : # row, # columns\n\t\tp1.setLayout(new GridLayout(1,2));\n\t\t\n\t\t// Create the JTextField : Cuenta\n\t\t// And add it to the panel\n tf = new JTextField(\"Cuenta\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n\n\t\t// Create the JTextField : Monto\n\t\t// And add it to the panel\n tf = new JTextField(\"Monto\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n \n // Add the panel to the Frame layout\n add(p1, BorderLayout.NORTH);\n \n // Create the button Regresar\n buttonRegresar = new JButton(\"Regresar\");\n botones.add(buttonRegresar);\n\n // Create the button Continuar\n buttonContinuar = new JButton(\"Continuar\");\n botones.add(buttonContinuar);\n \n // Layout : 1 row, 2 columns\n p2.setLayout(new GridLayout(1,2));\n \n // Add the buttons to the layout\n for(JButton x:botones){\n x.setPreferredSize(new Dimension(110,110));\n p2.add(x);\n }\n \n // Add the panel to the Frame layout\n add(p2, BorderLayout.SOUTH);\n }", "void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}", "public CrearPedidos() {\n initComponents();\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "private void initialize() {\n setFrame(new JFrame());\n getFrame().setBounds(100, 100, 310, 270);\n getFrame().setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n getFrame().getContentPane().setLayout(null);\n\n JLabel lblTitle = new JLabel(\"Crear nuevo profesor\");\n lblTitle.setFont(new Font(\"Arial\", Font.BOLD | Font.ITALIC, 13));\n lblTitle.setBounds(10, 11, 264, 16);\n getFrame().getContentPane().add(lblTitle);\n\n JLabel lblNombre = new JLabel(\"Nombre\");\n lblNombre.setBounds(10, 36, 46, 14);\n getFrame().getContentPane().add(lblNombre);\n\n textNombre = new JTextField();\n textNombre.setBounds(66, 33, 86, 20);\n getFrame().getContentPane().add(textNombre);\n textNombre.setColumns(10);\n\n JLabel lbDni = new JLabel(\"DNI\");\n lbDni.setBounds(10, 61, 46, 14);\n getFrame().getContentPane().add(lbDni);\n\n textDni = new JTextField();\n textDni.setBounds(66, 58, 86, 20);\n getFrame().getContentPane().add(textDni);\n textDni.setColumns(10);\n\n JLabel lblEdad = new JLabel(\"Edad\");\n lblEdad.setBounds(10, 86, 46, 14);\n getFrame().getContentPane().add(lblEdad);\n\n textEdad = new JTextField();\n textEdad.setBounds(66, 83, 86, 20);\n getFrame().getContentPane().add(textEdad);\n textEdad.setColumns(10);\n\n JLabel lbCurso = new JLabel(\"Curso\");\n lbCurso.setBounds(10, 111, 46, 14);\n getFrame().getContentPane().add(lbCurso);\n\n textCurso = new JTextField();\n textCurso.setBounds(66, 108, 86, 20);\n getFrame().getContentPane().add(textCurso);\n textCurso.setColumns(10);\n\n JLabel lblSueldo = new JLabel(\"Sueldo\");\n lblSueldo.setBounds(10, 136, 46, 14);\n getFrame().getContentPane().add(lblSueldo);\n\n textSueldo = new JTextField();\n textSueldo.setBounds(66, 133, 86, 20);\n getFrame().getContentPane().add(textSueldo);\n textSueldo.setColumns(10);\n\n JLabel lblNewLabel = new JLabel(\"Todos los campos son obligatorios\");\n lblNewLabel.setForeground(Color.RED);\n lblNewLabel.setFont(new Font(\"Arial\", Font.BOLD | Font.ITALIC, 11));\n lblNewLabel.setBounds(10, 161, 264, 14);\n getFrame().getContentPane().add(lblNewLabel);\n\n JButton btnCrear = new JButton(\"Crear profesor\");\n btnCrear.setForeground(Color.WHITE);\n btnCrear.setBackground(Color.DARK_GRAY);\n btnCrear.setFont(new Font(\"Arial\", Font.BOLD, 12));\n btnCrear.addActionListener(new ActionListener() {\n\n /**\n * Al presionar el boton 'btnCrear' este crea un objeto de tipo Profesor y\n * accede la informacion dentreo de cada JTextField() asignanco al objeto creado\n * estos valores obtenidos.\n *\n * @param e el evento.\n * @see #Ficheros.\n */\n public void actionPerformed(ActionEvent e) {\n Profesor p = new Profesor();\n p.setNombre(textNombre.getText().toUpperCase());\n p.setDni(textDni.getText().toUpperCase());\n p.setEdad(Integer.parseInt(textEdad.getText()));\n p.setCurso(Integer.parseInt(textCurso.getText()));\n p.setSueldo(Integer.parseInt(textSueldo.getText()));\n try {\n Ficheros.guardar(p, Ficheros.D_PROFESORES);\n } catch (IOException e2) {\n System.out.println(\"Fichero no encontrado - guardarAlumno()\");\n }\n }\n });\n btnCrear.setBounds(10, 186, 119, 33);\n getFrame().getContentPane().add(btnCrear);\n\n JButton btnMostrar = new JButton(\"Mostrar profesores\");\n btnMostrar.setForeground(Color.WHITE);\n btnMostrar.setBackground(Color.DARK_GRAY);\n btnMostrar.setFont(new Font(\"Arial\", Font.BOLD, 12));\n btnMostrar.setBounds(139, 186, 145, 33);\n btnMostrar.addActionListener(new ActionListener() {\n /**\n * Muestra los profesores almacenados en los ficheros desde Class Ficheros.\n *\n * @param e el evento.\n * @see #Ficheros.\n */\n public void actionPerformed(ActionEvent e) {\n Profesor p = null;\n System.out.println(\"---- Profesores ----\");\n Ficheros.leerFicheros(p, Ficheros.D_PROFESORES);\n }\n });\n getFrame().getContentPane().add(btnMostrar);\n }", "public InvoiceCreate() {\n initComponents();\n }", "public NewUser() {\n initComponents();\n }", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "private Button createNewGameButton() {\n Button newGameButton = new Button(Config.NEW_GAME_BUTTON);\n newGameButton.setTranslateY(10);\n newGameButton.setTranslateX(10);\n\n // TODO: move stuff like this to the CSS resources.\n DropShadow effect = new DropShadow();\n effect.setColor(Color.BLUE);\n newGameButton.setEffect(effect);\n\n return newGameButton;\n }", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public CreateAccount_GUI() {\n initComponents();\n }", "public CreateProfile() {\n initComponents();\n }", "public FiltroGirosDialog() {\n \n }", "public GUI_Crear_Funcionario() {\r\n initComponents();\r\n lbl1.setVisible(false);\r\n lbl2.setVisible(false);\r\n lbl3.setVisible(false);\r\n lbl4.setVisible(false);\r\n lbl5.setVisible(false);\r\n lbl6.setVisible(false);\r\n lbl7.setVisible(false);\r\n lbl8.setVisible(false);\r\n lbl9.setVisible(false);\r\n lbl10.setVisible(false);\r\n groupSexoBtn.add(rBtn1);\r\n groupSexoBtn.add(rBtn2);\r\n cargarImagen(jdp4,foto1);\r\n ocultarBarraTitulo();\r\n \r\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void newGame() throws IOException {\n\t\tmancalaFrame.setContentPane( new BoardGraphicsLabel() ); // bottom level board\t\r\n\t\tmancalaFrame.add( new PitsGraphicsPanel() ); // add pits jbuttons from custom layered pane\r\n\t\t\t\t\r\n\t\t// create the top layer glass pane for repainting stones and labels\r\n\t\t// glass pane allows buttons to be pushed with components on top\r\n\t\tstonePaintGlassPane = new StonePaintGlassPane( mancalaFrame.getContentPane() );\r\n\t\t\r\n\t\tmancalaFrame.setGlassPane( stonePaintGlassPane );\r\n\t\t\t\t\r\n\t\t\t\t// grid bag layout, will be used to place pit buttons in proper location\r\n\t\t\t\t// in Class PitsGraphicsPanel\r\n\t\tmancalaFrame.setLayout( new GridBagLayout() );\r\n\t\t\t\t// set true to glassPane\r\n\t\tstonePaintGlassPane.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t\t// keep frame one size so we don't have to calculate resizing\r\n\t\t\t\t// sorry for the laziness\r\n\t\tmancalaFrame.setResizable(false);\r\n\t\tmancalaFrame.pack(); // set all proper sizes to prefered size\r\n\t\tmancalaFrame.setVisible(true); // set visible\r\n\t}", "public void create_new_package(View V) {\n make_request();\r\n progressDialog.show();\r\n }", "public CrearQuedadaVista() {\n }", "public FormUtama() {\n initComponents();\n }" ]
[ "0.68670744", "0.6821384", "0.6354813", "0.6287947", "0.62331724", "0.61866987", "0.61768377", "0.61196786", "0.60811424", "0.60792106", "0.6055198", "0.604928", "0.6047301", "0.60452735", "0.6039958", "0.6020864", "0.601095", "0.59962296", "0.59752864", "0.5961012", "0.5930217", "0.5922098", "0.59186274", "0.5911964", "0.5908943", "0.59045744", "0.58943397", "0.58846664", "0.5883231", "0.5881687", "0.58754003", "0.5857613", "0.5855996", "0.5855182", "0.5850876", "0.58435404", "0.5829343", "0.5814404", "0.58124036", "0.57855415", "0.57670367", "0.57660884", "0.5763203", "0.5751264", "0.5749911", "0.57471126", "0.574377", "0.5741327", "0.57376933", "0.5736446", "0.5731752", "0.572636", "0.5722664", "0.571366", "0.57037824", "0.5698238", "0.5697041", "0.5687864", "0.5682422", "0.56789684", "0.5675186", "0.5674655", "0.56731224", "0.5671626", "0.56651795", "0.56646025", "0.56642306", "0.5663164", "0.5662414", "0.56593156", "0.56565017", "0.5647387", "0.56398827", "0.56357014", "0.5632987", "0.56319726", "0.5631724", "0.56279737", "0.56264955", "0.5624188", "0.56119037", "0.5603819", "0.5596738", "0.5594019", "0.5592642", "0.55902135", "0.55900645", "0.5589435", "0.5588858", "0.5583545", "0.5579397", "0.5578465", "0.5577902", "0.5577673", "0.5576809", "0.55742145", "0.55730087", "0.55709505", "0.5570922", "0.556738" ]
0.6109757
8
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jFileChooser1 = new javax.swing.JFileChooser(); jPanel1 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList<>(); jButton3 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Zarzadzanie Projektami"); jButton1.setText("wczytaj z pliku"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setText("demo"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane1.setViewportView(jTextArea1); jLabel1.setText("Dane Wejsciowe"); jLabel2.setText("Wyniki"); jLabel2.setToolTipText(""); jScrollPane2.setViewportView(jList1); jButton3.setText("start"); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1) .addComponent(jScrollPane2) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addComponent(jLabel2) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 695, Short.MAX_VALUE))) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1) .addComponent(jButton2) .addComponent(jButton3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(33, 33, 33) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73213893", "0.72913563", "0.72913563", "0.72913563", "0.7286415", "0.724936", "0.72132975", "0.72076875", "0.71963966", "0.7190991", "0.7184836", "0.71593595", "0.71489584", "0.709429", "0.7080468", "0.70567", "0.6987573", "0.69780385", "0.69556123", "0.69538146", "0.6945521", "0.69423586", "0.6935968", "0.69330275", "0.692813", "0.6924971", "0.69242555", "0.6911953", "0.6911683", "0.689307", "0.689293", "0.68911546", "0.68901724", "0.6888897", "0.6883029", "0.68823075", "0.68819803", "0.6878825", "0.6875638", "0.6874702", "0.68724024", "0.68601924", "0.68568707", "0.6856268", "0.6856217", "0.68552643", "0.6853839", "0.6852327", "0.6852327", "0.6843502", "0.68374175", "0.6837008", "0.6828905", "0.6828786", "0.68258685", "0.6823454", "0.6823341", "0.68164855", "0.6816273", "0.681072", "0.6810196", "0.68090945", "0.68083966", "0.68072087", "0.6802229", "0.679545", "0.6795217", "0.67920595", "0.67905307", "0.67902476", "0.6789075", "0.6787793", "0.678205", "0.6765594", "0.67655575", "0.676554", "0.6755679", "0.6755387", "0.67527455", "0.6750321", "0.6741919", "0.6739145", "0.67376417", "0.673622", "0.6733591", "0.67282665", "0.6727961", "0.6720994", "0.6715958", "0.6715172", "0.67146355", "0.67088073", "0.67068994", "0.67046213", "0.67008626", "0.67002195", "0.6699175", "0.66977036", "0.66942674", "0.6691273", "0.6689522" ]
0.0
-1
Created by biz on 2017/2/21.
public interface PlatformManagerClient { /** * 查询所有平台 * @return 平台列表 */ ResultDTO<List<Platform>> getAllPlatform(); /** * 按id查询平台 * @param platformId 平台Id * @return */ ResultDTO<Platform> getPlatformById(@NotBlank String platformId); /** * 按id查询平台 * @param appId 微信公众平台id * @return */ ResultDTO<Platform> getPlatformByAppId(@NotBlank String appId); /** * 按企业码查询平台 * @param platformCode 平台企业码 * @return */ ResultDTO<Platform> getPlatformByCode(@NotBlank(message="平台代码不可以为空") String platformCode); /** * 创建平台 * @param platform 平台信息 * @return */ ResultDTO<Boolean> createPlatform(@NotNull(message="平台类不可为空") @Valid Platform platform); /** * 更新平台 * @param platform 平台信息 * @return */ ResultDTO<Boolean> updatePlatform(@NotNull @Valid Platform platform); /** * 禁用平台 * @param platformId * @return */ ResultDTO<Boolean> disablePlatform(@NotBlank String platformId); /** * 解禁平台 * @param platformId * @return */ ResultDTO<Boolean> enablePlatform(@NotBlank String platformId); /** * 分页查询平台 * @param keyWord 企业码关键字 * @param pageNo 页码 * @param pageSize 分页大小 * @return */ ResultDTO<PageInfo<Platform>> listPlatform(String keyWord, @NotNull Integer pageNo, @NotNull Integer pageSize); /** * 获取所有平台的企业码 * @return */ ResultDTO<List<String>> listAllPlatformCodes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected boolean func_70814_o() { return true; }", "public void mo4359a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n }", "private void init() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {}", "private void strin() {\n\n\t}", "@Override\n public void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo21877s() {\n }", "public void mo12930a() {\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}" ]
[ "0.6077015", "0.5892664", "0.5892664", "0.58885366", "0.58357847", "0.5804815", "0.57988214", "0.5765829", "0.576245", "0.5739552", "0.57107204", "0.5707764", "0.5674555", "0.566618", "0.56447315", "0.5636328", "0.56222975", "0.5612298", "0.55971825", "0.55659044", "0.5546606", "0.5536558", "0.55299705", "0.5528253", "0.551735", "0.5512125", "0.5474557", "0.54741275", "0.54735833", "0.54735833", "0.54735833", "0.54735833", "0.54735833", "0.5470366", "0.5455592", "0.5446004", "0.5437649", "0.542443", "0.5404233", "0.5399787", "0.5394065", "0.53929746", "0.5389644", "0.5389254", "0.53671515", "0.53572714", "0.5355478", "0.5355074", "0.5355074", "0.5355074", "0.5354912", "0.5354254", "0.5354254", "0.53507817", "0.53507817", "0.53507817", "0.5349815", "0.5342923", "0.53375435", "0.5329685", "0.5329685", "0.5329685", "0.532802", "0.5319958", "0.53162724", "0.53162056", "0.53162056", "0.5311019", "0.53007865", "0.5294632", "0.5294632", "0.5285108", "0.52830464", "0.52830464", "0.52830464", "0.52830464", "0.52830464", "0.52830464", "0.52822095", "0.52822095", "0.52822095", "0.52822095", "0.52822095", "0.52822095", "0.52822095", "0.5277067", "0.5274247", "0.5273823", "0.5270997", "0.52681214", "0.5267685", "0.5261211", "0.52339023", "0.52331614", "0.5225783", "0.5222852", "0.52223235", "0.5217207", "0.5207032", "0.52067924", "0.52066237" ]
0.0
-1
very simple impl, not ideal one!!!
private void update(final FoldHierarchyTransaction tran) { if(task != null && !task.isFinished()) return ; task = RequestProcessor.getDefault().post(new Runnable() { public void run() { updateFolds(tran); } }, UPDATE_TIMEOUT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "abstract int pregnancy();", "private void strin() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "public abstract Object mo26777y();", "public abstract void mo70713b();", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract String mo9239aw();", "private stendhal() {\n\t}", "public abstract String mo118046b();", "public abstract void mo56925d();", "private void test() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public abstract String mo83558a(Object obj);", "private void kk12() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "void mo57277b();", "public abstract String mo41079d();", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public abstract Object mo1771a();", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "abstract void uminus();", "public abstract String mo11611b();", "public abstract void mo27385c();", "public abstract void mo30696a();", "public void method_4270() {}", "public abstract void mo27386d();", "public abstract String mo9091a();", "public abstract String mo13682d();", "abstract Function get(Object arg);", "@Override\n\tpublic void einkaufen() {\n\t}", "public abstract String mo9238av();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "abstract String mo1748c();", "@Override\n\tpublic void jugar() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public abstract String use();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract Object mo1185b();", "private void sub() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "public abstract void mo35054b();", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "protected void h() {}", "public abstract String mo24851a(String str);", "public abstract void mo42331g();", "public abstract String mo8770a();", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract String mo41086i();", "public abstract void mo2624j();", "void mo57278c();", "abstract public String named();", "public abstract int mo9754s();", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo42329d();", "public abstract String mo9752q();", "public abstract void mo957b();", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public abstract String mo10149a();", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void af(String t) {\n\n\t}", "abstract String mo1747a(String str);", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public abstract void afvuren();", "public abstract void mo3994a();", "void test1(IAllOne obj) {\n assertEquals(\"\", obj.getMaxKey());\n assertEquals(\"\", obj.getMinKey());\n obj.inc(\"a\");\n assertEquals(\"a\", obj.getMaxKey());\n assertEquals(\"a\", obj.getMinKey());\n obj.inc(\"a\");\n obj.inc(\"b\");\n obj.inc(\"b\");\n obj.inc(\"b\");\n obj.inc(\"c\");\n assertEquals(\"b\", obj.getMaxKey());\n assertEquals(\"c\", obj.getMinKey());\n obj.dec(\"b\");\n obj.inc(\"a\");\n assertEquals(\"a\", obj.getMaxKey());\n assertEquals(\"c\", obj.getMinKey());\n obj.inc(\"c\");\n obj.dec(\"b\");\n assertEquals(\"b\", obj.getMinKey());\n obj.dec(\"b\");\n assertEquals(\"c\", obj.getMinKey());\n }", "public abstract void wrapup();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}" ]
[ "0.56261426", "0.5606311", "0.55288655", "0.5525749", "0.5522291", "0.55205977", "0.54926974", "0.5466898", "0.544353", "0.5415469", "0.5407895", "0.54071707", "0.5406552", "0.5392142", "0.5378085", "0.5377853", "0.53679675", "0.5366932", "0.5366932", "0.53440535", "0.5335598", "0.5335111", "0.5331955", "0.5331865", "0.5327258", "0.5323061", "0.52984434", "0.5294714", "0.5293547", "0.5284316", "0.5282155", "0.5278983", "0.5260979", "0.5258852", "0.5252303", "0.52500737", "0.52439344", "0.52430165", "0.52424437", "0.52284276", "0.5225596", "0.52208304", "0.5217421", "0.5216202", "0.52087545", "0.5203269", "0.5203269", "0.5195156", "0.5193585", "0.51827174", "0.5181574", "0.5167077", "0.5165882", "0.5160588", "0.51572025", "0.515716", "0.51534164", "0.51522267", "0.51501125", "0.51501125", "0.5141536", "0.5138562", "0.51263547", "0.51236147", "0.51230437", "0.5121711", "0.5118045", "0.5112285", "0.51082957", "0.51051766", "0.5104681", "0.5103171", "0.50956917", "0.5084221", "0.5077381", "0.506553", "0.5056947", "0.5049438", "0.5048996", "0.504568", "0.50445044", "0.5036248", "0.50299007", "0.50287294", "0.5014585", "0.50122774", "0.5010421", "0.5010109", "0.5009449", "0.49993163", "0.4999201", "0.49972266", "0.49967238", "0.49966338", "0.4994876", "0.49868813", "0.49845806", "0.49844962", "0.4983177", "0.49826255", "0.49825132" ]
0.0
-1
deatach potential settings listeners, stop the RP.Task is runs etc...
public void release() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Stop(priority = 99)\n void stop() {\n for (List<ListenerInvocation> list : listenersMap.values()) {\n if (list != null) list.clear();\n }\n\n if (syncProcessor != null) syncProcessor.shutdownNow();\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n unbindService(mServiceConnection);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(scanDataReadyReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(refReadyReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(notifyCompleteReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(requestCalCoeffReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(requestCalMatrixReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(disconnReceiver);\n LocalBroadcastManager.getInstance(mContext).unregisterReceiver(scanConfReceiver);\n\n mHandler.removeCallbacksAndMessages(null);\n\n SettingsManager.storeBooleanPref(mContext, SettingsManager.SharedPreferencesKeys.saveOS, btn_os.isChecked());\n SettingsManager.storeBooleanPref(mContext, SettingsManager.SharedPreferencesKeys.saveSD, btn_sd.isChecked());\n SettingsManager.storeBooleanPref(mContext, SettingsManager.SharedPreferencesKeys.continuousScan, btn_continuous.isChecked());\n }", "@Override\n public void stopTask(TrcRobot.RunMode runMode)\n {\n stop();\n }", "void stopReportingTask();", "protected void stopWork() {\n mAllowedToBind = false;\n\n }", "public static void onPauseCleanUp() {\n for(PrioritizedReactiveTask task: activeTasks) {\n task.stopTask();\n }\n }", "public void stop() {\n enable = false;\n }", "public void onDisable() {\n \n \t\tprintCon(\"Stopping auto flusher\");\n \t\tgetServer().getScheduler().cancelTask(runner);\n \t\tprintCon(\"Flushing cache to database\");\n \t\tPlayerStatManager.saveCache();\n \t\tprintCon(\"Cache flushed to database\");\n \n \t\tself = null;\n \t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmyhandler.removeCallbacks(mrunnable);\n\t\tsendWifiHandler.removeCallbacks(stopRunnable);\n\t\tmHelper.StopListen();\n\t\tif (!isSendWifiStop) {\n\t\t\tstopSendWifi();\n\t\t}\n\t\tif (!isTimerCancel) {\n\t\t\tcancleTimer();\n\t\t}\n\t\tlock.release();\n\t}", "private void postRun() {\n // remove all GPIO listeners\n GpioFactory.getInstance().removeAllListeners();\n this.isRunning = false;\n IoTLogger.getInstance().info(\"Post RUN\");\n }", "private void stopStopHolder() {\n Log.d(TAG, \"Stop the stop holder!\");\n try {\n if (mStopHandler != null) {\n mStopHandler.removeCallbacksAndMessages(null);\n }\n } catch (NullPointerException e) {\n CordovaPluginLog.e(TAG, \"Error: \", e);\n }\n }", "public void stopping() {\n super.stopping();\n }", "public void onStop() {\n connectivityMonitor.unregister();\n requestTracker.pauseRequests();\n }", "void stopPumpingEvents();", "public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }", "@Override\n public void managerWillStop() {\n }", "public void stopTask() {\n if(canRunTaskThread != null)\n canRunTaskThread.set(false);\n }", "public void Stop()\r\n {\r\n super.Stop();\r\n\r\n if (getIsLocal())\r\n {\r\n // stop listening to PropertyChanged events\r\n RemoveEvents();\r\n }\r\n }", "@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }", "@Override\n protected void onDestroy() {\n stopRepTask();\n LocalBroadcastManager.getInstance(this).unregisterReceiver(DayStartedMessageRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(DayEndedMessageRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(TermEndedMessageRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(SoundAlteredRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(SharesTransactionedRec);\n LocalBroadcastManager.getInstance(this).unregisterReceiver(SpecificElementUpdate);\n super.onDestroy();\n }", "public void stopListening();", "@Override\n public void onDestroy() {\n super.onDestroy();\n handler.removeMessages(UpdateConfig.NET_MSG_GETLENTH);\n // if (mModel != null) {\n // mModel.cancelLoadData();\n // }\n if (mTask != null) {\n mTask.cancel(true);\n }\n if (mNotificationManager != null) {\n mNotificationManager.cancel(UpdateConfig.NOTIFY_DOWNLOADING_ID);\n }\n }", "public final void stopAll() {\n for (BotTaskInterface bt : TASKS) {\n LOG.info(\"Stoping BotTask {}\", bt.getName());\n bt.stop();\n }\n EXECUTOR_SERVICE.shutdown();\n }", "public void stop() {\n if (this.runningTaskId != -1) {\n plugin.getServer().getScheduler().cancelTask(this.runningTaskId);\n }\n reset(true);\n running = false;\n }", "public void stop() {\n m_enabled = false;\n }", "public synchronized void stopUpdates(){\n mHandler.removeCallbacks(mStatusChecker);\n }", "@Override\r\n public void stopAll() {\r\n Log.d(TAG, \"Number of services: \"+ taskRequesterMap.size());\r\n Iterator<Map.Entry<String, TaskRequester>> iterator = taskRequesterMap.entrySet().iterator();\r\n while (iterator.hasNext()) {\r\n Map.Entry<String, TaskRequester> item = iterator.next();\r\n\r\n String name = item.getValue().getName();\r\n String className = item.getValue().getServiceClass().getName();\r\n\r\n// remove(className);\r\n item.getValue().unBind();\r\n Log.d(TAG, \"- \"+name+\" \"+className);\r\n// taskRequesterMap.remove(className);\r\n iterator.remove();\r\n serviceClasses.remove(new TaskModel(name, className, 1));\r\n// taskRequesterMap.remove(new TaskModel(name, className, 1));\r\n }\r\n }", "private void stopDiscovery() {\n if (mDisposable != null) {\n mDisposable.dispose();\n }\n }", "@Override\n protected void onPause() {\n super.onPause();\n stopAllListeners();\n }", "public void shutdown() {\n this.dontStop = false;\n }", "@Override\n\tpublic void stop() {\n\t\tstopTask();\n\t\tmPlaybillPath = null;\n\t\tmResPlaybill = null;\n\t}", "public void stopListeningFoConnection() {\n /* If it's running stop synchronization. */\n stopAllWorkerThreads();\n\n }", "public void stopListening() \n {\n keepListening = false;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Turning off all Sprinklers for the Schedule \");\n\t\t\t\tif(SprinklerGroups!=null && SprinklerGroups.size()>0){\n\t\t\t\t\tfor(SprinklerGroup g:SprinklerGroups){\n\t\t\t\t\t\tc.getAllSprinklersForGroup(g).forEach(new Consumer<Sprinkler>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void accept(Sprinkler t) {\n\t\t\t\t\t\t\t\tt.turnOFF(Schedule.this.getListener());\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(SprinklerIDs!=null && SprinklerIDs.size()>0){\n\t\t\t\t\tSprinklerIDs.forEach(new Consumer<Integer>() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void accept(Integer t) {\n\t\t\t\t\t\t\tc.getSprinkler(t).turnOFF(Schedule.this.getListener());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\n\t\tif (D)\n\t\t\tLog.e(TAG, \"-- ON STOP --\");\n\n\t\t// don't do anything bluetooth if debugging the user interface\n\t\tif (BTconnect)\n\t\t\tmyBT.cancel();\n\n\t\t// kill bt pitter and bump timer\n\t\tkillHandlers();\n\n\t\t// unregister the sensor listener\n\t\tmSensorManager.unregisterListener(mSensorListener);\n\n\t\t// shutoff bluetooth\n\t\tif (turnOffBluetoothShutdown) {\n\t\t\tmBluetoothAdapter.disable();\n\t\t}\n\t\t\n\t\t// save the checkbox states for the next run\n\t\t// We need an Editor object to make preference changes.\n\t\t// All objects are from android.context.Context\n\t\tSharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putBoolean(\"ScreenOnOffEnable\", ScreenOnOffCheckBox.isChecked());\n\t\teditor.putBoolean(\"RetryConnEnable\", RetryConnBox.isChecked());\n\t\teditor.putString(\"MacAddress\", MAC_ADDRESS);\n\t\t// Commit the edits!\n\t\teditor.commit();\n\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttry {\n\t\t\tunregisterReceiver(getServerSetting);\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "private void stopAllListeners() {\n if (unitReg != null && unitListener != null) {\n unitReg.remove();\n }\n }", "public void stopAcceptingLifecycleEvents() {\n adapter.stop();\n LOGGER.info(\"stopped ETL protocol adapter \" + adapter.getClass() + \"'\");\n }", "public void stopTask()\n {\n viewer.stopViewer(); \n }", "public void deinitPreference() {\n mContext.unregisterReceiver(mIntentReceiver);\n }", "private synchronized void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tunregisterReceiver( mConnectivityReceiver );\n\t\t}\n\t\tcatch ( IllegalArgumentException e )\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t} // try/catch\n\n\t}", "public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }", "@Override\n public void onDestroy() {\n unregisterReceiver(mNoisyAudioStreamReceiver);\n\n // Cancel our Notification\n mNotificationManager.cancel(NotificationTarget.NOTIFICATION_ID);\n\n // Set preference to indication not playing.\n PreferenceManager.getDefaultSharedPreferences(getApplicationContext())\n .edit()\n .putBoolean(MainActivity.PREF_IS_PLAYING, false)\n .commit();\n\n super.onDestroy();\n }", "private void stopPulling() {\n\n // un register this task\n eventDispatcher.unRegister(this);\n\n // tell the container to send response\n asyncContext.complete();\n\n // cancel data changed listening\n if (pullingTimeoutFuture != null){\n pullingTimeoutFuture.cancel(false);\n }\n }", "@Override\n public void onStop() {\n disableAsyncTask();\n super.onStop();\n Log.d(TAG, \"onStop: \");\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunregisterReceiver(mDetailRev);\n\t\tif (PubDefine.g_Connect_Mode == PubDefine.SmartPlug_Connect_Mode.WiFi) {\n\t\t\tmTcpSocketThread.setRunning(false);\n\t\t}\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n RobotLog.vv(TAG, \"onStop()\");\n\n // We *do* shutdown the robot even when we go into configuration editing\n controllerService.shutdownRobot();\n }", "@Override\r\n\tpublic void stopped() {\r\n\r\n\t\t// Stop timers\r\n\t\tsuper.stopped();\r\n\r\n\t\t// Disconnect\r\n\t\tdisconnect();\r\n\t}", "public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }", "private void stop() {\n\t\t/*\n if (this.status != PedoListener.STOPPED) {\n this.sensorManager.unregisterListener(this);\n }\n this.setStatus(PedoListener.STOPPED);\n\t\t*/\t\t\t\t\n\t\t\t\n\t\tif (status != PedoListener.STOPPED) {\n\t\t uninitSensor();\n\t\t}\n\n\t\tDatabase db = Database.getInstance(getActivity());\n\t\tdb.setConfig(\"status_service\", \"stop\");\n\t\t//db.clear(); // delete all datas on table\n\t\tdb.close();\t\t\n\n\t\tgetActivity().stopService(new Intent(getActivity(), StepsService.class));\n\t\tstatus = PedoListener.STOPPED;\n\n\t\tcallbackContext.success();\n }", "public void shutdown()\n {\n log.info(\"Stop accepting new events\");\n\n // Disable realtime hook\n forwardDispatcher.stop();\n\n // Disable writer to disk\n spoolDispatcher.shutdown();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tif(AccessibilityServiceUtils.isAccessibilitySettingsOn(this)){\n\t\t\tstopServer();\n\t\t}\n\t\tunregisterReceiver(mServiceReceiver);\n\t\tsuper.onDestroy();\n\t}", "@Override\n protected void appStop() {\n }", "void unsetStaStart();", "@Override\n\tpublic void turnOff() {\n\n\t}", "private void end() {\r\n isRunning = false;\r\n if( mineField.exploder.isRunning() ) mineField.exploder.stop();\r\n if( settingsOpen ) settingsFrame.dispose();\r\n }", "public static void resetScanningValuesAfterSettingChanged() {\n\t\tif (statusThread != null)\n\t\t\tstatusThread.interrupt();\n\t\tif (productAddThread != null)\n\t\t\tproductAddThread.interrupt();\n\t\tif (productImageAddThread != null)\n\t\t\tproductImageAddThread.interrupt();\n\t\tif (productDisplayThread != null)\n\t\t\tproductDisplayThread.interrupt();\n\t\tif (bThread != null)\n\t\t\tbThread.interrupt();\n\t\tif(handler!=null)\n\t\t\thandler.quitSynchronously();\n\t\tsacannedItemListForArticle = new ArrayList<String>();\n\t\tsacannedItemListForImage = new ArrayList<String>();\n\t\tdisplayArticleList = new ArrayList<ArticleInq>();\n\t\tbasketArticleList = new ArrayList<ArticleInq>();\n\t\tisAnyProductDisplaying = false;\t\n\t}", "public void stopTask() {\r\n\t\tquit = true;\r\n\t}", "private void stop() {\n if (pollTimer != null) {\n pollTimer.cancel();\n pollTimer = null;\n }\n }", "@Override\n public void stop() {\n\n for (FermatEventListener fermatEventListener : listenersAdded) {\n eventManager.removeListener(fermatEventListener);\n }\n\n listenersAdded.clear();\n }", "private void cancelTasks() {\n\t\ttimer.cancel();\n\t\ttimer.purge();\n\t}", "public void cleanUp() { listener = null; }", "public void stopListener(){\r\n\t\tcontinueExecuting = false;\r\n\t\tglobalConsoleListener.interrupt();\r\n\t}", "@Override\n protected void onPause() {\n super.onPause();\n unregisterReceiver(mReceiver);\n mManager.clearLocalServices(mChannel, null);\n }", "private void processCallStateOffhook () {\n\t\t\n\t\ttry {\n\t\t\tif (QSLog.DEBUG_D)QSLog.d(CLASS_NAME, \"OFFHOOK\");\t\n\t\t\t\n\t\t\tConfigAppValues.processRingCall = false;\n\t\t\t\n\t\t\tif (QSToast.DEBUG) QSToast.d(\n \t\tConfigAppValues.getContext().getApplicationContext(),\n \t\t\"OFFHOOK!!!!!!!!\",\n \t\tToast.LENGTH_SHORT);\t\n\t\t\t\n\t\t}catch (Exception e) {\n\t\t\tif (QSLog.DEBUG_E)QSLog.e(CLASS_NAME, ExceptionUtils.exceptionTraceToString(\n\t\t\t\t\te.toString(), \n\t\t\t\t\te.getStackTrace()));\n\t\t}\n\t}", "@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t\t try\n {\n context.unregisterReceiver(receiver);\n }\n catch (Exception e)\n {\n\n }\n\n\t\tif(timer!=null)\n\t\t{\n\n\t\t\ttimer.cancel();\n\t\t}\n\t}", "@Override\n public void run()\n {\n if (mEngagementService == null || !mUnbindScheduled)\n return;\n\n /* Unbind from Engagement service */\n mContext.unbindService(mServiceConnection);\n\n /* Store unbound state */\n mEngagementService = null;\n\n /* Task done */\n mUnbindScheduled = false;\n }", "public void shutdown() {\n _udpServer.stop();\n _registrationTimer.cancel();\n _registrationTimer.purge();\n }", "public void stopPollingThread() {\n pool.shutdown();\n }", "public void stopListening() {\n\t\tkeepListening = false;\n\t}", "default void onDisable() {}", "public void stop(){\n running = false;\n }", "public void stop(){\r\n\t\tmyTask.cancel();\r\n\t\ttimer.cancel();\r\n\t}", "protected void stopTimeTask() {\n\t\tif (chatAsyncTask!=null) {\n\t\t\tchatAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (liveAsyncTask!=null) {\n\t\t\tliveAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (timerTask!=null) {\n\t\t\ttimerTask.cancel();\n\t\t\ttimerTask = null;\n\t\t}\n\t\t\n\t\tif (timer!=null) {\n\t\t\ttimer.cancel();\n\t\t\ttimer = null;\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tSystem.out.println(\"destroy\");\n\t\t unregisterReceiver(KER);\n\t\t if(PosccalmRunnable!=null)\n\t\t PosccalmRunnable.destroy();\n\t}", "public void shutdown() {\n shutdown = true;\n //\n // Cancel our event listener (this will cause the event wait to complete)\n //\n try {\n List<String> eventList = new ArrayList<>();\n Nxt.eventRegister(eventList, eventToken, false, true);\n } catch (IOException exc) {\n Main.log.error(\"Unable to cancel event listener\", exc);\n Main.logException(\"Unable to cancel event listener\", exc);\n }\n }", "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\n\t\tif(taskFetcAllComments!=null&&taskFetcAllComments.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskFetcAllComments.cancel(true);\n\t\t}\n\n\t\tif(taskFetchNode!=null&&taskFetchNode.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskFetchNode.cancel(true);\n\t\t}\n\n\t\tif(taskPostComment!=null&&taskPostComment.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskPostComment.cancel(true);\n\t\t}\n\n\t\tif(taskPostImage!=null&&taskPostImage.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskPostImage.cancel(true);\n\t\t}\n\t}", "private static void stopCleanUp() {\n\n if (isEventTrackerRunning && timer != null) {\n timer.cancel();\n timer.purge();\n debugLogger.info(\"Timer stopped: {}\", new Date());\n } else {\n debugLogger.info(\"Timer was already stopped : {}\", new Date());\n\n }\n isEventTrackerRunning = false;\n\n }", "public void stopWork() {\n stopWork = true;\n }", "@Override\n public void stop() {}", "@Override\n protected void onDestroy() {\n handler.removeCallbacks(run);\n super.onDestroy();\n }", "@Override\n public void onTaskRemoved(Intent intent) {\n stopSelf();\n }", "public void clearTaskListeners(){\n if (listeners == null) return;\n listeners.clear();\n }", "public void stopping();", "@Override\n public void run() {\n Log.d(\"Final\", devices.toString());\n client.stopDiscovery();\n }", "private void stop(){\n\t\tisstop = true;\n\t\tif(ddaemon!=null){\n\t\t\tddaemon.setStop(true);\n\t\t\tddaemon = null;\n\t\t}\n\t\tif(ndaemon!=null){\n\t\t\tndaemon.setStop(true);\n\t\t\tndaemon = null;\n\t\t}\n\t\t// si on ne doit pas garder les dicoms on les supprime\n\t\tif(DicomWorkerClient.DICOMDIR!=null){\n\t\t\ttry {\n\t\t\t\tFileUtils.deleteDirectory(DicomWorkerClient.DICOMDIR.toFile());\n\t\t\t} catch (IOException e) {\n\t\t\t\tWindowManager.mwLogger.log(Level.SEVERE, \"Directory deletion exception\",e);\n\t\t\t}\n\t\t\tDicomWorkerClient.DICOMDIR=null;\n\t\t}\n\t\tif(statusThread!=null){\n\t\t\tsetLock(false);\n\t\t\tgetLblStatus().setText(\"\");\n\t\t\tprogressPanel.setVisible(false);\n\t\t\tstatusThread.stop();\n\t\t\tstatusThread = null;\n\t\t}\n\t}", "private void cleanup() {\n\t\tif (myListener!=null)\n\t\t\t_prb.removeListener(myListener);\n\t}", "public void stop() {\r\n running = false;\r\n }", "public void stopNotifications() {\n stopForeground(true);\n stopSelf();\n }", "@Override\n protected void onStop() {\n super.onStop();\n sensorManager.unregisterListener(this);\n }", "private void stop()\n {\n if(running)\n {\n scheduledExecutorService.shutdownNow();\n running = false;\n }\n }", "@SuppressWarnings(\"deprecation\")\r\n\t@Override\r\n\tprotected void onStop()\r\n\t{\r\n\t}", "@Override\r\n public void onDestroy() {\n\t if (accountChangedReceiver != null) {\r\n\t try {\r\n\t \tunregisterReceiver(accountChangedReceiver);\r\n\t } catch (IllegalArgumentException e) {\r\n\t \t// Nothing to do\r\n\t }\r\n\t }\r\n\r\n // Stop the core\r\n Thread t = new Thread() {\r\n /**\r\n * Processing\r\n */\r\n public void run() {\r\n stopCore();\r\n }\r\n };\r\n t.start();\r\n }", "protected void stopAll() {\n\t\tif (this.udpServer!=null)\n\t\t\tthis.udpServer.interrupt();\n\t\tif (this.connectionServer!=null)\n\t\t\tthis.connectionServer.interrupt();\n\t\tthis.connectionServer=null; // supprime le TCPServer et les Sockets associés\n\t\tthis.udpServer=null; // supprime l'UDPServer et les Sockets associés\n\t\tif (this.agent.getUserStatusManager()!=null)\n\t\t\tfor (String u : this.agent.getUserStatusManager().getActiveUsers())\n\t\t\t\tthis.removeSocket(u);; // interrompt tous les UserSockets\n\t\tthis.mapSockets.clear();\n\t}", "public void stopRinging();", "public void stop(BundleContext context) throws Exception {\n super.stop(context);\n ivyCpcSerializer = null;\n ivyAttachmentManager = null;\n resourceBundle = null;\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n workspace.removeSaveParticipant(ID);\n colorManager = null;\n ivyMarkerManager = null;\n ivyResolveJob = null;\n retrieveSetupManager = null;\n workspace.removeResourceChangeListener(workspaceListener);\n workspaceListener = null;\n workspace.removeResourceChangeListener(ivyFileListener);\n ivyFileListener = null;\n\n getPreferenceStore().removePropertyChangeListener(propertyListener);\n propertyListener = null;\n\n if (console != null) {\n console.destroy();\n }\n plugin = null;\n }", "private SleeperTask()\r\n\t{\r\n\t\ttimer = new Timer();\r\n\t\tprovider = null;\r\n\t\taction = \"\";\r\n\t\tverbose = false;\r\n\t\tsetRepeat(5);\r\n\t}", "@Override\n\tpublic int exec_task (PendingTask task) {\n\t\treturn exec_cleanup_pdl_stop (task);\n\t}", "@Override\n protected void onStop() {\n }", "void stopAll();", "public void cleanup() {\n endtracking();\n\n //sends data to UI\n MainActivity.trackingservicerunning = false;\n MainActivity.servicestopped();\n\n //stops\n stopSelf();\n }" ]
[ "0.61668885", "0.6156589", "0.6130548", "0.6126883", "0.6111145", "0.60758704", "0.6023314", "0.59632653", "0.5947926", "0.5942305", "0.5933293", "0.59061897", "0.5891582", "0.58898747", "0.58870625", "0.58836067", "0.58833814", "0.5867744", "0.58676344", "0.58668566", "0.5857411", "0.58311665", "0.58279043", "0.58132833", "0.57958406", "0.57940894", "0.5790018", "0.57883084", "0.5777315", "0.5776243", "0.5775974", "0.57752496", "0.5771097", "0.5768493", "0.5762727", "0.5724906", "0.57241917", "0.5719846", "0.5718457", "0.57146233", "0.5714419", "0.57083154", "0.5707577", "0.5704911", "0.56963706", "0.56952196", "0.5693342", "0.5692981", "0.568826", "0.56830764", "0.5682793", "0.5679831", "0.5668572", "0.56640875", "0.5657546", "0.56562525", "0.5652026", "0.5650816", "0.56462705", "0.5640675", "0.5637452", "0.5628529", "0.562755", "0.5625496", "0.56207085", "0.5618867", "0.5616737", "0.5611789", "0.56039876", "0.5603727", "0.5601871", "0.55990577", "0.55974656", "0.5592801", "0.55901545", "0.5588019", "0.5586174", "0.5579533", "0.55785036", "0.5577383", "0.5574466", "0.55719364", "0.5569558", "0.5569094", "0.55673414", "0.556316", "0.5560567", "0.55588484", "0.55555016", "0.5555119", "0.55548716", "0.5551856", "0.55518454", "0.5549603", "0.5546303", "0.5546269", "0.55426717", "0.5541376", "0.55390674", "0.5537351", "0.55366915" ]
0.0
-1
do nothing the updates are catched in insertUpdate and removeUpdate methods
public void changedUpdate(DocumentEvent evt, FoldHierarchyTransaction transaction) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performAdditionalUpdates() {\n\t\t// Default: do nothing - subclasses should override if needed\n\t}", "@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}", "public void update(){\n \t//NOOP\n }", "public void prepareUpdateAll() {\n setCallFromStatement();// Will build an SQLUpdateAllStatement\n clearStatement();// The statement is no longer require so can be released.\n super.prepareUpdateAll();\n }", "@Override\n\tpublic boolean update(String sql) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void uniqueUpdate() {\n\r\n\t}", "@Override\r\n\tpublic boolean doUpdate(Action vo) throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 수정을 하다.\");\n\t}", "public void fixupDatabase() {\n long count = 0;\n count = countBySearch(HierarchyNodeMetaData.class, new Search(\"isDisabled\",\"\", Restriction.NULL) );\n if (count > 0) {\n int counter = 0;\n counter += getHibernateTemplate().bulkUpdate(\"update HierarchyNodeMetaData nm set nm.isDisabled = false where nm.isDisabled is null\");\n log.info(\"Updated \" + counter + \" HierarchyNodeMetaData.isDisabled fields from null to boolean false\");\n }\n }", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "public void clearUpadted() {\n this.updated = false;\n }", "public void attemptToUpdate();", "@Override\r\n\t\t\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}", "boolean needUpdate();", "public void willbeUpdated() {\n\t\t\n\t}", "@Override\n public boolean canUpdate() { return false; }", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "@Override\n protected Response doUpdate(Long id, JSONObject data) {\n return null;\n }", "private void updates() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Update update: updates) {\n \tupdate.init();\n }\n }", "@Override\n\tpublic Transaction update(Transaction transaction) {\n\t\treturn null;\n\t}", "private void updateDB() {\n }", "@Override\n\tpublic boolean update(Document obj) {\n\t\treturn false;\n\t}", "@Override\n public String updateStatement() throws Exception {\n return null;\n }", "@Override\n public void insertUpdate(DocumentEvent e) {\n verifierSaisie();\n }", "@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}", "@Override\n public boolean update(Revue objet) {\n return false;\n }", "protected abstract boolean supportsForUpdate();", "@Override\n\tpublic String updateStatement() throws Exception {\n\t\treturn null;\n\t}", "public void executeUpdate();", "@Override\r\n\t\t\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}", "public void disableUpdate() {\n\t\tupdate = false;\n\t}", "@Override\n public void syncUserData() {\n\n List<User> users = userRepository.getUserList();\n List<LdapUser> ldapUsers = getAllUsers();\n Set<Integer> listUserIdRemoveAM = new HashSet<>();\n\n //check update or delete \n for (User user : users) {\n boolean isDeleted = true;\n for (LdapUser ldapUser : ldapUsers) {\n if (user.getUserID().equals(ldapUser.getUserID())) {\n // is updateours\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n \n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n checkChangeDepartment(user, department, listUserIdRemoveAM);\n \n userRepository.editUser(user);\n \n isDeleted = false;\n break;\n }\n }\n if (isDeleted) {\n user.setIsDeleted((byte) 1);\n user.setActive((byte) 0);\n userRepository.editUser(user);\n }\n }\n\n //check new user\n for (LdapUser ldapUser : ldapUsers) {\n boolean isNew = true;\n for(User user : users){\n if(ldapUser.getUserID().equals(user.getUserID())){\n isNew = false;\n break;\n }\n }\n if(isNew){\n logger.debug(\"Is new User userID = \"+ldapUser.getUserID());\n User user = new User();\n user.setUserID(ldapUser.getUserID());\n user.setStaffCode(ldapUser.getUserID());\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setCreatedAt(Utils.getCurrentTime());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setActive((byte) 1);\n user.setIsDeleted((byte) 0);\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n user.setRoleId(4);\n user.setApprovalManagerId(0);;\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n\n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n user.setDepartmentId(department == null ? 0 : department.getId());\n \n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n \n userRepository.addUser(user);\n logger.debug(\"Is new User id = \"+user.getId());\n }\n }\n \n //Remove AprovalManager out User\n for(Integer userId : listUserIdRemoveAM){\n if(userId == null) continue;\n User userRemoveAMId = userRepository.getUserById(userId);\n userRemoveAMId.setApprovalManagerId(0);\n userRepository.editUser(userRemoveAMId);\n }\n }", "@Override\n\tpublic int updateByPrimaryKey(Checkingin record) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void insertUpdate(DocumentEvent de) {\n\n\t}", "@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}", "@Override\n\tprotected void doUpdate(Session session) {\n\n\t}", "@Override\n\tpublic boolean update(ClubInternalTransaction transaction) {\n\t\treturn false;\n\t}", "void executeUpdate();", "void updateIfNeeded()\n throws Exception;", "@Override\n\tpublic void preUpdate() {\n\n\t}", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "public void singleUpdate() {\n\t\ttry {\n\t\t\tthis.updateBy = CacheUtils.getUser().username;\n\t\t} catch (Exception e) {\n\t\t\tif (! getClass().equals(GlobalCurrencyRate.class)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.updateBy = \"super\";\n\t\t}\n\t\tthis.workspace = CacheUtils.getWorkspaceId();\n\t\tthis.updateAt = new Date();\n\n\t\tif (insertBy == null) insertBy = updateBy;\n\t\tif (insertAt == null) insertAt = updateAt;\n\n\t\tsuper.update();\n\t\tCacheUtils.cleanAll(this.getClass(), getAuditRight());\n\t}", "@Override\r\n\tpublic Integer updateByPrimaryKeySelective(Wt_collection record) {\n\t\treturn 0;\r\n\t}", "public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel = new LazyBookDataModel();\r\n\t}", "public void update(){}", "public void update(){}", "@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}", "@Override\n\tpublic Boolean updateDocument(Document document) {\n\t\treturn null;\n\t}", "public void update(Object empty) {\n\t\tthis.rsDAO.update(empty) ;\n\t}", "@Override\n\t/**\n\t * Actualizo un empleado.\n\t */\n\tpublic boolean update(Object c) {\n\t\treturn false;\n\t}", "@Override\n\tpublic User update(User u) {\n\t\tSystem.out.println(\"OracleDao is update\");\n\t\treturn null;\n\t}", "@Test\n public void updateUserCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertFalse(userDAO.updateUser(new User(\"notdummy\", \"dummyUPDATED\", 2)));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@Override\r\n\tpublic void operations() {\n\t\tSystem.out.println(\"update self!\"); \r\n notifyObservers(); \r\n\r\n\t}", "@Override\n protected void updateEliminations() {\n\n }", "public void resetModification()\n {\n _modifiedSinceSave = false;\n }", "@Override\n\tpublic void updateIfNeeded() {\n\t\tif(needToUpdate){\n\t\t\tinit();\n\t\t\tneedToUpdate = false;\n\t\t}\n\t}", "@Override\n\tprotected List<Message> validateUpdate(SecUser entity) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Employee update(Employee emp) {\n\t\treturn null;\n\t}", "private void updateAll() {\n updateAction();\n updateQueryViews();\n }", "public void updateNonDynamicFields() {\n\n\t}", "@PreUpdate\r\n public void preUpdate() {\r\n\r\n }", "@Override\n\tpublic boolean doUpdate(Orders vo) throws Exception\n\t{\n\t\treturn false; \n\t}", "@Override\n\t\tpublic boolean update(AccountTransaction t) {\n\t\t\treturn false;\n\t\t}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "@Override\r\n\tpublic void validateUpdate() throws Exception {\n\r\n\t}", "@Override\n\t\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}", "public void makeUpdate()\n {\n this.mustUpdate = true;\n }", "@Override\n public void updateDatabase() {\n }", "void loadWeather() {\n\n // existing station's weather records are never updated.\n // why not?????\n\n// if (!\"\".equals(stationId) && !stationIgnore) {\n if (!stationExists && !weather.isNullRecord()) {\n\n if (!weatherIsLoaded) {\n\n // is there a weather record?\n// int count = weather.getRecCnt(\n// MrnWeather.STATION_ID + \"=\" + stationId);\n\n// if (count == 0) {\n\n // insert weather record\n weather.setStationId(stationId);\n if (dbg3) System.out.println(\"<br>loadWeather: put weather = \" + weather);\n try {\n weather.put();\n } catch(Exception e) {\n System.err.println(\"loadWeather: put weather = \" + weather);\n System.err.println(\"loadWeather: put sql = \" + weather.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n weatherCount++;\n\n// } else {\n//\n// // update weather record\n// MrnWeather whereWeather = new MrnWeather(stationId);\n// whereWeather.upd(weather);\n//\n// } // if (weatherRecordCount == 0)\n//\n weatherIsLoaded = true;\n } // if (!weather.isNullRecord())\n\n } // if (!stationExists && !weather.isNullRecord())\n// } // if (!\"\".equals(stationId) && !stationIgnore)\n\n weather = new MrnWeather();\n\n }", "@Override\r\n\tpublic int do_update(DTO dto) {\n\t\treturn 0;\r\n\t}", "boolean hasUpdate();", "boolean hasUpdate();", "@Override\r\n\tpublic Integer updateByPrimaryKey(Wt_collection record) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic boolean supportsUpdate() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update(Message entity) throws SQLException {\n\t\treturn false;\n\t}", "Update createUpdate();", "@Test(expectedExceptions = DataAccessException.class)\r\n public void testUpdateNull() {\r\n recordDao.update(null);\r\n }", "@Override\n\tpublic boolean doUpdate(SysUser b) throws Exception {\n\t\treturn false;\n\t}", "public void prepareUpdateObject() {\n // Require modify row to prepare.\n if (getModifyRow() == null) {\n return;\n }\n\n if (hasMultipleStatements()) {\n for (Enumeration statementEnum = getSQLStatements().elements();\n statementEnum.hasMoreElements();) {\n ((SQLModifyStatement)statementEnum.nextElement()).setModifyRow(getModifyRow());\n }\n } else if (getSQLStatement() != null) {\n ((SQLModifyStatement)getSQLStatement()).setModifyRow(getModifyRow());\n }\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareUpdateObject();\n }", "synchronized private void flushPendingUpdates() throws SailException {\n\t\tif (!isActiveOperation()\n\t\t\t\t|| isActive() && !getTransactionIsolation().isCompatibleWith(IsolationLevels.SNAPSHOT_READ)) {\n\t\t\tflush();\n\t\t\tpendingAdds = false;\n\t\t\tpendingRemovals = false;\n\t\t}\n\t}", "@Override\n\tpublic User update(User t) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@Override\n\tpublic int updateByPrimaryKeySelective(Permis record) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic boolean update(Etape obj) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic int update() throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\n public void clearRowsWithChanges() {\n }", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "public void cleanupUpdate();", "@Override\n\tpublic int updateByPrimaryKey(Cell record) {\n\t\treturn 0;\n\t}", "protected void onUpdate() {\r\n\r\n\t}", "public void markEverythingDirty() {\n fullUpdate = true;\n }", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}" ]
[ "0.67148215", "0.6671319", "0.6530714", "0.649261", "0.64674675", "0.64576006", "0.63771194", "0.6369539", "0.62958115", "0.6271002", "0.6267365", "0.6267365", "0.6267365", "0.6256853", "0.61623967", "0.6156754", "0.61229753", "0.61160547", "0.6088842", "0.6086631", "0.60831624", "0.60812235", "0.60741794", "0.6047312", "0.60455465", "0.6034946", "0.6034135", "0.6030541", "0.60275316", "0.6004028", "0.5985896", "0.5972786", "0.59692824", "0.5953751", "0.59526503", "0.59512556", "0.5929495", "0.5925096", "0.5924678", "0.59219915", "0.5918229", "0.59144694", "0.5908428", "0.5906131", "0.5901103", "0.5900352", "0.5899663", "0.5895788", "0.5895788", "0.5890028", "0.58854526", "0.5882718", "0.5876974", "0.58713484", "0.5867203", "0.5864029", "0.58633417", "0.5857232", "0.58506656", "0.58452356", "0.5844377", "0.58396053", "0.58368725", "0.5834537", "0.58336735", "0.58334255", "0.5825597", "0.5815713", "0.58147246", "0.5800392", "0.5798689", "0.5797378", "0.57951033", "0.5794202", "0.5794202", "0.5782622", "0.5781818", "0.57639146", "0.5760787", "0.57586586", "0.5756495", "0.5743433", "0.5739345", "0.57328933", "0.573287", "0.57246673", "0.57230794", "0.57230794", "0.57164663", "0.5714592", "0.5712155", "0.57091016", "0.57091016", "0.57091016", "0.57091016", "0.57091016", "0.5698754", "0.5698382", "0.5689987", "0.5689817", "0.56884366" ]
0.0
-1
The heart of this class. This method parses the manifest and based on syntax parser information creates appropriate folds.
private synchronized void updateFolds(final FoldHierarchyTransaction tran) { final FoldHierarchy fh = getOperation().getHierarchy(); final BaseDocument doc = (BaseDocument)getOperation().getHierarchy().getComponent().getDocument(); try { //parse document and create an array of folds List/*<FoldInfo>*/ generated = generateFolds2(doc); logger.fine("generated " + generated.size()); //get existing folds List existingFolds = FoldUtilities.findRecursive(fh.getRootFold()); Iterator itr = existingFolds.iterator(); final ArrayList newborns = new ArrayList(generated.size() / 2); final ArrayList/*<Fold>*/ zombies = new ArrayList(generated.size() / 2); //delete unexisting while(itr.hasNext()) { Fold f = (Fold)itr.next(); if(!generated.contains(new FoldInfo(f.getStartOffset(), f.getEndOffset(), -1, ""))) { //delete this one logger.fine("adding " + f + " to zombies"); zombies.add(f); } } //and create new ones itr = generated.iterator(); while(itr.hasNext()) { FoldInfo fi = (FoldInfo)itr.next(); Iterator existingItr = existingFolds.iterator(); boolean add = true; while(existingItr.hasNext()) { Fold f = (Fold)existingItr.next(); if(f.getStartOffset() == fi.startOffset && f.getEndOffset() == fi.endOffset) { add = false; } } if(add) { newborns.add(fi); logger.fine("adding " + fi + " to newborns"); } } //run folds update in event dispatching thread Runnable updateTask = new Runnable() { public void run() { //lock the document for changes doc.readLock(); try { //lock the hierarchy fh.lock(); try { try { //remove outdated folds Iterator i = zombies.iterator(); while(i.hasNext()) { Fold f = (Fold)i.next(); getOperation().removeFromHierarchy(f, tran); } //add new folds Iterator newFolds = newborns.iterator(); while(newFolds.hasNext()) { FoldInfo f = (FoldInfo)newFolds.next(); getOperation().addToHierarchy(GROUP, f.label, false, f.startOffset , f.endOffset , 0, 0, null, tran); } }catch(BadLocationException ble) { //when the document is closing the hierarchy returns different empty document, grrrr ErrorManager.getDefault().notify(ble); } // }finally { // tran.commit(); // } } finally { fh.unlock(); } } finally { doc.readUnlock(); } } }; if(SwingUtilities.isEventDispatchThread()) { updateTask.run(); } else { SwingUtilities.invokeAndWait(updateTask); } }catch(BadLocationException e) { ErrorManager.getDefault().notify(e); }catch(InterruptedException ie) { ; }catch(InvocationTargetException ite) { ErrorManager.getDefault().notify(ite); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseConfig() {\n try {\n synonymAnalyzers = new HashMap<>();\n\n Object xmlSynonymAnalyzers = args.get(\"synonymAnalyzers\");\n\n if (xmlSynonymAnalyzers != null && xmlSynonymAnalyzers instanceof NamedList) {\n NamedList<?> synonymAnalyzersList = (NamedList<?>) xmlSynonymAnalyzers;\n for (Entry<String, ?> entry : synonymAnalyzersList) {\n String analyzerName = entry.getKey();\n if (!(entry.getValue() instanceof NamedList)) {\n continue;\n }\n NamedList<?> analyzerAsNamedList = (NamedList<?>) entry.getValue();\n\n TokenizerFactory tokenizerFactory = null;\n TokenFilterFactory filterFactory;\n List<TokenFilterFactory> filterFactories = new LinkedList<>();\n\n for (Entry<String, ?> analyzerEntry : analyzerAsNamedList) {\n String key = analyzerEntry.getKey();\n if (!(entry.getValue() instanceof NamedList)) {\n continue;\n }\n Map<String, String> params = convertNamedListToMap((NamedList<?>)analyzerEntry.getValue());\n\n String className = params.get(\"class\");\n if (className == null) {\n continue;\n }\n\n params.put(\"luceneMatchVersion\", luceneMatchVersion.toString());\n\n if (key.equals(\"tokenizer\")) {\n try {\n tokenizerFactory = TokenizerFactory.forName(className, params);\n } catch (IllegalArgumentException iae) {\n if (!className.contains(\".\")) {\n iae.printStackTrace();\n }\n // Now try by classname instead of SPI keyword\n tokenizerFactory = loader.newInstance(className, TokenizerFactory.class, new String[]{}, new Class[] { Map.class }, new Object[] { params });\n }\n if (tokenizerFactory instanceof ResourceLoaderAware) {\n ((ResourceLoaderAware)tokenizerFactory).inform(loader);\n }\n } else if (key.equals(\"filter\")) {\n try {\n filterFactory = TokenFilterFactory.forName(className, params);\n } catch (IllegalArgumentException iae) {\n if (!className.contains(\".\")) {\n iae.printStackTrace();\n }\n // Now try by classname instead of SPI keyword\n filterFactory = loader.newInstance(className, TokenFilterFactory.class, new String[]{}, new Class[] { Map.class }, new Object[] { params });\n }\n if (filterFactory instanceof ResourceLoaderAware) {\n ((ResourceLoaderAware)filterFactory).inform(loader);\n }\n filterFactories.add(filterFactory);\n }\n }\n if (tokenizerFactory == null) {\n throw new SolrException(ErrorCode.SERVER_ERROR,\n \"tokenizer must not be null for synonym analyzer: \" + analyzerName);\n } else if (filterFactories.isEmpty()) {\n throw new SolrException(ErrorCode.SERVER_ERROR,\n \"filter factories must be defined for synonym analyzer: \" + analyzerName);\n }\n\n TokenizerChain analyzer = new TokenizerChain(tokenizerFactory,\n filterFactories.toArray(new TokenFilterFactory[filterFactories.size()]));\n\n synonymAnalyzers.put(analyzerName, analyzer);\n }\n }\n } catch (IOException e) {\n throw new SolrException(ErrorCode.SERVER_ERROR, \"Failed to create parser. Check your config.\", e);\n }\n }", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "public void parse() throws IOException, LexerException, ParserException {\n classLines.clear();\n methodLines.clear();\n\n PushbackReader pbr = new PushbackReader(reader);\n Lexer lexer = new Lexer(pbr);\n Parser parser = new Parser(lexer);\n try {\n Start start = parser.parse();\n start.apply(this);\n fixClassNames();\n } finally {\n try {\n pbr.close();\n } catch (IOException ioe) { /* ignore */ }\n }\n }", "private void extractSyntaxBundles(XMLElement pluginDescriptor)\n throws EmuException {\n XMLElement syntaxesDescriptor = findExtension(pluginDescriptor, SyntaxManager.SYNTAXES_EP_NAME);\n if (syntaxesDescriptor == null) {\n return;\n }\n SyntaxSpecLoader loader = new SyntaxSpecLoader();\n for (XMLElement syntaxDescriptor : syntaxesDescriptor.getChildren()) {\n if (!syntaxDescriptor.getName().equals(\"syntax\")) {\n continue;\n }\n SyntaxSpecAdapter adaptedElement = new XMLSyntaxSpecAdapter(syntaxDescriptor);\n try {\n SyntaxBundle bundle = loader.loadSyntax(adaptedElement);\n if (bundle != null) {\n syntaxMgr.add(bundle);\n }\n } catch (Exception ex) {\n throw new EmuException(\"problem in syntax\", ex);\n }\n }\n }", "@Override\n public void run() {\n List<File> files = getContents(TOP_LEVEL + \" and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n \n prune(targetDir, files);\n processLanguages(files);\n }", "private void init(){\r\n\t\t// already checked that this is a valid file and reader\r\n\t\ttokenizer = new StreamTokenizer(reader);\r\n\t\ttokenizer.slashSlashComments(true);\r\n\t\ttokenizer.slashStarComments(true);\r\n\t\ttokenizer.wordChars('_', '_');\r\n\t\ttokenizer.wordChars('.', '.');\r\n\t\ttokenizer.ordinaryChar('/');\r\n\t\ttokenizer.ordinaryChar('-');\r\n\t\tfillKeywords();\r\n\t\t//tokenChoose = new TokenChooser();\r\n\t}", "private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }", "private void parse() {\n try {\n SimpleNode rootNode = jmm.parseClass(sourcefile);\n assert rootNode.is(JJTPROGRAM);\n\n SimpleNode classNode = rootNode.jjtGetChild(0);\n assert classNode.is(JJTCLASSDECLARATION);\n\n data.classNode = classNode;\n } catch (FileNotFoundException e) {\n throw new CompilationException(e);\n } catch (ParseException e) {\n throw new CompilationException(\"Parsing Error: \" + e.getMessage(), e);\n }\n }", "private void init() {\n\t\tMvcs.scanPackagePath = analyseScanPath();\n\t\tif(StringHandler.isEmpty(Mvcs.scanPackagePath))\n\t\t\tthrow new RuntimeException(\"No scan path has been set! you need to setup ScanPackage annotation\");\n\t\t\n\t\t//put all class into the list\n\t\tList<String> allClassNames = scanAllClassNames();\n\t\tif(StringHandler.isEmpty(allClassNames)) //some loader may have no return value \n\t\t\treturn ;\n\t\t\n\t\tfor(String pkgPath : allClassNames){\n\t\t\tlist.add(ClassUtil.getClass(pkgPath));\n\t\t}\n\t}", "protected void extract() {\n\t\tfor (ITSState nodeState : doc.iterNodes()) {\n\t\t\tNode node = nodeState.node;\n\t\t\tRuleResolver resolver = resolvers.get(node.getNodeName()); \n\t\t\tif (resolver != null) {\n\t\t\t\tGlobalRule rule = resolver.extractRule(attrReader, parameters, nodeState.node);\n\t\t\t\tapplyRule(resolver, rule);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.getNodeName().equals(\"its:param\")) {\n\t\t\t\tString name = node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\tString value = node.getTextContent();\n\t\t\t\tparameters.add(name, value);\n\t\t\t} else if (attrReader.dialect.isRules(node)) { \n\t\t\t\t// we have external link (xlink:href or link href)\n\t\t\t\tString external = attrReader.dialect.getExternalRules(node);\n\t\t\t\tif (external != null) {\n\t\t\t\t\textractExternalRules(external);\n\t\t\t\t}\n\t\t\t} else if (node.getNodeName().equals(\"script\")) {\n\t\t\t\t// we have embedded\n\t\t\t\tif (node.hasAttributes()) {\n\t\t\t\t\tif (node.getAttributes().getNamedItem(\"type\").getNodeValue().equals(\"application/its+xml\")) {\n\t\t\t\t\t\textractEmbeddedRules(node.getTextContent());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!nodeState.nodePath.contains(\"its:rules\")) {\n\t\t\t\t// unless we're in rules, look at local annotations\n\t\t\t\t// LOCAL\n\t\t\t\textractLocal(nodeState);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// process inheritance\n\t\tfor (ITSState nodeState : doc.iterNodes()) {\n\t\t\t// Elements: handle inheritance \n\t\t\tITSData parentData = getParentState(nodeState);\n\t\t\tif (parentData != null) {\n\t\t\t\t// inherit from parent\n\t\t\t\tITSData thisData = nodeItsData.get(nodeState.nodePath);\n\t\t\t\tif (thisData == null) {\n\t\t\t\t\tthisData = new ITSData();\n\t\t\t\t\tapplyRuleToNode(nodeState.nodePath, thisData);\n\t\t\t\t} \n\t\t\t\tthisData.inherit(parentData);\t\t\t\t\n\t\t\t}\t\n\t\t\t\t\t\t\n\t\t} \n\t\t\n\t\t\n\t}", "public abstract String parse(String name, List<CodeLine> c, Cluster cluster, Map<String,String> subs, Assemble compiler);", "public static void startup() {\n\t\tString thisLine;\n\t\tString currentName = \"\";\n\t\tboolean next = true;\n\n\t\t// DEBUG\n\t\t// System.out.println(\"entered here\");\n\n\t\t// Loop across the arguments\n\n\t\t// Open the file for reading\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(GIGA_WORD));\n\t\t\twhile ((thisLine = br.readLine()) != null) {\n\t\t\t\tString str = thisLine.trim();// .replaceAll(\"(\\\\r|\\\\n)\", \"\");\n\t\t\t\tString[] wordNumber = str.split(\"[ ]{2,}\");\n\t\t\t\tString word = wordNumber[0].toLowerCase();\n\t\t\t\tint cnt = Integer.parseInt(wordNumber[1]);\n\t\t\t\tgigaMap.put(word, cnt);\n\t\t\t}\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t\tbr = new BufferedReader(new FileReader(FILE_NAME));\n\t\t\twhile ((thisLine = br.readLine()) != null) {\n\t\t\t\tString str = thisLine.trim();// replaceAll(\"(\\\\r|\\\\n)\", \"\");\n\t\t\t\tif (str.equals(\"[Term]\")) {\n\t\t\t\t\tnext = true;\n\t\t\t\t}\n\t\t\t\tif (str.startsWith(\"name:\")) {\n\t\t\t\t\tif (next) {\n\t\t\t\t\t\tcurrentName = str.replaceAll(\"name: \", \"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (str.startsWith(\"synonym:\")) {\n\t\t\t\t\tif (str.contains(\"EXACT\") || str.contains(\"NARROW\")) {\n\t\t\t\t\t\t// synonym..\n\t\t\t\t\t\tPattern pattern = Pattern\n\t\t\t\t\t\t\t\t.compile(\"synonym:.*\\\"(.*)\\\".*\");\n\t\t\t\t\t\tMatcher matcher = pattern.matcher(str);\n\t\t\t\t\t\t// DEBUG\n\t\t\t\t\t\t// System.err.println(str);\n\t\t\t\t\t\tif (matcher.find()) {\n\t\t\t\t\t\t\tString syno = matcher.group(1);\n\t\t\t\t\t\t\tif (!currentName.equals(\"\")) {\n\t\t\t\t\t\t\t\t// System.err.format(\"%s:%s.\\n\", currentName,\n\t\t\t\t\t\t\t\t// syno);\n\n\t\t\t\t\t\t\t\tadd(currentName, syno);\n\t\t\t\t\t\t\t\tadd(syno, currentName);\n\t\t\t\t\t\t\t\trecursiveAddSyno(currentName, syno);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error: \" + e);\n\t\t}\n\t}", "public HymanifestParser() {\r\n \t\tsuper(null);\r\n \t}", "public void main(ArrayList<String> files) throws IOException {\n\t\tDesignParser.CLASSES = files;\n\t\t\n\t\tthis.model = new Model();\n\n\t\tfor (String className : CLASSES) {\n//\t\t\tSystem.out.println(\"====================\");\n\t\t\t// ASM's ClassReader does the heavy lifting of parsing the compiled\n\t\t\t// Java class\n//\t\t\tSystem.out.println(\"Analyzing: \" + className);\n//\t\t\tSystem.out.println(className + \"[\");\n\t\t\tClassReader reader = new ClassReader(className);\n\t\t\t\t\t\t\n\t\t\t// make class declaration visitor to get superclass and interfaces\n\t\t\tClassVisitor decVisitor = new ClassDeclarationVisitor(Opcodes.ASM5, this.model);\n\t\t\t\n\t\t\t// DECORATE declaration visitor with field visitor\n\t\t\tClassVisitor fieldVisitor = new ClassFieldVisitor(Opcodes.ASM5, decVisitor, this.model);\n\t\t\t\n\t\t\t// DECORATE field visitor with method visitor\n\t\t\tClassVisitor methodVisitor = new ClassMethodVisitor(Opcodes.ASM5, fieldVisitor, this.model);\n\t\t\t\n\t\t\t// TODO: add more DECORATORS here in later milestones to accomplish\n\t\t\t// specific tasks\n\t\t\tClassVisitor extensionVisitor = new ExtensionVisitor(Opcodes.ASM5, methodVisitor, this.model);\n\t\t\t\n\t\t\tClassVisitor implementationVisitor = new ImplementationVisitor(Opcodes.ASM5, extensionVisitor, this.model);\n\t\t\t\t\t\t\n\t\t\tClassVisitor usesVisitor = new UsesVisitor(Opcodes.ASM5, implementationVisitor, this.model);\n\t\t\t\n\t\t\tClassVisitor compositionVisitor = new CompositionVisitor(Opcodes.ASM5, usesVisitor, this.model);\n\t\t\t\n\t\t\t// Tell the Reader to use our (heavily decorated) ClassVisitor to\n\t\t\t// visit the class\n\t\t\treader.accept(compositionVisitor, ClassReader.EXPAND_FRAMES);\n//\t\t\tSystem.out.println(\"\\n]\");\n\t\t}\n//\t\tSystem.out.println(\"End Of Code\");\n\t}", "public void tokenize(){\n StringReader reader = null;\n try {\n //This returns a StringBuilder with the contents of the file\n reader = buildFileContents(programFile);\n //Next character in file\n int nxt = 0;\n String currentWord = \"\";\n int numAdjEquals = 0;\n int valueBeingBuilt = 0;\n boolean isValBeingBuilt = false;\n //Maps the name of a variable to its memory address on the data segment.\n HashMap<String, Integer> dataSegmentMap = new HashMap<>();\n while ((nxt = reader.read()) != -1){\n char nxtChar = (char)nxt;\n if (currentWord.length() >= 1 && !(((nxtChar >= 'a' && nxtChar <= 'z') || (nxtChar >= 'A' && nxtChar <= 'Z') || (nxtChar >= '0' && nxtChar <= '9')))) {\n //If statement in fun\n if (currentWord.equals(\"if\")){\n //System.out.println(\"if\");\n Token t = new Token(Token.Kind.IF, 0, \"IF\");\n tokenization.add(t);\n }\n //While in fun\n else if (currentWord.equals(\"while\")){\n //System.out.println(\"while\");\n Token t = new Token(Token.Kind.WHILE, 0, \"WHILE\");\n tokenization.add(t);\n }\n //ELse in fun\n else if (currentWord.equals(\"else\")){\n //System.out.println(\"else\");\n Token t = new Token(Token.Kind.ELSE, 0, \"ELSE\");\n tokenization.add(t);\n }\n //Print in fun\n else if (currentWord.equals(\"print\")){\n //System.out.println(\"print\");\n Token t = new Token(Token.Kind.PRINT, 0, \"PRINT\");\n tokenization.add(t);\n }\n //Return in fun\n else if (currentWord.equals(\"return\")){\n Token t = new Token(Token.Kind.RET, 0, \"RET\");\n tokenization.add(t);\n }\n //Start of function definition in fun\n else if (currentWord.equals(\"fun\")){\n //System.out.println(\"fun\");\n Token t = new Token(Token.Kind.FUN, 0, \"FUN\");\n tokenization.add(t);\n }\n //In a fun program, you can put $ + hex to do in-line hex code. E.g. if your program has $0a00\n //the processor will move register A contents to register 0 when it gets thee\n else if (currentWord.charAt(0) == '$'){\n Token t = new Token(Token.Kind.ASIS, 0, \"ASIS\", currentWord.substring(1));\n tokenization.add(t);\n }\n //Variable name\n else{\n //System.out.println(currentWord);\n String varName = \"\";\n //If this is a new variable, put a spot for in the data segment\n if (!dataSegmentMap.containsKey(currentWord)) {\n dataSegmentMap.put(currentWord, nextDataSegmentAddress);\n nextDataSegmentAddress = nextDataSegmentAddress + 2;\n }\n varName = \"var\" + (dataSegmentMap.get(currentWord) / 2);\n Token t = new Token(Token.Kind.ID, 0, \"ID\", varName);\n tokenization.add(t);\n }\n currentWord = \"\";\n }\n //Numeric constant\n else if ((isValBeingBuilt && !((nxtChar >= '0' && nxtChar <= '9') || (nxtChar == '_')) && currentWord.length() == 0)){\n Token t = new Token(Token.Kind.INT, valueBeingBuilt, \"INT\");\n tokenization.add(t);\n isValBeingBuilt = false;\n //System.out.println(valueBeingBuilt);\n valueBeingBuilt = 0;\n }\n if (nxtChar == '=') {\n numAdjEquals++;\n }\n //'='\n else if (numAdjEquals == 1){\n Token t = new Token(Token.Kind.EQ, 0, \"EQ\");\n tokenization.add(t);\n //System.out.println(\"=\");\n numAdjEquals = 0;\n }\n //==\n else if (numAdjEquals == 2){\n Token t = new Token(Token.Kind.EQEQ, 0, \"EQEQ\");\n tokenization.add(t);\n //System.out.println(\"==\");\n numAdjEquals = 0;\n }\n //Braces\n if (nxtChar == '{'){\n Token t = new Token(Token.Kind.LBRACE, 0, \"LBRACE\");\n tokenization.add(t);\n //System.out.println(\"{\");\n }\n else if (nxtChar == '}'){\n Token t = new Token(Token.Kind.RBRACE, 0, \"RBRACE\");\n tokenization.add(t);\n //System.out.println(\"}\");\n }\n //Parenthesis\n else if (nxtChar == '('){\n Token t = new Token(Token.Kind.LEFT, 0, \"LEFT\");\n tokenization.add(t);\n //System.out.println(\"(\");\n }\n else if (nxtChar == ')'){\n Token t = new Token(Token.Kind.RIGHT, 0, \"RIGHT\");\n tokenization.add(t);\n //System.out.println(\")\");\n }\n //Comma (for function arguments like add(x,y)\n else if (nxtChar == ','){\n Token t = new Token(Token.Kind.COMMA, 0, \"COMMA\");\n tokenization.add(t);\n }\n //Addition\n else if (nxtChar == '+'){\n Token t = new Token(Token.Kind.PLUS, 0, \"PLUS\");\n tokenization.add(t);\n //System.out.println(\"+\");\n }\n //Subtraction (multiplication not supported)\n else if (nxtChar == '-'){\n Token t = new Token(Token.Kind.MINUS, 0, \"MINUS\");\n tokenization.add(t);\n }\n //Semicolon\n else if (nxtChar == ';'){\n //System.out.println(\";\");\n }\n //Builds word\n if ((nxtChar >= 'a' && nxtChar <= 'z') || (nxtChar >= 'A' && nxtChar <= 'Z') || (nxtChar >= '0' && nxtChar <= '9' && currentWord.length() >= 1) || (nxtChar == '$' && currentWord.length() == 0)){\n currentWord = currentWord + nxtChar;\n }\n //BUilds numeric value\n if (((nxtChar >= '0' && nxtChar <= '9') || nxtChar == '_') && currentWord.length() == 0){\n if (nxtChar != '_'){\n if (!isValBeingBuilt){\n isValBeingBuilt = true;\n valueBeingBuilt = 0;\n }\n int digit = nxtChar - '0';\n valueBeingBuilt *= 10;\n valueBeingBuilt += digit;\n }\n }\n }\n //At the end, we could still be building a word or numeric value, so we do a final check\n if (currentWord.length() >= 1 ) {\n\n if (currentWord.equals(\"if\")){\n //System.out.println(\"if\");\n Token t = new Token(Token.Kind.IF, 0, \"IF\");\n tokenization.add(t);\n }\n else if (currentWord.equals(\"while\")){\n //System.out.println(\"while\");\n Token t = new Token(Token.Kind.WHILE, 0, \"WHILE\");\n tokenization.add(t);\n }\n else if (currentWord.equals(\"else\")){\n //System.out.println(\"else\");\n Token t = new Token(Token.Kind.ELSE, 0, \"ELSE\");\n tokenization.add(t);\n }\n else if (currentWord.equals(\"print\")){\n //System.out.println(\"print\");\n Token t = new Token(Token.Kind.PRINT, 0, \"PRINT\");\n tokenization.add(t);\n }\n else if (currentWord.equals(\"fun\")){\n //System.out.println(\"fun\");\n Token t = new Token(Token.Kind.FUN, 0, \"FUN\");\n tokenization.add(t);\n }\n else{\n //System.out.println(currentWord);\n Token t = new Token(Token.Kind.ID, 0, \"ID\");\n tokenization.add(t);\n if (!dataSegmentMap.containsKey(currentWord)){\n dataSegmentMap.put(currentWord, nextDataSegmentAddress);\n nextDataSegmentAddress = nextDataSegmentAddress + 2;\n }\n }\n currentWord = \"\";\n }\n else if ((isValBeingBuilt && currentWord.length() == 0)){\n Token t = new Token(Token.Kind.INT, valueBeingBuilt, \"INT\");\n tokenization.add(t);\n isValBeingBuilt = false;\n //System.out.println(valueBeingBuilt);\n valueBeingBuilt = 0;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n tokenization.add(new Token(Token.Kind.END, 0, \"\"));\n substituteStackPointerSet();\n tokenizeFunctionArguments();\n }", "public void parseFunctions(){\n\t\t\n\t}", "public void parse()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstatus = program();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "public Snippet visit(File n, Snippet argu) {\n\t Snippet _ret=null;\n\t allMyTypes = new HashMap<String, String>();\n\t n.mainClass.accept(this, argu);\n\t n.programClass.accept(this, argu);\n\t n.nodeListOptional.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t ClassStructure programRM = classes.get(\"RunMain\");\n\t System.out.println(GenerateImports.printImports()+\"\\n\");\n\t System.out.println(programRM.toString());\n\t ClassStructure programC = classes.get(\"Program\");\n\t \n\t System.out.println(programC.toString());\n\t for(String output : classes.keySet()){\n\t\t\t\tif(!output.equals(\"Program\") && !output.equals(\"RunMain\")){\n\t\t\t\t\tSystem.out.println(classes.get(output));\n\t\t\t\t}\n\t }\n\t \n\t return _ret;\n\t }", "public void apply() {\n\n\t\tfinal Multimap<Element, StyleApplication> elementMatches = ArrayListMultimap.create();\n\n\t\tfinal CSSOMParser inlineParser = new CSSOMParser();\n\t\tinlineParser.setErrorHandler( new ExceptionErrorHandler() );\n\n\t\t// factor in elements' style attributes\n\t\tnew NodeTraversor( new NodeVisitor() {\n\t\t\t@Override\n\t\t\tpublic void head( Node node, int depth ) {\n\t\t\t\tif ( node instanceof Element && node.hasAttr( \"style\" ) ) {\n\t\t\t\t\t// parse the CSS into a CSSStyleDeclaration\n\t\t\t\t\tInputSource input = new InputSource( new StringReader( node.attr( \"style\" ) ) );\n\t\t\t\t\tCSSStyleDeclaration declaration = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdeclaration = inlineParser.parseStyleDeclaration( input );\n\t\t\t\t\t} catch ( IOException e ) {\n\t\t\t\t\t\t// again, this should never happen, cuz we're just reading from a string\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tnode.removeAttr( \"style\" );\n\t\t\t\t\telementMatches.put( ((Element) node), new InlineStyleApplication( declaration ) );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void tail( Node node, int depth ) {}\n\t\t}).traverse( htmlDocument.body() );\n\n\t\t// compute which rules match which elements\n\t\tCSSRuleList rules = styleSheet.getCssRules();\n\t\tfor ( int i = 0; i < rules.getLength(); i++ ) {\n\t\t\tif ( rules.item( i ) instanceof CSSStyleRule) {\n\t\t\t\tCSSStyleRuleImpl rule = (CSSStyleRuleImpl) rules.item( i );\n\t\t\t\t// for each selector in the rule... (separated by commas)\n\t\t\t\tfor ( int j = 0; j < rule.getSelectors().getLength(); j++ ) {\n\t\t\t\t\tSelector selector = rule.getSelectors().item( j );\n\t\t\t\t\tElements matches = null;\n\t\t\t\t\tmatches = htmlDocument.select( selector.toString() );\n\t\t\t\t\t// for each matched element....\n\t\t\t\t\tfor ( Element match: matches ) {\n\t\t\t\t\t\telementMatches.put( match, new RuleStyleApplication( selector, rule.getStyle() ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tMap<Element, CSSStyleDeclaration> inlinedStyles = new HashMap<Element, CSSStyleDeclaration>();\n\n\t\t// calculate overrides\n\t\tfor ( Element element : elementMatches.keySet() ) {\n\t\t\tCSSStyleDeclaration properties = new CSSStyleDeclarationImpl();\n\t\t\tList<StyleApplication> matchedRules = new ArrayList<StyleApplication>( elementMatches.get( element ) );\n\t\t\tCollections.sort( matchedRules, orderBySpecificity );\n\t\t\tfor ( StyleApplication matchedRule : matchedRules ) {\n\t\t\t\tCSSStyleDeclaration cssBlock = matchedRule.getCssBlock();\n\t\t\t\tfor ( int i = 0; i < cssBlock.getLength(); i++ ) {\n\t\t\t\t\tString propertyKey = cssBlock.item( i );\n\t\t\t\t\tCSSValue propertyValue = cssBlock.getPropertyCSSValue( propertyKey );\n\t\t\t\t\t// TODO: !important\n\t\t\t\t\tproperties.setProperty( propertyKey, propertyValue.getCssText(), \"\" );\n\t\t\t\t}\n\t\t\t}\n\t\t\tinlinedStyles.put(element, properties);\n\t\t}\n\n\t\t// apply to DOM\n\t\tfor ( Map.Entry<Element, CSSStyleDeclaration> entry : inlinedStyles.entrySet() ) {\n\t\t\tentry.getKey().attr( \"style\", entry.getValue().getCssText() );\n\t\t}\n\n\t}", "public void interpret()\n\t{\t\n\t\t// Setup all the common properties derived from task definitions for all partition types.\n\t\tIRule rule = getRule();\n\t\t\n\t\tTask task = (Task) rule.getTaskMap().get(TaskType.SRC_PATH);\n\n\t\tMatchProperties match = (MatchProperties)task.getMatchProperties();\n\t\t\n\t\tthis.setMatchingAttributeName(match.getAttributeName());\n\t\tthis.setAttributeMatchType(match.getType());\n\t\t\n\t\tif (match.getType() == TaskMatchType.EXPR)\n\t\t{\n\t\t\tthis.setMatchingAttributeValue(match.getAttributeValue());\n\t\t\tthis.setAttributeMatchExpression(match.getExprType());\n\t\t}\n\t\telse if (match.getType() == TaskMatchType.REGEX)\n\t\t{\n\t\t\tthis.setAttributeMatchRegexPattern(match.getPattern());\n\t\t}\n\t\t\n\t\tif (match.getType() == TaskMatchType.EXPR)\n\t\t{\n\t\t\t// \"//body/div/p[starts-with(@class,'HeadingProcessName ')]\"\t\t\t\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tsb.append(task.getSource());\n\t\t\tswitch (match.getExprType())\n\t\t\t{\n\t\t\tcase STARTS_WITH:\n\t\t\tcase CONTAINS:\n\t\t\t\tsb.append(\"[\");\n\t\t\t\tsb.append(match.getExprTypeAsString());\n\t\t\t\tsb.append(\"(@\");\n\t\t\t\tsb.append(match.getAttributeName());\n\t\t\t\tsb.append(\",'\");\n\t\t\t\tsb.append(match.getAttributeValue());\n\t\t\t\tsb.append(\"')]\");\n\t\t\t\tsetMatchingElementXPath(sb.toString());\n\t\t\t\tbreak;\n\t\t\tcase NOT_SET:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\t\n\t\t\t}\n\t\t}\n\t\telse if (match.getType() == TaskMatchType.REGEX)\n\t\t{\n\t\t\t// \"//body/div/p[matches(@class,'{pattern}')]\"\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tsb.append(task.getSource());\n\t\t\tsb.append(\"[\");\n\t\t\tsb.append(\"matches\");\n\t\t\tsb.append(\"(@\");\n\t\t\tsb.append(match.getAttributeName());\n\t\t\tsb.append(\",'\");\n\t\t\tsb.append(match.getPattern());\n\t\t\tsb.append(\"')]\");\n\t\t\tsetMatchingElementXPath(sb.toString());\n\t\t}\n\t\t\n\t\t// Process the title match properties. This is an optional directive.\n\t\tif (rule.getTaskMap().containsKey(TaskType.SRC_TEXT_MATCH))\n\t\t{\n\t\t\ttask = (Task) rule.getTaskMap().get(TaskType.SRC_TEXT_MATCH);\n\t\t\t\n\t\t\tmatch = (MatchProperties)task.getMatchProperties();\n\t\t\t\n\t\t\tif (match != null)\n\t\t\t{\n\t\t\t\tthis.setTitleNameMatchCondition(true);\t\t\t\t\n\t\t\t\tthis.setTitleNameMatchType(match.getType());\n\t\t\t\t\n\t\t\t\tif (match.getType() == TaskMatchType.EXPR)\n\t\t\t\t{\n\t\t\t\t\tthis.setTitleNameMatchExprType(match.getExprType());\n\t\t\t\t\tthis.setTitleNameMatchExprValue(match.getExprValue());\n\t\t\t\t}\n\t\t\t\telse if (match.getType() == TaskMatchType.REGEX)\n\t\t\t\t{\n\t\t\t\t\tthis.setTitleNameMatchRegexPattern(match.getPattern());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthis.setTitleNameMatchCondition(false);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Process the title replace regex properties. This is an optional directive.\n\t\tif (rule.getTaskMap().containsKey(TaskType.TARGET_NAME))\n\t\t{\n\t\t\ttask = (Task) rule.getTaskMap().get(TaskType.TARGET_NAME);\n\t\t\tmatch = (MatchProperties)task.getMatchProperties();\n\t\t\tif (match != null && match.getPattern() != null && match.getReplaceWith() != null)\n\t\t\t{\n\t\t\t\tthis.setTitleNameReplaceCondition(true);\n\t\t\t\tthis.setTitleNameReplaceRegexPattern(match.getPattern());\n\t\t\t\tthis.setTitleNameReplaceWithRegexPattern(match.getReplaceWith());\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Process the partition options\n\t\tif (rule.getTaskMap().containsKey(TaskType.PARTITION_OPTIONS))\n\t\t{\n\t\t\ttask = (Task) rule.getTaskMap().get(TaskType.PARTITION_OPTIONS);\n\t\t\tif (task.getKeepIntroNodes())\n\t\t\t\tthis.setKeepFirstElements(task.getKeepIntroNodes());\n\t\t\tif (task.getIntroPartitionTitle() != null)\n\t\t\t\tthis.setIntroPartitionTitle(task.getIntroPartitionTitle());\n\t\t}\n\n\t}", "protected void parse() throws ParseException {\n String s;\n try {\n s=getFullText();\n } catch (IOException ioe) {\n if (ioe instanceof FileNotFoundException) {\n throw new DataNotFoundException (\"Could not find log file.\", ioe);\n } else {\n throw new ParseException (\"Error getting log file text.\", new File (getFileName()));\n }\n }\n StringTokenizer sk = new StringTokenizer(s);\n ArrayList switches = new ArrayList(10);\n while (sk.hasMoreElements()) {\n String el =sk.nextToken().trim();\n if (el.startsWith(\"-J\")) {\n if (!(el.equals(\"-J-verbose:gc\"))) {\n if (!(el.startsWith(\"-J-D\"))) {\n JavaLineswitch curr = new JavaLineswitch(el.substring(2));\n addElement (curr); \n }\n }\n }\n }\n }", "private ASMInstrumenter() {\n insertMutationProbes = SmartSHARKAdapter.getInstance().getMutationsWithLines();\n\n /*\n insertMutationProbes.put(\"de.ugoe.cs.testproject.A.<init>\", new TreeSet<Integer>(){{add(2);}});\n insertMutationProbes.put(\"de.ugoe.cs.testproject.A.method1\", new TreeSet<Integer>(){{add(25); add(29);}});\n insertMutationProbes.put(\"de.ugoe.cs.testproject.A.method2\", new TreeSet<Integer>(){{add(44);}});\n insertMutationProbes.put(\"de.ugoe.cs.testproject.A.metho5\", new TreeSet<Integer>(){{add(59);}});\n insertMutationProbes.put(\"de.ugoe.cs.testproject.B.method1\", new TreeSet<Integer>(){{add(25);}});\n */\n //System.out.println(insertMutationProbes);\n }", "private void init(String description, String[][] localizations)\n/* */ {\n/* 1480 */ initLocalizations(localizations);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1487 */ StringBuilder descBuf = stripWhitespace(description);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1494 */ this.lenientParseRules = extractSpecial(descBuf, \"%%lenient-parse:\");\n/* 1495 */ this.postProcessRules = extractSpecial(descBuf, \"%%post-process:\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1500 */ int numRuleSets = 0;\n/* 1501 */ for (int p = descBuf.indexOf(\";%\"); p != -1; p = descBuf.indexOf(\";%\", p)) {\n/* 1502 */ numRuleSets++;\n/* 1503 */ p++;\n/* */ }\n/* 1505 */ numRuleSets++;\n/* */ \n/* */ \n/* 1508 */ this.ruleSets = new NFRuleSet[numRuleSets];\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1517 */ String[] ruleSetDescriptions = new String[numRuleSets];\n/* */ \n/* 1519 */ int curRuleSet = 0;\n/* 1520 */ int start = 0;\n/* 1521 */ for (int p = descBuf.indexOf(\";%\"); p != -1; p = descBuf.indexOf(\";%\", start)) {\n/* 1522 */ ruleSetDescriptions[curRuleSet] = descBuf.substring(start, p + 1);\n/* 1523 */ this.ruleSets[curRuleSet] = new NFRuleSet(ruleSetDescriptions, curRuleSet);\n/* 1524 */ curRuleSet++;\n/* 1525 */ start = p + 1;\n/* */ }\n/* 1527 */ ruleSetDescriptions[curRuleSet] = descBuf.substring(start);\n/* 1528 */ this.ruleSets[curRuleSet] = new NFRuleSet(ruleSetDescriptions, curRuleSet);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1543 */ boolean defaultNameFound = false;\n/* 1544 */ int n = this.ruleSets.length;\n/* 1545 */ this.defaultRuleSet = this.ruleSets[(this.ruleSets.length - 1)];\n/* */ for (;;) {\n/* 1547 */ n--; if (n < 0) break;\n/* 1548 */ String currentName = this.ruleSets[n].getName();\n/* 1549 */ if ((currentName.equals(\"%spellout-numbering\")) || (currentName.equals(\"%digits-ordinal\")) || (currentName.equals(\"%duration\"))) {\n/* 1550 */ this.defaultRuleSet = this.ruleSets[n];\n/* 1551 */ defaultNameFound = true;\n/* 1552 */ break;\n/* */ }\n/* */ }\n/* */ \n/* 1556 */ if (!defaultNameFound) {\n/* 1557 */ for (int i = this.ruleSets.length - 1; i >= 0; i--) {\n/* 1558 */ if (!this.ruleSets[i].getName().startsWith(\"%%\")) {\n/* 1559 */ this.defaultRuleSet = this.ruleSets[i];\n/* 1560 */ break;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1568 */ for (int i = 0; i < this.ruleSets.length; i++) {\n/* 1569 */ this.ruleSets[i].parseRules(ruleSetDescriptions[i], this);\n/* 1570 */ ruleSetDescriptions[i] = null;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1578 */ int publicRuleSetCount = 0;\n/* 1579 */ for (int i = 0; i < this.ruleSets.length; i++) {\n/* 1580 */ if (!this.ruleSets[i].getName().startsWith(\"%%\")) {\n/* 1581 */ publicRuleSetCount++;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1586 */ String[] publicRuleSetTemp = new String[publicRuleSetCount];\n/* 1587 */ publicRuleSetCount = 0;\n/* 1588 */ for (int i = this.ruleSets.length - 1; i >= 0; i--) {\n/* 1589 */ if (!this.ruleSets[i].getName().startsWith(\"%%\")) {\n/* 1590 */ publicRuleSetTemp[(publicRuleSetCount++)] = this.ruleSets[i].getName();\n/* */ }\n/* */ }\n/* */ \n/* 1594 */ if (this.publicRuleSetNames != null)\n/* */ {\n/* */ label585:\n/* 1597 */ for (int i = 0; i < this.publicRuleSetNames.length; i++) {\n/* 1598 */ String name = this.publicRuleSetNames[i];\n/* 1599 */ for (int j = 0; j < publicRuleSetTemp.length; j++) {\n/* 1600 */ if (name.equals(publicRuleSetTemp[j])) {\n/* */ break label585;\n/* */ }\n/* */ }\n/* 1604 */ throw new IllegalArgumentException(\"did not find public rule set: \" + name);\n/* */ }\n/* */ \n/* 1607 */ this.defaultRuleSet = findRuleSet(this.publicRuleSetNames[0]);\n/* */ } else {\n/* 1609 */ this.publicRuleSetNames = publicRuleSetTemp;\n/* */ }\n/* */ }", "void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }", "public void testParse() throws Exception\r\n {\r\n System.out.println(\"parse\");\r\n \r\n String context1 = \"package test.testpack;\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n String context2 = \"package test.test.testpack;\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n String context3 = \"\\npack age test.test.testpack ;\\n class TestClass \\n{\\n\\tdouble d;\\n}\";\r\n String context4 = \"package test.test.testpack\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n \r\n String context5 = \"package test.test.testpack;\\n class TestClass {\\n\\tdouble d;\\n}\";\r\n String context6 = \"package test.test.testpack;\\n class Test Class{\\n\\tdouble d;\\n}\";\r\n String context7 = \"package test.test.testpack;\\n class TestClass\\n{\\n\" +\r\n \"\\t//Det här är en double\\n\" +\r\n \"\\tdouble d;\\n\" +\r\n \"\\tdouble[] ds;\\n\" +\r\n \"\\tidltype test.test2.Test2Class idlTestObject;\" +\r\n \"\\n}\";\r\n \r\n \r\n FileParser instance = new FileParser();\r\n \r\n IDLClass expResult = null;\r\n \r\n IDLClass result = instance.parse(context1);\r\n assertEquals(result.getPackageName(), \"test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n result = instance.parse(context2);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context3);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 2: Invalid package declaration.\", ex.getMessage());\r\n }\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context4);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 1: Missing ; .\", ex.getMessage());\r\n }\r\n \r\n result = instance.parse(context5);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context6);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 2: Invalid class declaration.\", ex.getMessage());\r\n }\r\n \r\n result = instance.parse(context7);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n assertEquals(result.getFields().get(0).getComment(), \"//Det här är en double\");\r\n \r\n \r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "public void preprocessTree( AST_Program root ) throws Exception {\n\n root.setSource( root.getAspectName() );\n }", "public static void main (String [] args) throws Exception {\n if(args.length < 1){\n System.err.println(\"Usage: java Main <inputFile1> <inputFile2> ... <inputFileN> \");\n System.exit(1);\n }\n\n FileInputStream fis = null;\n\n\n try{\n\n for (String s: args) {\n System.out.println(\"Type check on program: \"+s);\n System.out.print(\"\\n\"); \n\n //Parsing the input program.\n fis = new FileInputStream(s);\n MiniJavaParser parser = new MiniJavaParser(fis);\n System.err.println(\"Program parsed successfully.\");\n System.out.print(\"\\n\"); \n Goal root = parser.Goal(); \n \n //If the parsing was successful, we move on to the FirstVisitor which will create the Symbol Table and perform declaration checks.\n FirstVisitor eval = new FirstVisitor();\n\n boolean decl_error = false;\n\n try{ \n root.accept(eval, null);\n }catch(Exception ouch){ //If we encounter any declaration errors, the semantic check ends. \n\n System.out.println(\"We encountered at least one declaration error! \"); \n System.out.print(\"\\n\"); \n decl_error = true;\n\n }\n\n //We encountered a declaration error, so now we move on to the next program.\n if(decl_error == true){\n continue;\n }\n \n //Checking if the symbol table has a object from a class that was never declared. If so, we stop the semantic check.\n //This is the only check performed in the main function. All other checks are in the Visitor files.\n for (int counter = 0; counter < eval.idList.size(); counter++) { \t\t \n String id_check = eval.idList.get(counter);\n if( !(eval.visitor_sym.classId_table.containsKey(id_check)) ){\n\n System.out.println(\"We encountered at least one declaration error! \"); \n System.out.print(\"\\n\"); \n decl_error = true;\n \n }\n }\n \n if(decl_error == true){\n continue;\n }\n\n \n //Our program is free of declaration errors, so now we go to the second visitor which will perform type checking.\n SecondVisitor eval2 = new SecondVisitor(eval.visitor_sym);\n \n boolean type_error = false;\n\n try{\n root.accept(eval2, null);\n }catch(Exception ouch){ //If we encounter any type errors, the semantic check ends. \n System.out.println(\"We encountered at least one type error! \"); \n System.out.print(\"\\n\"); \n type_error = true;\n }\n\n //We encountered a type error, so now we move on to the next program.\n if (type_error == true){\n continue;\n }\n \n\n System.out.println(\"Our program is free of type errors, moving on to the offset table: \"); \n System.out.print(\"\\n\"); \n\n //Creating the offset table with the OffsetTable class.\n OffsetTable ot = new OffsetTable(eval.visitor_sym);\n ot.OutputCreator();\n System.out.print(\"\\n\"); \n\n }\n\n }\n\n catch(ParseException ex){\n System.out.println(ex.getMessage());\n }\n\n catch(FileNotFoundException ex){\n System.err.println(ex.getMessage());\n }\n\n finally{\n\n try{\n if(fis != null) fis.close();\n }\n catch(IOException ex){\n System.err.println(ex.getMessage());\n }\n }\n\n\n }", "@ExtractionRegistration(mimeType = ANTLR_MIME_TYPE,\n entryPoint = ANTLRv4Parser.GrammarFileContext.class)\n public static void populateBuilder(ExtractorBuilder<? super ANTLRv4Parser.GrammarFileContext> bldr) {\n bldr.wrappingExtractionWith(runner -> {\n try {\n // Set up the cache before each extraction\n ALT_CACHE.set(new HashMap<>(32));\n SET_CACHE.set(new HashMap<>(32));\n SCANNED.set(Bool.create());\n return runner.get();\n } finally {\n // And tear it down\n ALT_CACHE.remove();\n SET_CACHE.remove();\n SCANNED.remove();\n }\n }).extractingRegionsUnder(OUTER_ALTERNATIVES_WITH_SIBLINGS)\n .whenRuleType(ParserRuleDefinitionContext.class)\n .extractingKeyAndBoundsWith((ParserRuleDefinitionContext alt, BiPredicate<AlternativeKey, int[]> bip) -> {\n\n Bool scanned = SCANNED.get();\n assert scanned != null : \"Wrapper not called\";\n Map<ParserRuleDefinitionContext, AlternativeKeyWithOffsets> altsForRules = SET_CACHE.get();\n if (!scanned.getAsBoolean()) {\n // if the first run, shoot off our visitors and collect\n // what we need to know\n try {\n Map<ParserRuleAlternativeContext, AlternativeKeyWithOffsets> altsForAlts = ALT_CACHE.get();\n assert altsForAlts != null : \"Wrapper not called\";\n GrammarFileContext top = TreeUtils.ancestor(alt, ANTLRv4Parser.GrammarFileContext.class);\n SetFinder setFinder = new SetFinder();\n Map<ParserRuleDefinitionContext, AlternativeKeyWithOffsets> overarchingAlts = top.accept(setFinder);\n AlternativeFinder v = new AlternativeFinder(overarchingAlts);\n Map<ParserRuleAlternativeContext, AlternativeStub> keys = top.accept(v);\n altsForAlts.putAll(toKeys(keys));\n altsForRules.putAll(overarchingAlts);\n } finally {\n scanned.set();\n }\n }\n // Get the item for this *entire* rule - our grammar treats\n // as alternatives some elements that Antlr treats as a single\n // unit - specifically, a rule which contains only or-separated\n // token rules is a SET, not a collection of individual alternatives.\n // So these get a single item for the entire rule, and nothing for\n // any ParserRuleAlternativeContexts they contain\n AlternativeKeyWithOffsets ak = altsForRules.get(alt);\n if (ak != null) {\n return bip.test(ak.key, new int[]{ak.start, ak.stop + 1});\n }\n return false;\n })\n .whenRuleType(ParserRuleAlternativeContext.class)\n .extractingKeyAndBoundsWith((ParserRuleAlternativeContext alt, BiPredicate<AlternativeKey, int[]> bip) -> {\n // Get the item for an alternative down inside a rule\n ParserRuleLabeledAlternativeContext lab = TreeUtils.ancestor(alt, ParserRuleLabeledAlternativeContext.class);\n Map<ParserRuleAlternativeContext, AlternativeKeyWithOffsets> info = ALT_CACHE.get();\n assert info != null : \"Wrapper not called\";\n AlternativeKeyWithOffsets altern = info.get(alt);\n if (altern != null) {\n return bip.test(altern.key, new int[]{altern.start, altern.stop});\n }\n return false;\n }).finishRegionExtractor();\n }", "public void parse() {\n }", "public void parse(Config_Class configs, ArrayList<Stanford_Class> content)\r\n\t{\r\n\t\tthis.Content = null;\r\n\t\tthis.Content = new ArrayList<Stanford_Class>(content);\r\n\t\tGet_MalwareName_Form_Term(configs);\r\n\t}", "private void processPrefs(Class<?> baseClass, SimplTypesScope translationScope,\n \t\t\tStack<String> argStack, float prefsAssetVersion) throws SIMPLTranslationException\n \t{\n \t\tLaunchType launchType = LaunchType.ECLIPSE; // current default\n \n \t\t// look for launch method identifier in upper case\n \t\tString arg = pop(argStack);\n \n \t\tif (arg != null)\n \t\t{\n \t\t\tString uc = arg.toUpperCase();\n \t\t\tif (\"JNLP\".equals(uc))\n \t\t\t{ // tells us how we were launched: e.g., JNLP, ECLIPSE, ...\n \t\t\t\tlaunchType = LaunchType.JNLP;\n \t\t\t}\n \t\t\telse if (\"STUDIES\".equals(uc))\n \t\t\t{\n \t\t\t\tlaunchType = LaunchType.STUDIES;\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\t// TODO -- recognize JAR here !!!\n \t\t\t\targStack.push(arg);\n \t\t\t}\n \t\t\tLAUNCH_TYPE_PREF.setValue(launchType);\n \t\t}\n \t\tprintln(\"LaunchType = \" + launchType);\n \t\tthis.launchType = launchType;\n \t\t// look for codeBase path\n \t\targ = pop(argStack);\n \n \t\t// read perhaps meta-preferences and surely preferences from application data dir\n \t\tFile applicationDir = PropertiesAndDirectories.thisApplicationDir();\n \n \t\tParsedURL applicationDataPURL = new ParsedURL(applicationDir);\n \t\tprefsPURL = applicationDataPURL.getRelative(\"preferences/prefs.xml\");\n \t\tdebugA(\"prefsPURL= \" + prefsPURL);\n \n \t\tSystem.out.println(\"arg: \" + arg);\n \n \t\tswitch (launchType)\n \t\t{\n \t\tcase STUDIES:\n \t\tcase JNLP:\n \t\t\t// next arg *should* be code base\n \t\t\tif ((arg != null) && arg.endsWith(\"/\"))\n \t\t\t{\n \t\t\t\t// JNLP only! (as of now)\n \t\t\t\t// right now this only works for http://\n \t\t\t\tParsedURL codeBase = ParsedURL.getAbsolute(arg, \"Setting up codebase\");\n \t\t\t\tthis.setCodeBase(codeBase);\n \n \t\t\t\t// XXX is this right?\n \t\t\t\tfinal String host = codeBase.host();\n \t\t\t\tif (\"localhost\".equals(host) || \"127.0.0.1\".equals(host))\n \t\t\t\t{\n \t\t\t\t\tdebug(\"launched from localhost. must be a developer.\");\n \t\t\t\t\tLAUNCH_TYPE_PREF.setValue(LaunchType.LOCAL_JNLP);\n \t\t\t\t}\n \n \t\t\t\tSIMPLTranslationException metaPrefSetException = null;\n \t\t\t\tParsedURL metaPrefsPURL = null;\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tAssetsRoot prefAssetsRoot = new AssetsRoot(this, PREFERENCES, null);\n \t\t\t\t\tFile metaPrefsFile = Assets.getAsset(\tprefAssetsRoot,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMETAPREFS_XML,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"prefs\",\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfalse,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprefsAssetVersion);\n \t\t\t\t\tmetaPrefsPURL = new ParsedURL(metaPrefsFile);\n \t\t\t\t\tmetaPrefSet = MetaPrefSet.load(metaPrefsFile, translationScope);\n \t\t\t\t\tprintln(\"OK: loaded MetaPrefs from \" + metaPrefsFile);\n \t\t\t\t}\n \t\t\t\tcatch (SIMPLTranslationException e)\n \t\t\t\t{\n \t\t\t\t\tmetaPrefSetException = e;\n \t\t\t\t}\n \t\t\t\tcatch (Exception e)\n \t\t\t\t{\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t}\n \t\t\t\t// from supplied URL instead of from here\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tdebugA(\"Considering prefSet=\" + prefSet + \"\\tprefsPURL=\" + prefsPURL);\n \t\t\t\t\tif (prefSet == null) // Normal Case\n \t\t\t\t\t{\n \t\t\t\t\t\tprefSet = PrefSet.load(prefsPURL, translationScope);\n \t\t\t\t\t\tif (prefSet != null)\n \t\t\t\t\t\t\tprintln(\"OK: Loaded Prefs from \" + prefsPURL);\n \t\t\t\t\t\telse\n \t\t\t\t\t\t\tprintln(\"No Prefs to load from \" + prefsPURL);\n \t\t\t\t\t}\n \t\t\t\t\tif (metaPrefSetException != null)\n \t\t\t\t\t{\n \t\t\t\t\t\twarning(\"Couldn't load MetaPrefs:\");\n \t\t\t\t\t\tmetaPrefSetException.printTraceOrMessage(this, \"MetaPrefs\", metaPrefsPURL);\n \t\t\t\t\t\tprintln(\"\\tContinuing.\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tcatch (SIMPLTranslationException e)\n \t\t\t\t{\n \t\t\t\t\tif (metaPrefSetException != null)\n \t\t\t\t\t{\n \t\t\t\t\t\terror(\"Can't load MetaPrefs or Prefs. Quitting.\");\n \t\t\t\t\t\tmetaPrefSetException.printTraceOrMessage(this, \"MetaPrefs\", metaPrefsPURL);\n \t\t\t\t\t\te.printTraceOrMessage(this, \"Prefs\", prefsPURL);\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\t// meta prefs o.k. we can continue\n \t\t\t\t\t\twarning(\"Couldn't load Prefs:\");\n \t\t\t\t\t\te.printTraceOrMessage(this, \"Prefs\", prefsPURL);\n \t\t\t\t\t\tprintln(\"\\tContinuing.\");\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\tdebugA(\"argStack.size() = \" + argStack.size());\n \t\t\t\tif (argStack.size() > 0)\n \t\t\t\t{\n \t\t\t\t\tString prefSpec = \"\";\n \t\t\t\t\tif (arg.startsWith(\"http://\"))\n \t\t\t\t\t{\n \t\t\t\t\t\t// PreferencesServlet\n \t\t\t\t\t\tprefSpec = pop(argStack);\n \n \t\t\t\t\t\tif (prefSpec != null)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\t// load URLEncoded prefs XML straight from the argument\n \t\t\t\t\t\t\tPrefSet JNLPPrefSet = loadPrefsFromJNLP(prefSpec);\n \n \t\t\t\t\t\t\tif (JNLPPrefSet != null)\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tif (prefSet == null)\n \t\t\t\t\t\t\t\t\tprefSet = JNLPPrefSet;\n \t\t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\t\tprefSet.append(JNLPPrefSet);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t{ // if we got args straight from jnlp, then continue\n \t\t\t\t\t\t\t\tif (JNLPPrefSet != null)\n \t\t\t\t\t\t\t\t\tprefSpec = pop(argStack);\n \n \t\t\t\t\t\t\t\tif (prefSpec != null)\n \t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\tPrefSet servletPrefSet = requestPrefFromServlet(prefSpec, translationScope);\n \t\t\t\t\t\t\t\t\tif (servletPrefSet == null)\n \t\t\t\t\t\t\t\t\t\terror(\"incorrect prefXML string returned from the servlet=\" + prefSpec);\n \t\t\t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\t\tif (prefSet == null)\n \t\t\t\t\t\t\t\t\t\t\tprefSet = servletPrefSet;\n \t\t\t\t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\t\t\t\tprefSet.append(servletPrefSet);\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\terror(\"No code base argument :-( Can't load preferences.\");\n \t\t\t}\n \t\t\tbreak;\n \t\tcase ECLIPSE:\n \t\tcase JAR:\n \t\t\t// NB: This gets executed even if arg was null!\n \t\t\tFile localCodeBasePath = deriveLocalFileCodeBase(baseClass); // sets codeBase()!\n \t\t\targStack.push(arg);\n \n \t\t\t// AssetsRoot prefAssetsRoot = new AssetsRoot(Assets.getAssetsRoot().getRelative(PREFERENCES),\n \t\t\t// Files.newFile(PropertiesAndDirectories.thisApplicationDir(), PREFERENCES));\n \t\t\t// Assets.downloadZip(prefAssetsRoot, \"prefs\", null, false, prefsAssetVersion);\n \n \t\t\tSIMPLTranslationException metaPrefSetException = null;\n \t\t\tFile metaPrefsFile = new File(localCodeBasePath, ECLIPSE_PREFS_DIR + METAPREFS_XML);\n \t\t\tParsedURL metaPrefsPURL = new ParsedURL(metaPrefsFile);\n \t\t\ttry\n \t\t\t{\n \t\t\t\tmetaPrefSet = MetaPrefSet.load(metaPrefsPURL, translationScope);\n \t\t\t\tprintln(\"OK: Loaded MetaPrefs from: \" + metaPrefsFile);\n \t\t\t}\n \t\t\tcatch (SIMPLTranslationException e)\n \t\t\t{\n \t\t\t\tmetaPrefSetException = e;\n \t\t\t}\n \n \t\t\t// load the application dir prefs from this machine\n \t\t\t// (e.g., c:\\Documents and Settings\\andruid\\Application\n \t\t\t// Data\\combinFormation\\preferences\\prefs.xml\n \t\t\t// these are the ones that get edited interactively!\n \n \t\t\tprefSet = PrefSet.load(prefsPURL, translationScope);\n \t\t\tif (prefSet != null)\n \t\t\t\tprintln(\"Loaded Prefs from: \" + prefsPURL);\n \t\t\telse\n \t\t\t\tprintln(\"No Prefs to load from: \" + prefsPURL);\n \n \t\t\t// now seek the path to an application specific xml preferences file\n \t\t\targ = pop(argStack);\n \t\t\t// if (arg == null)\n \t\t\t// return;\n \t\t\tif (arg != null)\n \t\t\t{\n \t\t\t\t// load preferences specific to this invocation\n \t\t\t\tif (arg.endsWith(\".xml\"))\n \t\t\t\t{\n \t\t\t\t\tFile argPrefsFile = new File(localCodeBasePath, ECLIPSE_PREFS_DIR + arg);\n \t\t\t\t\tParsedURL argPrefsPURL = new ParsedURL(argPrefsFile);\n \t\t\t\t\ttry\n \t\t\t\t\t{\n \t\t\t\t\t\tPrefSet argPrefSet = PrefSet.load(argPrefsPURL, translationScope);\n \t\t\t\t\t\tif (metaPrefSetException != null)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\twarning(\"Couldn't load MetaPrefs:\");\n \t\t\t\t\t\t\tmetaPrefSetException.printTraceOrMessage(this, \"MetaPrefs\", metaPrefsPURL);\n \t\t\t\t\t\t\tprintln(\"\\tContinuing.\");\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (argPrefSet != null)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tprintln(\"OK: Loaded Prefs from: \" + argPrefsFile);\n \t\t\t\t\t\t\tif (prefSet != null)\n \t\t\t\t\t\t\t\tprefSet.addPrefSet(argPrefSet);\n \t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\tprefSet = argPrefSet;\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tprintln(\"\");\n \t\t\t\t\t\t\tString doesntExist = argPrefsFile.exists() ? \"\" : \"\\n\\tFile does not exist!!!\\n\\n\";\n \t\t\t\t\t\t\tprintln(\"ERROR: Loading Prefs from: \" + argPrefsFile + doesntExist);\n \t\t\t\t\t\t}\n \n \t\t\t\t\t}\n \t\t\t\t\tcatch (SIMPLTranslationException e)\n \t\t\t\t\t{\n \t\t\t\t\t\tif (metaPrefSetException != null)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\terror(\"Can't load MetaPrefs or Prefs. Quitting.\");\n \t\t\t\t\t\t\tmetaPrefSetException.printTraceOrMessage(this, \"MetaPrefs\", metaPrefsPURL);\n \t\t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t\t\tthrow e;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t// meta prefs o.k. we can continue without having loaded Prefs now\n \t\t\t\t\t\te.printTraceOrMessage(this, \"Couldn't load Prefs\", argPrefsPURL);\n \t\t\t\t\t\tprintln(\"\\tContinuing.\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t\targStack.push(arg);\n \t\t\t}\n \t\t\telse\n \t\t\t\targStack.push(arg); // let the next code handle returning.\n \t\t\tbreak;\n \t\t}\n \t\tSystem.out.println(\"Printing Prefs:\\n\");\n \t\ttry\n \t\t{\n \t\t\tif (prefSet != null)\n \t\t\t\tSimplTypesScope.serialize(prefSet, System.out, StringFormat.XML);\t\t\t\t\n \t\t}\n \t\tcatch (SIMPLTranslationException e)\n \t\t{\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n \t\tSystem.out.println(\"\\nPrefs Printed\");\n \t\tif (prefSet != null)\n \t\t\tpostProcessPrefs(prefSet);\n \t}", "public static void main(String[] args) throws IOException {\n\r\n ParserMain Parse = new ParserMain(args);\r\n Node n_program = Parse.program();\r\n\tSystem.out.println(\"\\ninside parser: parsing end, pass tree ro type checking\\n\");\r\n CodeGener cg= new CodeGener(n_program,args[0]); ////////////////////////////////////////////////////////////////////////////////////kavita\r\n h_typeCheckingClass tp = new h_typeCheckingClass(n_program);\r\n Node result = tp.starttype(n_program);\r\n\tSystem.out.println(\"\\ninside parser: TYPE checking end, pass tree to WRITING AST\\n\");\r\n AST2word ast=new AST2word();\r\n ast.read(result, args);\r\n\r\n\r\n\r\n\r\n }", "void initBeforeParsing() {\r\n }", "static public void main(String argv[]) {\n for (String s : argv) {\n if (s.equals(\"-a\")) {\n SHOW_TREE = true;\n }\n else if (s.equals(\"-s\")) {\n SHOW_SYM_TABLES = true;\n }\n else if (s.equals(\"-c\")) {\n GENERATE_CODE = true;\n }\n //Check if the string ends with '.cm'\n else if (s.length() > 3 && s.substring(s.length()-3).equals(\".cm\")) { \n // If it does, make that the input file\n INPUT_FILE = s;\n }\n }\n\n if (INPUT_FILE == null) {\n System.out.println(\"No input file provided or incorrect file extension (must be .cm). Exiting...\");\n System.exit(-1);\n }\n\n // Retrieve the actual file name from between the path and the extension\n // E.g. tests/sort.cm gives a result of 'sort'\n int nameStartIndex = INPUT_FILE.lastIndexOf('/');\n int nameEndIndex = INPUT_FILE.lastIndexOf('.');\n FILE_NAME = INPUT_FILE.substring(nameStartIndex + 1, nameEndIndex);\n \n /* Start the parser */\n try {\n // Save original stdout to switch back to it as needed\n PrintStream console = System.out;\n\n if (!SHOW_SYM_TABLES && !SHOW_TREE && !GENERATE_CODE) {\n System.out.println(\"Showing errors only.\");\n System.out.println(\"Use [-a] flag to print the abstract syntax tree\" + \"\\n\" \n + \"Use [-s] flag to print the symbol table\" + \"\\n\"\n + \"Use [-c] to generate assembly code (.tm)\"); \n } \n\n parser p = new parser(new Lexer(new FileReader(INPUT_FILE)));\n // implement \"-a\", \"-s\", \"-c\" options\n Absyn result = (Absyn)(p.parse().value); \n \n if (result != null) {\n \n // If the '-a' flag is set, print the abstract syntax tree to a .abs file\n if (SHOW_TREE) {\n System.out.println(\"Abstract syntax tree written to '\" + FILE_NAME + \".abs'\");\n\n //Redirect stdout\n File absFile = new File(FILE_NAME + \".abs\");\n FileOutputStream absFos = new FileOutputStream(absFile);\n PrintStream absPS = new PrintStream(absFos);\n System.setOut(absPS);\n\n // Print abstract syntax tree to FILE_NAME.abs in current directory\n ShowTreeVisitor visitor = new ShowTreeVisitor();\n result.accept(visitor, 0, false); \n\n //Reset stdout\n System.setOut(console);\n }\n if (SHOW_SYM_TABLES) {\n //Redirect stdout to a .sym file \n File symFile = new File(FILE_NAME + \".sym\");\n FileOutputStream symFos = new FileOutputStream(symFile);\n PrintStream symPS = new PrintStream(symFos);\n System.setOut(symPS);\n } \n else {\n //Toss stdout output into the void while doing semantic analysis\n System.setOut(new PrintStream(OutputStream.nullOutputStream()));\n } \n\n // Perform semantic analysis\n SemanticAnalyzer analyzerVisitor = new SemanticAnalyzer();\n result.accept(analyzerVisitor, 0, false);\n\n //Restore stdout\n System.setOut(console);\n\n if (SHOW_SYM_TABLES) {\n //Print after having reported any errors\n System.out.println(\"Symbol table written to '\" + FILE_NAME + \".sym'\");\n }\n\n //Only generate code if the flag is set\n if (GENERATE_CODE) {\n\n //First, confirm that there are no syntax or semantic errors\n //HAS_ERRORS is true if there are any syntax errors or semantic errors, and false if both are error free\n HAS_ERRORS = (p.errorFound || analyzerVisitor.errorFound);\n\n if (HAS_ERRORS) {\n System.out.println(\"Cannot generate code while there are errors. Exiting...\");\n }\n else {\n //No syntax or semantic errors, proceed with code generation\n System.out.println(\"Assembly code written to '\" + FILE_NAME + \".tm'\");\n\n //Redirect stdout to .tm file\n File tmFile = new File(FILE_NAME + \".tm\");\n FileOutputStream tmFos = new FileOutputStream(tmFile);\n PrintStream tmPS = new PrintStream(tmFos);\n System.setOut(tmPS);\n\n //Perform code generation\n CodeGenerator generatorVisitor = new CodeGenerator();\n //result.accept(generatorVisitor, 0, false);\n generatorVisitor.visit(result, FILE_NAME + \".tm\");\n \n } \n }\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"Could not find file '\" + INPUT_FILE + \"'. Check your spelling, and ensure it exists. Exiting...\");\n System.exit(-1); \n } catch (Exception e) {\n /* do cleanup here -- possibly rethrow e */\n e.printStackTrace();\n }\n }", "public void parse(FileReader inputFile, LexemAnalizator lexemAnalizator, SyntaxisAnalizator syntaxisAnalizator){\n // TODO: Write realization of parsing (Maybe, chain of responsibilities will be ok for this case)\n }", "private Grammar createCombinedGrammar(List<ClassDSLInformation> classesInfos) {\n\n\tLinkedList<GrammarCollectionBox> collectionCollector = new LinkedList<GrammarCollectionBox>();\n\n\tfor (ClassDSLInformation classInfo : classesInfos) {\n\n\t List<MethodDSLInformation> validMinfs = filterOnlyValidMethodInformations(classInfo);\n\n\t for (MethodDSLInformation methodInfo : validMinfs) {\n\n\t\tGrammarCollectionBox box = new GrammarCollectionBox(methodInfo);\n\n\t\tDslMethodType dslType = methodInfo.getDSLType();\n\t\tswitch (dslType) {\n\n\t\tcase Literal:\n\t\t // this.handleLiteral(methodInfo, box,\n\t\t // getTypeHandlerConfigurationOnGrammar(classesInfos, box));\n\t\t // this.handleNonLiteral(methodInfo, box,\n\t\t // getTypeHandlerConfigurationOnGrammar(classesInfos, box));\n\t\t // break;\n\t\t //$FALL-THROUGH$\n\t\tcase Operation:\n\t\t this.handleNonLiteral(methodInfo, box, getTypeHandlerConfigurationOnGrammar(classesInfos, box));\n\t\t break;\n\n\t\tcase AbstractionOperator:\n\t\t throw new UnsupportedOperationException(\"Functionality not yet implemented for \" + dslType);\n\t\tdefault:\n\t\t throw illegalForArg(dslType);\n\t\t}\n\t\tcollectionCollector.add(box);\n\t }\n\t}\n\n\t/* Add rule annotations where necessary */\n\n\t// build lookup list for relative priorization lookup\n\tMap<String, GrammarCollectionBox> uidLookupList = new HashMap<String, GrammarCollectionBox>();\n\tfor (GrammarCollectionBox box : collectionCollector) {\n\t uidLookupList.put(box.methodInfo.getUniqueIdentifier(), box);\n\t}\n\tuidLookupList = Collections.unmodifiableMap(uidLookupList);\n\tfor (GrammarCollectionBox grammarCollectionBox : collectionCollector) {\n\t addRuleAnnotations(grammarCollectionBox, uidLookupList);\n\t}\n\n\t/*\n\t * Assemble actual grammar from collected and configured rules and\n\t * categories\n\t */\n\tGrammar grammar = new Grammar();\n\tthis.setupGeneralGrammar(grammar);\n\n\tboolean waterSupported = isWaterSupported(classesInfos);\n\tif (waterSupported) {\n\t this.setWaterEnabled(waterSupported, grammar);\n\t}\n\n\tfor (ClassDSLInformation classInfo : classesInfos) {\n\t this.setupHostLanguageRules(classInfo.getHostLanguageRules(), grammar);\n\t}\n\n\tfor (GrammarCollectionBox box : collectionCollector) {\n\t addBoxContentToGrammar(box, grammar);\n\t}\n\n\treturn grammar;\n }", "private static void input(String[] args) {\n try (BufferedReader scanner = new BufferedReader(\n new InputStreamReader(args.length > 0 ? new FileInputStream(args[0]) : System.in))) {\n\n String linija;\n\n // regularne definicije\n while ((linija = scanner.readLine()) != null && linija.startsWith(\"{\")) {\n String tmp[] = linija.split(\" \");\n\n tmp[0] = tmp[0].substring(1, tmp[0].length() - 1);\n String naziv = tmp[0];\n String izraz = expandRegularDefinition(tmp[1]);\n\n regularneDefinicije.put(naziv, izraz);\n\n // System.out.println(naziv + \", \" + izraz);\n }\n\n // stanja\n while (!linija.startsWith(\"%X\")) {\n linija = scanner.readLine().trim();\n }\n\n skipSplitAdd(linija, stanjaLA);\n\n // leksicke jedinke\n while (!linija.startsWith(\"%L\")) {\n linija = scanner.readLine().trim();\n }\n\n skipSplitAdd(linija, leksickeJedinke);\n\n // pravila leksickog analizatora\n\n while ((linija = scanner.readLine()) != null) {\n while (!linija.startsWith(\"<\")) {\n linija = scanner.readLine();\n }\n\n String tmp[] = linija.split(\">\", 2);\n\n String stateName = tmp[0].substring(1, tmp[0].length());\n String regDef = tmp[1];\n\n regDef = expandRegularDefinition(regDef);\n\n // System.out.println(stateName + \"<> \" + regDef);\n LexerRule lexerRule = new LexerRule(regDef, stateName, 1, \"<\" + stateName + \">\" + regDef);\n lexerRules.add(lexerRule);\n\n scanner.readLine(); // preskoci {\n\n linija = scanner.readLine().trim();\n while (linija != null && scanner.ready() && !linija.equals(\"}\")) {\n // radi nesto s naredbom\n lexerRule.addAction(linija);\n linija = scanner.readLine().trim();\n }\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Engine build() {\n this.extensions.add(new CoreExtension());\n \n // load extensions\n this.extensions.forEach(extension -> {\n this.renderers.putAll(extension.getRenderers());\n this.directives.putAll(extension.getDirectives());\n this.nodeParsers.putAll(extension.getNodeParsers());\n this.filters.putAll(extension.getFilters());\n this.tests.putAll(extension.getTests());\n this.unaryOperators.putAll(extension.getUnaryOperators());\n this.binaryOperators.putAll(extension.getBinaryOperators());\n this.factories.addAll(extension.getNodeVisitorFactories());\n this.safeNodes.addAll(extension.getSafeNodes());\n });\n \n // create an operator token parser\n TokenParser unaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.unaryOperators.keySet().toArray(new String[]{}));\n TokenParser binaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.binaryOperators.keySet().toArray(new String[]{}));\n TokenParser operatorParser = unaryOperatorParser.or(binaryOperatorParser);\n \n // create a execute token parser\n TokenParser executeOpenParser = TokenParser.from(TokenType.EXECUTE_OPEN, compile(quote(this.executeOpen)), false);\n TokenParser executeCloseParser = TokenParser.from(TokenType.EXECUTE_CLOSE, compile(quote(this.executeClose)), false);\n TokenParser executeParser = executeOpenParser.then(NAME).then(operatorParser.or(EXPRESSION).until(executeCloseParser));\n this.starts.add(this.executeOpen);\n \n // create a print token parser\n TokenParser printOpenParser = TokenParser.from(TokenType.PRINT_OPEN, compile(quote(this.printOpen)), false);\n TokenParser printCloseParser = TokenParser.from(TokenType.PRINT_CLOSE, compile(quote(this.printClose)), false);\n TokenParser printParser = printOpenParser.then(operatorParser.or(EXPRESSION).until(printCloseParser));\n this.starts.add(this.printOpen);\n \n // create a comment token parser\n TokenParser commentOpenParser = TokenParser.from(TokenType.COMMENT_OPEN, compile(quote(this.commentOpen)), false);\n TokenParser commentCloseParser = TokenParser.from(TokenType.COMMENT_CLOSE, compile(quote(this.commentClose)), false);\n TokenParser commentInner = TokenParser.until(TokenType.TEXT, this.commentClose);\n TokenParser commentParser = commentOpenParser.then(commentInner.optional()).then(commentCloseParser);\n this.starts.add(this.commentOpen);\n \n // create a text token parser\n TokenParser leadingText = TokenParser.until(TokenType.TEXT, this.starts);\n TokenParser text = TokenParser.from(TokenType.TEXT, Pattern.compile(\"^.*\", Pattern.DOTALL | Pattern.MULTILINE), false);\n \n TokenParser principal = commentParser.or(executeParser).or(printParser).or(leadingText).zeroOrMore().then(text.optional()).then(EOF);\n this.tokenizerBuilder.parser(principal);\n Tokenizer tokenizer = this.tokenizerBuilder.build();\n \n ExpressionParser expressionParser = new ExpressionParser(this.unaryOperators, this.binaryOperators);\n \n Engine engine = new Engine(this.environment, expressionParser,\n renderers, directives, nodeParsers, \n filters, tests, factories, safeNodes,\n tokenizer);\n return engine;\n }", "public ParserLog startParse() throws LexemeException {\n\t\t// check token\n\t\tif (lexAnalyser.peekToken().getType() == \"PUBLIC_\") {\n\t\t\tconsumeToken();\n\t\t\tdoProgram();\n\t\t}\n\t\t// else exit program\n\t\telse {\n\t\t\tlogErrorMessage(peekToken.getType(), \"PUBLIC_\");\n\t\t}\n\t\treturn log;\n\t}", "private void readManifest() {\n String fn = Configs.manifestLocation;\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n try {\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fn);\n Node root = doc.getElementsByTagName(\"manifest\").item(0);\n String appPkg = root.getAttributes().getNamedItem(\"package\").getTextContent();\n\n Node appNode = doc.getElementsByTagName(\"application\").item(0);\n NodeList nodes = appNode.getChildNodes();\n for (int i = 0; i < nodes.getLength(); ++i) {\n Node n = nodes.item(i);\n String eleName = n.getNodeName();\n if (\"activity\".equals(eleName)) {\n try {\n NamedNodeMap m = n.getAttributes();\n String cls = m.getNamedItem(\"android:name\").getTextContent();\n if ('.' == cls.charAt(0)) {\n cls = appPkg + cls;\n }\n // record the information for activity filters\n NodeList filterNodes = n.getChildNodes();\n for (int idx = 0; idx < filterNodes.getLength(); idx++) {\n Node filterNode = filterNodes.item(idx);\n if (filterNode.getNodeName().equals(\"intent-filter\")) {\n Node actionNode = filterNode.getFirstChild();\n IntentFilter filter = new IntentFilter();\n // assume no duplicated intent filter for any activity\n while (actionNode != null) {\n if (actionNode.getNodeName().equals(\"action\")) {\n String actionName = actionNode.getAttributes().getNamedItem(\"android:name\").getTextContent();\n filter.addAction(actionName);\n } else if (actionNode.getNodeName().equals(\"category\")) {\n String category = actionNode.getAttributes().getNamedItem(\"android:name\").getTextContent();\n filter.addCategory(category);\n } else if (actionNode.getNodeName().equals(\"data\")) {\n {\n Node mTypeNode = actionNode.getAttributes().getNamedItem(\"android:mimeType\");\n String mType = mTypeNode == null ? null : mTypeNode.getTextContent();\n if (mType != null) {\n filter.addDataType(mType);\n }\n }\n {\n Node scheNode = actionNode.getAttributes().getNamedItem(\"android:scheme\");\n String scheme = scheNode == null ? null : scheNode.getTextContent();\n if (scheme != null) {\n filter.addDataScheme(scheme);\n }\n }\n {\n Node hostNode = actionNode.getAttributes().getNamedItem(\"android:host\");\n String host = hostNode == null ? null : hostNode.getTextContent();\n Node portNode = actionNode.getAttributes().getNamedItem(\"android:port\");\n String port = portNode == null ? null : portNode.getTextContent();\n if (host != null || port != null) {\n filter.addDataAuthority(host, port);\n }\n }\n {\n Node pathNode = actionNode.getAttributes().getNamedItem(\"android:path\");\n String path = pathNode == null ? null : pathNode.getTextContent();\n if (path != null) {\n filter.addDataPath(path, PatternMatcher.PATTERN_LITERAL);\n }\n }\n {\n Node pathNode = actionNode.getAttributes().getNamedItem(\"android:pathPrefix\");\n String path = pathNode == null ? null : pathNode.getTextContent();\n if (path != null) {\n filter.addDataPath(path, PatternMatcher.PATTERN_PREFIX);\n }\n }\n {\n Node pathNode = actionNode.getAttributes().getNamedItem(\"android:pathPattern\");\n String path = pathNode == null ? null : pathNode.getTextContent();\n if (path != null) {\n filter.addDataPath(path, PatternMatcher.PATTERN_SIMPLE_GLOB);\n }\n }\n }\n actionNode = actionNode.getNextSibling();\n }\n filterManager.addFilter(cls, filter);\n }\n }\n } catch (NullPointerException ne) {\n //work around for uk.co.busydoingnothing.catverbs_5.apk\n Logger.verb(\"ERROR\", \"Nullpointer Exception in readManifest, may be caused by \" +\n \"customized namespace\");\n continue;\n }\n }\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n Logger.err(getClass().getSimpleName(), ex.getMessage());\n }\n }", "protected void run() {\n\t\ttry {\n\t\t\tFileSet fileSet = targetModel.getFileSet();\n\t\t\tsetPhaseLength(phases.length);\n\t\t\tsetPhase(0);\n\t\t\tprintln(\"loading \" + fileSet.getCdt() + \" ... \");\n\t\t\ttry {\n\t\t\t\tparser.setParseQuotedStrings(fileSet.getParseQuotedStrings());\n\t\t\t\tparser.setResource(fileSet.getCdt());\n\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\n\t\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\tsetPhase(1);\n\t\t\t\tparseCDT(tempTable);\n\t\t\t} catch (LoadException e) {\n\t\t\t\tthrow e;\n\t\t\t} catch (Exception e) {\n\t\t\t\t// this should never happen!\n\t\t\t\tLogBuffer.println(\"TVModel.ResourceLoader.run() : while parsing cdt got error \" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new LoadException(\"Error Parsing CDT: \" + e, LoadException.CDTPARSE);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\n\t\t\tsetPhase(2);\n\t\t\tif (targetModel.getArrayHeaderInfo().getIndex(\"AID\") != -1) {\n\t\t\t\tprintln(\"parsing atr\");\n\t\t\t\ttry {\n\t\t\t\t\tparser.setResource(fileSet.getAtr());\n\t\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\tsetPhase(3);\n\t\t\t\t\tparseATR(tempTable);\n\t\t\t\t\ttargetModel.hashAIDs();\n\t\t\t\t\ttargetModel.hashATRs();\n\t\t\t\t\ttargetModel.aidFound(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tprintln(\"error parsing ATR: \" + e.getMessage());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tprintln(\"ignoring array tree.\");\n\t\t\t\t\tsetHadProblem(true);\n\t\t\t\t\ttargetModel.aidFound(false);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttargetModel.aidFound(false);\n\t\t\t}\n\t\t\t\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(4);\n\t\t\tif (targetModel.getGeneHeaderInfo().getIndex(\"GID\") != -1) {\n\t\t\t\tprintln(\"parsing gtr\");\n\t\t\t\ttry {\n\t\t\t\t\tparser.setResource(fileSet.getGtr());\n\t\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\t\tsetPhase(5);\n\t\t\t\t\tparseGTR(tempTable);\n\t\t\t\t\ttargetModel.hashGIDs();\n\t\t\t\t\ttargetModel.hashGTRs();\n\t\t\t\t\ttargetModel.gidFound(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tprintln(\"error parsing GTR: \" + e.getMessage());\n\t\t\t\t\tprintln(\"ignoring gene tree.\");\n\t\t\t\t\tsetHadProblem(true);\n\t\t\t\t\ttargetModel.gidFound(false);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttargetModel.gidFound(false);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(6);\n\n\t\t\ttry {\n\t\t\t\tprintln(\"parsing jtv config file\");\n\t\t\t\tString xmlFile = targetModel.getFileSet().getJtv();\n\t\t\t\t\n\t\t\t\tXmlConfig documentConfig;\n\t\t\t\tif (xmlFile.startsWith(\"http:\")) {\n\t\t\t\t\tdocumentConfig = new XmlConfig(new URL(xmlFile), \"DocumentConfig\");\n\t\t\t\t} else {\n\t\t\t\t\tdocumentConfig = new XmlConfig(xmlFile, \"DocumentConfig\");\n\t\t\t\t}\n\t\t\t\ttargetModel.setDocumentConfig(documentConfig);\n\t\t\t} catch (Exception e) {\n\t\t\t\ttargetModel.setDocumentConfig(null);\n\t\t\t\tprintln(\"Got exception \" + e);\n\t\t\t\tsetHadProblem(true);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(7);\n\t\t\tif (getException() == null) {\n\t\t\t\t/*\t\n\t\t\t\tif (!fileLoader.getCompleted()) {\n\t\t\t\t\tthrow new LoadException(\"Parse not Completed\", LoadException.INTPARSE);\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"f had no exceptoin set\");\n\t\t\t\t*/\n\t\t\t} else {\n\t\t\t\tthrow getException();\n\t\t\t}\n\t\t\ttargetModel.setLoaded(true);\n\t\t\t//\tActionEvent(this, 0, \"none\",0);\n\t\t} catch (java.lang.OutOfMemoryError ex) {\n\t\t\t\t\t\t\tJPanel temp = new JPanel();\n\t\t\t\t\t\t\ttemp. add(new JLabel(\"Out of memory, allocate more RAM\"));\n\t\t\t\t\t\t\ttemp. add(new JLabel(\"see Chapter 3 of Help->Documentation... for Out of Memory\"));\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(parent, temp);\n\t\t} catch (LoadException e) {\n\t\t\tsetException(e);\n\t\t\tprintln(\"error parsing File: \" + e.getMessage());\n\t\t\tprintln(\"parse cannot succeed. please fix.\");\n\t\t\tsetHadProblem(true);\n\t\t}\n\t\tsetFinished(true);\n\t}", "@Override\n public void parse() throws ParseException {\n\n /* parse file */\n try {\n\n Scanner scanner = new Scanner(file, CHARSET_UTF_8);\n\n MowerConfig mowerConfig = null;\n\n int lineNumber = 1;\n\n do {\n\n boolean even = lineNumber % 2 == 0;\n String line = scanner.nextLine();\n\n /* if nothing in the file */\n if ((line == null || line.isEmpty()) && lineNumber == 1) {\n\n throw new ParseException(\"Nothing found in the file: \" + file);\n\n /* first line: lawn top right position */\n } else if(lineNumber == 1) {\n\n Position lawnTopRight = Position.parsePosition(line);\n config.setLawnTopRightCorner(lawnTopRight);\n\n /* even line: mower init */\n } else if (even) {\n\n int lastWhitespace = line.lastIndexOf(' ');\n Position p = Position.parsePosition(line.substring(0, lastWhitespace));\n Orientation o = Orientation.parseOrientation(line.substring(lastWhitespace).trim());\n\n mowerConfig = new MowerConfig();\n mowerConfig.setInitialPosition(p);\n mowerConfig.setInitialOrientation(o);\n\n /* odd line: mower commands */\n } else {\n\n mowerConfig.setCommands(MowerCommand.parseCommands(line));\n config.addMowerConfig(mowerConfig);\n }\n\n lineNumber++;\n\n } while(scanner.hasNextLine());\n\n\n } catch (Exception e) {\n throw new ParseException(\"Exception: \" + e.getMessage());\n }\n\n }", "private void parse() {\r\n for (int length = sourceCode.length(); index < length; ++index) {\r\n char c = sourceCode.charAt(index);\r\n if (!Character.isWhitespace(c)) {\r\n ArrayList<String> tokens = tokenizeStatement(sourceCode);\r\n if (tokens != null) {\r\n parseStatementTokens(tokens);\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n }", "private void explore(RuleContext ctx) {\n if (ctx.getChildCount() != 1) {\n String ruleName = Python3Parser.ruleNames[ctx.getRuleIndex()];\n astRepresenation.append(ruleName);\n astRepresenation.append(\": \");\n astRepresenation.append(ctx.getText());\n astRepresenation.append(\"\\n\");\n }\n for (int i = 0; i < ctx.getChildCount(); i++) {\n ParseTree element = ctx.getChild(i);\n if (element instanceof RuleContext) {\n explore((RuleContext) element);\n }\n }\n }", "public static void main(String[] args) throws Exception {\n if(args.length < 2) {\n System.out.println(\"Not enough parameters! java -jar programAnalysis.jar <Analysis> <Input file> \");\n return;\n }\n\n // Parse the analysis input\n String analysisString = args[0];\n\n // Get Analysis from factory\n GeneralAnalysisFactory analysisFactory = new GeneralAnalysisFactory();\n GeneralAnalysis analysis = analysisFactory.getInstance(analysisString);\n\n TheLangLexer lex = new TheLangLexer(new ANTLRFileStream(args[1]));\n CommonTokenStream tokens = new CommonTokenStream(lex);\n TheLangParser parser = new TheLangParser(tokens);\n ProgramGeneralAnalysisListener listener = new ProgramGeneralAnalysisListener(analysis);\n parser.addParseListener(listener);\n\n try {\n TheLangParser.ProgramContext parserResult = parser.program();\n\n BaseMutableTreeNode rootTree = listener.getRootTree();\n FlowGraph graph = new FlowGraph();\n\n Enumeration en = rootTree.preorderEnumeration();\n int i = 1;\n while (en.hasMoreElements()) {\n\n // Unfortunately the enumeration isn't genericised so we need to downcast\n // when calling nextElement():\n BaseMutableTreeNode node = (BaseMutableTreeNode) en.nextElement();\n ParserRuleContext object = (ParserRuleContext) node.getUserObject();\n\n if(BaseStatement.class.isAssignableFrom(node.getClass())) {\n BaseStatement statement = (BaseStatement) node;\n graph.processStatement(statement);\n\n System.out.println(\"label-\" + i++ + \": \" + object.getText());\n }\n\n }\n\n analysis.doAnalysis(graph);\n\n System.out.println(analysis.printResult());\n\n// CommonTree t = (CommonTree) parserResult.getTree();\n// CommonTree t2 = (CommonTree) t.getChild(0);\n// int startToken = t2.getTokenStartIndex();\n// int stopToken = t2.getTokenStopIndex();\n// CommonToken token = (CommonToken) t2.getToken();\n// System.out.println(token.getText());\n//\n// if (parserResult != null) {\n// CommonTree tree = (CommonTree) parserResult.tree;\n// System.out.println(tree.toStringTree());\n// }\n } catch (RecognitionException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void run(String... args) throws Exception {\n ParseServices bean = context.getBean(ParseServices.class);\n try {\n bean.parse();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void enterApplication(final ProgramParser.ApplicationContext ctx) {\n }", "public ProgramInfo(Node program) throws XPathExpressionException, FileNotFoundException\n\t{\n\t\tXPathFactory factory = XPathFactory.newInstance();\n\t\tXPath xpath = factory.newXPath();\n\t\t\n\t\tNode n = (Node)xpath.evaluate(\"name\", program, XPathConstants.NODE);\n\t\tname = n.getTextContent();\n\t\t\n\t\tn = (Node)xpath.evaluate(\"classpath\", program, XPathConstants.NODE);\n\t\tif (n != null)\n\t\t\tclasspath = n.getTextContent();\n\n\t\tn = (Node)xpath.evaluate(\"securityPolicyFile\", program, XPathConstants.NODE);\n\t\tif (n != null)\n\t\t{\n\t\t\tsecurityPolicyFile = n.getTextContent();\n\t\t\tFile spf = new File(securityPolicyFile);\n\t\t\tif (!spf.exists())\n\t\t\t{\n\t\t\t\tthrow new FileNotFoundException(\"Security policy file \" + securityPolicyFile + \" does not exist\");\n\t\t\t}\n\t\t}\n\n\t\tNodeList nl = (NodeList)xpath.evaluate(\"class\", program, XPathConstants.NODESET);\n\t\tclasses = new AssignmentClasses[nl.getLength()];\n\t\tfor (int i = 0; i < nl.getLength(); i++)\n\t\t{\n\t\t\tString className = nl.item(i).getTextContent();\n\t\t\tNode showClassAttribute = nl.item(i).getAttributes().getNamedItem(\"showClass\");\n\t\t\tboolean showClass = false;\n\t\t\tif (showClassAttribute != null)\n\t\t\t{\n\t\t\t\tshowClass = showClassAttribute.getTextContent().equalsIgnoreCase(\"yes\");\n\t\t\t}\n\t\t\tclasses[i] = new AssignmentClasses(className, showClass);\n\t\t}\n\n\t\t// Get list of files to copy into place, if any.\n\t\tnl = (NodeList)xpath.evaluate(\"copyFile\", program, XPathConstants.NODESET);\n\t\tfilesToCopy = new CopyFile[nl.getLength()];\n\t\tfor (int i = 0; i < nl.getLength(); i++)\n\t\t{\n\t\t\tString srcPath = (String)xpath.evaluate(\"srcPath\", nl.item(i), XPathConstants.STRING);\n\t\t\tString destBase = (String)xpath.evaluate(\"destBase\", nl.item(i), XPathConstants.STRING);\n\t\t\tif (srcPath != null && destBase != null)\n\t\t\t{\n\t\t\t\tFile srcPathFile = new File(srcPath);\n\t\t\t\tif (!srcPathFile.exists())\n\t\t\t\t{\n\t\t\t\t\tthrow new FileNotFoundException(\"copyFile/srcPath \" + srcPath + \" does not exist\");\n\t\t\t\t}\n\t\t\t\tfilesToCopy[i] = new CopyFile(srcPathFile, destBase);\n\t\t\t}\n\t\t}\n\n\t\tnl = (NodeList)xpath.evaluate(\"runConfiguration\", program, XPathConstants.NODESET);\n\t\trunConfigurations = new RunConfiguration[nl.getLength()];\n\t\tfor (int i = 0; i < nl.getLength(); i++)\n\t\t{\n\t\t\trunConfigurations[i] = new RunConfiguration(nl.item(i));\n\t\t}\n\t}", "public void doProgram() throws LexemeException {\n\t\tlogMessage(\"<program>-->{<class>}\");\n\t\tfunctionStack.push(\"<program>\");\n\t\t// while(lexAnalyser.peekToken().getType() != \"EOSTREAM_\")\n\t\twhile (ifPeek(\"CLASS_\")) {\n\t\t\tdoClass(\"<program>\");\n\t\t}\n\t\t// else exit program\n\t\twhile (!ifPeek(\"EOSTREAM_\")) {\n\t\t\tlogErrorMessage(peekToken.getType(), \"EOSTREAM_\");\n\t\t\tpeekToken.setType(\"EOSTREAM_\");\n\t\t}\n\t\tSystem.out.println(\"Parser Finished with no errors found\");\n\t\tlog.logMsg(\"Parser Finished with no errors found\");\n\t\tlog.closeLog();\n\t\tfunctionStack.pop();\n\t}", "@Override\n public Collection<XmlSuite> parse() throws ParserConfigurationException, SAXException, IOException {\n // Each suite found is put in this list, using their canonical\n // path to make sure we don't add a same file twice\n // (e.g. \"testng.xml\" and \"./testng.xml\")\n List<String> processedSuites = Lists.newArrayList();\n XmlSuite resultSuite = null;\n\n List<String> toBeParsed = Lists.newArrayList();\n List<String> toBeAdded = Lists.newArrayList();\n List<String> toBeRemoved = Lists.newArrayList();\n\n if (m_fileName != null) {\n File mainFile = new File(m_fileName);\n toBeParsed.add(mainFile.getCanonicalPath());\n }\n\n /*\n * Keeps a track of parent XmlSuite for each child suite\n */\n Map<String, XmlSuite> childToParentMap = Maps.newHashMap();\n while (toBeParsed.size() > 0) {\n\n for (String currentFile : toBeParsed) {\n File currFile = new File(currentFile);\n File parentFile = currFile.getParentFile();\n InputStream inputStream = m_inputStream != null ? m_inputStream : new FileInputStream(currentFile);\n\n IFileParser<XmlSuite> fileParser = getParser(currentFile);\n XmlSuite currentXmlSuite = fileParser.parse(currentFile, inputStream, m_loadClasses);\n processedSuites.add(currentFile);\n toBeRemoved.add(currentFile);\n\n if (childToParentMap.containsKey(currentFile)) {\n XmlSuite parentSuite = childToParentMap.get(currentFile);\n //Set parent\n currentXmlSuite.setParentSuite(parentSuite);\n //append children\n parentSuite.getChildSuites().add(currentXmlSuite);\n }\n\n if (null == resultSuite) {\n resultSuite = currentXmlSuite;\n }\n\n List<String> suiteFiles = currentXmlSuite.getSuiteFiles();\n if (suiteFiles.size() > 0) {\n for (String path : suiteFiles) {\n String pathFull = Common.checkFileExtension(path, \"xml\");\n String canonicalPath;\n if (parentFile != null && new File(parentFile, pathFull).exists()) {\n canonicalPath = new File(parentFile, pathFull).getCanonicalPath();\n } else {\n canonicalPath = new File(pathFull).getCanonicalPath();\n }\n if (!processedSuites.contains(canonicalPath)) {\n toBeAdded.add(canonicalPath);\n childToParentMap.put(canonicalPath, currentXmlSuite);\n }\n }\n currentXmlSuite.setSuiteFiles(new LinkedList<String>());\n }\n }\n\n //\n // Add and remove files from toBeParsed before we loop\n //\n for (String s : toBeRemoved) {\n toBeParsed.remove(s);\n }\n toBeRemoved = Lists.newArrayList();\n\n for (String s : toBeAdded) {\n toBeParsed.add(s);\n }\n toBeAdded = Lists.newArrayList();\n\n }\n\n //returning a list of single suite to keep changes minimum\n List<XmlSuite> resultList = Lists.newArrayList();\n resultList.add(resultSuite);\n\n boolean postProcess = true;\n\n if (postProcess && m_postProcessor != null) {\n return m_postProcessor.process(resultList);\n } else {\n return resultList;\n }\n }", "private List<String> applySSA() {\n\t\t//String content = Utility.getStringFromFile(filePath);\n\t\tList<String> ssa = new ArrayList<String>();\n\t\tInputStream stream = new ByteArrayInputStream(source.getBytes());\n\t\ttry {\n\t\t\tANTLRInputStream input = new ANTLRInputStream(stream);\n\t\t\tEntryLexer lexer = new EntryLexer(input);\n\t\t\tCommonTokenStream tokens = new CommonTokenStream(lexer);\n\t\t\tEntryParser parser = new EntryParser(tokens);\n\t\t\tProgContext prog = parser.prog();\n\t\t\tconvertToSSAString(prog, ssa);\n\t\t\treturn ssa;\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public void testSchemeConstructor(){\n try{\n try{\n StringReader sr = new StringReader(\"\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"==(A,B,C\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A()\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A('a')\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n\n try{\n StringReader sr = new StringReader(\"A(A B)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,Y,Y)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,Y,Z,X,Q)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,Y,Z,Q,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(Y,X,Z,X,Q)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(Y,X,Z,Q,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,X,Z,Y,Q)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(Y,Q,Z,X,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,X,X,X,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n StringReader sr = new StringReader(\"Apple(Id1)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n ArrayList<Node> nodes = scheme.getNodes();\n assertTrue(nodes.get(0) instanceof Identifier);\n assertTrue(((Token)nodes.get(0)).getValue().equals(\"Id1\"));\n assertTrue(scheme.getName().getValue().equals(\"Apple\"));\n assertTrue(scheme.toString().equals(\"Apple(Id1)\"));\n\n sr = new StringReader(\"M(Id1,\\n Id2)\");\n lex = new Lex(sr);\n scheme = new ExtendedScheme(lex);\n nodes = scheme.getNodes();\n assertTrue(nodes.size() == 2);\n assertTrue(nodes.get(0) instanceof Identifier);\n assertTrue(nodes.get(1) instanceof Identifier);\n assertTrue(((Token)nodes.get(0)).getValue().equals(\"Id1\"));\n assertTrue(((Token)nodes.get(1)).getValue().equals(\"Id2\"));\n assertTrue(scheme.getName().getValue().equals(\"M\"));\n assertTrue(scheme.toString().equals(\"M(Id1,Id2)\"));\n\n sr = new StringReader(\"List(Name1,\\n Name2,\\n Name3)\");\n lex = new Lex(sr);\n scheme = new ExtendedScheme(lex);\n nodes = scheme.getNodes();\n assertTrue(nodes.size() == 3);\n assertTrue(nodes.get(0) instanceof Identifier);\n assertTrue(nodes.get(1) instanceof Identifier);\n assertTrue(nodes.get(2) instanceof Identifier);\n assertTrue(((Token)nodes.get(0)).getValue().equals(\"Name1\"));\n assertTrue(((Token)nodes.get(1)).getValue().equals(\"Name2\"));\n assertTrue(((Token)nodes.get(2)).getValue().equals(\"Name3\"));\n assertTrue(scheme.getName().getValue().equals(\"List\"));\n assertTrue(scheme.toString().equals(\n \"List(Name1,Name2,Name3)\"));\n }catch(ParserException e){\n System.out.println(\n \"ERROR in SchemeTest.testSchemeConstructor\\n\" +\n \" should not get here.\\n\" +\n \" error = \" + e.getMessage());\n };\n }", "public static void main(String[] args) throws IOException{\n\t\tint i = 0;\n\t\tfor(String s : args){\n\t\t\tif(isCSV(s)){\n\t\t\t\tif(i == 0){\n\t\t\t\t\tkeywords = keywords_openacc;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Folding \" + s);\n\t\t\t\tcurrentTest=s;\n\t\t\t\tstringToCSV(buildString(csvToString(s)));\n\t\t\t}else{\n\t\t\t\ti++;\n\t\t\t\tassignKeywords(s);\n\t\t\t}\n\t\t}\n\t}", "public interface ValidParserRules {\n String getName();\n String getPrefix();\n PropertyType getType();\n ValidParserRules getParent();\n}", "public void parse(Lexer lex);", "protected void runLexer()\n\t{\n\t\tString args[] = {input.getAbsolutePath(), \"*.java\", output.getAbsolutePath(), \"0\", \"full\", \"-1\", \"1.0\", \"--in_place\", \"--metadata_light\"};\n\t\tExternalOperation.callScript(\"python2.7\", lexer, args);\n\t}", "private void scan(String filename){\n\t\tverifyAutomatons();\n\t\tsymbolTable = new SymbolTable();\n\t\tprogramInternalForm = new ProgramInternalForm();\n\n\t\tString[] tokensVal = getProgramFromFile(filename);\n\n\t\tint i = 0;\n\t\twhile (i < tokensVal.length) {\n\t\t\tverifySingleTokens(tokensVal[i]);\n\t\t\ti++;\n\t\t}\n\t}", "public Grammar(){\n this.builder = Cli.<VesperCommand>builder(\"vesper\")\n .withDescription(\"the nice CLI for Vesper\")\n .withDefaultCommand(HelpCommand.class)\n .withCommand(HelpCommand.class)\n .withCommand(LogCommand.class)\n .withCommand(ResetCommand.class)\n .withCommand(InspectCommand.class)\n .withCommand(ReplCommand.class)\n .withCommand(ConfigCommand.class)\n .withCommand(AddCommand.class)\n .withCommand(OriginShow.class)\n .withCommand(PublishCommand.class)\n .withCommand(FormatCommand.class)\n .withCommand(DeduplicateCommand.class)\n .withCommand(OptimizeImportsCommand.class);\n\n builder.withGroup(\"whereis\")\n .withDescription(\"Locates a program unit found in the tracked source\")\n .withDefaultCommand(LocateClassCommand.class)\n .withCommand(LocateClassCommand.class)\n .withCommand(LocateMethodCommand.class)\n .withCommand(LocateParamCommand.class)\n .withCommand(LocateVarCommand.class)\n .withCommand(LocateFieldCommand.class);\n\n builder.withGroup(\"notes\")\n .withDescription(\"Manage set of notes describing the tracked source\")\n .withDefaultCommand(NotesShow.class)\n .withCommand(NotesShow.class)\n .withCommand(NoteAdd.class);\n\n builder.withGroup(\"rename\")\n .withDescription(\"Manage set of renaming commands\")\n .withDefaultCommand(RenameClassCommand.class)\n .withCommand(RenameClassCommand.class)\n .withCommand(RenameMethodCommand.class)\n .withCommand(RenameParameterCommand.class)\n .withCommand(RenameFieldCommand.class)\n .withCommand(RenameLocalVariableCommand.class);\n\n builder.withGroup(\"rm\")\n .withDescription(\"Remove file contents from the tracked source\")\n .withDefaultCommand(RemoveSourceCommand.class)\n .withCommand(RemoveSourceCommand.class)\n .withCommand(RemoveClassCommand.class)\n .withCommand(RemoveMethodCommand.class)\n .withCommand(RemoveParameterCommand.class)\n .withCommand(RemoveFieldCommand.class)\n .withCommand(RemoveLocalVariableCommand.class)\n .withCommand(RemoveRegionCommand.class);\n\n builder.withGroup(\"clip\")\n .withDescription(\"Clip a code section from the tracked source\")\n .withDefaultCommand(ClipRangeCommand.class)\n .withCommand(ClipRangeCommand.class);\n\n }", "@Override\n public Cli<C> build() {\n ParserMetadata<C> parserConfig = this.parserBuilder.build();\n\n CommandMetadata defaultCommandMetadata = null;\n List<CommandMetadata> allCommands = new ArrayList<CommandMetadata>();\n if (defaultCommand != null) {\n defaultCommandMetadata = MetadataLoader.loadCommand(defaultCommand, baseHelpSections, parserConfig);\n }\n\n List<CommandMetadata> defaultCommandGroup = defaultCommandGroupCommands != null\n ? MetadataLoader.loadCommands(defaultCommandGroupCommands, baseHelpSections, parserConfig)\n : new ArrayList<CommandMetadata>();\n\n allCommands.addAll(defaultCommandGroup);\n if (defaultCommandMetadata != null)\n allCommands.add(defaultCommandMetadata);\n\n // Build groups\n List<CommandGroupMetadata> commandGroups;\n if (groups != null) {\n commandGroups = new ArrayList<CommandGroupMetadata>();\n for (GroupBuilder<C> groupBuilder : groups.values()) {\n commandGroups.add(groupBuilder.build());\n }\n } else {\n commandGroups = new ArrayList<>();\n }\n\n // Find all commands registered in groups and sub-groups, we use this to\n // check this is a valid CLI with at least 1 command\n for (CommandGroupMetadata group : commandGroups) {\n allCommands.addAll(group.getCommands());\n if (group.getDefaultCommand() != null)\n allCommands.add(group.getDefaultCommand());\n\n // Make sure to scan sub-groups\n Queue<CommandGroupMetadata> subGroups = new LinkedList<CommandGroupMetadata>();\n subGroups.addAll(group.getSubGroups());\n while (!subGroups.isEmpty()) {\n CommandGroupMetadata subGroup = subGroups.poll();\n allCommands.addAll(subGroup.getCommands());\n if (subGroup.getDefaultCommand() != null)\n allCommands.add(subGroup.getDefaultCommand());\n subGroups.addAll(subGroup.getSubGroups());\n }\n }\n\n // add commands to groups based on the value of groups in the @Command\n // annotations\n // rather than change the entire way metadata is loaded, I figured just\n // post-processing was an easier, yet uglier, way to go\n MetadataLoader.loadCommandsIntoGroupsByAnnotation(allCommands, commandGroups, defaultCommandGroup,\n baseHelpSections, parserConfig);\n\n // Build restrictions\n // Use defaults if none specified\n if (restrictions.size() == 0)\n withDefaultRestrictions();\n\n if (allCommands.size() == 0)\n throw new IllegalArgumentException(\"Must specify at least one command to create a CLI\");\n\n // Build metadata objects\n GlobalMetadata<C> metadata = MetadataLoader.<C> loadGlobal(name, description, defaultCommandMetadata,\n ListUtils.unmodifiableList(defaultCommandGroup), ListUtils.unmodifiableList(commandGroups),\n ListUtils.unmodifiableList(restrictions), Collections.unmodifiableCollection(baseHelpSections.values()),\n parserConfig);\n\n return new Cli<C>(metadata);\n }", "public void parse(String filename);", "private void visitAdditionalEntrypoints() {\n\tLinkedHashSet<jq_Class> extraClasses = new LinkedHashSet<jq_Class>();\n\tfor(jq_Method m: publicMethods) {\n\t extraClasses.add(m.getDeclaringClass());\n\t}\n\t\n\tfor(jq_Class cl: extraClasses) {\n\t visitClass(cl);\n\t\t\tjq_Method ctor = cl.getInitializer(new jq_NameAndDesc(\"<init>\", \"()V\"));\n\t\t\tif (ctor != null)\n\t\t\t\tvisitMethod(ctor);\n\t}\n\n\tfor(jq_Method m: publicMethods) {\n\t visitMethod(m);\n\t}\n }", "private void run()\n {\n searchLexDb(\"^providing_\", true);\n }", "public static void activityExpand(List<String> activityList){\n List<SootClass> activityClassList = new ArrayList<>();\n for (String activityStr: activityList) {\n SootClass activityClass = Scene.v().getSootClass(activityStr);\n if (!activityClass.isPhantom())\n activityClassList.add(activityClass);\n }\n // Then generate a list of activity class expand sets\n Map<SootClass, Set<SootMethod>> activityMethodExpand = new HashMap<>();\n Map<SootClass, Set<SootClass>> activityClassExpand = new HashMap<>();\n\n for (SootClass activityClass : activityClassList) {\n if (Config.applicationClasses.contains(activityClass)) {\n System.out.println(activityClass.toString() + \" found\");\n // Generate call graph conservatively, using activity class as main class\n // add activity methods as entrypoints\n Scene.v().setEntryPoints(activityClass.getMethods());\n CHATransformer.v().transform();\n CallGraph cg = Scene.v().getCallGraph();\n // get method set\n ReachableMethods relMethods = Scene.v().getReachableMethods();\n Iterator<MethodOrMethodContext> relMethodsItr = relMethods.listener();\n\n activityMethodExpand.put(activityClass, new HashSet<SootMethod>());\n activityClassExpand.put(activityClass, new HashSet<SootClass>());\n HashSet<SootMethod> deltaRelMethods = new HashSet<>();\n\n while (relMethodsItr.hasNext()){\n SootMethod method = relMethodsItr.next().method();\n activityMethodExpand.get(activityClass).add(method);\n SootClass declaringClass = method.getDeclaringClass();\n activityClassExpand.get(activityClass).add(declaringClass);\n if (declaringClass.hasSuperclass()) {\n SootClass superClass = declaringClass.getSuperclass();\n if (superClass.getName().equals(\"android.os.AsyncTask\") ||\n superClass.getName().equals(\"java.lang.Thread\") ||\n superClass.getName().equals(\"java.util.concurrent.ForkJoinWorkerThread\") ||\n superClass.getName().equals(\"android.os.HandlerThread\") ||\n superClass.implementsInterface(\"Runnable\") ||\n superClass.getName().equals(\"java.util.concurrent.FutureTask\") ||\n superClass.implementsInterface(\"RunnableFuture\") ||\n superClass.implementsInterface(\"ScheduledFuture\") ||\n superClass.implementsInterface(\"RunnableScheduledFuture\") ||\n superClass.getName().equals(\"android.os.Handler\") ||\n superClass.getName().equals(\"android.content.AsyncQueryHandler\") ||\n superClass.getName().equals(\"android.content.AsyncQueryHandler.WorkerHandler\") ||\n superClass.getName().equals(\"android.webkit.HttpAuthHandler\") ||\n superClass.getName().equals(\"android.webkit.HttpAuthHandler\"))\n deltaRelMethods.addAll(declaringClass.getMethods());\n }\n }\n activityMethodExpand.get(activityClass).addAll(deltaRelMethods);\n Util.LOGGER.info(activityClass.toString() + \" finished\");\n }\n else\n System.out.println(activityClass.toString() + \" not found\");\n\n // extract text features\n try {\n File tempFile = new File(Config.outputDir + \"/\" + activityClass.getName() + \"_text_feature.txt\");\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(tempFile), \"UTF8\"));\n\n JSONObject outInfo = new JSONObject();\n\n for (SootClass appClass: activityClassExpand.get(activityClass)){\n // class name\n outInfo.put(appClass.getName(), new JSONObject());\n // package name\n JSONObject appClassInfo = (JSONObject)outInfo.get(appClass.getName());\n appClassInfo.put(\"package_name\", appClass.getPackageName());\n // field names\n appClassInfo.put(\"fields\", new JSONArray());\n JSONArray appClassFields = (JSONArray)appClassInfo.get(\"fields\");\n for (SootField classField: appClass.getFields())\n appClassFields.put(classField.getDeclaration());\n // reserve method list\n appClassInfo.put(\"methods\", new JSONArray());\n }\n // class names, method names and field names\n for (SootMethod appMethod: activityMethodExpand.get(activityClass)) {\n JSONObject appClassInfo = (JSONObject)outInfo.get(appMethod.getDeclaringClass().getName());\n JSONArray methodList = (JSONArray)appClassInfo.get(\"methods\");\n methodList.put(appMethod.getDeclaration());\n }\n\n out.write(outInfo.toString());\n out.close();\n }\n catch (Exception e){\n System.out.println(\"Output failed\");\n }\n }\n }", "public SyntaxParser( StyleScheme scheme )\r\n\t{\r\n\t\tLogger.debug(\"Reading word list\", Level.GUI,this);\r\n\t\tm_listFunctions = new Vector<String>();\r\n\t\tm_listModifiers = new Vector<String>();\r\n\t\tm_listConstants = new Vector<String>();\r\n\t\tm_listLanguage = new Vector<String>();\r\n\t\tfor(String f : s_functions) m_listFunctions.addElement(f);\r\n\t\tfor(String m : s_modifiers) m_listModifiers.addElement(m);\r\n\t\tfor(String l : s_language) m_listLanguage.addElement(l);\r\n\t\tfor(String c : s_constants) m_listConstants.addElement(c);\r\n\t\tLogger.debug(\"Word list read\", Level.GUI,this);\r\n\t\tm_scheme = scheme;\r\n\t\t// Configure the JTOPAS tokenizer to recognise SPEL\r\n\t\tconfigureTokenizer();\r\n\t}", "private VersionExpansionParser(String expansion) {\n\n this.expansionString = expansion;\n\n }", "public static void main(String[] args) throws FileNotFoundException {\n\t\tString automaton = \"Q0\t= (d -> Q1|a -> Q4),Q1\t= (e -> Q2),Q2\t= (f -> STOP),Q4\t= (b -> Q5),Q5\t= (c -> Q0).\";\n\t\tTransitionsParser tp = new TransitionsParser(new StringReader(automaton));\n\t\tFSM c = new FSM();\n\t\ttp.parse(c);\n\t\tSystem.out.println(\"Fsm: \" + c._transitions);\n\t\tSystem.out.println(\" same states: \" + c._sameStates);\n\t\tSystem.out.println(\" id->name: \" + c._stateIdToName);\n\t\tSystem.out.println(\" name->id: \" + c._stateNameToId);\n\t\tSystem.out.println(\" numberOfStates: \" + c.numberOfStates());\n\t\tSystem.out.println(\" alphabet: \" + c.getAlphabet());\n\t\tfor (int start=0; start<c.numberOfStates(); start++) {\n\t\t\tfor (String action : c.getAlphabet()) {\n\t\t\t\tint end = c.getTransition(start, action);\n\t\t\t\tif (end != -1) {\n\t\t\t\t\tSystem.out.format(\"Transition: %s --%s--> %s\\n\", start, action, end);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSafetyAutomaton sa = new SafetyAutomaton(false, c, \"Fred\");\n\t\tSystem.out.println(sa);\n\t}", "private void bootstrap() {\n\t\t// configure default values\n\t\t// maxPoolSize = 5;\n\t\tthis.parserPool.setMaxPoolSize(50);\n\t\t// coalescing = true;\n\t\tthis.parserPool.setCoalescing(true);\n\t\t// expandEntityReferences = false;\n\t\tthis.parserPool.setExpandEntityReferences(false);\n\t\t// ignoreComments = true;\n\t\tthis.parserPool.setIgnoreComments(true);\n\t\t// ignoreElementContentWhitespace = true;\n\t\tthis.parserPool.setIgnoreElementContentWhitespace(true);\n\t\t// namespaceAware = true;\n\t\tthis.parserPool.setNamespaceAware(true);\n\t\t// schema = null;\n\t\tthis.parserPool.setSchema(null);\n\t\t// dtdValidating = false;\n\t\tthis.parserPool.setDTDValidating(false);\n\t\t// xincludeAware = false;\n\t\tthis.parserPool.setXincludeAware(false);\n\n\t\tMap<String, Object> builderAttributes = new HashMap<>();\n\t\tthis.parserPool.setBuilderAttributes(builderAttributes);\n\n\t\tMap<String, Boolean> parserBuilderFeatures = new HashMap<>();\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/disallow-doctype-decl\", TRUE);\n\t\tparserBuilderFeatures.put(XMLConstants.FEATURE_SECURE_PROCESSING, TRUE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-general-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/validation/schema/normalized-value\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-parameter-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/dom/defer-node-expansion\", FALSE);\n\t\tthis.parserPool.setBuilderFeatures(parserBuilderFeatures);\n\n\t\ttry {\n\t\t\tthis.parserPool.initialize();\n\t\t}\n\t\tcatch (ComponentInitializationException x) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3 ParserPool\", x);\n\t\t}\n\n\t\ttry {\n\t\t\tInitializationService.initialize();\n\t\t}\n\t\tcatch (InitializationException e) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3\", e);\n\t\t}\n\n\t\tXMLObjectProviderRegistry registry;\n\t\tsynchronized (ConfigurationService.class) {\n\t\t\tregistry = ConfigurationService.get(XMLObjectProviderRegistry.class);\n\t\t\tif (registry == null) {\n\t\t\t\tregistry = new XMLObjectProviderRegistry();\n\t\t\t\tConfigurationService.register(XMLObjectProviderRegistry.class, registry);\n\t\t\t}\n\t\t}\n\n\t\tregistry.setParserPool(this.parserPool);\n\t}", "public static void main(String[] args) throws Exception{\n\t\tParseTree tree = new ParseTree(new Information(\"C:\\\\Users\\\\Darkras\\\\Documents\\\\CPSC 449\\\\commands.jar\", \"Commands\"));\n\t\tFile f = new File(\"C:\\\\Users\\\\Darkras\\\\Documents\\\\CPSC 449\\\\commands.jar\");\n\t\tClass[] parameterTypes = new Class[]{URL.class};\n\t\tURL url = (f.toURI()).toURL();\n\t\tURLClassLoader sysloader = (URLClassLoader) ClassLoader.getSystemClassLoader();\n\t\tClass<?> sysclass = URLClassLoader.class;\n\t\tMethod method = sysclass.getDeclaredMethod(\"addURL\", parameterTypes);\n\t\tmethod.setAccessible(true);\n\t\tmethod.invoke(sysloader, new Object[]{ url });\n\t\t\n\t\tClass<?> c = Class.forName(\"Commands\");\n\t\tMethod[] methods = c.getDeclaredMethods();\n\t\t\n\t\tInformation test = new Information(\"C:\\\\Users\\\\Darkras\\\\Documents\\\\CPSC 449\\\\commands.jar\", \"Commands\");\n\t\tList<Integer[]> testList = test.properArguments(\"add\");\n\t\t\n\t\tSystem.out.println(testList);\n\t\t\n\t\t\n\t\tTreeEvaluator e = new TreeEvaluator(test);\n\t\t\n\t\ttree.grow(\"add\",1);\n\t\ttree.grow(\"5\",0);\n\t\ttree.grow(\"5\",0);\n\t\ttree.addReturnTypes();\n\t\tSystem.out.println(tree.isComplete());\n\t\tSystem.out.print(e.evaluate(tree.getRoot()));\n\t}", "void parse(String[] args) throws Exception;", "public void parseSourceCode(String code) {\r\n sourceCode = code;\r\n index = 0;\r\n curlyBracketsLevel = 0;\r\n currentPackage = \"\";\r\n currentClass = null;\r\n inMethod = false;\r\n imports = new HashMap<>();\r\n parse();\r\n }", "@Override ASTRunif parse_impl(Exec E) {\n AST ary = E.parse();\n // parse the seed\n _seed = (long) E.parse().treeWalk(new Env(new HashSet<Key>())).popDbl();\n E.eatEnd(); // eat the ending ')'\n ASTRunif res = (ASTRunif) clone();\n res._asts = new AST[]{ary};\n return res;\n }", "public void run()\n {\n yyparse();\n }", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "public void parse() {\n if (commandSeparate.length == 1) {\n parseTaskType();\n } else if (commandSeparate.length == 2) {\n parseTaskType();\n index = commandSeparate[1];\n taskName = commandSeparate[1];\n } else {\n parseTaskType();\n parseTaskName();\n parseTaskDate();\n }\n }", "public void parse(){\n\t\t//Read next line in content; timestamp++\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(instructionfile))) {\n\t\t String line;\n\t\t while ((line = br.readLine()) != null) {\n\t\t \t//divide the line by semicolons\n\t\t \tString[] lineParts = line.split(\";\");\n\t\t \tfor(String aPart: lineParts){\n\t\t\t \tSystem.out.println(\"Parser:\"+aPart);\n\n\t\t\t \t// process the partial line.\n\t\t\t \tString[] commands = parseNextInstruction(aPart);\n\t\t\t \tif(commands!=null){\n\t\t\t\t\t\t\n\t\t\t \t\t//For each instruction in line: TransactionManager.processOperation()\n\t\t\t \t\ttm.processOperation(commands, currentTimestamp);\n\t\t\t \t}\n\t\t \t}\n\t\t \t//Every new line, time stamp increases\n\t \t\tcurrentTimestamp++;\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n \t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n\t\t}\n\t}", "void parse(String[] args);", "public void parse() {\n MessageBlockLexer lexer = new MessageBlockBailLexer(name, postNumber, CharStreams.fromString(raw));\n\n // remove ConsoleErrorListener\n lexer.removeErrorListeners();\n\n // create a buffer of tokens pulled from the lexer\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n\n // create a parser that feeds off the tokens buffer\n MessageBlockParser parser = new MessageBlockParser(tokens);\n\n // remove ConsoleErrorListener\n parser.removeErrorListeners();\n\n // Create/add custom error listener\n MessageBlockErrorListener errorListener = new MessageBlockErrorListener(name, topic, postNumber);\n parser.addErrorListener(errorListener);\n\n // Begin parsing at the block rule\n ParseTree tree = parser.block();\n\n // Check for parsing errors\n errorListener.throwIfErrorsPresent();\n\n LOGGER.trace(tree.toStringTree(parser));\n\n // Walk the tree\n ParseTreeWalker walker = new ParseTreeWalker();\n walker.walk(new Listener(this), tree);\n }", "private void init() {\n\t\t// pick to pieces method signature description\n\t\tthis.argTypes = Type.getArgumentTypes(this.desc);\n\t\tthis.newArgTypes = new LinkedList<Type>();\n\t\tfor (Type t : this.argTypes) {\n\t\t\tthis.newArgTypes.add(t);\n\t\t\tif(t.getSort() == Type.OBJECT && !TaintTrackerConfig.isString(t))\n\t\t\t\tcontinue;\n//\t\t\tdetermine proper taint for each argument and append it to newArgTypes\n\t\t\tif (t.getSort() == Type.ARRAY) {\n\t\t\t\tif (t.getElementType().getSort() != Type.OBJECT || TaintTrackerConfig.isString(t.getElementType())) {\n\t\t\t\t\tif (t.getDimensions() > 1) {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC_ARR));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t}\n\t\t}\n\t\tthis.newReturnType = Type.getReturnType(desc);\n\t\tif (this.newReturnType.getSort() != Type.VOID && this.newReturnType.getSort() != Type.OBJECT) {\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\telse if( (this.newReturnType.getSort() == Type.OBJECT && TaintTrackerConfig.isString(this.newReturnType))\n\t\t|| (this.newReturnType.getSort() == Type.ARRAY && TaintTrackerConfig.isString(this.newReturnType.getElementType())) ){\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\t\n\t\tType[] newArgs = new Type[newArgTypes.size()];\n\t\tnewArgTypes.toArray(newArgs);\n\t\tthis.newDesc = Type.getMethodDescriptor(newReturnType, newArgs);\n\t}", "public LexicalScanner() throws IOException {\n this.codesMap = new CodesMap();\n this.keyWords = loadKeywords();\n this.specialCharacters = loadSpecialCharacters();\n this.identifierAutomata = new FA(IDENTIFIER_AUTOMATA_FILE);\n this.constantAutomata = new FA(CONSTANT_AUTOMATA_FILE);\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void collectAttributes (int end) {\n attributeType = 0;\n klass = new StringBuffer();\n id = new StringBuffer();\n style = new StringBuffer();\n language = new StringBuffer();\n int start = textIndex;\n while (textIndex < end\n && ((attributeType > 0) || (textIndex == start))) {\n char c = line.charAt (textIndex);\n switch (attributeType) {\n case 0:\n // No leading character found yet\n if (c == '(') {\n attributeType = 1;\n }\n else\n if (c == '{') {\n attributeType = 3;\n }\n else\n if (c == '[') {\n attributeType = 4;\n }\n break;\n case 1:\n // Left paren indicates class or id\n if (c == '#') {\n attributeType++;\n }\n else\n if (c == ')') {\n attributeType = 0;\n } else {\n klass.append (c);\n }\n break;\n case 2:\n // ID\n if (c == ')') {\n attributeType = 0;\n } else {\n id.append (c);\n }\n break;\n case 3:\n // style\n if (c == '}') {\n attributeType = 0;\n } else {\n style.append (c);\n }\n break;\n case 4:\n // language\n if (c == ']') {\n attributeType = 0;\n } else {\n language.append (c);\n }\n break;\n } // end switch attributeType\n textIndex++;\n } // end while more characters before period\n }", "SAPL parse(String saplDefinition);", "public void constructHierarchy(){\n\t\t// populate parents for the globally defined param specs\n\t\tfor (ListIterator<ParamSpec> iterator = m_paramSpecs.listIterator(m_paramSpecs.size()); iterator.hasPrevious();) {\n\t\t\tParamSpec ps = iterator.previous();\n\t\t\tpopulateParent(ps);\n\t\t}\n\t\t// populate values for the globally defined param specs\n\t\tfor (ListIterator<ParamSpec> iterator = m_paramSpecs.listIterator(m_paramSpecs.size()); iterator.hasPrevious();) {\n\t\t\tParamSpec ps = iterator.previous();\n\t\t\tps.lookupValues();\n\t\t}\n\t\t\n\t\t// populate parents for the command specs and their contained param specs\n\t\tfor (CommandSpec cs : m_commandSpecs){\n\t\t\tpopulateParent(cs);\n\t\t\tif (cs.getParamSpecs() != null){\n\t\t\t\tfor (ParamSpec ps : cs.getParamSpecs()){\n\t\t\t\t\tpopulateParent(ps);\n\t\t\t\t}\n\t\t\t\tfor (ParamSpec ps : cs.getParamSpecs()){\n\t\t\t\t\tps.lookupValues();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void startAnalysis() throws IOException {\n if (line.length() == 0)\n return;\n\n for (String item : breakDown()) {\n if (Condition.isKeyword(item)) {\n wordArray.addWord(item, Symbol.valueOf(item + \"sym\"));\n } else if (item.equals(Condition.Semicolon)) {\n wordArray.addWord(Condition.Semicolon, Symbol.semicolon);\n } else {\n int count = item.codePointCount(0, item.length());\n\n for (int i = 0; i < count; i++) {\n int[] point = {item.codePointAt(i)};\n String character = new String(point, 0, 1);\n\n if (Condition.isLetter(character)) {\n i = generateToken(count, i, item, character, \"Identifier\", Condition.toIdentifier());\n } else if (Condition.isDigit(character)) {\n i = generateToken(count, i, item, character, \"Number\", Condition.toNumber());\n } else if (Condition.isOperator(character)) {\n i = generateToken(count, i, item, character, \"Symbol\", Condition.toSymbol());\n } else if (Condition.isParentheses(character)) {\n wordArray.addWord(character, legalCharMap.get(character));\n } else {\n throw new IOException(\"Position \" + line.indexOf(character) +\n \" occur the unexpected char \\'\" + character + \"\\'.\");\n }\n }\n }\n }\n wordArray.addWord(\".\", Symbol.period);\n }", "public void parseFile() {\n File file = new File(inputFile);\n try {\n Scanner scan = new Scanner(file);\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n line = line.replaceAll(\"\\\\s+\", \" \").trim();\n\n if (line.isEmpty()) {\n continue;\n }\n // System.out.println(line);\n String cmd = line.split(\" \")[0];\n String lineWithoutCmd = line.replaceFirst(cmd, \"\").trim();\n // System.out.println(lineWithoutCmd);\n\n // The fields following each command\n String[] fields;\n\n switch (cmd) {\n case (\"add\"):\n fields = lineWithoutCmd.split(\"<SEP>\");\n fields[0] = fields[0].trim();\n fields[1] = fields[1].trim();\n fields[2] = fields[2].trim();\n add(fields);\n break;\n case (\"delete\"):\n\n fields = split(lineWithoutCmd);\n delete(fields[0], fields[1]);\n break;\n case (\"print\"):\n if (lineWithoutCmd.equals(\"ratings\")) {\n printRatings();\n break;\n }\n fields = split(lineWithoutCmd);\n\n print(fields[0], fields[1]);\n\n break;\n case (\"list\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n list(fields[0], fields[1]);\n break;\n case (\"similar\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n similar(fields[0], fields[1]);\n break;\n default:\n break;\n }\n\n }\n\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public void processFile() throws Exception {\n InputStream cwlFile = new FileInputStream( CWL_FILE );\n Yaml yaml = new Yaml();\n Map contents = (Map) yaml.load(cwlFile);\n for( Object key : contents.keySet() ) {\n \tprocessContents( (String) key, contents.get(key) );\n }\n\t}", "public static void main( String[] args ) {\n Optional< WordFeed > wordFeed = new WordFeedProvider().buildWordFeed();\n if ( !wordFeed.isPresent() || !wordFeed.get().hasNext() ) {\n System.out.println( \"Unable to read selected file. Aborting analysis.\" );\n return;\n }\n\n TextAnalyzer textAnalyzer = new TextAnalyzer();\n textAnalyzer.process( wordFeed.get() );\n textAnalyzer.report( new SystemOutReporter() );\n }", "public NesCDocScanner( IMultiPreferenceProvider preferences ) {\r\n super();\r\n \r\n this.preferences = preferences;\r\n \r\n buildRules();\r\n }", "public void parse(String fileName) throws Exception;", "public void parse(InputStream in) throws IOException {\n InputStreamReader isr = null;\n BufferedReader layoutReader = null;\n try {\n isr = new InputStreamReader(in, \"UTF-8\");\n layoutReader = new BufferedReader(isr);\n List<String> rawQualifiers = new ArrayList<String>();\n List<String> rawSchemas = new ArrayList<String>();\n\n String qualifier;\n String json;\n String line = layoutReader.readLine();\n while (line != null) {\n // Skip empty lines.\n if (line.equals(EMPTY_LINE)) {\n line = layoutReader.readLine();\n continue;\n }\n\n if (SKIP_ENTRY_TOKEN.equals(line)) {\n // null entries indicate this column should be skipped.\n qualifier = null;\n json = null;\n } else {\n qualifier = parseName(line);\n json = parseSchema(layoutReader);\n }\n\n rawQualifiers.add(qualifier);\n rawSchemas.add(json);\n\n line = layoutReader.readLine();\n }\n\n mQualifierInfo = Collections.unmodifiableList(makeQualifierInfo(rawQualifiers, rawSchemas));\n\n LOG.info(\"Parsed input layout of size: \" + getQualifierInfo().size());\n } finally {\n IOUtils.closeQuietly(layoutReader);\n IOUtils.closeQuietly(isr);\n }\n }", "protected void configureTokenizer()\r\n\t{\r\n\t\tLogger.debug(\"Configuring syntax tokenizer\", Level.GUI,this);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tLogger.debug(\"Setting flags\", Level.GUI,this);\r\n\t\t\t// Use the standard configuration as a base\r\n\t\t\tm_properties = new StandardTokenizerProperties();\r\n\t\t\t// Return token positions and line comments\r\n\t\t\tm_properties.setParseFlags( Flags.F_TOKEN_POS_ONLY | Flags.F_RETURN_LINE_COMMENTS );\r\n\t\t\t// Python comments\r\n\t\t\t// Block comments are parsed manually\r\n\t\t\tm_properties.addLineComment(\"#\");\n\t\t\t// Python strings\r\n\t\t\tm_properties.addString(\"\\\"\", \"\\\"\", \"\\\"\");\r\n\t\t\tm_properties.addString(\"\\'\", \"\\'\", \"\\'\");\r\n\t\t\t// Normal whitespaces\r\n\t\t\tm_properties.addWhitespaces(TokenizerProperties.DEFAULT_WHITESPACES);\r\n\t\t\t// Normal separators\r\n\t\t\tm_properties.addSeparators(TokenizerProperties.DEFAULT_SEPARATORS);\r\n\t\t\t// Add our keywords\r\n\t\t\tLogger.debug(\"Adding keywords\", Level.GUI,this);\r\n\t\t\tfor(String word : m_listFunctions)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listModifiers)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listLanguage)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listConstants)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\t// Special symbols\r\n\t\t\tLogger.debug(\"Adding symbols\", Level.GUI,this);\r\n\t\t\tm_properties.addSpecialSequence(\"\\\"\\\"\\\"\");\r\n\t\t\tm_properties.addSpecialSequence(\"{\");\r\n\t\t\tm_properties.addSpecialSequence(\"}\");\r\n\t\t\tm_properties.addSpecialSequence(\"(\");\r\n\t\t\tm_properties.addSpecialSequence(\")\");\r\n\t\t\tm_properties.addSpecialSequence(\"[\");\r\n\t\t\tm_properties.addSpecialSequence(\"]\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\t\n\t\tScanner scan = new Scanner(new File(\"input.txt\"));\n\t\t\n\t\tParser parse;\n\t\tCode code = new Code();\n\t\tSymbolTable st = new SymbolTable();\n\t\t\n\t\twhile(scan.hasNextLine()) {\n\t\t\tString inCode = scan.nextLine();\t\n\t\t\tparse = new Parser(inCode);\n\t\t}\n\t\t\n\t}", "public Program parse() throws SyntaxException {\n\t\tProgram p = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}", "private void readAndApplyTags(XmlPullParser parser) throws XmlPullParserException, IOException {\n\n\t\tprefEdit.putString(\"name\", profileName);\n\n\t\tparser.require(XmlPullParser.START_TAG, null, \"resources\");\n\n\t\twhile (parser.next() != XmlPullParser.END_TAG) {\n\n if (parser.getEventType() != XmlPullParser.START_TAG) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString name = parser.getName();\n\n switch (name) {\n case \"lockscreen\":\n setLockscreen(parser);\n break;\n case \"wifi\":\n setWifi(parser);\n break;\n case \"mobile_data\":\n setMobileData(parser);\n break;\n case \"bluetooth\":\n setBluetooth(parser);\n break;\n case \"display\":\n setDisplay(parser);\n break;\n case \"ringer_mode\":\n setRingerMode(parser);\n break;\n default:\n Log.i(\"XmlParser\", \"Skip!\");\n parser.nextTag();\n break;\n }\n\t\t\tprefEdit.commit();\n\t\t}\n\t}", "public static void parseAST(Node astNode) {\n\n int childrenNum = astNode.getChildCount();\n for (int i = 0; i < childrenNum; i++) {\n Node child = astNode.getChild(i);\n String astNodeType = child.getClass().getName();\n\n if (astNodeType.contains(\"Text\")) {\n if (child.getValue().contains(\"\\n\")) {\n lineNum++;\n }\n }\n if (astNodeType.contains(\"Element\")) {\n String localName = ((Element) child).getLocalName();\n if (localName.equals(\"decl_stmt\")) {\n String type = ((Element) child).getChildElements().get(0).getChildElements(\"type\", \"http://www.sdml.info/srcML/src\").get(0).getValue();\n String name = ((Element) child).getChildElements().get(0).getChildElements(\"name\", \"http://www.sdml.info/srcML/src\").get(0).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (localName.equals(\"function_decl\")) {\n String type = ((Element) child).getChildElements().get(0).getValue();\n String name = ((Element) child).getChildElements().get(1).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (localName.equals(\"function\")) {\n String type = ((Element) child).getChildElements().get(0).getValue();\n String name = ((Element) child).getChildElements().get(1).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(child);\n } else if (localName.equals(\"block\")) {\n parseAST(child);\n } else if (localName.equals(\"expr_stmt\")) {\n Element exprChild = ((Element) ((Element) child).getChildElements().get(0).getChild(0));\n String exprType = exprChild.getLocalName();\n if (exprType.equals(\"name\")) {\n String name = exprChild.getValue();\n String type = \"\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (exprType.equals(\"call\")) {\n String name = exprChild.getChild(0).getValue();\n String type = \"call\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(exprChild);\n }\n } else if (localName.equals(\"call\")) {\n String name = child.getChild(0).getValue();\n String type = \"call\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(child);\n } else if (localName.equals(\"argument\")) {\n Element c = ((Element) ((Element) child).getChildElements().get(0).getChild(0));\n if (c.getLocalName().equals(\"name\")) {\n String name = c.getValue();\n String type = \"\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else {\n parseAST(child);\n }\n\n\n } else if (!entity.getTerminal().contains(localName)) {\n parseAST(child);\n }\n\n }\n }\n\n }", "@Override\n public void parseFile() throws InvalidCodeException {\n super.parseFile();\n if (!Jump.isJumpStackEmpty()) {\n throw new InvalidCodeException();\n }\n double startTime = System.nanoTime();\n try {\n interpretList(instructionsStack.peek());\n } catch (InstructionException e) {\n System.err.println(e.getMessage());\n System.exit(e.getExitCode());\n }\n double endTime = System.nanoTime();\n Metrics.setExecTime((endTime - startTime) * Math.pow(10, -6));\n System.out.println(\"\\n\\n\"+Brainfuck.getMemory());\n printMetrics();\n }", "@Override\n public void enterAttributes(final ProgramParser.AttributesContext ctx) {\n }", "public static void parseScript(String inFile) {\r\n\t\tScanner in;\r\n\t\t\r\n\t\t// Create the resize visitor\r\n\t\tResizeVisitor rsv = new ResizeVisitor();\r\n\t\t// Set the text tree display (with decorators) as an observer to the resize visitor\r\n\t\trsv.attach(ttd);\r\n\t\t\r\n\t\t/*\r\n\t\t * Other visitor objects should also be created here instead of in the switch statement\r\n\t\t * I would have fixed this if I had more time\r\n\t\t * The program works the way it is now, but fixing this would have been better design\r\n\t\t */\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// Create scanner to read the script file\r\n\t\t\tin = new Scanner(new File(inFile));\r\n\t\t\tFileComponentBuilder fb;\r\n\t\t\t\r\n\t\t\tString line;\r\n\t\t\tString[] command;\r\n\t\t\twhile (in.hasNextLine()) {\r\n\t\t\t\tline = in.nextLine();\r\n\t\t\t\t\r\n\t\t\t\t// Print command to output file for clarity\r\n\t\t\t\tout.print('\\n' + fs.getCurrentDir().getName() + \"> \");\r\n\t\t\t\tout.println(line);\r\n\t\t\t\t\r\n\t\t\t\t// Read line from script and parse it\r\n\t\t\t\tcommand = line.split(\"\\\\s\");\r\n\t\t\t\t\r\n\t\t\t\t// All script commands must be accounted for in this switch statement\r\n\t\t\t\tswitch(command[0]) {\r\n\t\t\t\tcase \"mkdir\":\r\n\t\t\t\t\t// Uses builder pattern to create directory and proxy while hiding creation process\r\n\t\t\t\t\tfb = new DirectoryBuilder();\r\n\t\t\t\t\tfb.setParameters(fs, command);\r\n\t\t\t\t\tfs.getCurrentDir().add(fb.getFileComponent());\r\n\t\t\t\t\tout.println(\"Subdirectory \\\"\" + command[1] + \"\\\" created\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"create\":\r\n\t\t\t\t\t// Uses builder pattern to create file and proxy while hiding creation process\r\n\t\t\t\t\tfb = new FileBuilder();\r\n\t\t\t\t\tfb.setParameters(fs, command);\r\n\t\t\t\t\tfs.getCurrentDir().add(fb.getFileComponent());\r\n\t\t\t\t\tout.println(\"File \\\"\" + command[1] + \"\\\" created\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"cd\":\r\n\t\t\t\t\tif (command[1].contentEquals(\"..\")) {\r\n\t\t\t\t\t\t// cd ..\r\n\t\t\t\t\t\t// If at root (or in error situation where parent directory is null)\r\n\t\t\t\t\t\t// current directory will be set to the root\r\n\t\t\t\t\t\tfs.setDir(fs.getCurrentDir().getParent());\r\n\t\t\t\t\t\tif (fs.getCurrentDir() == null) {\r\n\t\t\t\t\t\t\tfs.setDir(fs.getRoot());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tout.println(\"Directory changed to \" + fs.getCurrentDir().getName());\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// cd subdirectory\r\n\t\t\t\t\t\tFileComponent newDir = fs.getCurrentDir().getChild(command[1]);\r\n\t\t\t\t\t\tif (newDir == null || newDir instanceof LeafFile) {\r\n\t\t\t\t\t\t\tout.println(command[1] + \" is not a valid directory\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tfs.setDir(newDir);\r\n\t\t\t\t\t\t\tout.println(\"Directory changed to \" + command[1]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"del\":\r\n\t\t\t\t\tFileComponent delFile = fs.getCurrentDir().getChild(command[1]);\r\n\t\t\t\t\tif (delFile == null) {\r\n\t\t\t\t\t\tout.println(command[1] + \" is not a valid file or directory\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdelFile.accept(new DeleteVisitor());\r\n\t\t\t\t\t\tout.println(command[1] + \" deleted\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"size\":\r\n\t\t\t\t\tFileComponent sizeFile = fs.getCurrentDir().getChild(command[1]);\r\n\t\t\t\t\tif (sizeFile == null) {\r\n\t\t\t\t\t\tout.println(command[1] + \" is not a valid file or directory\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSizeVisitor sv = new SizeVisitor();\r\n\t\t\t\t\t\tsizeFile.accept(sv);\r\n\t\t\t\t\t\tout.println(sv.getTotalSize());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"ls\":\r\n\t\t\t\t\tFileComponent lsFile = fs.getCurrentDir();\r\n\t\t\t\t\tif (command.length > 1) {\r\n\t\t\t\t\t\tlsFile = fs.getCurrentDir().getChild(command[1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (lsFile == null) {\r\n\t\t\t\t\t\tout.println(command[1] + \" is not a valid file or directory\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tLSVisitor lv = new LSVisitor();\r\n\t\t\t\t\t\tlsFile.accept(lv);\r\n\t\t\t\t\t\tfor (int i = 0; i < lv.getOutput().size(); i++) {\r\n\t\t\t\t\t\t\tif (lv.getOutput().get(i).length > 1) {\r\n\t\t\t\t\t\t\t\tout.println(lv.getOutput().get(i)[0] + \" \" + lv.getOutput().get(i)[1]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tout.println(lv.getOutput().get(i)[0]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"resize\":\r\n\t\t\t\t\tFileComponent ResizeFile = fs.getCurrentDir().getChild(command[1]);\r\n\t\t\t\t\tif (ResizeFile == null) {\r\n\t\t\t\t\t\tout.println(command[1] + \" is not a valid file\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\trsv.setNewSize(Integer.parseInt(command[2]));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tResizeFile.accept(rsv);\r\n\t\t\t\t\t\tif (rsv.resizeSuccessful()) {\r\n\t\t\t\t\t\t\tout.println(\"Size of \" + command[1] + \" set to \" + command[2]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tout.println(command[1] + \" is not a valid file\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"exit\":\r\n\t\t\t\t\tfs.getRoot().accept(new ExitVisitor());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault: out.println(command[0] + \" is not a valid command\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tin.close();\r\n\t\t\tSystem.out.println(\"Script read successfully\");\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.err.println(\"Error: could not read from script file\");\r\n\t\t}\r\n\t}", "public void Assemble(InputStream input) throws InvalidInstructionException, LabelNotResolvedException, ProgramSizeException {\r\n // Reset internal state\r\n codeSection = null;\r\n codeSectionList.clear();\r\n codeLine = 0;\r\n codeInstruction = new String();\r\n Emitter emitter = new Emitter();\r\n codeEmitter.setEmitter(emitter);\r\n // Instantiate the text reader\r\n reader = new TextReader(input);\r\n\r\n // REGEX matcher\r\n Matcher m = null;\r\n\r\n // Pass 1: instantiate list of instructions\r\n for(codeLine = 1;; codeLine++) {\r\n // Read single line from stream\r\n try { codeInstruction = reader.readLine(); }\r\n // RuntimeException at EOF\r\n catch(RuntimeException e) { break; }\r\n\r\n // Remove any comments\r\n int comment = codeInstruction.indexOf(COMMENT_CHAR);\r\n if(comment >= 0) codeInstruction = codeInstruction.substring(0, comment);\r\n\r\n // Try parsing it as a section\r\n m = patternSection.matcher(codeInstruction);\r\n if(m.matches()) { enterSection(m.group(1)); continue; }\r\n\r\n // Try parsing it as an instruction\r\n m = patternInstruction.matcher(codeInstruction);\r\n if(m.matches()) {\r\n // If there is no section bail out\r\n if(currentSection() == null && (m.group(1) != null || m.group(2) != null))\r\n invalidInstruction(\"Instruction and/or label outside of a section!\");\r\n\r\n // See if there is a label\r\n if(m.group(1) != null) addLabel(m.group(1));\r\n // See if there is an instruction\r\n if(m.group(2) != null) addInstruction(m.group(2), parseOperands(m.group(3)));\r\n }\r\n }\r\n\r\n // Add section for text constants\r\n Section textConst = enterSection(\".textconst\");\r\n emitter.setDataSection(textConst);\r\n\r\n // Pass 2: layout sections\r\n int baseAddress = 0;\r\n for(Section section : codeSectionList) {\r\n section.setAddress(baseAddress);\r\n baseAddress += section.getSize();\r\n }\r\n\r\n // Pass 3: resolve label operands\r\n for(Section section : codeSectionList)\r\n for(Instruction instr : section.getInstructions())\r\n for(Operand op : instr.getOperands())\r\n if(op instanceof LabelOperand) {\r\n LabelOperand lop = (LabelOperand) op;\r\n Integer addr = getLabel(lop.getLabel());\r\n if(addr != null) lop.setAddress(addr);\r\n }\r\n\r\n // Pass 4: generate machine code\r\n for(Section section : codeSectionList)\r\n for(Instruction instr : section.getInstructions())\r\n processInstruction(instr);\r\n\r\n // Check final program size, we need at least one byte for the stack\r\n if(getSize() > Machine.memorySize - 1)\r\n throw new ProgramSizeException(\"size of program, \" + getSize() + \" words, exceeds machine maximum of \" + (Machine.memorySize - 1));\r\n }", "private static SkinLayoutDefinition loadFromTokens(Iterator<String> tokens) {\n ImmutableMap.Builder<String, SkinLayoutDefinition> children = ImmutableMap.builder();\n ImmutableMap.Builder<String, String> properties = ImmutableMap.builder();\n while (tokens.hasNext()) {\n String key = tokens.next();\n if (key.equals(\"}\")) { // We're done with this block, return.\n break;\n }\n\n String value = tokens.next();\n if (value.equals(\"{\")) { // Start of a nested block, recursively load that block.\n children.put(key, loadFromTokens(tokens));\n } else { // Otherwise, it's a string property, and we'll store it.\n properties.put(key, value);\n }\n }\n return new SkinLayoutDefinition(properties.build(), children.build());\n }", "public interface ReaderExtension {\n\n /**\n * Returns this extension's priority.\n * Note: Extension will be executed first with lowest priority.\n *\n * @return this extension's priority\n */\n int getPriority();\n\n /**\n * Checks that a resource should be scanned.\n *\n * @param context is the resource context\n * @return true if the resource needs to be scanned, otherwise false\n */\n boolean isReadable(ReaderContext context);\n\n /**\n * Reads the consumes from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyConsumes(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the produces from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyProduces(ReaderContext context, Operation operation, Method method);\n\n /**\n * Returns http method.\n *\n * @param context is the resource context\n * @param method is the method for reading annotations\n * @return http method\n */\n String getHttpMethod(ReaderContext context, Method method);\n\n /**\n * Returns operation's path.\n *\n * @param context is the resource context\n * @param method is the method for reading annotations\n * @return operation's path\n */\n String getPath(ReaderContext context, Method method);\n\n /**\n * Reads the operation id from the method's annotations and applies it to the operation.\n *\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyOperationId(Operation operation, Method method);\n\n /**\n * Reads the summary from the method's annotations and applies it to the operation.\n *\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applySummary(Operation operation, Method method);\n\n /**\n * Reads the description from the method's annotations and applies it to the operation.\n *\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyDescription(Operation operation, Method method);\n\n /**\n * Reads the schemes from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applySchemes(ReaderContext context, Operation operation, Method method);\n\n /**\n * Sets the deprecated flag to the operation.\n *\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void setDeprecated(Operation operation, Method method);\n\n /**\n * Reads the security requirement from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applySecurityRequirements(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the tags from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyTags(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the responses from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyResponses(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the parameters from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param type is the type of parameter\n * @param annotations are the method's annotations\n */\n void applyParameters(ReaderContext context, Operation operation, Type type, Annotation[] annotations);\n\n /**\n * Reads the implicit parameters from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyImplicitParameters(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the extensions from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyExtensions(ReaderContext context, Operation operation, Method method);\n\n void applyParameters(ReaderContext context, Operation operation, Method method,\n Method interfaceMethod);\n\n}" ]
[ "0.5128803", "0.49962568", "0.49186727", "0.48564598", "0.48315814", "0.47852913", "0.47376388", "0.46800676", "0.4667807", "0.46236354", "0.45954713", "0.45735025", "0.4546135", "0.45329547", "0.45230153", "0.45199504", "0.4476703", "0.44665772", "0.4458336", "0.44546303", "0.44531724", "0.44488668", "0.4443038", "0.44118258", "0.4406314", "0.43927637", "0.4386086", "0.43378454", "0.43353617", "0.43264464", "0.43085888", "0.43011016", "0.4295193", "0.4290948", "0.42897257", "0.42889827", "0.42882922", "0.4287096", "0.42863986", "0.42768407", "0.426553", "0.42609832", "0.42581576", "0.4258106", "0.42520076", "0.42467245", "0.4243554", "0.4240933", "0.42361268", "0.42357588", "0.42266998", "0.42251474", "0.42208055", "0.42197335", "0.42140782", "0.4188118", "0.41763416", "0.41745633", "0.41615912", "0.41501433", "0.4146783", "0.41456854", "0.41424713", "0.41393846", "0.41354764", "0.41339448", "0.41256368", "0.41224286", "0.41076544", "0.41043845", "0.40989906", "0.40981257", "0.40969312", "0.4095842", "0.409156", "0.40900832", "0.4079544", "0.40792564", "0.40778416", "0.40771", "0.4076483", "0.4072298", "0.40691546", "0.4067602", "0.4062366", "0.4059623", "0.40577722", "0.40555537", "0.40538943", "0.40538865", "0.4053155", "0.40514967", "0.40378034", "0.40304148", "0.4030028", "0.40296724", "0.40295416", "0.40288234", "0.40271902", "0.40261245", "0.402189" ]
0.0
-1
lock the document for changes
public void run() { doc.readLock(); try { //lock the hierarchy fh.lock(); try { try { //remove outdated folds Iterator i = zombies.iterator(); while(i.hasNext()) { Fold f = (Fold)i.next(); getOperation().removeFromHierarchy(f, tran); } //add new folds Iterator newFolds = newborns.iterator(); while(newFolds.hasNext()) { FoldInfo f = (FoldInfo)newFolds.next(); getOperation().addToHierarchy(GROUP, f.label, false, f.startOffset , f.endOffset , 0, 0, null, tran); } }catch(BadLocationException ble) { //when the document is closing the hierarchy returns different empty document, grrrr ErrorManager.getDefault().notify(ble); } // }finally { // tran.commit(); // } } finally { fh.unlock(); } } finally { doc.readUnlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lock(View view) {\n \t\n \t// Do not perform lock unless there's a unlocked doc chosen.\n \tif (mObjects.getUnlockedDoc() == null)\n \t\treturn;\n \t\n \ttry {\n\t\t\tmObjects.setWaitingKey(mObjects.getCurrentDocumentKey());\n\t\t\tLockedDocument locked = service.lockDocument(mObjects.getCurrentDocumentKey());\n\t\t\t\n\t\t\t// If expected document is returned.\n\t\t\tif (locked.getKey().equals(mObjects.getCurrentDocumentKey())) {\n\t\t\t\tmObjects.addStatusList(\"Lock retrieved for document.\");\n\t\t\t\tmObjects.setLockedDoc(locked);\n\t\t\t\tsetView(locked);\n\t\t\t} else {\n\t\t\t\t// Otherwise, unlock the locked document.\n\t\t\t\tmObjects.addStatusList(\"Got lock for document which is no longer active. Releasing lock.\");\n\t\t\t\treleaseLock(locked);\n\t\t\t}\n\t\t} catch (InvalidRequest e) {\n\t\t\tToast.makeText(this, \"Error retrieving lock\", Toast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Error retrieving lock: \" + e.getMessage());\n\t\t} catch (LockUnavailable e) {\n\t\t\tToast.makeText(this, \"Lock unavailable...Please wait\", Toast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Lock unavailable...Please wait\");\n\t\t}\n }", "public void lock() {\n\t\tlocked = true;\n\t}", "void lock(Connection con, EnterpriseObject eo, boolean lock)\n throws DataModifiedException {\n try {\n if ((!lock) || (eo == null) || (con.getAutoCommit())) {\n return; // no locking, no revision update\n\n }\n SBR sbr = eo.getSBR();\n String euid = eo.getEUID();\n Integer revisionNumber = sbr.getRevisionNumber();\n lockSBR(con, euid, revisionNumber);\n sbr.setRevisionNumber(sbr.getRevisionNumber().intValue() + 1);\n } catch (ObjectException ex) {\n throw new DataModifiedException(mLocalizer.t(\"OPS523: Could not lock \" +\n \"EnterpriseObject: {0}\", ex));\n } catch (SQLException se) {\n throw new DataModifiedException(mLocalizer.t(\"OPS524: Could not lock \" +\n \"EnterpriseObject: {0}\", se));\n }\n }", "public void lockCashDrawer(CashDrawer cd, String documentId);", "public void lock() {\r\n super.lock();\r\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n\n }", "void lock(Connection con, EnterpriseObject eo, String revisionNumber,\n boolean lock) throws DataModifiedException {\n try {\n if ((!lock) || (eo == null) || (con.getAutoCommit())) {\n return; // no locking, no revision update\n\n }\n SBR sbr = eo.getSBR();\n String euid = eo.getEUID();\n if (revisionNumber != null) {\n lockSBR(con, euid, revisionNumber);\n } else {\n Integer curRevisionNumber = sbr.getRevisionNumber();\n lockSBR(con, euid, curRevisionNumber);\n }\n sbr.setRevisionNumber(sbr.getRevisionNumber().intValue() + 1);\n } catch (ObjectException ex) {\n throw new DataModifiedException(mLocalizer.t(\"OPS525: Could not lock \" +\n \"EnterpriseObject: {0}\", ex));\n } catch (SQLException se) {\n throw new DataModifiedException(mLocalizer.t(\"OPS526: Could not lock \" +\n \"EnterpriseObject: {0}\", se));\n }\n }", "protected final void lockWrite() {\n m_lock.writeLock().lock();\n }", "@Override\r\n\tpublic void onLock(boolean lock) {\n\t\tthis.lock = lock;\r\n\t}", "void lock();", "public void lockCashDrawer(String campusCode, String documentId);", "public void lock_write() {\n boolean update = false;\n logger.log(Level.FINE,\"lock_write() \"+this.lockState+\".\");\n lock.lock();\n logger.log(Level.FINE,\"lock_write : taking mutex \"+this.lockState+\".\");\n switch(this.lockState){\n case WLC:\n this.lockState=State.WLT;\n logger.log(Level.INFO,\"writing with cache\");\n \t break;\n \t\t default: \t\n update = true;\n break;\n \t }\n lock.unlock();\n logger.log(Level.FINE,\"lock_write : the mutex with :\"+lockState+\".\");\n if(update){\n \tlogger.log(Level.INFO,\"Updating lock to WLT \"+lockState+\".\"); //Avant RLC\n \tthis.lockState=State.WLT; \n if(lockState!=State.WLT){\n logger.log(Level.SEVERE,\"Lock = \"+this.lockState+\" instead of WLT\"); //Bien mmis à WLT.\n }\n logger.log(Level.INFO,\"LockState was updated to \"+lockState+\".\");\n this.obj = client.lock_write(this.id); //BUG : se fait invalider en tant que reader et passe à NL entrant dans la boucle suivante \n // A mon avis : se fait invalider en tant que lecteur (d'ou un lock_incohérent = WLT). A voir \n // Est-ce qu'il s'auto-invalide, auquel cas, il faut vérifier invalidate_reader mais je crois qu'il y un test pour ce cas.\n // Quelqu'un d'autre l'invalide mais dans ce cas, le serveur devrait \"séquencer\" cette autre invalidation et le lock_write.\n if(lockState!=State.WLT){\n logger.log(Level.SEVERE,\"Lock = \"+this.lockState+\" instead of WLT\");\n }\n logger.log(Level.INFO,\"lock_write() : end with \"+lockState+\".\");\n }\n }", "public void lock(int key);", "@DefaultMessage(\"Locking record for Update...\")\n @Key(\"gen.lockForUpdate\")\n String gen_lockForUpdate();", "void lock(Connection con, EnterpriseObject eo1, EnterpriseObject eo2)\n throws DataModifiedException {\n try {\n if ((eo1 == null && eo2 == null) || (con.getAutoCommit())) {\n return;\n } else if (eo1 == null) {\n lock(con, eo2, true);\n return;\n } else if (eo2 == null) {\n lock(con, eo1, true);\n return;\n }\n SBR sbr1 = eo1.getSBR();\n String euid1 = eo1.getEUID();\n Integer revisionNumber1 = sbr1.getRevisionNumber();\n SBR sbr2 = eo2.getSBR();\n String euid2 = eo2.getEUID();\n Integer revisionNumber2 = sbr2.getRevisionNumber();\n lockSBR(con, euid1, revisionNumber1, euid2, revisionNumber2);\n sbr1.setRevisionNumber(sbr1.getRevisionNumber().intValue() + 1);\n sbr2.setRevisionNumber(sbr2.getRevisionNumber().intValue() + 1);\n } catch (ObjectException ex) {\n throw new DataModifiedException(mLocalizer.t(\"OPS529: Could not lock \" +\n \"one or more EnterpriseObjects: {0}\", ex));\n } catch (SQLException se) {\n throw new DataModifiedException(mLocalizer.t(\"OPS530: Could not lock \" +\n \"one or more EnterpriseObjects: {0}\", se));\n }\n }", "@Override\n\tpublic void lock(Object entity, LockModeType lockMode) {\n\t\t\n\t}", "void undo(RefactoringSession session, Document doc) {\n if (!DocumentUtilities.isWriteLocked(doc)) {\n undo(session);\n } else {\n AtomicLockDocument ald = LineDocumentUtils.as(doc, AtomicLockDocument.class);\n if (ald == null) {\n undo(session);\n } else {\n final boolean orig = setSupressSaveAll(true);\n\n class L implements AtomicLockListener, Runnable {\n @Override\n public void atomicLock(AtomicLockEvent evt) {\n }\n\n @Override\n public void atomicUnlock(AtomicLockEvent evt) {\n setSupressSaveAll(orig);\n SAVE_RP.post(this);\n ald.removeAtomicLockListener(this);\n }\n\n @Override\n public void run() {\n LifecycleManager.getDefault().saveAll();\n }\n }\n final L l = new L();\n ald.addAtomicLockListener(l);\n undo(session);\n }\n }\n }", "public void save(View view) {\n \t\n \t// Cannot perform save unless there's a locked document.\n \tLockedDocument mlocked = mObjects.getLockedDoc();\n \tif (mlocked == null)\n \t\treturn;\n \t\n \ttry {\n \t\tmlocked.setTitle(text1.getText().toString());\n \tmlocked.setContents(text2.getText().toString());\n \t\tmObjects.addStatusList(\"Attemping to save document.\");\n \t\tUnlockedDocument unlocked = service.saveDocument(mlocked);\n \t\t\n \t\t// If expected document is saved, display the document.\n\t \tif (mObjects.getWaitingKey() == null || \n\t \t\t\tmObjects.getWaitingKey().equals(unlocked.getKey())) {\n\t \t\tmObjects.addStatusList(\"Document '\" + unlocked.getTitle()\n\t \t\t\t\t+ \"' successfully saved.\");\n\t \t\tsetView(unlocked);\n\t\t\t\tmObjects.setUnlockedDoc(unlocked);\n\t\t\t} else {\n\t\t\t\t// Otherwise, lock the error.\n\t\t\t\tLog.d(TAG,\"Saved document is not the anticipated document.\");\n\t\t\t}\n\t\t} catch (InvalidRequest e) {\n\t\t\tToast.makeText(this, \"Error saving document due to invalid request\", \n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Error saving document: \" + e.getMessage());\n\t\t\t\n\t\t\t// Release the lock if there's error saving document.\n\t\t\treleaseLock(mlocked);\n\t\t} catch (LockExpired e) {\n\t\t\tToast.makeText(this, \"Lock expired\", Toast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Lock had already expired; save failed.\");\n\t\t}\n\t\t\n\t\t// If saving is not successful, modify client's local documents state as well.\n\t\t// This part will only get called if exception were caught. mlocked is set\n\t\t// to null if document is saved correctly. \n\t\tif (mlocked != null) {\n\t\t\tmObjects.setUnlockedDoc(mlocked.unlock());\n\t\t\tsetView(mlocked.unlock());\n\t\t}\n }", "ManagementLockObject.Update update();", "protected final void lock(boolean writeLock) {\n Lock lock = writeLock ? m_lock.writeLock() : m_lock.readLock();\n lock.lock();\n }", "public void lock() {\n if (!locked) {\n locked = true;\n sortAndTruncate();\n }\n }", "protected final void lockRead() {\n m_lock.readLock().lock();\n }", "void lock(Portal portal);", "protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaphore acquirement\");\n e.printStackTrace();\n }\n }", "public void lock() {\n islandLocked = true;\n }", "public void dataBaseLocked();", "void lock(String name) {\n execute(name, connection -> doLock(name, connection));\n }", "@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (readers > 0 || writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twriters++;\n\t\t\t}\n\t\t}", "Update withLevel(LockLevel level);", "@Override\n\tpublic boolean isLocked() { return true; }", "@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treaders++;\n\t\t\t}\n\t\t}", "private Locks() {\n\t\tlockId = ObjectId.get().toString();\n\t}", "public void synchronize(int change);", "public void lockPassword() {\n passwordLock.lock();\n }", "public void putDocumentAfterEdit() {\r\n\t\tif(pointer < strategy.getEntireHistory().size()-1) {\r\n\t\t\tstrategy.putVersion(currentDocument);\r\n\t\t}\r\n\t}", "public void setUpdateLock()\n {\n _updateLock = Thread.currentThread();\n }", "@Override\n public void lock() {\n Preconditions.checkState(connection != null);\n if (!tryLock(lockGetTimeout(), TimeUnit.MILLISECONDS)) {\n Monitoring.increment(errorCounter.name(), (KeyValuePair<String, String>[]) null);\n throw new LockException(String.format(\"[%s][%s] Timeout getting lock.\", id().getNamespace(), id().getName()));\n }\n }", "@Override\n\tpublic Boolean updateDocument(Document document) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void lock(Object entity, LockModeType lockMode, Map<String, Object> properties) {\n\t\t\n\t}", "void lock(Connection con, EnterpriseObject eo1, EnterpriseObject eo2,\n String srcRevisionNumber, String destRevisionNumber)\n throws DataModifiedException {\n try {\n if ((eo1 == null && eo2 == null) || (con.getAutoCommit())) {\n return;\n } else if (eo1 == null) {\n lock(con, eo2, srcRevisionNumber, true);\n return;\n } else if (eo2 == null) {\n lock(con, eo1, destRevisionNumber, true);\n return;\n }\n SBR sbr1 = eo1.getSBR();\n String euid1 = eo1.getEUID();\n SBR sbr2 = eo2.getSBR();\n String euid2 = eo2.getEUID();\n\n if (srcRevisionNumber != null && destRevisionNumber != null) {\n lockSBR(con, euid1, destRevisionNumber, euid2,\n srcRevisionNumber);\n sbr1.setRevisionNumber(Integer.parseInt(destRevisionNumber) + 1);\n sbr2.setRevisionNumber(Integer.parseInt(srcRevisionNumber) + 1);\n } else {\n Integer revisionNumber1 = sbr1.getRevisionNumber();\n sbr2 = eo2.getSBR();\n euid2 = eo2.getEUID();\n Integer revisionNumber2 = sbr2.getRevisionNumber();\n lockSBR(con, euid1, revisionNumber1, euid2, revisionNumber2);\n sbr1.setRevisionNumber(sbr1.getRevisionNumber().intValue() + 1);\n sbr2.setRevisionNumber(sbr2.getRevisionNumber().intValue() + 1);\n }\n } catch (ObjectException ex) {\n throw new DataModifiedException(mLocalizer.t(\"OPS527: Could not lock \" +\n \"one or more EnterpriseObjects: {0}\", ex));\n } catch (SQLException se) {\n throw new DataModifiedException(mLocalizer.t(\"OPS528: Could not lock \" +\n \"one or more EnterpriseObjects: {0}\", se));\n }\n }", "void refreshLock(QName lockQName, String lockToken, long timeToLive);", "public void lockGarage()\n {\n m_bGarageLock = true;\n }", "public boolean shouldUpdateVersionOnMappingChange(){\r\n return this.lockOnChangeMode == LockOnChange.ALL;\r\n }", "public void checkReadLock() {\n checkNotDeleted();\n super.checkReadLock();\n }", "public LockSync() {\n lock = new ReentrantLock();\n }", "ManagementLockObject refresh();", "public void locking(int id) {\n\t\tAccount account=userDao.getAccount(id);\r\n\t\tStatus status=userDao.getStatus(\"¶³½á\");\r\n\t\taccount.setStatus(status);\r\n\t\tuserDao.updateAccount(account);\r\n\t}", "public void getDocument(String key) {\n\t\ttry {\n\t\t\tmObjects.setWaitingKey(key);\n\t\t\tUnlockedDocument unlocked = service.getDocument(key);\n\t\t\t\n\t\t\t// If expected document is returned, display the document.\n\t\t\tif (unlocked.getKey().equals(key)) {\n\t\t\t\tmObjects.setUnlockedDoc(unlocked);\n\t\t\t\tmObjects.addStatusList(\"Document \" + unlocked.getTitle() + \" successfully retrieved\");\n\t\t\t\tsetView(unlocked);\n\t\t\t} else {\n\t\t\t\tmObjects.addStatusList(\"Returned document that is no longer expected; discarding.\");\n\t\t\t}\n\t\t} catch (InvalidRequest e) {\n\t\t\tmObjects.addStatusList(\"Error retrieving lock: \" + e.getMessage());\n\t\t}\n\t}", "@Override\n\tpublic boolean update(Document obj) {\n\t\treturn false;\n\t}", "@Test\n public void testPessimisticLocking()\n {\n Employee employee = new EmployeeBuilder().withAge(30).withName(\"Hans\").withSurename(\"Mueller\").build();\n\n // saving Employee\n em.getTransaction().begin();\n em.persist(employee);\n em.getTransaction().commit();\n\n // fresh start\n em = emf.createEntityManager();\n EntityManager em2 = emf.createEntityManager();\n\n em.getTransaction().begin();\n Employee reloadedEmployeInstance1 = em.find(Employee.class, employee.getId());\n\n // Enable to get a deadlock\n// em.lock(reloadedEmployeInstance1, LockModeType.READ);\n\n em2.getTransaction().begin();\n Employee reloadedEmployeInstance2 = em2.find(Employee.class, employee.getId());\n reloadedEmployeInstance2.setAge(99);\n em2.persist(reloadedEmployeInstance2);\n em2.getTransaction().commit();\n\n\n em.getTransaction().commit();\n }", "public void lockAdd(){\n\t\tthis.canAdd = false;\n\t}", "public abstract String lock(String oid) throws OIDDoesNotExistException, LockNotAvailableException;", "public void lock_read() {\n boolean update = false;\n logger.log(Level.INFO,\"lock_read()\"+this.lockState);\n lock.lock();\n logger.log(Level.INFO,\"lock_read : taking mutex : \"+this.lockState);\n \t\tswitch(this.lockState){\n \t\t\tcase RLC :\n \t\t\t\tthis.lockState=State.RLT;\n logger.log(Level.INFO,\"reading in cache\");\n \t\t\tbreak;\n \t\t\tcase WLC:\n \t\t\t\tthis.lockState=State.RLT_WLC;\n \t\t\t\tlogger.log(Level.INFO,\"reading in cache as previous writer\");\n \t\t\tbreak;\n \t\t\tdefault:\n update = true;\n \t\t\tbreak;\t\t\t\t\t\n \t\t}\n lock.unlock();\n logger.log(Level.FINE,\"lock_read : release the lock with :\"+lockState+\".\");\n if(update){\n logger.log(Level.INFO,\"Updating lockState to RLT\");\n \tthis.lockState=State.RLT;\n logger.log(Level.INFO,\"Lockstate was updated to \"+lockState);\n if(this.lockState!=State.RLT){\n logger.log(Level.SEVERE,\"Lock = \"+lockState+\" instead of RLT\");\n }\n this.obj = client.lock_read(this.id);\n if(this.lockState!=State.RLT){\n logger.log(Level.SEVERE,\"Lock = \"+lockState+\" instead of RLT\");\n }\n logger.log(Level.INFO,\"lock_read(): end with \"+lockState);\n }\n \t}", "public void lockThreadForClient()\n {\n masterThread.lockThreadForClient();\n }", "protected boolean upgradeLocks() {\n \t\treturn false;\n \t}", "public void setLockOnChangeMode(LockOnChange lockOnChangeMode){\r\n this.lockOnChangeMode = lockOnChangeMode;\r\n }", "void documentModifyStatusUpdated(SingleDocumentModel model);", "void documentModifyStatusUpdated(SingleDocumentModel model);", "private void reacquireLocks() {\n getCommander().requestLockOn( getPart() );\n for ( Long id : expansions ) {\n try {\n ModelObject expanded = getQueryService().find( ModelObject.class, id );\n if ( !( expanded instanceof Segment || expanded instanceof Plan ) )\n getCommander().requestLockOn( expanded );\n } catch ( NotFoundException e ) {\n LOG.warn( \"Expanded model object not found at: \" + id );\n }\n }\n }", "public void checkWriteLock() {\n checkNotDeleted();\n super.checkWriteLock();\n }", "void lockInode(Inode inode, LockMode mode);", "@Override\n\tpublic void lock() {\n\t\tSystem.out.println(\"Card in ATM1 is locked !\");\n\t}", "public SimpleReadWriteLock() {\n\n\t\treaderLock = new ReadLock();\n\t\twriterLock = new WriteLock();\n\t\treaders = 0;\n\t\twriters = 0;\n\t\tthis.lock = this;\n\t}", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "void unlockWriteInOMRequest();", "ManagementLockObject refresh(Context context);", "@Transactional\n\t@Override\n\tpublic void shareDoc(int docId) {\n\t\tdocumentsDao.shareDoc(docId);\n\t}", "public VersionLockingPolicy(DatabaseField field) {\r\n this();\r\n setWriteLockField(field);\r\n }", "@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshReadLock(lockKey, readToken, lockTimeoutSec);\r\n\t\t\t}", "public void synchronize(){ \r\n }", "public SimpleLock writeLock() {\n\n\t\treturn writerLock;\n\t}", "Lock getComponentAccessTokenLock();", "public void releaseLock(LockedDocument lockedDoc) {\n try {\n \tservice.releaseLock(lockedDoc);\n \tmObjects.addStatusList(\"Document lock released.\");\n } catch (InvalidRequest e) {\n \tmObjects.addStatusList(\"Error saving document: \" + e.getMessage());\n \tToast.makeText(this, \"Error releasing document due to invalid request\", \n Toast.LENGTH_LONG).show();\n } catch (LockExpired e) {\n \tmObjects.addStatusList(\"Lock had already expired; release failed.\");\n \tToast.makeText(this, \"Lock expired\", Toast.LENGTH_LONG).show();\n }\n }", "@Repository\npublic interface PostRepository extends CrudRepository<Post, Long> {\n @Lock(LockModeType.PESSIMISTIC_WRITE)\n Post findByIdAndVisibleIsTrue(Long id);\n}", "public Path lock(\n ) {\n return this;\n }", "protected void checkLocked() throws LockingException, WebserverSystemException {\r\n if (getContentModel().isLocked() && !getContentModel().getLockOwner().equals(Utility.getCurrentUser()[0])) {\r\n throw new LockingException(\"Content Model + \" + getContentModel().getId() + \" is locked by \"\r\n + getContentModel().getLockOwner() + '.');\r\n }\r\n }", "void lockExpired(String lock);", "private void setView(UnlockedDocument doc) {\n\t\ttext1.setText(doc.getTitle());\n\t\ttext2.setText(doc.getContents());\n\t\ttext1.setFocusable(false);\n\t\ttext1.setEnabled(false);\n\t\ttext2.setFocusable(false);\n\t\ttext2.setEnabled(false);\n\t\tsave.setEnabled(false);\n\t\tlock.setEnabled(true);\n\t\trefresh.setEnabled(true);\n\t}", "public void SetIsLock(boolean isLock)\n {\n this._lock = isLock;\n }", "LockRecord(Record record, String workspace) {\n super(record, workspace);\n }", "ManagementLockObject apply();", "public Lock getLock();", "private void lockSBR(Connection con, String euid, String revisionNumber)\n throws DataModifiedException {\n\n PreparedStatement ps = null;\n ResultSet rs = null;\n if (mLogger.isLoggable(Level.FINE)) {\n mLogger.fine(\"Locking SystemSBR EUID:\" + euid + \" with revision number: \" + revisionNumber);\n }\n try {\n ps = con.prepareStatement(getSingleLockSBRStmt());\n ps.setString(1, euid);\n ps.setInt(2, Integer.parseInt(revisionNumber));\n\n rs = ps.executeQuery();\n int count = 0;\n while (rs.next()) {\n count++;\n }\n rs.close();\n ps.close();\n if (count != 1) {\n throw new DataModifiedException(mLocalizer.t(\"OPS531: Record with \" +\n \"EUID: {0} has been modified by another user\",\n euid));\n }\n } catch (SQLException e) {\n throw new DataModifiedException(mLocalizer.t(\"OPS532: Could not \" +\n \"lock an SBR for EUID {0}: {1}\",\n euid, e));\n }\n }", "boolean lockDigitalObject(String uuid, Long id, String description) throws DatabaseException;", "void lockMetadata(String key);", "@Override\n public void setLockOwner(Object lockOwner) {\n }", "private void setView(LockedDocument doc) {\n\t\ttext1.setText(doc.getTitle());\n\t\ttext2.setText(doc.getContents());\n\t\ttext1.setFocusableInTouchMode(true);\n\t\ttext1.setEnabled(true);\n\t\ttext2.setFocusableInTouchMode(true);\n\t\ttext2.setEnabled(true);\n\t\tlock.setEnabled(false);\n\t\trefresh.setEnabled(false);\n\t\tsave.setEnabled(true);\n\t}", "private void lockSBR(Connection con, String euid, Integer revisionNumber)\n throws DataModifiedException {\n\n PreparedStatement ps = null;\n ResultSet rs = null;\n if (mLogger.isLoggable(Level.FINE)) {\n mLogger.fine(\"Locking SystemSBR EUID:\" + euid + \" with revision number: \" + revisionNumber);\n }\n try {\n\n ps = con.prepareStatement(getSingleLockSBRStmt());\n ps.setString(1, euid);\n ps.setInt(2, revisionNumber.intValue());\n\n rs = ps.executeQuery();\n int count = 0;\n while (rs.next()) {\n count++;\n }\n rs.close();\n ps.close();\n if (count != 1) {\n throw new DataModifiedException(mLocalizer.t(\"OPS533: Record with \" +\n \"EUID: {0} has been modified by another user\",\n euid));\n }\n } catch (SQLException e) {\n throw new DataModifiedException(mLocalizer.t(\"OPS534: Could not \" +\n \"lock an SBR for EUID {0}: {1}\",\n euid, e));\n }\n }", "void tryWriteLockInOMRequest() throws IOException;", "public Object getLock() {\n return dataLock;\n }", "public void lock(final int key, final String entityType, final String userName, final String uuid, final Session session) {\n try {\n\n S_LCK_TBL myLock = new S_LCK_TBL(key, entityType);\n S_LCK_TBL existingLock = (S_LCK_TBL) get(session, S_LCK_TBL.class, myLock);\n\n if (existingLock != null) {\n if (!existingLock.getDbSession().trim().equals(uuid.trim()) && !existingLock.getUserName().trim().equals(userName.trim()))\n throw new RecordInUseException();\n else if (existingLock.getDbSession().trim().equals(uuid.trim()) && existingLock.getUserName().trim().equals(userName.trim()))\n return;\n else if (!existingLock.getDbSession().trim().equals(uuid.trim()) && existingLock.getUserName().trim().equals(userName.trim())) { //sessione appesa/vecchia\n existingLock.markDeleted();\n persistByStatus(existingLock, session);\n }\n }\n\n myLock.setDbSession(uuid);\n myLock.setUserName(userName);\n myLock.markNew();\n persistByStatus(myLock, session);\n\n } catch (HibernateException e) {\n throw new DataAccessException(e);\n }\n }", "public void setLocked(boolean locked)\n\t{\n\t\tthis.locked = locked;\n\t}", "public Serializable jvnLockWrite(int joi) throws JvnException {\n\t \tSerializable object = null;\n\t\ttry {\n\t\t\tobject = this.jRCoordonator.jvnLockWrite(joi, js);\n\t\t} catch (RemoteException e) {\n\t\t\tSystem.out.println(\"Error jvnLockWrite : \" + e.getMessage());\n\t\t}\n\t\treturn object;\n\t}", "void setUserLocked(boolean b);", "private static void j_lock() {\r\n\t\tdo {\r\n\t\t\tLOCK_FILES_DIR.mkdirs();\r\n\t\t\ttry {\r\n\t\t\t\tRandomAccessFile raf = new RandomAccessFile(GLOBAL_LOCK_FILE,\r\n\t\t\t\t\t\t\"rw\");\r\n\t\t\t\tFileChannel channel = raf.getChannel();\r\n\t\t\t\tFileLock lock = channel.lock();\r\n\t\t\t\tglobalFileChannel = channel;\r\n\t\t\t\tglobalFileLock = lock;\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Throwable t) {\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}", "public void openLock(){\n /*Code to send an unlocking signal to the physical device Gate*/\n }", "public void setLockEnabled(boolean lockEnabled) {\r\n\t\tthis.lockEnabled = lockEnabled;\r\n\t}" ]
[ "0.713458", "0.68846893", "0.68555427", "0.66847736", "0.66678876", "0.6644354", "0.6644354", "0.6644354", "0.66139835", "0.6604", "0.6439797", "0.6338259", "0.63203627", "0.6284576", "0.6239536", "0.6144979", "0.60959315", "0.6063429", "0.5988461", "0.59878385", "0.5970251", "0.59573746", "0.59277195", "0.59242004", "0.5916072", "0.5897267", "0.5893064", "0.58003014", "0.580022", "0.57732487", "0.57629967", "0.57615006", "0.5760376", "0.5744583", "0.5718973", "0.5707607", "0.5701916", "0.56814563", "0.56668395", "0.56659204", "0.5639769", "0.5617624", "0.5617224", "0.5589126", "0.55872387", "0.5585015", "0.55752003", "0.5573038", "0.55660313", "0.5559064", "0.55394745", "0.5538554", "0.5536486", "0.55279076", "0.5502803", "0.5489655", "0.5479749", "0.54688746", "0.54414135", "0.54337144", "0.54337144", "0.5424113", "0.54232377", "0.5416017", "0.5414537", "0.5413245", "0.5400883", "0.5400883", "0.53961873", "0.5394466", "0.5393629", "0.53747654", "0.5365936", "0.53648", "0.53610146", "0.5342632", "0.5327096", "0.53264827", "0.5317128", "0.53045493", "0.5303333", "0.53031474", "0.52983207", "0.52941906", "0.5293954", "0.52824783", "0.52814376", "0.5275872", "0.5275624", "0.5273683", "0.5268837", "0.52659863", "0.52656174", "0.52645314", "0.5259331", "0.52561533", "0.52456707", "0.52452666", "0.5242884", "0.52350694", "0.5230849" ]
0.0
-1
list of the favorite National Parks. StringBuilder was added. a separator between words and the vertical piping bar is added.
private static String nationalParks(List<String> list, String separator) { StringBuilder sb = new StringBuilder(32); boolean first = true; for(String el : list) { if (first) first = false; else { sb.append(separator); } sb.append(el); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getFavoriteRecipeTitle();", "public static void displayPlurals(ArrayList<String> list){\r\n //Loops through the list\r\n for(String str:list){\r\n if(str.endsWith(\"s\"))\r\n System.out.print(str.toUpperCase() + \" \");\r\n }\r\n System.out.println();\r\n }", "private static void catList() {\n\t\tSystem.out.println(\"List of preset Categories\");\n\t\tSystem.out.println(\"=========================\");\n\t\tSystem.out.println(\n\t\t\t\t\"Family\\nTeen\\nThriller\\nAnimated\\nSupernatural\\nComedy\\nDrama\\nQuirky\\nAction\\nComing of age\\nHorror\\nRomantic Comedy\\n\\n\");\n\t}", "public ArrayList<String[]> getFavoritePairs() {\n ArrayList<String[]> favPairs = new ArrayList<>();\n for(Landmark landmark : landmarks.getFavorites()) {\n favPairs.add(new String[]{landmark.getName(), landmark.getLocation().toString(), landmark.getDescription()});\n }\n return favPairs;\n }", "private static void listFormat() {\n\t\tSystem.out.println(\"List of all your movies\");\n\t\tSystem.out.println(\"=======================\");\n\t\tfor (int i = 0; i < movList.size(); i++) {\n\t\t\tSystem.out.println(movList.get(i));\n\t\t}\n\t}", "public Finn()\n {\n System.out.println(\"is a Jedi,HumanLike,LightSide,Ressistance,Piolet,Annoying,StillLiving\");\n }", "public void showFavorites() {\n System.out.println(\"Mina favoriter: \" + myFavorites.size());\n for (int i = 0; i < myFavorites.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myFavorites.get(i).getTitle() +\n \"\\nRegissör: \" + myFavorites.get(i).getDirector() + \" | \" +\n \"Genre: \" + myFavorites.get(i).getGenre() + \" | \" +\n \"År: \" + myFavorites.get(i).getYear() + \" | \" +\n \"Längd: \" + myFavorites.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myFavorites.get(i).getRating());\n }\n }", "public String favoriteHeritages(boolean flag)\n\t{\n\t\tif(flag == false)\n\t\t\treturn \"Enter the Haritages which you like the most (use comma seperated list)\";\n\t\telse\n\t\t\treturn \"Favourite Haritages: \";\n\t}", "public static void printNames(String ...myFavoritePets) {\n\t\tSystem.out.println(myFavoritePets[0]);\r\n\t\tSystem.out.println(myFavoritePets[2]);\r\n\t\tSystem.out.println(myFavoritePets[3]);\r\n\t\t\r\n\t\t//access, print all directly\r\n\t\tSystem.out.println(Arrays.toString(myFavoritePets));\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//find size of the input\r\n\t\tint length = myFavoritePets.length;\r\n\t\tSystem.out.println(\"The size of the input is: \"+length);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public String list() {\n final StringBuilder list = new StringBuilder(\"Here are the tasks in your list:\\n\\t\");\n records.forEach((el) -> list.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n records.indexOf(el) + 1, el.toString())));\n return list.toString();\n }", "private void exercise3() {\n final List<String> list = asList(\n \"The\", \"quick\", \"brown\", \"fox\", \"jumped\", \"over\", \"the\", \"lazy\", \"dog\");\n\n String result = list.stream()\n .skip(1)\n .limit(3)\n .collect(joining(\"-\"));\n\n System.out.println(result);\n }", "public ArrayList<String> showCity();", "private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }", "public String catchPhrase() {\n @SuppressWarnings(\"unchecked\") List<List<String>> catchPhraseLists = (List<List<String>>) faker.fakeValuesService().fetchObject(\"company.buzzwords\");\n return joinSampleOfEachList(catchPhraseLists, \" \");\n }", "public static void main(String[] args) {\n List<String > teamMates = new ArrayList<>();\n teamMates.add(\"Ayse\");\n teamMates.add(\"Mustafa\");\n teamMates.add(\"Zeynep\");\n teamMates.add(\"Yusuf\");\n teamMates.add(\"Ibrahim\");\n teamMates.add(\"Emin\");\n\n System.out.println(\"teamMates = \" + teamMates);\n\n //first item and last item\n System.out.println(\"teamMates.get(0) = \" + teamMates.get(0));\n\n int lastItemIndex = teamMates.size()-1;\n\n System.out.println(\"last item = \" + teamMates.get(lastItemIndex));\n\n //print one by one\n\n for (int i = 0; i < teamMates.size() ; i++) {\n\n System.out.println(\"item = \" + teamMates.get(i));\n\n }\n\n System.out.println(\"\\n All Items in reverse order\");\n for (int x = lastItemIndex ; x >= 0 ; x--){\n System.out.println(\"item \" + (x+1) + \" = \" + teamMates.get(x ));\n }\n //pritn 2 items at a time\n //for example ; 1-2, 2-3, 3-4\n System.out.println(\"\\n print 2 items at a time\");\n for (int x = 0; x <= teamMates.size()-2; x++) {\n System.out.println(\"\\t\"+ teamMates.get(x) +\"----\" + teamMates.get(x+1));\n }\n //pritn 2 items at a time\n //for example ; 1-2, 3-4, 5-6\n System.out.println(\"\\n print 2 items at a time without repeating\");\n\n for (int x = 0; x <= teamMates.size()-2 ; x+=2) {\n System.out.println(\"\\t\"+ teamMates.get(x) +\"----\" + teamMates.get(x+1));\n\n }\n\n //concat everyone in one string separated by -\n \n String result= \"\";\n for (int i = 0; i <teamMates.size() ; i++) {\n result =result + teamMates.get(i) ;\n if(i !=teamMates.size()-1){\n result+=\"-\";\n }\n }\n System.out.println(\"result = \" + result);\n \n //TODO\n String lstToString = teamMates.toString();\n System.out.println(\"lstToString.replace(\\\",\\\" ,\\\" -\\\") = \" + lstToString.replace(\",\", \" -\")\n .replace(\"[\",\"\")\n .replace(\"]\",\"\"));\n\n\n\n\n\n\n }", "public static List<String> getMidfielderFromBrazil() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/66\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> midFielderName= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getPosition().equals(\"Midfielder\")&&squad.get(i).getNationality().equals(\"Brazil\")){\n\n midFielderName.add(squad.get(i).getName());\n }\n }catch (NullPointerException e){\n continue;\n }\n\n }\n return midFielderName;\n }", "@Override\n public String toString(){\n String result = chapVerse.toString() + \"\\t\\t\";\n String comm = \"\";\n for (SermCit blah : citations){\n result += comm + blah;\n comm = \", \";\n }\n return result;\n }", "public static void main(String[] args) {\n\t\tArrayList<String>list=new ArrayList<String>(Arrays.asList(\"c\",\"c++\",\"java\",\"python\",\"html\"));\r\n\t\tStringJoiner sj=new StringJoiner(\",\",\"{\",\"}\");\r\n\t\tlist.forEach(e->sj.add(e));\r\n\t\tSystem.out.println(sj);\r\n\t}", "public String toString()\n {\n String retStr = \"\";\n for (int x = 0; x < 3; x += 1){\n\t retStr += _fruits[x];\n\t retStr += \"\\t\";\n }\n return retStr;\n }", "public static ArrayList<String> pronouns() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner pronouner;\n try {\n pronouner = new Scanner(new File(\"pronouns.txt\"));\n pronouner.useDelimiter(\", *\");\n while (pronouner.hasNext()){\n temp.add(\" \"+pronouner.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "public String bs() {\n @SuppressWarnings(\"unchecked\") List<List<String>> buzzwordLists = (List<List<String>>) faker.fakeValuesService().fetchObject(\"company.bs\");\n return joinSampleOfEachList(buzzwordLists, \" \");\n }", "public static void main(String[] args) {\n\t\tScanner console = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter a sentence: \");\n\t\tsentence = console.nextLine();\n\n\t\tSystem.out.println(getBlankPositions());\n\t\tSystem.out.println(countWords());\n\t\tString[] wordArr = getWords();\n\n\t\t// print wordArr in the proper format\n\t\tSystem.out.print(\"{\");\n\t\tfor (int i =0 ; i < wordArr.length; i++) {\n\t\t\tSystem.out.print(wordArr[i]);\n\t\t\tif (i < wordArr.length - 1)\tSystem.out.print(\",\");\n\t\t}\n\t\tSystem.out.println(\"}\");\n\t}", "public static ArrayList<String> verbs() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner verber;\n try {\n verber = new Scanner(new File(\"Verbs.txt\"));\n verber.useDelimiter(\", *\");\n while (verber.hasNext()){\n temp.add(\" \"+verber.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "public static void main(String[] args) throws IOException, ParseException {\n\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"C:\\\\Dev\\\\Demo\\\\Demo\\\\src\\\\main\\\\resources\\\\data\\\\USNationalParks.txt\"));\n\t\ttry {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t String line = \"\";\n\t\t String[] lineArray;\n\t\t \n\t\t Park park = new Park();\n\t\t \n\t\t \n\t\t \n\t\t ArrayList<Park> retArray = new ArrayList<Park>();\n\t\t while ((line = br.readLine()) != null) {\n\t\t \tpark = new Park();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\"); //2 Acadia\n\t\t\t park.setParkName(lineArray[2].substring(0, lineArray[2].indexOf('<')));\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line); //2 Maine\n\t\t\t lineArray = line.split(\">\");\n\t\t\t park.setProvince(lineArray[2].substring(0, lineArray[2].indexOf('<')));\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine(); //19: \"44.35, -68.21\"\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setLatitude(lineArray[19].substring(0, 5));\n\t\t\t park.setLongitude(lineArray[19].substring(7, lineArray[19].indexOf('<')));\n\t\t\t \n\t\t\t \n\t\t\t line = br.readLine(); //4 February 26th, 1919\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setDateEstablished(stringToDate(lineArray[4].substring(0, lineArray[4].indexOf('<'))));\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line); //3 347,389 acres '('\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setParkArea(NumberFormat.getNumberInstance(java.util.Locale.US).parse(lineArray[3].substring(0, lineArray[3].indexOf('a')-1)).intValue());\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line); // 1 3,303,393 <\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setParkVisitors(NumberFormat.getNumberInstance(java.util.Locale.US).parse(lineArray[1].substring(0, lineArray[1].indexOf('<'))).intValue());\n\t\t\t \n\t\t\t line = br.readLine(); //skip for now\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t \n\n\t\t \n\t\t\t retArray.add(park);\n\t\t }\n\t\t \n\t\t for(Park p: retArray){\n\t\t \tSystem.out.println(\"Insert into parks(name, country, province, latitude, longitude, dtEst, parkArea, annualVisitors)\" + \"VALUES('\"+ p.getParkName()+\"',\"+ \"'United States','\"+p.getProvince() +\"','\"+ p.getLatitude()+\"','\" + p.getLongitude() + \"','\" + dateToString(p.getDateEstablished()) + \"',\" + p.getParkArea() +\",\"+ \t\t\t\tp.getParkVisitors()+\");\");\n\t\t \t//System.out.println();\n\t\t }\n\t\t} finally {\n\t\t br.close();\n\t\t}\n\t}", "public String listFinance() {\n Set<String> keySet = finance.keySet();\n StringBuilder returnString = new StringBuilder();\n for(String k : keySet) {\n returnString.append(k + \", \");\n }\n int length = returnString.length();\n returnString.delete(length-2, length);\n returnString.append(\"\\n\");\n return returnString.toString();\n }", "@Override\r\n public String toString() {\r\n String output = \"[ \";\r\n for (int i = 0; i < count; i++) {\r\n output += list[i] + \", \";\r\n }\r\n if (count > 0) {\r\n output = output.substring(0, output.length() - 2);\r\n } else {\r\n output = output.substring(0, output.length() - 1);\r\n }\r\n output += \" ]\";\r\n return output;\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"icecream in a \");\n sb.append(holder.toString().toLowerCase());\n sb.append(\" with:\\n\");\n for (IceCreamScoop scoop : scoops) {\n sb.append(\"\\t\");\n sb.append(scoop);\n sb.append(\"\\n\");\n }\n\n return sb.toString();\n }", "public String getAllPapers(){\r\n\t\tString allPapers = \"\";\r\n\t\tif(papers != null){\r\n\t\t\tfor(int index = 0; index < papers.size(); ++index){\r\n\t\t\t\tallPapers += papers.get(index).getTitleOfPaper() + \"\\n\\t\";\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tallPapers = \"No papers have been added.\";\r\n\t\t}\r\n\t\t\r\n\t\treturn allPapers;\r\n\t}", "public List<String> q3() {\n\t\tList<String> top20 = jogadores.stream()\n\t\t\t\t.map(x-> x.getFullName())\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn top20.subList(0,20);\n\t}", "private void printList(ArrayList<String> allSongs) {\n int i=1;\n for(String s : allSongs){\n System.out.println((i++)+\". \"+s);\n }\n }", "public static void main(String[] args) {\n\t\tArrayList<String> planetList = new ArrayList<String>();\n\t Scanner console = new Scanner(System.in);\n\t System.out.println(\" \\nEnter your favouurate planet: \" );\n\t String planet = console.next();\n\n\t console.close(); \n\t\t//Add user input to the list\n\t\tplanetList.add(planet);\n\t\t//Add a string to the list\n\t\tplanetList.add(\"Gliese 581 c\");\n\t\tSystem.out.println(\" \\nTwo cool planets: \" + planetList);\n\t}", "public String toString() {\n\t\tString str = word + \":\";\n\t\tfor (int i = 0; i < list.size() - 1; i++)\n\t\t\tstr += list.get(i) + \",\";\n\t\tif (list.size() != 0)\n\t\t\tstr += list.get(list.size() - 1);\n\t\treturn str;\n\t}", "public static List<String> getAllGoalkeepers() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/66\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\", \"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\", \"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Map<String, Object> stringObjectMap = objectMapper.readValue(response.getEntity().getContent(), new TypeReference<Map<String, Object>>() {\n });\n List<Map<String, Object>> squad = (List<Map<String, Object>>) stringObjectMap.get(\"squad\");\n List<String> goalKeeperName = new ArrayList<>();\n for (int i = 0; i < squad.size(); i++) {\n try {\n if (squad.get(i).get(\"position\").equals(\"Goalkeeper\")) {\n\n goalKeeperName.add((String) squad.get(i).get(\"name\"));\n }\n } catch (NullPointerException e) {\n continue;\n }\n }\n\n return goalKeeperName;\n }", "public void showListPhrases() {\r\n\t\tint i = 0;\r\n\t\tString[] array = new String[100];\r\n\t\ttry {\r\n\t\t\tstatement = SqlCon.getConnection().createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(SqlCon.PHRASE_TO_CHECK);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString phrase = rs.getString(\"word\");\r\n\t\t\t\tarray[i] = phrase;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t} catch (SQLException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ti= i+1;\r\n\t\tarrPhrase = new String[i];\r\n\t\tarrPhrase[0] = \"None\";\r\n\t\tfor (int j = 1; j < i; j++) {\r\n\t\t\tarrPhrase[j] = array[j-1];\r\n\t\t}\r\n\t\tfor(int k= 0; k<arrPhrase.length;k++)\r\n\t\t\tSystem.out.println(arrPhrase[k]);\r\n\t}", "public static void stringsJoining() {\n\n StringJoiner joiner = new StringJoiner(\" \", \"{\", \"}\");\n String result = joiner.add(\"Dorota\").add(\"is\").add(\"ill\").add(\"and\").add(\"stays\").add(\"home\").toString();\n System.out.println(result);\n }", "@Override\r\n\tpublic String getDesc() {\n\t\treturn pizza.getDesc()+\" , RomaTomatoes(12.88)\";\r\n\t}", "public static ArrayList<String> adverbs() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner adverber;\n try {\n adverber = new Scanner(new File(\"Adverbs.txt\"));\n adverber.useDelimiter(\", *\");\n while (adverber.hasNext()){\n temp.add(\" \"+adverber.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "public String toString() {\n return String.join(\" \", words);\n }", "public static void main(String[] args) {\n\t\tString stoogs = String.join(\" and \", \"Larry\", \"Curly\", \"Moe\");\n\t\tSystem.out.println(stoogs);\n\t\t\n\t\t\n\t\tString[] states = {\"California\", \"Oregen\", \"Washington\"};\n\t\tString statesList = String.join(\", \", states);\n\t\tSystem.out.println(statesList);\n\t\t\n\t}", "public String getKeywordsDisplay() {\n\t\tString[] keywords = getKeywords();\n\t\tif (keywords == null || keywords.length == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString disp = \"\";\n\t\tfor (int i = 0; i < keywords.length - 1; i++) {\n\t\t\tdisp += keywords[i] + \", \";\n\t\t}\n\t\tdisp += keywords[keywords.length - 1] + \".\";\n\t\treturn disp;\n\t}", "SList evenWords();", "public String toString() {\r\n String output = \"\";\r\n int index = 0;\r\n output = getName() + \"\\n\\n\";\r\n while (index < list.size()) {\r\n output += (list.get(index) + \"\\n\\n\");\r\n index++;\r\n }\r\n return output;\r\n }", "@Override //TODO\n public String toString() {\n String s = \"\";\n s += name + \" \";\n for(Pokemon p : team)\n s += p + \"\\n\";\n return s;\n }", "public List<String> q3() {\n\t\treturn jogadores.stream()\n\t\t\t\t.limit(20).map(Jogador::getFullName)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public String toString() {\r\n \r\n String resultn = \"\";\r\n int index = 0;\r\n while (index < list.size()) {\r\n resultn += \"\\n\" + list.get(index) + \"\\n\"; \r\n index++; \r\n } \r\n return getName() + \"\\n\" + resultn + \"\\n\";\r\n \r\n }", "public String toString(){\n\t\tIterator<Integer> iter = getLines().iterator();\n\t\tString word = getWord() + \"(\" + getLines().size() + \"): \";\n\t\twhile (iter.hasNext()){\n\t\t\tword += iter.next() + \", \";\n\t\t} \n\t\tword = word.substring(0, word.length() - 2);\n\t\treturn word;\n\t}", "public static void main(String[] args) {\n\r\n\r\n Scanner scan = new Scanner(System.in);\r\n String word = scan.next();\r\n String separator = scan.next();\r\n int count = scan.nextInt();\r\n\r\n\r\n String name = \"\";\r\n for (int i = 1; i <= count; i++) {\r\n\r\n name = name +word + separator ;\r\n\r\n if (i == count) {\r\n\r\n System.out.print(name.substring(0, name.length()-separator.length() ));\r\n } else {\r\n continue;\r\n }\r\n\r\n }\r\n }", "public String toString(){\n return name + \"|Pop: \" + pop + \"|Gdp: \" +gdp + \"|Social: \" +social + \"|Living: \" + living;\n }", "private void printSeparation(){\n\t\tfor (int i = 0; i < 50; i++) {\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void printFruits() {\r\n\t\tSystem.out.println(\"\\nFruits Available in our store: \\n\");\r\n\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%10s\\t%10s\\n\", \"Id\", \"Name\", \"Quality\", \"Price\", \"Best Before Use\");\r\n\t\tfor (Fruit fruit : fruits.values()) {\r\n\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%10s\\t%10s\\n\", fruit.getId(), fruit.getName(), fruit.getQuality(),\r\n\t\t\t\t\tfruit.getPrice(), fruit.getBestBeforeUse());\r\n\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void writeFavorites() {\n ArrayList<String> favorites = new ArrayList<>();\n for(Landmark landmark : landmarks.getFavorites()) {\n favorites.add(landmark.toStringForOutput());\n }\n FileManager.writeLines(favoritesPath, favorites);\n }", "public void printFormatedList()\r\n{\r\n System.out.println(\"[\");\r\n for(int i = 0; i < JustifiedList.size(); i++)\r\n {\r\n System.out.println(\"\\\"\" + JustifiedList.get(i) + \"\\\"\");\r\n }\r\n System.out.println(\"]\");\r\n}", "private List<String> buildList() {\n List<String> list = new ArrayList<>();\n list.add(\"Traveled Meters by Day\");\n list.add(\"Sensor Coverage\");\n list.add(\"No Movement Detection\");\n return list;\n }", "private void listParkingLots() {\n for (ParkingLot pl: parkinglots) {\n System.out.println(pl.getName() + \" | price: \" + pl.getPrice() + \" /hour\");\n }\n }", "public static void displayTextCountries(){\n for (Country country : countryList){\n System.out.println(country.getCountryName() + \",\" + country.getIndicator(1) + \",\" + country.getIndicator(2) + \",\" + country.getIndicator(3) + \",\" + country.getIndicator(4) + \",\" + country.getIndicator(5) + \",\" + country.getIndicator(6) + \",\" + country.getIndicator(7) + \",\" + country.getIndicator(8));\n }\n }", "public void display() {\n\tString tm = \"{ \";\n\tIterator it = entrySet().iterator();\n\twhile(it.hasNext()) {\n\t\ttm += it.next() + \" ,\";\n\t}\n\ttm = tm.substring(0, tm.length() - 2) + \" }\";\n\tSystem.out.println(tm);\n }", "public static void main(String[] args) {\n\t\tStringTokenizer strToken = new StringTokenizer(\"Hello, my name is Vitaly\", \", \", true);\n\t\twhile(strToken.hasMoreElements()){\n\t\t\tSystem.out.println(\"\\\"\" + strToken.nextToken() + \"\\\"\");\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tstrToken = new StringTokenizer(\"Hello, my name is Vitali\", \", \", false);\n\t\twhile(strToken.hasMoreElements()){\n\t\t\tSystem.out.println(\"\\\"\" + strToken.nextToken() + \"\\\"\");\n\t\t}\n\t}", "void printParking();", "@Override\n public String toString() {\n StringJoiner sj = new StringJoiner(\", \", \"{\", \"}\\n\");\n wordMap.forEach((k, v) -> sj.add(String.format(\"%s -> %s\", k, v)));\n return sj.toString();\n }", "public ArrayList<String> listarProgramas();", "public String infosPourList(){\n return nom+ \" , \" +promo.getNom();\n }", "private void exercise1() {\n final List<String> list = asList(\n \"The\", \"Quick\", \"BROWN\", \"Fox\", \"Jumped\", \"Over\", \"The\", \"LAZY\", \"DOG\");\n\n final List<String> lowerList = list.stream()\n .map(String::toLowerCase)\n .peek(System.out::println)\n .collect(toList());\n }", "public String seenPokemonMenu() {\n String rv = \"\";\n Iterator<PokemonSpecies> it = this.pokedex.iterator();\n while (it.hasNext()) {\n PokemonSpecies currentSpecies = it.next();\n rv += String.format(\"%s\\n\", currentSpecies.getSpeciesName());\n }\n return rv;\n }", "public String getFlights(){\r\n String str = new String();\r\n Iterator<Flight> iter = flights.iterator();\r\n\r\n while (iter.hasNext()){\r\n Flight temp = iter.next();\r\n str += \"\\n Flight ID: \" + temp.flightID + \"\\n Flight \" + temp.flightDate + \"\\n Plane ID: \" + temp.plane.planeID + \"\\n\";\r\n }\r\n return \"\\n Pilot Flights \\n\" + str + \"\\n\";\r\n }", "public void viewByCity() {\n System.out.println(\"Enter City Name : \");\n String city = sc.nextLine();\n list.stream().filter(n -> n.getCity().equals(city)).forEach(i -> System.out.println(i));\n }", "public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }", "public void printSpayedOrNeutered(){\n System.out.println(\"Spayed or Neutered Dogs:\");\n ArrayList<Dog> dogsSpayedOrNeutered = dogsSpayedOrNeutered();\n for(Dog d : dogsSpayedOrNeutered){\n d.printInfo();\n }\n }", "public String printPatronInfo(){\n String printingStr = \"\";\n if (this.servingPatron.getBooks().size() > 0){\n printingStr += \"The books currently checked out to this patron are:\";\n printingStr += '\\n';\n printingStr += \"{\";\n for (int i = 0;i < (this.servingPatron.getBooks().size());i++){\n this.numberedListOfServing.put(i+1, this.servingPatron.getBooks().get(i));\n //print the numbered list out!\n printingStr += (i+1);\n printingStr += \" : \";\n printingStr += this.servingPatron.getBooks().get(i).toString();\n printingStr += \"; \";\n }\n printingStr = printingStr.substring(0, printingStr.length()-2);\n printingStr += \"}\";\n }\n else {\n printingStr = \"This patron currently possesses no book. \";\n }\n return printingStr;\n }", "public String listToString() {\n StringBuilder breakfast = headerSetup(BREAKFAST);\n StringBuilder lunch = headerSetup(LUNCH);\n StringBuilder dinner = headerSetup(DINNER);\n StringBuilder snacks = headerSetup(SNACKS);\n\n for (Food f : units) {\n String line = \"\\t\" + f.toString() + \"\\n\";\n\n switch (f.getMeal()) {\n case BREAKFAST: breakfast.append(line);\n break;\n case LUNCH: lunch.append(line);\n break;\n case DINNER: dinner.append(line);\n break;\n default: snacks.append(line);\n break;\n }\n }\n return breakfast.toString() + lunch.toString() + dinner.toString() + snacks.toString();\n }", "public String listOfFurniture() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Furniture> it = furniture.iterator(); it.hasNext();){\r\n\t\t\t Furniture f = (Furniture) it.next();\r\n \t sb.append(f.toString() + NL);\r\n }\r\n return sb.toString();\r\n }", "SList oddWords();", "@Override\n public String toString() {\n StringBuilder retVal = new StringBuilder();\n int phraseCount = this.phrases.size();\n if (phraseCount > 0) {\n // We are non-empty. Start with the prefix.\n retVal.append(this.prefix);\n retVal.append(' ');\n switch (phraseCount) {\n case 2:\n // Two phrases are joined with \" and \".\n retVal.append(this.phrases.get(0));\n retVal.append(\" and \");\n retVal.append(this.phrases.get(1));\n break;\n case 1:\n // A single phrase is unadorned.\n retVal.append(this.phrases.get(0));\n break;\n default:\n // Three or more requires an Oxford comma.\n retVal.append(this.phrases.get(0));\n int lastPhrase = phraseCount - 1;\n for (int i = 1; i < lastPhrase; i++) {\n retVal.append(\", \");\n retVal.append(this.phrases.get(i));\n }\n retVal.append(\", and \");\n retVal.append(this.phrases.get(lastPhrase));\n }\n }\n retVal.append(this.suffix);\n return retVal.toString();\n }", "public void cars_of_my_father(){\n System.out.println(\"Royal Rayce, Maruti Suzuki, Mazda\");\n }", "private void homeTitles() {\n String udata = \"B U I L D M A N\";\n SpannableString content = new SpannableString(udata);\n content.setSpan(new UnderlineSpan(), 0, udata.length(), 0);\n mBuilder_txv.setText(content);\n }", "public void displayParks(ArrayList<Park> parks){\n\n\n //display 1st park\n TextView r1No = findViewById(R.id.r1No);\n r1No.setText(\"1\");\n TextView r1Name = findViewById(R.id.r1Name);\n r1Name.setText(parks.get(0).getName());\n TextView r1Distance = findViewById(R.id.r1Distance);\n r1Distance.setText(String.format(\"%.2f km\",parks.get(0).getDistance()));\n TextView r1Rating = findViewById(R.id.r1Rating);\n r1Rating.setText(String.format(\"%.1f\",parks.get(0).getOverallRating()));\n\n\n //display 2nd park, if available\n if (parks.size() > 1) {\n TextView r2No = findViewById(R.id.r2No);\n r2No.setText(\"2\");\n TextView r2Name = findViewById(R.id.r2Name);\n r2Name.setText(parks.get(1).getName());\n TextView r2Distance = findViewById(R.id.r2Distance);\n r2Distance.setText(String.format(\"%.2f km\",parks.get(1).getDistance()));\n TextView r2Rating = findViewById(R.id.r2Rating);\n r2Rating.setText(String.format(\"%.1f\",parks.get(1).getOverallRating()));\n }\n\n //display 3rd park, if available\n if (parks.size() > 2) {\n TextView r3No = findViewById(R.id.r3No);\n r3No.setText(\"3\");\n TextView r3Name = findViewById(R.id.r3Name);\n r3Name.setText(parks.get(2).getName());\n TextView r3Distance = findViewById(R.id.r3Distance);\n r3Distance.setText(String.format(\"%.2f km\",parks.get(2).getDistance()));\n TextView r3Rating = findViewById(R.id.r3Rating);\n r3Rating.setText(String.format(\"%.1f\",parks.get(2).getOverallRating()));\n }\n\n //display 4th park, if available\n if (parks.size() > 3) {\n TextView r4No = findViewById(R.id.r4No);\n r4No.setText(\"4\");\n TextView r4Name = findViewById(R.id.r4Name);\n r4Name.setText(parks.get(3).getName());\n TextView r4Distance = findViewById(R.id.r4Distance);\n r4Distance.setText(String.format(\"%.2f km\",parks.get(3).getDistance()));\n TextView r4Rating = findViewById(R.id.r4Rating);\n r4Rating.setText(String.format(\"%.1f\",parks.get(3).getOverallRating()));\n }\n\n\n //display 5th park, if available\n if (parks.size() > 4) {\n TextView r5No = findViewById(R.id.r5No);\n r5No.setText(\"5\");\n TextView r5Name = findViewById(R.id.r5Name);\n r5Name.setText(parks.get(4).getName());\n TextView r5Distance = findViewById(R.id.r5Distance);\n r5Distance.setText(String.format(\"%.2f km\",parks.get(4).getDistance()));\n TextView r5Rating = findViewById(R.id.r5Rating);\n r5Rating.setText(String.format(\"%.1f\",parks.get(4).getOverallRating()));\n }\n\n //display 6th park, if available\n if (parks.size() > 5) {\n TextView r6No = findViewById(R.id.r6No);\n r6No.setText(\"6\");\n TextView r6Name = findViewById(R.id.r6Name);\n r6Name.setText(parks.get(5).getName());\n TextView r6Distance = findViewById(R.id.r6Distance);\n r6Distance.setText(String.format(\"%.2f km\",parks.get(5).getDistance()));\n TextView r6Rating = findViewById(R.id.r6Rating);\n r6Rating.setText(String.format(\"%.1f\",parks.get(5).getOverallRating()));\n }\n\n //display 7th park, if available\n if (parks.size() > 6) {\n TextView r7No = findViewById(R.id.r7No);\n r7No.setText(\"7\");\n TextView r7Name = findViewById(R.id.r7Name);\n r7Name.setText(parks.get(6).getName());\n TextView r7Distance = findViewById(R.id.r7Distance);\n r7Distance.setText(String.format(\"%.2f km\",parks.get(6).getDistance()));\n TextView r7Rating = findViewById(R.id.r7Rating);\n r7Rating.setText(String.format(\"%.1f\",parks.get(6).getOverallRating()));\n }\n\n //display 8th park, if available\n if (parks.size() > 7) {\n TextView r8No = findViewById(R.id.r8No);\n r8No.setText(\"8\");\n TextView r8Name = findViewById(R.id.r8Name);\n r8Name.setText(parks.get(7).getName());\n TextView r8Distance = findViewById(R.id.r8Distance);\n r8Distance.setText(String.format(\"%.2f km\",parks.get(7).getDistance()));\n TextView r8Rating = findViewById(R.id.r8Rating);\n r8Rating.setText(String.format(\"%.1f\",parks.get(7).getOverallRating()));\n }\n }", "public String toString(){\r\n\t\t// Number of households\r\n\t\tString output = \";\\\"\" + this.getTotalHouseholds() + \"\\\"\";\r\n\t\tIterator<Data> iter = this.data.values().iterator();\r\n\t\r\n\t\t// Compile the list of the makeup of each household.\r\n\t\twhile(iter.hasNext()){\r\n\t\t\toutput += \";\" + iter.next().toString();\r\n\t\t}\t// end while\r\n\t\r\n\t\treturn output;\r\n\t}", "public String listResearchers();", "public static List<String> getMidfielders() throws IOException, URISyntaxException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/66\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n Team66Pojo team66Pojo =objectMapper.readValue(response.getEntity().getContent(),Team66Pojo.class);\n List<Squad> squad = team66Pojo.getSquad();\n List<String> midFielderName= new ArrayList<>();\n for (int i = 0; i <squad.size() ; i++) {\n try {\n if(squad.get(i).getPosition().equals(\"Midfielder\")){\n\n midFielderName.add(squad.get(i).getName());\n }}catch (NullPointerException e){\n continue;\n\n }\n }\n return midFielderName;\n }", "public String printToList() {\n\t\tif (hierarchy.equals(\"n\")) {\n\t\t\treturn \"<HTML>\" + visability + \" class \" + className\n\t\t\t\t\t+ \"{ <BR> <BR>\";\n\t\t} else if (isFinished == true) {\n\n\t\t\treturn \"}\";\n\t\t} else {\n\t\t\treturn \"<HTML>\" + visability + \" \" + hierarchy + \" class \"\n\t\t\t\t\t+ className + \"{ <BR> <BR>\";\n\t\t}\n\t}", "public void appendToLikedCars(List<String> likedCars);", "public String allMovieTitles(){\n String MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n MovieTitle += results[i].getTitle() + \"\\n\";\n }\n System.out.println(MovieTitle);\n return MovieTitle;\n }", "public String list(ProgramLocation pl) {\n return list(pl, true, defaultLinesBefore, defaultLinesAfter);\n }", "public void showPortfolio(){\n System.out.println(\"PORTFOLIO CONTENTS\");\n for(int i = 0; i < this.projects.size(); i++){\n System.out.println(this.projects.get(i).elevatorPitch());\n }\n System.out.println(\"Total Portfolio Cost: $\" + this.getPortfolioCost());\n }", "@Override public String toString(){\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<Bars> i = BarsList.iterator(); i.hasNext();){\r\n output.append(i.next().toString());\r\n }\r\n return output.toString();\r\n }", "@Override\n public String toString() {\n String returnable = \"\";\n int count = 0;\n int[] localSectors = sectors;\n \n for (int i = 0; i < sectors.length; i++) {\n \n if(count % 20 == 0 && count != 0) {\n returnable += \"\\n\";\n }\n returnable += localSectors[i];\n count++;\n }\n return returnable;\n }", "public static void userDisplay() {\n\n String nameList = \" | \";\n for (String username : students.keySet()) {\n nameList += \" \" + username + \" | \";\n\n\n }\n System.out.println(nameList);\n// System.out.println(students.get(nameList).getGrades());\n\n }", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "@Override\n public String toString() {\n String s = \"\";\n if(this.numPizzas < 10)\n s = \" \"; // Add space so that numbers line up\n s += String.format(\"%d \", this.getNumber()) + this.pizzaType.toString();\n return s;\n }", "private void exercise2() {\n List<String> list = asList(\n \"The\", \"Quick\", \"BROWN\", \"Fox\", \"Jumped\", \"Over\", \"The\", \"LAZY\", \"DOG\");\n\n final List<String> lowerOddLengthList = list.stream()\n .filter((string) -> string.length() % 2 != 0)\n .map(String::toLowerCase)\n .peek(System.out::println)\n .collect(toList());\n }", "private void listToString() {\n textList.clear();\n for (int x = 0; x < party.size(); x++) {\n Agent thisAgent = party.getMember(x);\n Statistics thisAgentStats = thisAgent.getStats();\n textList.add(thisAgent.getName());\n textList.add(\"HP:\" + thisAgentStats.getCurrentHP() + \"/\" + thisAgentStats.getMaxHP() + \" MP:\" + thisAgentStats.getCurrentMP() + \"/\" + thisAgentStats.getMaxMP());\n }\n }", "@Override\n\tpublic String show(String userName) {\n\t\tShowFriendData data = new ShowFriendData();\n\t\tArrayList<String> doList = data.finds(\"F\"+data.find(userName)) ;\n\t\tString list = \"\" ;\n\t\tfor(String temp : doList){\n\t\t\tlist = list+temp+\";\";\n\t\t}\n\t\treturn list;\n\t}", "String getPais();", "public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(title + \" \");\n builder.append(artist + \" \");\n builder.append(year + \" \");\n builder.append(genre + \" \");\n // majors\n builder.append(\"CS Heard \" + heardPercentCS);\n builder.append(\" CS Like \" + likePercentCS);\n builder.append(\" Math Heard \" + heardPercentMath);\n builder.append(\" Math Like \" + likePercentMath);\n builder.append(\" Eng Heard \" + heardPercentEng);\n builder.append(\" Eng Like \" + likePercentEng);\n builder.append(\" Other Heard \" + heardPercentOther);\n builder.append(\" Other Like \" + likePercentOther);\n // regions\n builder.append(\" SE Heard \" + heardPercentSE);\n builder.append(\" SE Like \" + likePercentSE);\n builder.append(\" NE Heard \" + heardPercentNE);\n builder.append(\" NE Like \" + likePercentNE);\n builder.append(\" US Heard \" + heardPercentUS);\n builder.append(\" US Like \" + likePercentUS);\n builder.append(\" Out Heard \" + heardPercentOut);\n builder.append(\" Out Like \" + likePercentOut);\n // hobbies\n builder.append(\" Music Heard \" + heardPercentMusic);\n builder.append(\" Music Like \" + likePercentMusic);\n builder.append(\" Sports Heard \" + heardPercentSports);\n builder.append(\" Sports Like \" + likePercentSports);\n builder.append(\" Art Heard \" + heardPercentArt);\n builder.append(\" Art Like \" + likePercentArt);\n builder.append(\" Reading Heard \" + heardPercentReading);\n builder.append(\" Reading Like \" + likePercentReading + \"\\n\");\n return builder.toString();\n }", "public static void main(String[] args) {\n\t\tString word = \"Amazon\";\n\t\t//print each character one by one in separate lines\n\t\tint idx = 0;\n\t\t\n\t\twhile (idx < word.length()) {\n\t\t\tSystem.out.println(word.charAt(idx++));\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(); //empty line\n\t\t\n\t\t// print the word back to front Amazon --> nozamA\n\t\tint idx2 = word.length()-1; //5\n\t\t\n\t\twhile (idx2 >= 0) {\n\t\t\tSystem.out.println(word.charAt(idx2--));\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/*int idx = 0;\n\t\tSystem.out.println(word.charAt(idx));\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t\n\t\tidx++;\n\t\tSystem.out.println(word.charAt(idx));\n\t\t*/\n\t}", "public String toString() {\n\t\tString s = \"\";\n\t\tif(hidden) {\t\t\t\t\t//if hidden, only show the next character\n\t\t\tif(chars<=words.get(0).toString().length()) {\n\t\t\t\ts += (words.get(0).toString()+\" \").substring(0,chars+1);\n\t\t\t}\n\t\t}\n\t\telse {\t\t\t\t\t\t\t\n\t\t\tfor(Word w: words) {\n\t\t\t\ts += w.toString() + \" \";\n\t\t\t}\t\n\t\t}\n\t\treturn s;\n\t}", "public static void main(String[] args) {\n\t\tList<String> list = new ArrayList<>();\r\n\t\tlist.add(\"Futebol\");\r\n\t\tlist.add(\"Basquete\");\r\n\t\tlist.add(\"Tênis\");\r\n\t\tlist.add(\"Volei\");\r\n\t\tlist.add(\"Natação\");\r\n\t\tlist.add(\"Hockey\");\r\n\t\tlist.add(\"Boxe\");\r\n\t\tlist.add(\"Futebol\");\r\n\t\t\r\n\t\tSystem.out.println(list);\r\n\t\t\r\n\t\tfor (int i = 0; i <list.size(); i++) {\r\n\t\t\tString letra = list.get(i);\r\n\t\t\tlist.set(i, letra.toUpperCase());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(list);\r\n\t\tSystem.out.println(list.indexOf(\"BOXE\"));//posição que se encontra o elemento\r\n\t\tSystem.out.println(list.subList(2,4));//EXIBIR UMA SUBLISTA DA POSIÇÃO PASSADA\r\n\t\tlist.subList(2, 4).clear();//remover uma subLista da Lista Principal\r\n\t\tSystem.out.println(list);\r\n\t}", "public static void main(String[] args) {\n\t\tStringJoiner joiner=new StringJoiner(\" and \",\"{\",\"}\");\n\t\tjoiner.add(\"python\");\n\t\tjoiner.add(\"java\");\n\t\tjoiner.add(\"c\");\n\t\tjoiner.add(\"c++\").add(\"html\").add(\"css\").add(\"js\");\n\t\tString s=joiner.toString();\n\t\tSystem.out.println(s);\n\t\tString s1=\"asd ad ad vxczvz\";\n\t\tSystem.out.println(s1.lastIndexOf(\" \"));\n\t\tSystem.out.println(s1.substring(s1.lastIndexOf(\" \")));\n\t\t\n\t\tStringJoiner joiner1=new StringJoiner(\" and \",\"[\",\"]\");\n\t\tjoiner1.add(\"asdsa\").add(\"rgrg\").add(\"grger\");\n\t\tSystem.out.println(joiner1);\n\t\tjoiner.merge(joiner1);\n\t\tSystem.out.println(joiner);\n\t}", "private void displayWords() {\r\n\t\tList<String> words = results.getSortedResults();\r\n\t\tif (words.size() == 0) {\r\n\t\t\tSystem.out.println(\"NO results to display.\");\r\n\t\t} else {\r\n\t\t\tfor (String word : words) {\r\n\t\t\t\tSystem.out.println(word);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public String toString() {\n String temp;\n int nb_new_lines, i;\n String result = \"\";\n\n String res = \"%-\" + Manager.ALINEA_DISHNAME + \"s %-\" +\n Manager.DISHNAME_TEXT + \"s %-\" +\n Manager.PRICE + \"s %-\" +\n Manager.CURRENCY_SIZE +\"s\";\n\n if (getName().length() > Manager.DISHNAME_TEXT) {\n\n //Number of lines necessary to write the dish's name\n nb_new_lines = dishName.length() / Manager.DISHNAME_TEXT;\n\n //For each line\n for (i = 0; i< nb_new_lines; i++) {\n\n //If it is not the line finishing printing the dish's name: format the line without the price\n //If it is the line finishing printing the dish's name: format the line with the price\n if (i < nb_new_lines-1 | i == nb_new_lines-1) {\n temp = dishName.substring(i*(Manager.DISHNAME_TEXT-1), (i+1)*(Manager.DISHNAME_TEXT-1));\n result += String.format(res, \"\", temp.toUpperCase(), \"\", \"\") + \"\\n\";\n }\n }\n\n temp = dishName.substring((nb_new_lines)*(Manager.DISHNAME_TEXT-1), dishName.length());\n result += String.format(res, \"\", temp.toUpperCase(), price, Manager.CURRENCY) + \"\\n\";\n\n } else {\n result += String.format(res, \"\", dishName.toUpperCase(), price, Manager.CURRENCY) + \"\\n\";\n }\n\n return result;\n }", "public String toString() {\n DecimalFormat f1 = new DecimalFormat(\"#,###\");\n if (gender) {\n return \"\" + f1.format(numsBaby) + \" girls named \" + name + \" in \" + year;\n } else {\n return \"\" + f1.format(numsBaby) + \" boys named \" + name + \" in \" + year;\n\n }\n }" ]
[ "0.56615955", "0.5555826", "0.5555061", "0.5542083", "0.5505356", "0.54953367", "0.5444978", "0.54162914", "0.53590006", "0.5308361", "0.53059983", "0.5280022", "0.52509665", "0.52250546", "0.5159081", "0.51514757", "0.5142336", "0.51381725", "0.5130639", "0.5123485", "0.5114073", "0.51092976", "0.51084054", "0.5106788", "0.50857383", "0.507478", "0.5059657", "0.50593203", "0.50529826", "0.50394857", "0.503728", "0.503593", "0.5033083", "0.50307435", "0.5030445", "0.5027737", "0.5021058", "0.50165856", "0.49929094", "0.49917594", "0.49800116", "0.4966855", "0.49668247", "0.4962019", "0.49479145", "0.49431407", "0.49338925", "0.4933241", "0.49273083", "0.4912105", "0.49076843", "0.49032936", "0.4900954", "0.49001563", "0.48947933", "0.4892576", "0.489149", "0.48905048", "0.4883116", "0.48807362", "0.48776677", "0.48759106", "0.48756674", "0.4872606", "0.48690712", "0.48649302", "0.48625797", "0.48590302", "0.48588684", "0.4858617", "0.485808", "0.4856069", "0.4853125", "0.48449028", "0.4838114", "0.4825832", "0.48209918", "0.481906", "0.4814235", "0.4803993", "0.47975716", "0.4794884", "0.4778049", "0.47776425", "0.47773886", "0.47771096", "0.47769016", "0.47767282", "0.47734478", "0.4764473", "0.47628385", "0.4759266", "0.4758372", "0.4757105", "0.47560102", "0.47507498", "0.47496036", "0.47459194", "0.4737137", "0.47293267" ]
0.6157857
0
private method to update the spelling. StingBuilder was added. First letter in the word will be upper case then every letter aftwards will be lower case.
private static String updateSpelling(String text) { StringBuilder upSpell = new StringBuilder(32); char ch = ' '; for (int i = 0; i<text.length(); i++) { if(ch == ' ' && text.charAt(i) != ' ') { upSpell.append(Character.toUpperCase(text.charAt(i))); }else if(Character.isLetter(text.charAt(i))) { upSpell.append(Character.toLowerCase(text.charAt(i))); } // if anything other type of input is added besides letters. else { upSpell.append(text.charAt(i)); } //This will keep track of previous characters inputed. ch = text.charAt(i); } return upSpell.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void correctSpelling() {\n\t\tparent_frame.getFestival().speak(\"Correct\", false);\n\n\t\t//adds to respective arraylist based on which attempt they get it right\n\t\tif (current_attempt_number==1){\n\t\t\twords_mastered.add(words_to_spell.get(current_word_number));\n\t\t} else {//words is faulted\n\t\t\twords_faulted.add(words_to_spell.get(current_word_number));\n\t\t}\n\n\t\tcurrent_word_number+=1;\n\t\tcurrent_attempt_number=1;\n\t\tprogress_bar.setForeground(Color.GREEN);\n\t\tprogress_bar.setString(\"word \"+current_word_number +\" was CORRECT\");\n\t\tfeedback_display.setText(\"\");//clear display\n\t}", "private void initialiseWordsToSpell(){\n\t\t//normal quiz\n\t\tif(quiz_type==PanelID.Quiz){\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Quiz);\n\t\t} else { //review quiz\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Review);\n\t\t}\t\n\t}", "@Override\r\n public void actionPerformed(ActionEvent arg0) {\r\n UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider();\r\n if (provider != null) {\r\n provider.addWord(word);\r\n }\r\n Dictionary dictionary = SpellChecker.getCurrentDictionary();\r\n dictionary.add(word);\r\n dictionary.trimToSize();\r\n AutoSpellChecker.refresh(jText);\r\n }", "public void setWordSearchedLower(String wordSearched){\r\n wordSearched = wordSearched.toLowerCase();\r\n this.wordSearched = wordSearched;\r\n }", "static String refineWord(String currentWord) {\n\t\t// makes string builder of word\n\t\tStringBuilder builder = new StringBuilder(currentWord);\n\t\tStringBuilder newWord = new StringBuilder();\n\n\t\t// goes through; if it's not a letter, doesn't add to the new word\n\t\tfor (int i = 0; i < builder.length(); i++) {\n\t\t\tchar currentChar = builder.charAt(i);\n\t\t\tif (Character.isLetter(currentChar)) {\n\t\t\t\tnewWord.append(currentChar);\n\t\t\t}\n\t\t}\n\n\t\t// returns lower case\n\t\treturn newWord.toString().toLowerCase().trim();\n\t}", "public NormalSwear(String word) {\n this.word = word;\n }", "private void addCustomWords() {\r\n\r\n }", "private void updateGuessedWord(String guessedLetter) {\n\t\tint guessIndex = 0;\n\t\tint indexOffset = 0;\n\t\t//we loop here because there can potentially be multiple instances of guessedLetter in actualWord\n\t\twhile (indexOffset < actualWord.length()) { //could be while true, but this protects against double letters at end of word\n\t\t\tguessIndex = actualWord.indexOf(guessedLetter, indexOffset);\n\t\t\tif (guessIndex < 0) return; //exits loop if no further instances of guessed letter are in actual word\n\t\t\telse {\n\t\t\t\tguessedWord = guessedWord.substring(0, guessIndex) + guessedLetter + guessedWord.substring(guessIndex + 1);\n\t\t\t\tindexOffset = guessIndex + 1;\n\t\t\t}\n\t\t}\n\t}", "protected MergeSpellingData()\r\n\t{\r\n\t}", "private String fixWordStarts(final String line) {\n final String[] parts = line.split(\" \");\n\n final StringBuilder lineBuilder = new StringBuilder();\n\n for (int i = 0; i < parts.length; i++) {\n String part = parts[i];\n\n // I prefer a space between a - and the word, when the word starts with a dash\n if (part.matches(\"-[0-9a-zA-Z']+\")) {\n final String word = part.substring(1);\n part = \"- \" + word;\n }\n\n // yes this can be done in 1 if, no I'm not doing it\n if (startsWithAny(part, \"lb\", \"lc\", \"ld\", \"lf\", \"lg\", \"lh\", \"lj\", \"lk\", \"ll\", \"lm\", \"ln\", \"lp\", \"lq\", \"lr\",\n \"ls\", \"lt\", \"lv\", \"lw\", \"lx\", \"lz\")) {\n // some words are incorrectly fixed (llama for instance, and some Spanish stuff)\n if (startsWithAny(part, \"ll\") && isOnIgnoreList(part)) {\n lineBuilder.append(part);\n } else {\n // I starting a word\n part = part.replaceFirst(\"l\", \"I\");\n lineBuilder.append(part);\n }\n } else if (\"l.\".equals(part)) {\n // I at the end of a sentence.\n lineBuilder.append(\"I.\");\n } else if (\"l,\".equals(part)) {\n // I, just before a comma\n lineBuilder.append(\"I,\");\n } else if (\"l?\".equals(part)) {\n // I? Wut? Me? Moi?\n lineBuilder.append(\"I?\");\n } else if (\"l!\".equals(part)) {\n // I! 't-was me!\n lineBuilder.append(\"I!\");\n } else if (\"l..\".equals(part)) {\n // I.. think?\n lineBuilder.append(\"I..\");\n } else if (\"l...\".equals(part)) {\n // I... like dots.\n lineBuilder.append(\"I...\");\n } else if (\"i\".equals(part)) {\n // i suck at spelling.\n lineBuilder.append(\"I\");\n } else if (part.startsWith(\"i'\")) {\n // i also suck at spelling.\n part = part.replaceFirst(\"i\", \"I\");\n lineBuilder.append(part);\n } else {\n // nothing special to do\n lineBuilder.append(part);\n }\n\n // add trailing space if it is not the last part\n if (i != parts.length - 1) {\n lineBuilder.append(\" \");\n }\n }\n\n return lineBuilder.toString();\n }", "public static String findReplacements(TreeSet<String> dictionary, \n\t\t\t\t\t String word)\n\t{\n\t String replacements = \"\";\n\t String leftHalf, rightHalf, newWord;\n\t int deleteAtThisIndex, insertBeforeThisIndex;\n\t char index;\n\t TreeSet<String> alreadyDoneNewWords = new TreeSet<String>();\n\t /* The above TreeSet<String> will hold words that the spell checker\n\t suggests as replacements. By keeping track of what has already\n\t been suggested, the method can make sure not to output the\n\t same recommended word twice. For instance, the word \n\t \"mispelled\" would ordinarily result in two of the same suggested\n\t replacements: \"misspelled\" (where the additional \"s\" is added to \n\t different locations.) */\n\t \n\t // First, we'll look for words to make by subtracting one letter\n\t // from the misspelled word.\n\t for(deleteAtThisIndex = 0; deleteAtThisIndex < word.length();\n\t\tdeleteAtThisIndex ++)\n\t\t{\n\t\t if(deleteAtThisIndex == 0)\n\t\t\t{\n\t\t\t leftHalf = \"\";\n\t\t\t rightHalf = word;\n\t\t\t}\n\t\t else\n\t\t\t{\n\t\t\t leftHalf = word.substring(0, deleteAtThisIndex);\n\t\t\t rightHalf = word.substring(deleteAtThisIndex+1,\n\t\t\t\t\t\t word.length());\n\t\t\t}\n\n\t\t newWord = \"\";\n\t\t newWord = newWord.concat(leftHalf);\n\t\t newWord = newWord.concat(rightHalf);\n\t\t if(dictionary.contains(newWord) &&\n\t\t !alreadyDoneNewWords.contains(newWord))\n\t\t\t{\n\t\t\t replacements = replacements.concat(newWord + \"\\n\");\n\t\t\t alreadyDoneNewWords.add(newWord);\n\t\t\t}\n\t\t}\n\n\t // The rest of this method looks for words to make by adding a \n\t // new letter to the misspelled word.\n\t for(insertBeforeThisIndex = 0; \n\t\tinsertBeforeThisIndex <= word.length();\n\t\tinsertBeforeThisIndex ++)\n\t\t{\n\t\t if(insertBeforeThisIndex == word.length())\n\t\t\t{\n\t\t\t leftHalf = word;\n\t\t\t rightHalf = \"\";\n\t\t\t}\n\t\t else\n\t\t\t{\n\t\t\t leftHalf = word.substring(0,insertBeforeThisIndex);\n\t\t\t rightHalf = word.substring(insertBeforeThisIndex,\n\t\t\t\t\t\t word.length());\n\t\t\t}\n\t\t \n\t\t for(index = 'a'; index <= 'z'; index ++)\n\t\t\t{\n\t\t\t newWord = \"\";\n\t\t\t newWord = newWord.concat(leftHalf);\n\t\t\t newWord = newWord.concat(\"\" + index + \"\");\n\t\t\t newWord = newWord.concat(rightHalf);\n\t\t\t \n\t\t\t if(dictionary.contains(newWord) &&\n\t\t\t !alreadyDoneNewWords.contains(newWord))\n\t\t\t\t{\n\t\t\t\t replacements \n\t\t\t\t\t= replacements.concat(newWord + \"\\n\");\n\t\t\t\t alreadyDoneNewWords.add(newWord);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t return replacements;\n\t}", "public void highLightWords(){\n }", "public String[][] findSuggestions(String w) {\n ArrayList<String> suggestions = new ArrayList<>();\n String word = w.toLowerCase();\n // parse through the word - changing one letter in the word\n for (int i = 0; i < word.length(); i++) {\n // go through each possible character difference\n for (int j = 0; j < Node.NUM_VALID_CHARS; j++) {\n // get the character that will change in the word\n Character c = (char) ((j < 26) ? j + 'a' : '\\'');\n \n // if the selected character is not the same as the character to change - avoids getting the same word as a suggestion\n if (c != word.charAt(i)) {\n // change the character in the word\n String check = word.substring(0, i) + c.toString() + ((i + 1 < word.length()) ? word.substring(i + 1, word.length()) : \"\");\n\n // if the chenged word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n }\n }\n \n // parse through the word - adding one letter to the word\n for (int i = 0; i < word.length(); i++) {\n // if the loop is not on the last charcater\n if (i < word.length() - 1) {\n // check words with one character added between current element and next element\n for (int j = 0; j < Node.NUM_VALID_CHARS; j++) {\n Character c = (char) ((j < 26) ? j + 'a' : '\\'');\n\n // add the character to the word\n String check = word.substring(0, i) + c.toString() + ((i < word.length()) ? word.substring(i, word.length()) : \"\");\n\n // if the new word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n }\n // if the loop is on the last character\n else {\n // check the words with one character added to the end of the word\n for (int j = 0; j < Node.NUM_VALID_CHARS; j++) {\n Character c = (char) ((j < 26) ? j + 'a' : '\\'');\n\n // add the character to the word\n String check = word + c;\n\n // if the new word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n }\n }\n \n // parse through the word - removing one letter from the word\n for (int i = 0; i < word.length(); i++) {\n // remove the chracter at the selected index from the word\n String check = word.substring(0, i) + ((i + 1 < word.length()) ? word.substring(i + 1, word.length()) : \"\");\n\n // if the chenged word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n \n String[][] rtn = new String[suggestions.size()][1];\n for (int i = 0, n = suggestions.size(); i < n; i++) {\n rtn[i][0] = suggestions.get(i);\n }\n \n return rtn;\n }", "public WordsToGuess(String w)\n\t{\n\t\tword = w;\n\t}", "private void update() {\n\t\twhile(words.size()<length) {\n\t\t\twords.add(new Word());\n\t\t}\n\t}", "public abstract WordEntry autoTranslate(String text, String to);", "void setVersesWithWord(Word word);", "public void repopulateWords()\r\n {\n blankSquares();\r\n\r\n //repopulate words\r\n ArrayList al = crossword.getWords();\r\n for (int i = 0; i < al.size(); i++)\r\n {\r\n Word w = (Word) al.get(i);\r\n ArrayList letters = w.getLetters();\r\n\r\n // Lay out the squares, letter by letter, setting the appropriate properties\r\n if (w.getWordDirection() == Word.ACROSS)\r\n {\r\n for (int j = 0; j < letters.size(); j++)\r\n {\r\n Square s = findSquare(w.getY(), w.getX() + j);\r\n if (s.getLetter() == \" \" || s.getLetter() == \"*\" ||\r\n s.getLetter() == \"\")\r\n {\r\n String let = (String) letters.get(j);\r\n if (let == \"*\")\r\n {\r\n let = \" \";\r\n }\r\n s.setLetter(let);\r\n }\r\n\r\n s.setBackground(Color.WHITE);\r\n s.setBorder(BorderFactory.createLineBorder(Color.BLACK,\r\n 1));\r\n\r\n if (s.isAnyWordSelected())\r\n {\r\n s.setBackground(Color.PINK);\r\n s.setResetColour(Color.PINK);\r\n }\r\n //place the clue number\r\n if (j == 0) //ie. first square of word\r\n {\r\n s.setClueNumber(w.getClueIndex());\r\n }\r\n if (s == selectedSquare)\r\n {\r\n s.setBackground(Color.RED);\r\n s.setResetColour(Color.RED);\r\n }\r\n\r\n }\r\n }\r\n else if (w.getWordDirection() == Word.DOWN)\r\n {\r\n\r\n for (int j = 0; j < letters.size(); j++)\r\n {\r\n Square s = findSquare(w.getY() + j, w.getX());\r\n if (s.getLetter() == \" \" || s.getLetter() == \"*\" ||\r\n s.getLetter() == \"\")\r\n {\r\n String let = (String) letters.get(j);\r\n\r\n if (let == \"*\")\r\n {\r\n let = \" \";\r\n }\r\n s.setLetter(let);\r\n }\r\n s.setBackground(Color.WHITE);\r\n s.setBorder(BorderFactory.createLineBorder(Color.BLACK,\r\n 1));\r\n\r\n if (s.isAnyWordSelected())\r\n {\r\n s.setBackground(Color.PINK);\r\n s.setResetColour(Color.PINK);\r\n }\r\n\r\n //place the clue number\r\n if (j == 0) //ie. first square of word\r\n {\r\n s.setClueNumber(w.getClueIndex());\r\n }\r\n if (s == selectedSquare)\r\n {\r\n s.setBackground(Color.RED);\r\n s.setResetColour(Color.RED);\r\n }\r\n }\r\n }\r\n }\r\n //dissociate any blank squares from legacy word relationships\r\n dissociateSquares();\r\n validate();\r\n }", "public void scoreWord() {\n\t\t// check if valid word\n\t\tif (word.isWord(dictionary)) {\n\t\t\tscore += word.getScore();\n\t\t\tword.start = null;\n\t\t\tword.wordSize = 0;\n\t\t\t// check if word still possible\n\t\t} else if (!word.isPossibleWord(dictionary)) {\n\t\t\tword.start = null;\n\t\t\tword.wordSize = 0;\n\t\t}\n\n\t}", "private String processWord(String word){\r\n\t\tString lword = word.toLowerCase();\r\n\t\tfor (int i = 0;i<word.length();++i){\r\n\t\t\tstemmer.add(lword.charAt(i));\r\n\t\t}\r\n\t\tstemmer.stem();\r\n\t\treturn stemmer.toString();\r\n\t}", "private Suggestion buildSuggestion(String linearization,\n Interpretation interpretation,\n Map<String, WordType> originalWords, boolean matchAllWords) {\n String[] words = linearization.split(\"\\\\s+\");\n\n Map<String, Integer> namesMissing = new HashMap(\n interpretation.getNameTypeCounts().counts);\n\n int additionalNamesCount = 0;\n\n Set<String> wordsNotMatched = new HashSet<>(originalWords.keySet());\n for (Entry<String, WordType> entry : originalWords.entrySet()) {\n if (entry.getValue() == WordType.Name) {\n wordsNotMatched.remove(entry.getKey());\n }\n }\n int additionalGrammarWordsCount = 0;\n\n\n for (String word : words) {\n\n //name word\n if (defTempl.isVariable(word)) {\n String nameType = word.substring(2, word.length() - 2);\n if (namesMissing.containsKey(nameType)) {\n Integer missingCount = namesMissing.get(nameType);\n if (missingCount > 1) {\n namesMissing.put(nameType, missingCount - 1);\n }\n else {\n namesMissing.remove(nameType);\n }\n }\n else {\n additionalNamesCount++;\n }\n }\n //grammar word\n else {\n String lowerCaseWord = word.toLowerCase();\n\n if (wordsNotMatched.contains(lowerCaseWord)) {\n wordsNotMatched.remove(lowerCaseWord);\n }\n else {\n additionalGrammarWordsCount++;\n }\n }\n }\n\n //if removing words from query is not allowed\n if (matchAllWords && !wordsNotMatched.isEmpty()) {\n return null;\n }\n\n int grammarWordsAltered = wordsNotMatched.size();\n int grammarWordsAdded = additionalGrammarWordsCount - grammarWordsAltered;\n\n return new Suggestion(linearization, false,\n additionalNamesCount, grammarWordsAdded, grammarWordsAltered);\n }", "private void updateTextBox(){\n\t\tString tmpWord = game.getTempAnswer().toString();\n\t\tString toTextBox = \"\";\n\t\tStringBuilder sb = new StringBuilder(tmpWord);\n\n\t\t//if a letter is blank in the temp answer make it an underscore. Goes for as long as the word length\n\t\tfor (int i = 0; i<tmpWord.length();i++){\n\t\t\tif(sb.charAt(i) == ' ')\n\t\t\t\tsb.setCharAt(i, '_');\n\t\t}\n\t\ttoTextBox = sb.toString();\n\t\ttextField.setText(toTextBox);\n\t\tlblWord.setText(toTextBox);\n\t}", "public void GuessFullWordEvent() {\n\t\t\n\t\tString finalGuess = AnswerBox.getText();\n\t\tfinalGuess = finalGuess.toLowerCase(); // the answer is not case sensitive\n\n\t\t//if the final guess is the correct word or not\n\t\tif(finalGuess.equals(mysteryWord))\n\t\t\tGameWin();\n\t\telse\n\t\t\tGameOver();\n\t}", "public void useSword() {\n \n \tif(this.getSword() != null) {\n \t\tdungeon.swordLeft().set(\"Sword Hits Left:\" + \" \" + (this.sword.getSwings()-1) + \"\\n\");\n \t\tthis.getSword().useSword(this);\n \t}\n }", "public void setWordSearched(String wordSearched){\r\n this.wordSearched = wordSearched;\r\n setWordSearchedLower(wordSearched);\r\n }", "public String acronym(String phrase) {\n /*StringBuilder acronymFeed = new StringBuilder(\"\");\n String wordHolder = \"\";\n int spaceIndex;\n char firstLetter;\n do{\n spaceIndex = phrase.indexOf(\" \");\n wordHolder = phrase.substring(0,spaceIndex);\n acronymFeed.append(wordHolder.charAt(0));\n phrase = phrase.replaceFirst(wordHolder, \"\");\n } while (spaceIndex != -1 && wordHolder != \"\" && phrase != \"\");\n \n \n \n \n \n String acronymResult = acronymFeed.toString().toUpperCase();\n return acronymResult;\n */\n \n char[] letters = phrase.toCharArray();\n String firstLetters = \"\";\n firstLetters += String.valueOf(letters[0]);\n for (int i = 1; i < phrase.length();i++){\n if (letters[i-1] == ' '){\n firstLetters += String.valueOf(letters[i]);\n }\n }\n firstLetters = firstLetters.toUpperCase();\n return firstLetters;\n }", "private void addSpell(Bundle bundle) {\n Toast.makeText(getContext(), \"Not yet implemented\", Toast.LENGTH_SHORT).show();\n }", "public void run() {\n\n /**\n * Replace all delimiters with single space so that words can be\n * tokenized with space as delimiter.\n */\n for (int x : delimiters) {\n text = text.replace((char) x, ' ');\n }\n\n StringTokenizer tokenizer = new StringTokenizer(text, \" \");\n boolean findCompoundWords = PrefsHelper.isFindCompoundWordsEnabled();\n ArrayList<String> ufl = new ArrayList<String>();\n for (; tokenizer.hasMoreTokens();) {\n String word = tokenizer.nextToken().trim();\n boolean endsWithPunc = word.matches(\".*[,.!?;]\");\n \n // Remove punctuation marks from both ends\n String prevWord = null;\n while (!word.equals(prevWord)) {\n prevWord = word;\n word = removePunctuation(word);\n }\n \n // Check spelling in word lists\n boolean found = checkSpelling(word);\n if (findCompoundWords) {\n if (!found) {\n ufl.add(word);\n if (endsWithPunc) pushErrorToListener(ufl);\n } else {\n pushErrorToListener(ufl);\n }\n } else {\n if (!found) listener.addWord(word);\n }\n }\n pushErrorToListener(ufl);\n }", "private void laadSpellen() {\r\n this.spellen = this.dc.geefOpgeslagenSpellen();\r\n int index = 0;\r\n String res = String.format(\"%25s %20s\", r.getString(\"spelNaam\"), r.getString(\"moeilijkheidsGraad\"));\r\n for (String[] rij : spellen) {\r\n index++;\r\n res += String.format(\"%n%d) %20s\", index, rij[0]);\r\n switch (rij[1]) {\r\n case \"1\":\r\n res += String.format(\"%20s\", r.getString(\"makkelijk\"));\r\n break;\r\n case \"2\":\r\n res += String.format(\"%20s\", r.getString(\"gemiddeld\"));\r\n break;\r\n case \"3\":\r\n res += String.format(\"%20s\", r.getString(\"moeilijk\"));\r\n break;\r\n }\r\n \r\n }\r\n System.out.printf(res);\r\n }", "public String getCorrectionWord(String misspell);", "public String spellcheck(String word) {\n // Check if the world is already in lcDictionary.\n String lcdictionaryLookup = lcDictionary.get(word.toLowerCase());\n if(lcdictionaryLookup != null) {\n return lcdictionaryLookup;\n }\n String reducedWord = reducedWord(word);\n String rwdictionaryLookup = rwDictionary.get(reducedWord);\n if(rwdictionaryLookup != null) {\n return rwdictionaryLookup;\n }\n return \"NO SUGGESTION\";\n }", "void setWord(Word word);", "public void spellLevelUp() {\n \n }", "public static void upperCaseFirstOfWord() {\n\t\tString isExit = \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tStringBuffer result = new StringBuffer();\n\t\t\tString str = bf.toString();\n\t\t\tString char_prev = \"\";\n\t\t\tString char_current = \"\";\n\t\t\tString key = \" ,.!?:\\\"\";\n\t\t\tresult.append(String.valueOf(str.charAt(0)).toUpperCase());\n\t\t\tfor (int i = 1; i < str.length(); i++) {\n\t\t\t\tchar_prev = String.valueOf(str.charAt(i - 1));\n\t\t\t\tchar_current = String.valueOf(str.charAt(i));\n\t\t\t\tif (key.contains(char_prev)) {\n\t\t\t\t\tchar_current = char_current.toUpperCase();//uppercase first letter each word\n\t\t\t\t}\n\t\t\t\tresult.append(char_current);\n\t\t\t}\n\t\t\tSystem.out.println(\"Chuỗi có chữ cái đầu viết hoa: \\n\" + result);\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(0/1):\");\n\t\t\tisExit= scan.next().toString();\n\t\t}\n\t}", "private void updateWordsDisplayed() {\n \t\tcurrFirstLetters.remove(wordsList[wordsDisplayed[currWordIndex]].charAt(0));\n \t\twhile (currFirstLetters.contains(wordsList[nextWordIndex].charAt(0))) {\n \t\t\tnextWordIndex++;\n \t\t\tif (nextWordIndex >= wordsList.length) {\n \t\t\t\tnextWordIndex = 0;\n \t\t\t}\n \t\t}\n \t\tcurrFirstLetters.add(wordsList[nextWordIndex].charAt(0));\n \t\twordsDisplayed[currWordIndex] = nextWordIndex;\n \t\tnextWordIndex++;\n \t\tif (nextWordIndex >= wordsList.length) {\n \t\t\tnextWordIndex = 0;\n \t\t}\n \t\tsetChanged();\n \t\tnotifyObservers(States.update.FINISHED_WORD);\n \t}", "private Spannable applyWordMarkup(String text) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n int languageCodeStart = 0;\n int untranslatedStart = 0;\n\n int textLength = text.length();\n for (int i = 0; i < textLength; i++) {\n char c = text.charAt(i);\n if (c == '.') {\n if (++i < textLength) {\n c = text.charAt(i);\n if (c == '.') {\n ssb.append(c);\n } else if (c == 'c') {\n languageCodeStart = ssb.length();\n } else if (c == 'C') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.language_code_tag),\n languageCodeStart, ssb.length(), 0);\n languageCodeStart = ssb.length();\n } else if (c == 'u') {\n untranslatedStart = ssb.length();\n } else if (c == 'U') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.untranslated_word),\n untranslatedStart, ssb.length(), 0);\n untranslatedStart = ssb.length();\n } else if (c == '0') {\n Resources res = getResources();\n ssb.append(res.getString(R.string.no_translations));\n }\n }\n } else\n ssb.append(c);\n }\n\n return ssb;\n }", "@Override\n public String makeLatinWord(DatabaseAccess databaseAccess, String number, String noun_Case) {\n return makeLatinWord(databaseAccess, number, noun_Case, mGender);\n }", "public String propergram(String word){\n // word.toLowerCase();\n String[] tempstr =word.split(\"_\");\n String tempstr2;\n\n for(int i=0;i<tempstr.length;i++){\n if((tempstr[i].charAt(0))>='A'&&(tempstr[i].charAt(0))<='Z') {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0)));\n }\n else {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0))).toUpperCase();\n }\n tempstr[i] = tempstr2.concat(tempstr[i].substring(1));\n if (i != 0) {\n word=word.concat(\" \").concat(tempstr[i]);\n } else {\n word = tempstr[i];\n }\n\n }\n return word;\n\n\n }", "@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\tvalidarAvance(s.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t}", "public void updateWordPoints() {\n for (String word: myList.keySet()) {\n int wordValue = 0;\n for (int i = 0; i < word.length(); i++) {\n // gets individual characters from word and\n // from that individual character get the value from scrabble list\n int charValue = scrabbleList.get(word.toUpperCase().charAt(i));\n // add character value gotten from character key from scrabble map to word value\n wordValue = wordValue + charValue;\n }\n\n // update the value of the word in myList map\n myList.put(word, wordValue);\n }\n }", "private static void addSpell(Thing t) {\r\n \t\tString name=t.getString(\"Name\");\r\n \t\tspellNames.add(name);\r\n \t\t\r\n \t\tGame.assertTrue(t.getFlag(\"IsSpell\"));\r\n \r\n \t\tint level=t.getStat(\"Level\");\r\n \t\tGame.assertTrue(level>0);\r\n \t\tt.set(\"LevelMin\",level);\r\n \r\n \t\tint skillMin=(t.getStat(\"SpellCost\"))*3;\r\n \t\tt.set(\"SkillMin\",skillMin);\r\n \t\t\r\n \t\tt.set(\"Image\",t.getStat(\"BoltImage\"));\r\n \t\tt.set(\"ImageSource\",\"Effects\");\r\n \t\t\r\n \t\t//int power=(int)(6*Math.pow(spellPowerMultiplier,level));\r\n \t\t//Game.assertTrue(power>0);\r\n \t\t//t.set(\"Power\",power);\r\n \t\tLib.add(t);\r\n \t}", "public void setWord(String newWord)\n\t{\n\t\tword = newWord;\n\t}", "public String getSpelling() {\n\t\treturn this.spelling;\n\t}", "public void configureWord() {\n }", "public void edit_word(String word, String definition){\n\t\tLexiNode node = search_specific_word(word, -1);\n\t\tif(node == null)\n\t\t\tadd_word(word, definition);\n\t\telse\n\t\t\tsearch_specific_word(word, -1).setDefinition(definition);\n\t}", "public abstract WordEntry manualTranslate(String text, String from, String to);", "private void upgradeDictionary() throws IOException {\n File fileAnnotation = new File(filePathAnnSource);\n FileReader fr = new FileReader(fileAnnotation);\n BufferedReader br = new BufferedReader(fr);\n String line;\n\n if (fileAnnotation.exists()) {\n while ((line = br.readLine()) != null) {\n String[] annotations = line.split(\"[ \\t]\");\n String word = line.substring(line.lastIndexOf(\"\\t\") + 1);\n\n if (!nonDictionaryTerms.contains(word.toLowerCase())) {\n if (dictionaryTerms.containsKey(word.toLowerCase())) {\n if (!dictionaryTerms.get(word.toLowerCase()).equalsIgnoreCase(annotations[1])) {\n System.out.println(\"Conflict: word:: \" + word + \" Dictionary Tag: \" + dictionaryTerms.get(word.toLowerCase()) + \" New Tag: \" + annotations[1]);\n nonDictionaryTerms.add(word.toLowerCase());\n// removeLineFile(dictionaryTerms.get(word.toLowerCase())+\" \"+word.toLowerCase(),filePathDictionaryAuto);\n dictionaryTerms.remove(word.toLowerCase());\n writePrintStream(word, filePathNonDictionaryAuto);\n }\n } else {\n System.out.println(\"Updating Dictionary:: Word: \" + word + \"\\tTag: \" + annotations[1]);\n dictionaryTerms.put(word.toLowerCase(), annotations[1]);\n writePrintStream(annotations[1] + \" \" + word.toLowerCase(), filePathDictionaryAuto);\n }\n }\n\n// if (dictionaryTerms.containsKey(word.toLowerCase())) {\n// if (!dictionaryTerms.get(word.toLowerCase()).equalsIgnoreCase(annotations[1])) {\n// System.out.println(\"Conflict: word: \" + word + \" Dictionary Tag: \" + dictionaryTerms.get(word.toLowerCase()) + \" New Tag: \" + annotations[1]);\n// nonDictionaryTerms.add(word.toLowerCase());\n//\n// }\n// } else {\n// dictionary.add(word.toLowerCase());\n// dictionaryTerms.put(word.toLowerCase(), annotations[1]);\n// System.out.println(\"Updating Dictionary: Word: \" + word + \"\\tTag: \" + annotations[1]);\n// }\n }\n }\n\n\n br.close();\n fr.close();\n }", "private void addWords(){\n wordList.add(\"EGE\");\n wordList.add(\"ABBAS\");\n wordList.add(\"KAZIM\");\n }", "private void convertWord(String word, int n) {\n\t\t\n\t\tStringBuilder convertedWord;\t\t// A StringBuilder object is used to substitute specific characters at locations\n\t\t\n\t\tfor (int i = n; i < word.length(); i++) {\t\t// Loops through the entire word to make substitutions\n\t\t\tswitch (word.charAt(i)) {\n\t\t\t\tcase 'a':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\t\t// Creates a new StringBuilder string\n\t\t\t\t\tconvertedWord.setCharAt(i, '4');\t\t\t\t// Substitutes 'a' with '4'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\t\t// Adds the converted word to the trie\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\t\t\t\t\t// Adds the converted word to my_dictionary.txt\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\t\t\t\t// Checks this converted word for more substitutions\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'e':\t\t\t\t\t// These cases all follow the same format; they only differ in the letter that is substituted\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '3');\t\t\t\t// Substitutes 'e' with '3'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'i':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '1');\t\t\t\t// Substitutes 'i' with '1'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'l':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '1');\t\t\t\t// Substitutes 'l' with 'i'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'o':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '0');\t\t\t\t// Substitutes 'o' with '0'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 's':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '$');\t\t\t\t// Substitutes 's' with '$'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 't':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '7');\t\t\t\t// Substitutes 't' with '7'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private void renewWord() {\n givenWord = availableWords.randomWordLevel1();\n shuffedWord = availableWords.shuffleWord(givenWord);\n textViewShuffle.setText(shuffedWord);\n }", "private void searchWord()\n {\n String inputWord = searchField.getText();\n \n if(inputWord.isEmpty())\n queryResult = null;\n \n else\n {\n char firstLetter = inputWord.toUpperCase().charAt(0);\n \n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetter)\n {\n queryResult = lexiNodeTrees.get(i).searchWord(inputWord, false);\n i = lexiNodeTrees.size(); // escape the loop\n }\n }\n }\n \n // update the list on the GUI\n if(queryResult != null)\n {\n ArrayList<String> words = new ArrayList<>();\n for(WordDefinition word : queryResult)\n {\n words.add(word.getWord());\n }\n \n // sort the list of words alphabetically \n Collections.sort(words);\n \n // display the list of wordsin the UI\n DefaultListModel model = new DefaultListModel();\n for(String word : words)\n {\n model.addElement(word);\n }\n\n this.getSearchSuggestionList().setModel(model);\n }\n \n else\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n }", "public String normalize(String word);", "public String getSpelling() {\n\t\t\treturn this.spelling;\n\t\t}", "@Override\n\tpublic void replaceWord(String s) {\n\t\tfinder.replace(s);\n\t}", "private static String toStartCase(String words) {\n String[] tokens = words.split(\"\\\\s+\");\n StringBuilder builder = new StringBuilder();\n for (String token : tokens) {\n builder.append(capitaliseSingleWord(token)).append(\" \");\n }\n return builder.toString().stripTrailing();\n }", "public boolean guessWord (String gword) {\n \tif (lose || victory) return false;\n \t\n \tif ( gword.toLowerCase().equals(_word.toLowerCase()) ) {\n \t\tthis.victory = true;\n \t\t\n \t\tfor (int i = 0; i < _word.length(); i++) {\n \t\t\thint.setCharAt(2*i, _word.charAt(i));\n \t\t}\n \t\t\n \t\treturn true;\n \t}\n \t\n \treturn false;\n }", "public void addTWord(String word){\n\t\tsentence.add(new TWord(word));\n\t}", "private void switchToLowerCase() {\n for (int i = 0; i < mLetterButtons.length; i++) {\n mLetterButtons[i].setText((mQWERTYWithDot.charAt(i) + \"\").toLowerCase());\n }\n mIsShiftPressed = false;\n }", "void solution() {\n\t\t/* Write a RegEx matching repeated words here. */\n\t\tString regex = \"(?i)\\\\b([a-z]+)\\\\b(?:\\\\s+\\\\1\\\\b)+\";\n\t\t/* Insert the correct Pattern flag here. */\n\t\tPattern p = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);\n\n\t\tString[] in = { \"I love Love to To tO code\", \"Goodbye bye bye world world world\",\n\t\t\t\t\"Sam went went to to to his business\", \"Reya is is the the best player in eye eye game\", \"in inthe\",\n\t\t\t\t\"Hello hello Ab aB\" };\n\t\tfor (String input : in) {\n\t\t\tMatcher m = p.matcher(input);\n\n\t\t\t// Check for subsequences of input that match the compiled pattern\n\t\t\twhile (m.find()) {\n\t\t\t\t// /* The regex to replace */, /* The replacement. */\n\t\t\t\tinput = input.replaceAll(m.group(), m.group(1));\n\t\t\t}\n\n\t\t\t// Prints the modified sentence.\n\t\t\tSystem.out.println(input);\n\t\t}\n\n\t}", "public interface IWord2Spell {\r\n String word2spell();\r\n}", "private Set<String> replacementHelper(String word) {\n\t\tSet<String> replacementWords = new HashSet<String>();\n\t\tfor (char letter : LETTERS) {\n\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\treplacementWords.add(word.substring(0, i) + letter + word.substring(i + 1));\n\t\t\t}\n\t\t}\n\t\treturn replacementWords;\n\t}", "public static String textFormat(String s){\r\n s =s.toLowerCase();\r\n s = s.substring(0, 1).toUpperCase() + s.substring(1);\r\n return(s);\r\n }", "public abstract String guessedWord();", "private String createAcronym(String phrase) {\n String[] words = phrase.split(\"\\\\W+|(?<=\\\\p{Lower})(?=\\\\p{Upper})|(?<=\\\\p{Upper})(?=\\\\p{Upper}\\\\p{Lower})\");\n StringBuffer acronym = new StringBuffer();\n for (int i = 0; i < words.length; i++) {\n acronym.append(words[i].substring(0,1).toUpperCase());\n }\n return acronym.toString();\n }", "private void computerTurn() {\n String text = txtWord.getText().toString();\n String nextWord;\n if (text.length() >= 4 && dictionary.isWord(text)){\n endGame(false, text + \" is a valid word\");\n return;\n } else {\n nextWord = dictionary.getGoodWordStartingWith(text);\n if (nextWord == null){\n endGame(false, text + \" is not a prefix of any word\");\n return;\n } else {\n addTextToGame(nextWord.charAt(text.length()));\n }\n }\n userTurn = true;\n txtLabel.setText(USER_TURN);\n }", "private void update(String word, int lineNumber)\n {\n //checks to see if its the first word of concordance or not\n if(this.concordance.size()>0)\n {\n //if it is not the first word it loops through the concordance\n for(int i = 0; i < this.concordance.size();i++)\n {\n int check = 0;\n //if word is in concordance it updates the WordRecord for that word\n if(word.equalsIgnoreCase(concordance.get(i).getWord()))\n {\n concordance.get(i).update(lineNumber);\n check++;\n }\n \n //if the word is not found it adds it to the concordance and breaks out of the loop\n if(check == 0 && i == concordance.size() - 1)\n {\n WordRecord temp = new WordRecord(word,lineNumber);\n this.concordance.add(temp);\n break;\n }\n \n }\n }\n \n else\n //if it is the first word of the concordance it adds it to the concordance\n {\n WordRecord temp = new WordRecord(word,lineNumber);\n this.concordance.add(temp);\n }\n }", "public abstract void substitutedWords(long ms, int n);", "public void makeLowerCase () {\n tags = new StringBuilder (tags.toString().toLowerCase());\n }", "public void toLower() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (char c : seq) {\n newSeq.add(Character.toLowerCase(c));\n }\n seq = newSeq;\n }", "public static String addPuctuation(String input) {\n // Sentence Openers \n input = input.replace(\"hello\", \"hello,\");\n input = input.replace(\"hi\", \"hi!\");\n input = input.replace(\"heya\", \"heya!\");\n input = input.replace(\"hey\", \"hey,\");\n input = input.replace(\"greetings\", \"greetings,\");\n input = input.replace(\"good morning\", \"good morning,\");\n input = input.replace(\"good evening\", \"good evening,\");\n input = input.replace(\"good afternoon\", \"good afternoon!\");\n \n\n // Words ending in nt \n input = input.replace(\"isnt\", \"isn't\");\n input = input.replace(\"cant\", \"can't\");\n input = input.replace(\"wont\" , \"won't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"would\", \"wouldn't\");\n input = input.replace(\"hadnt\", \"hadn't\");\n input = input.replace(\"aint\", \"ain't\");\n input = input.replace(\"arent\", \"aren't\");\n input = input.replace(\"didnt\", \"didn't\");\n input = input.replace(\"doesnt\" , \"doesn't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"dont\", \"don't\");\n input = input.replace(\"hasnt\", \"hasn't\");\n input = input.replace(\"shoudlnt\", \"shouldn't\");\n input = input.replace(\"couldnt\", \"couldn't\");\n input = input.replace(\"wasnt\", \"wasn't\");\n input = input.replace(\"werent\" , \"were't\");\n input = input.replace(\"wouldnt\" , \"wouldn't\");\n\n //Questions\n String q1 = \"what\";\n String q2 = \"when\";\n String q3 = \"where\";\n String q4 = \"which\";\n String q5 = \"who\";\n String q6 = \"whom\";\n String q7 = \"whose\";\n String q8 = \"why\";\n String q9 = \"how\";\n\n if (input.contains(q1) || input.contains(q2) || input.contains(q3) \n || input.contains(q4) || input.contains(q5) || input.contains(q6) \n || input.contains(q7) || input.contains(q8) || input.contains(q9)) \n {\n input = input + \"?\";\n }\n\n else\n {\n input = input + \".\";\n }\n\n\n //Other\n input = input.replace(\"however\", \"however,\");\n input = input.replace(\"ill\" , \"i'll\");\n input = input.replace(\"im\", \"i'm\");\n return input;\n }", "private void save_meaning_word() {\n\t\tif(this.dwd!=null && this.main_word!=null)\n\t\t{\n\n\n\t\t\tString meaning_word=\"\";\n\t\t\tif(isHindi)\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.eng_word;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.hin_word;\n\t\t\t}\n\n\t\t\tDictCommon.SaveWord(meaning_word,!isHindi);\n\t\t\tToast.makeText(view.getContext(), \"word \"+meaning_word+\" successfully saved!!!\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "public void updateSpellList(SpellList sList){\n\t\tspellList=sList;\n\t\trequestInputFocus();\n\t}", "void extend(SpellCheckWord scWord)\n\t{\n\t\tif(!scWord.word.equals(\"\\n\\n\"))\n\t\t\tsuper.append(scWord.word + \" \");\n\t\telse\n\t\t\tsuper.append(scWord.word);\n\n\t\tcontentPairs.add(scWord);\n\t}", "public void approveAll() {\r\n\t\tif (readDocument != null) {\r\n\t\t\tif (incorrectWords.size() > 0) {\r\n\t\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\t\tObject[] incorrectWordsArray = incorrectWords.toArray();\r\n\t\t\t\tSystem.out.println(\"Would you like to add the following misspelled words to the dictionary?\");\r\n\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.println(incorrectWordsArray[i]);\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(\"(Y/N): \");\r\n\t\t\t\tString response = sc.next();\r\n\t\t\t\tif (response.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\t\tdictionary.add((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tincorrectWords.clear();\r\n\t\t\t\t\tSystem.out.println(\"Your changes were made to the dictionary.\");\r\n\t\t\t\t\tmodified = true;\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no misspelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}", "public static String translateWord(String word) {\n\n if (word.length() < 1) return word;\n int[] vowelArray = word.chars().filter(c -> vowels.contains((char) c)).toArray();\n if (vowelArray.length == 0) return word.charAt(0) + word.substring(1).toLowerCase() + \"ay\";\n\n char first = Character.isUpperCase(word.charAt(0))\n ? Character.toUpperCase((char) vowelArray[0]) : (char) vowelArray[0];\n if (vowels.contains(word.charAt(0)))\n word = first + word.substring(1).toLowerCase() + \"yay\";\n else\n word = first + word.substring(word.indexOf(vowelArray[0]) + 1).toLowerCase()\n + word.substring(0, word.indexOf(vowelArray[0])).toLowerCase() + \"ay\";\n return word;\n }", "public void setHangmanWord()\n {\n if(word == null || word == \"\") return;\n\n String hangmanWord = \"\";\n for(int i=0; i<word.length(); i++)\n {\n if(showChar[i])\n hangmanWord += word.substring(i, i+1)+\" \";\n else\n hangmanWord += \"_ \";\n }\n\n wordTextField.setText(hangmanWord.substring(0, hangmanWord.length()-1));\n }", "public void SaveWord(String phrase) {\n\tOrdBok.SaveWord(phrase, 30);\r\n }", "private void listen_meaning_word() {\n\t\tif(this.dwd!=null)\n\t\t{\n\t\t\tString meaning_word=\"\";\n\t\t\tif(isHindi)\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.eng_word;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.hin_word;\n\t\t\t}\n\t\t\tif(isHindi)\n\t\t\t{\n\t\t\t\tif(this.main_word!=\"\")\n\t\t\t\t{\n\t\t\t\t\tif(mCallBack==null)\n\t\t\t\t\t{\n\t\t\t\t\t\tmCallBack=(OnWordSelectedFromSearchSuccess) getActivity();\n\t\t\t\t\t}\n\t\t\t\t\tmCallBack.onWordSpeak(meaning_word);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tDictCommon.listen_in_hindi(meaning_word);\n\t\t\t}\n\t\t}\n\t}", "private void update(String person){\n\n\t\tint index = myWords.indexOf(person);\n\t\tif(index == -1){\n\t\t\tmyWords.add(person);\n\t\t\tmyFreqs.add(1);\n\t\t}\n\t\telse{\n\t\t\tint value = myFreqs.get(index);\n\t\t\tmyFreqs.set(index,value+1);\n\t\t}\n\t}", "public String buildWord() {\n\t\tStringBuilder word = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < letters.size(); i++) {\n\t\t\tLetter tempLetter = letters.get(i);\n\t\t\t\n\t\t\tif(!(letters.get(i).getLetter() >= 'A' && letters.get(i).getLetter() <= 'Z') || tempLetter.getStatus())\n\t\t\t\tif(letters.get(i).getLetter() != ' ')\n\t\t\t\t\tword.append(tempLetter.getLetter());\n\t\t\t\telse\n\t\t\t\t\tword.append(\" \");\n\t\t\telse\n\t\t\t\tif (i == letters.size()-1) word.append(\"_\");\n\t\t\t\telse word.append(\"_ \");\n\t\t}\n\t\treturn word.toString();\n\t}", "public void updateResults(String s) {\n ArrayList<String> tempName = new ArrayList<String>();\n ArrayList<String> tempUid = new ArrayList<String>();\n for(int i=0;i<userName.size();i++){\n if(userName.get(i).toLowerCase().contains(s.toLowerCase())){\n tempName.add(userName.get(i));\n tempUid.add(uid.get(i));\n }\n }\n userName.clear();\n uid.clear();\n userName.addAll(tempName);\n uid.addAll(tempUid);\n }", "private void matchletter(){\n\t\t/* Generate a Random Number and use that as a Index for selecting word from HangmanLexicon*/\n\t\tString incorrectwords = \"\";\n\t\tcanvas.reset();\n\t\tHangmanLexicon word= new HangmanLexicon(); // Get Word from Lexicon\n\t\tint index=rgen.nextInt(0, (word.getWordCount() - 1)); // Select the word Randomly\n\t\tString secretword=word.getWord(index);\n\t\tprintln(\"secretword: \"+secretword);\n\t\tint lengthofstring= secretword.length();\n\t\tString createword=concatNcopies(lengthofstring,\"-\"); // Create a blank word the user will guess\n\t\tcanvas.displayWord(createword); // Display the word on the Canvas\n\t\tprintln(\"The word now looks like this:\" +createword);\n\t\tprintln(\"You have \" +lengthofstring+ \" guesses left\");\n\t\tint counter =0;\n\t\tint guess= lengthofstring;\n\t\tint pos = createword.indexOf('-'); // Check for blank Words\n\t\t/* Ask user to input the letter*/\n\t\twhile(counter<lengthofstring && (pos !=-1 )){ \n\t\t\tint check=0;\n\t\t\tpos = createword.indexOf('-',pos); // Check to find Dashes in word\n\t\t\tString userletter= readLine(\"Your Guess:\");\n\t\t\tif(userletter.length() > 1){ // Check for two letters entered\n\t\t\t\tprintln(\"Enter letter Again\");\n\t\t\t}\n\t\t\tchar ch=userletter.charAt(0);\n\t\t\tif(Character.isLowerCase(ch)) { // Convert lower case to upper case\n\t\t\t\tch = Character.toUpperCase(ch);\n\t\t\t}\n\t\t\tfor (int i=0;i<lengthofstring;i++){ // Check for entire letter matching in the secretword\n\t\t\t\tif (ch==secretword.charAt(i) && ch!=createword.charAt(i)) { \n\t\t\t\t\tcreateword = createword.substring(0, i) + ch + createword.substring(i + 1);\n\t\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\t\tcheck++; // If user puts the correct letter again it is flagged as a error\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(check==0){\n\t\t\t\tprintln(\"There are no \"+ch+\"'s in the word\");\n\t\t\t\tguess=guess-1;\n\t\t\t\tincorrectwords = incorrectwords+ch;\n\t\t\t\tcanvas.noteIncorrectGuess(guess, incorrectwords);\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tprintln(\"The word now looks like this:\"+createword);\n\t\t\tprintln(\"You have \" +guess+ \" guesses left\");\n\n\t\t\tif(counter==lengthofstring){ // Checks for Fail condition- Game Over\n\t\t\t\tprintln(\"You are completely hung\");\n\t\t\t\tprintln(\"The word was: \"+secretword);\n\t\t\t\tcanvas.displayWord(secretword);\n\t\t\t\tprintln(\"You lose \");\n\t\t\t}\n\t\t\tpos = createword.indexOf('-');// Check for Win condition\n\t\t\tif(pos < 0){\n\t\t\t\tprintln(\"You saved Hangman\");\n\t\t\t\tprintln(\"You Win !!!\");\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tguess=123;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private void renewWordLevel2()\n {\n givenWord = availableWords.randomWordLevel2();\n shuffedWord = availableWords.shuffleWord(givenWord);\n textViewShuffle.setText(shuffedWord);\n }", "void setCompletionCase(String text, int cursorPos);", "private void allWordsListMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_allWordsListMouseClicked\n \n String selectedWord = this.getAllWordsList().getSelectedValue();\n char firstLetterOfWord = selectedWord.charAt(0);\n \n // find the index of the corresponding tree tot he first letter of the word\n int index = -1;\n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetterOfWord)\n {\n index = i;\n i = lexiNodeTrees.size();\n }\n }\n \n // find the word in the tree\n WordDefinition wordQuery = lexiNodeTrees.get(index).searchWord(selectedWord, true).get(0);\n \n // update definition field\n this.getDefinitionTextArea().setText(wordQuery.getDefinition());\n \n // display the word in the search field as well\n this.getSearchField().setText(selectedWord);\n \n // get search suggestion too\n searchWord();\n \n // select the same word in the search suggestion list \n ListModel<String> modelList = getSearchSuggestionList().getModel();\n \n for(int i = 0 ; i < modelList.getSize() ; i++)\n {\n if(modelList.getElementAt(i).equals(selectedWord))\n {\n getSearchSuggestionList().setSelectedIndex(i);\n i = modelList.getSize();\n }\n }\n \n }", "@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\tu.setLname(s.toString());\n\t\t\t\n\t\t\t}", "private void challengeHandler() {\n String word = txtWord.getText().toString();\n String nextWord;\n if (word.length() >= 4 && dictionary.isWord(word)){\n endGame(true, word + \" is a valid word\");\n } else {\n nextWord = dictionary.getAnyWordStartingWith(word);\n if (nextWord != null){\n endGame(false, word + \" is a prefix of word \\\"\" + nextWord + \"\\\"\");\n } else {\n endGame(true, word + \" is not a prefix of any word\");\n }\n }\n }", "public void upadateDictionary(){\n dict.setLength(0);\n for(Character l : LettersCollected) {\n dict.append(l + \" \");\n }\n dictionary.setText(dict);\n\n }", "public String acronym(String phrase) {\n String accrStr = phrase.replaceAll(\"\\\\B.|\\\\P{L}\", \"\").toUpperCase();\n return accrStr;\n }", "public void setCorrection(String word) throws IOException {\n writeWord(word);\n }", "public void approve() {\r\n\t\tif (readDocument != null) {\r\n\t\t\tif (incorrectWords.size() > 0) {\r\n\t\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\t\tObject[] incorrectWordsArray = incorrectWords.toArray();\r\n\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.print(\"Would you like to add '\" + incorrectWordsArray[i] + \"' to the dictionary? (Y/N): \");\r\n\t\t\t\t\tString response = sc.next();\r\n\t\t\t\t\tif (response.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\t\tdictionary.add((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t\tincorrectWords.remove((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"Your changes were made to the dicitonary.\");\r\n\t\t\t\t\t\tmodified = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no misspelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}", "private static String capitaliseSingleWord(String word) {\n String capitalisedFirstLetter = word.substring(0, 1).toUpperCase();\n String lowercaseRemaining = word.substring(1).toLowerCase();\n return capitalisedFirstLetter + lowercaseRemaining;\n }", "private boolean checkSpelling(String word) {\n\n boolean exists = false;\n if (word == null || word.trim().length() == 0) {\n exists = true;\n } else if (isFiltered(word)) {\n exists = true;\n } else {\n\n if (word.contains(\"-\")) {\n if (!isInWordList(word)) {\n boolean pe = true;\n for (String part : word.split(\"-\"))\n {\n pe = pe && checkSpelling(part.trim());\n }\n exists = pe;\n } else {\n exists = true;\n }\n } else {\n exists = isInWordList(word);\n }\n }\n return exists;\n }", "private void newWord() {\r\n defaultState();\r\n int random_id_String = 0;\r\n int random_id_Char[] = new int[4];\r\n Random random = new Random();\r\n if (wordNumber == WordCollection.NO_OF_WORDS) return;//quit if all word list is complete;\r\n wordNumber++;\r\n //in case the word has already occured\r\n while (currentWord.equals(\"\")) {\r\n random_id_String = random.nextInt(WordCollection.NO_OF_WORDS);\r\n currentWord = tempWord[random_id_String];\r\n }\r\n currentWord.toUpperCase();\r\n tempWord[random_id_String] = \"\";//so that this word will not be used again in the game session\r\n //generates 4 random nums each for each btn char\r\n for (int i = 0; i < 4; i++) {\r\n random_id_Char[i] = (random.nextInt(4));\r\n for (int j = i - 1; j >= 0; j--) {\r\n if (random_id_Char[i] == random_id_Char[j]) i--;\r\n }\r\n }\r\n\r\n btn1.setText((currentWord.charAt(random_id_Char[0]) + \"\").toUpperCase());\r\n btn2.setText((currentWord.charAt(random_id_Char[1]) + \"\").toUpperCase());\r\n btn3.setText((currentWord.charAt(random_id_Char[2]) + \"\").toUpperCase());\r\n btn4.setText((currentWord.charAt(random_id_Char[3]) + \"\").toUpperCase());\r\n }", "private String getWordStatsFromList(List<String> wordList) {\n\t\tif (wordList != null && !wordList.isEmpty()) {\n\t\t\tList<String> wordsUsedCaps = new ArrayList<>(); \n\t\t\tList<String> wordsExcludedCaps = new ArrayList<>(); \n\t\t\tListIterator<String> iterator = wordList.listIterator();\n\t\t\tMap<String, Integer> wordToFreqMap = new HashMap<>();\n\t\t\t// iterate on word List using listIterator to enable edits and removals\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tString origWord = iterator.next();\n\t\t\t\t// remove quotes from word e.g. change parents' to parents; \n\t\t\t\t// change children's to children; change mark'd to mark\n\t\t\t\tString curWord = stripQuotes(origWord);\n\t\t\t\tif (!curWord.equals(origWord)) {\n\t\t\t\t\titerator.set(curWord);\n\t\t\t\t}\n\t\t\t\tString curWordCaps = curWord.toUpperCase();\n\t\t\t\t// remove words previously used (to prevent duplicates) or previously\n\t\t\t\t// excluded (compare capitalized version)\n\t\t\t\tif (wordsExcludedCaps.contains(curWordCaps)) {\n\t\t\t\t\titerator.remove();\n\t\t\t\t}\n\t\t\t\telse if (wordsUsedCaps.contains(curWordCaps)) {\n\t\t\t\t\t// if word was previously used then update wordToFreqMap to increment\n\t\t\t\t\t// its usage frequency\n\t\t\t\t\tSet<String> wordKeys = wordToFreqMap.keySet();\n\t\t\t\t\tfor (String word : wordKeys) {\n\t\t\t\t\t\tif (curWord.equalsIgnoreCase(word)) {\n\t\t\t\t\t\t\twordToFreqMap.put(word, wordToFreqMap.get(word).intValue() + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\titerator.remove();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// invoke checkIfEligible() with algorithm described in Challenge 2 to see if word not\n\t\t\t\t\t// previously used/excluded should be kept. If kept in list \n\t\t\t\t\t// then add to wordsUsedCaps list; if not qualified then add to\n\t\t\t\t\t// wordsExcludedCaps list to prevent checkIfEligible() having to be \n\t\t\t\t\t// called again\n\t\t\t\t\tif (checkIfEligible(curWordCaps)) {\n\t\t\t\t\t\twordsUsedCaps.add(curWordCaps);\n\t\t\t\t\t\twordToFreqMap.put(curWord, 1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\twordsExcludedCaps.add(curWordCaps);\n\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// sort words in list in order of length\n\t\t\twordList.sort(Comparator.comparingInt(String::length));\n\t\t\t// sort wordToFreqMap by value (frequency) and choose the last sorted map element\n\t\t\t// to get most frequently used word\n\t\t\tList<Map.Entry<String, Integer>> mapEntryWtfList = new ArrayList<>(wordToFreqMap.entrySet());\n\t\t\tmapEntryWtfList.sort(Map.Entry.comparingByValue());\n\t\t\tMap<String, Integer> sortedWordToFreqMap = new LinkedHashMap<>();\n\t\t\tsortedWordToFreqMap.put(mapEntryWtfList.get(mapEntryWtfList.size()-1).getKey(), mapEntryWtfList.get(mapEntryWtfList.size()-1).getValue());\t\n\t\t\t// set up Json object to be returned as string\n\t\t\t// the code below is self-explaining\n\t\t\tJSONObject json = new JSONObject();\n\t\t\ttry {\n\t\t\t\tjson.put(\"remaining words ordered by length\", wordList);\n\t\t\t\tjson.put(\"most used word\", mapEntryWtfList.get(mapEntryWtfList.size()-1).getKey());\n\t\t\t\tjson.put(\"number of uses\", mapEntryWtfList.get(mapEntryWtfList.size()-1).getValue());\n\t\t\t} catch(JSONException je) {\n\t\t\t\tje.printStackTrace();\n\t\t\t}\n\t\t\treturn json.toString();\n\t\t\t\n\t\t}\n\t\treturn \"\";\n\t}", "public void addWord (String word) {\r\n word = word.toUpperCase ();\r\n if (word.length () > 1) {\r\n String s = validateWord (word);\r\n if (!s.equals (\"\")) {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered contained invalid characters\\nInvalid characters are: \" + s, \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n checkEasterEgg (word);\r\n words.add (word);\r\n Components.wordList.getContents ().addElement (word);\r\n } else {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered does not meet the minimum requirement length of 2\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "private SpreedWord() {\n\n }", "private static String convertToLatin(String word)\n {\n return word.substring(1) + word.substring(0,1) + \"ay\";\n }", "public void addWord(String word) {\n if (word == null || word.equals(\"\")) return;\n char[] str = word.toCharArray();\n WordDictionary cur = this;\n for (char c: str) {\n if (cur.letters[c - 'a'] == null) cur.letters[c - 'a'] = new WordDictionary();\n cur = cur.letters[c - 'a'];\n }\n cur.end = true;\n }", "StemChange(String _old, String _new) {\n\t\tthis(_old, _new, TenseType.PRESENT, (Pronoun[]) null);\n\t}" ]
[ "0.6836909", "0.66835064", "0.6350299", "0.6324305", "0.6228378", "0.620541", "0.62030196", "0.6183646", "0.6169491", "0.5999121", "0.59914666", "0.59625536", "0.5917529", "0.5900931", "0.59007174", "0.5894766", "0.58738524", "0.58736444", "0.58670515", "0.5857669", "0.58352554", "0.58265495", "0.58247083", "0.58243", "0.58242303", "0.5806766", "0.5799703", "0.5784763", "0.5781832", "0.5767439", "0.57469404", "0.5739411", "0.5710526", "0.56822354", "0.5667456", "0.5653813", "0.56261474", "0.5609708", "0.5606785", "0.55912274", "0.55854154", "0.5578706", "0.5561815", "0.5561774", "0.555854", "0.5549039", "0.55437565", "0.5539499", "0.5502188", "0.5486431", "0.5483977", "0.5480138", "0.54783946", "0.5473069", "0.54695153", "0.54617053", "0.5458036", "0.5437133", "0.5436115", "0.5435588", "0.54324955", "0.54130554", "0.54117894", "0.5408691", "0.53996086", "0.53925115", "0.53868484", "0.5385441", "0.53797454", "0.5377315", "0.53686845", "0.53675175", "0.5367248", "0.5354123", "0.5353585", "0.5353112", "0.53438914", "0.5325149", "0.5323391", "0.5322416", "0.5317112", "0.53151727", "0.53091604", "0.5308698", "0.53078705", "0.53067595", "0.53041136", "0.5294681", "0.5293269", "0.5293079", "0.5292695", "0.52904403", "0.5289212", "0.5288507", "0.52801895", "0.52789396", "0.5267639", "0.52674806", "0.5266578", "0.526377" ]
0.75014377
0
checkedId is the RadioButton selected
@Override public void onCheckedChanged(RadioGroup group, int checkedId) { View radioButton = group.findViewById(checkedId); int index = group.indexOfChild(radioButton); switch (index) { case 0: // first button mText.setVisibility(View.VISIBLE); mEdit.setVisibility(View.VISIBLE); break; case 1: // secondbutton info1="no"; mText.setVisibility(View.INVISIBLE); mEdit.setVisibility(View.INVISIBLE); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCheckedChanged(RadioGroup radioGroup, @IdRes int checked) {\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n pos = radioGroup.indexOfChild(findViewById(checkedId));\n switch (pos) {\n case 1:\n\n Status_id = 0;\n new getStudentList().execute();\n // Toast.makeText(getApplicationContext(), \"1\"+Status_id,Toast.LENGTH_SHORT).show();\n break;\n case 2:\n\n Status_id = 1;\n // Toast.makeText(getApplicationContext(), \"2\"+Status_id, Toast.LENGTH_SHORT).show();\n break;\n\n default:\n //The default selection is RadioButton 1\n Status_id = 1;\n new getStudentList().execute();\n // Toast.makeText(getApplicationContext(), \"3\"+Status_id,Toast.LENGTH_SHORT).show();\n break;\n }\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n Log.d(\"signin\",checkedId+\"\");\n role = checkedId - 2131230788;\n /*\n switch (checkedId){\n case 0:\n role = 0;\n break;\n case 1:\n role = 1;\n break;\n case 2:\n role = 2;\n break;\n default:\n break;\n }*/\n }", "@Override\n\n // The flow will come here when\n // any of the radio buttons in the radioGroup\n // has been clicked\n\n // Check which radio button has been clicked\n public void onCheckedChanged(RadioGroup group,\n int checkedId) {\n RadioButton\n radioButton\n = (RadioButton) group\n .findViewById(checkedId);\n }", "public void onCheckedChanged(RadioGroup arg0, int id) {\n\t\tRadioButton rb = (RadioButton) findViewById(id);\n\t\t/*\n\t\tswitch(id){\n\t\t\t/*\n\t\tcase R.id.radioButton1:\n\t\t\tpositionSelected = 0;\n\t\t\tbreak;\n\n\t\tcase R.id.radioButton2:\n\t\t\tpositionSelected = 0;\n\t\t\tbreak;\n\t\tcase R.id.radioButton3:\n\t\t\tpositionSelected = 1;\n\t\t\tbreak;\t\t\t\n\t\t}*/\n\t\tif (id == R.id.radioButton2)\n\t\t\tpositionSelected = 0;\n\t\telse if (id == R.id.radioButton3)\n\t\t\tpositionSelected = 1;\n\t}", "@Override\r\n\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\r\n\t}", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n if (checkedId == R.id.rbtSPAText) {\n\n setRbtValue(cSP, rbtQuestionAText, 1);\n } else if (checkedId == R.id.rbtSPBText) {\n\n setRbtValue(cSP, rbtQuestionBText, 2);\n } else if (checkedId == R.id.rbtSPCText) {\n\n setRbtValue(cSP, rbtQuestionCText, 3);\n } else if (checkedId == R.id.rbtSPDText) {\n\n setRbtValue(cSP, rbtQuestionDText, 4);\n }\n }", "public int getCheckedRadioButtonId() {\n for (RadioButton rb : mButtons) {\n if (rb.isChecked()) {\n return rb.getId();\n }\n }\n return -1;\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n// UIHelper.toastMessage(getContext(),checkedId+\"\");\n\n if (checkedId == R.id.card_yes) {\n checked = true;\n } else {\n\n checked = false;\n merge(0);\n }\n\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton rb=(RadioButton)findViewById(checkedId);\n if(rb.isChecked()){\n for (WorkFlowItem s : listitem) {\n if(rb.getText().equals(s.getTextString())){\n String\tstr=s.getTextString();\n Info_DoFlow_xj.listact.setValueid(s.getValueString());\n Info_DoFlow_xj.listact.setTextsid(s.getTextString());\n\n // Toast.makeText(Info_DoFlow_xj.this, \"选取的值:\"+valueid, Toast.LENGTH_LONG).show();\n\n }\n }\n\n }\n }", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n if (checkedId == R.id.sport) {\n mychoice = (RadioButton) findViewById(R.id.sport);\n text=\"sport\";\n Toast.makeText(getApplicationContext(), \"choice: sport\",\n\n Toast.LENGTH_SHORT).show();\n\n } else if (checkedId == R.id.school) {\n mychoice = (RadioButton) findViewById(R.id.school);\n text=\"school\";\n Toast.makeText(getApplicationContext(), \"choice: school\",\n\n Toast.LENGTH_SHORT).show();\n\n } else if (checkedId == R.id.work) {\n mychoice = (RadioButton) findViewById(R.id.work);\n text=\"work\";\n Toast.makeText(getApplicationContext(), \"choice: work\",\n\n Toast.LENGTH_SHORT).show();\n\n } else if (checkedId == R.id.other) {\n text=\"other\";\n Toast.makeText(getApplicationContext(), \"choice: other\",\n\n Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n switch(checkedId) {\n case R.id.promale:\n gen = \"Male\";\n break;\n case R.id.profemale:\n gen = \"Female\";\n break;\n }\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n if (checkedId == time.getId()) {\n typeNumber=1;\n } else if (checkedId == priority.getId()) {\n typeNumber=2;\n }else if (checkedId == SPF.getId()) {\n typeNumber=3;\n }else if (checkedId == STF.getId()) {\n typeNumber=4;\n }\n }", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tif(checkedId == alreadyRead.getId()){\n\t\t\t\t\treadSatuts = Sms.MESSAGE_READ;\n\t\t\t\t}else if(checkedId == unRead.getId()){\n\t\t\t\t\treadSatuts = Sms.MESSAGE_UNREAD;\n\t\t\t\t}\n\t\t\t}", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tlista = (ListView)findViewById(R.id.lvItem);\n\t\t\t\tiAdapter = new ItemAdapter(getApplicationContext(), alItem);\n\t\t\t\tlista.setAdapter(iAdapter);\n\t\t\t\tEItem.setText(\"\");\n\t\t\t\t/*if(checkedId == R.id.rbtCodigo)*/\n\t\t\t}", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\t \tint radioButtonId = group.getCheckedRadioButtonId();\n\t RadioButton rb = (RadioButton) viewHolder.getMconvertView().findViewById(radioButtonId);\n\t \n\t RadioButton rb_ck_stand_yes = (RadioButton) viewHolder.getMconvertView().findViewById(R.id.rb_ck_stand_yes);\n\t RadioButton rb_ck_stand_no = (RadioButton) viewHolder.getMconvertView().findViewById(R.id.rb_ck_stand_no);\n\t \n\t rb_ck_stand_yes.setTextColor(Color.parseColor(\"#FF7D899D\"));\n\t rb_ck_stand_no.setTextColor(Color.parseColor(\"#FF7D899D\"));\n\t \n\t rb.setTextColor(Color.parseColor(\"#28aae1\")); \n\t \n\t if(mQualifiedListener!=null)\n\t {\n\t \tswitch (radioButtonId) {\n\t\t\t\t\t\tcase R.id.rb_ck_stand_yes:\n\t\t\t\t\t\t\tmQualifiedListener.setItenIsQualified(t,true);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.rb_ck_stand_no:\n\t\t\t\t\t\t\tmQualifiedListener.setItenIsQualified(t,false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t }\n\t\t\t}", "@Override\r\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n pos=rg.indexOfChild(findViewById(checkedId));\r\n\r\n\r\n\r\n //Method 2 For Getting Index of RadioButton\r\n pos1=rg.indexOfChild(findViewById(rg.getCheckedRadioButtonId()));\r\n\r\n\r\n\r\n switch (pos)\r\n {\r\n case 0 :\r\n layout_Firm.setVisibility(View.GONE);\r\n layout_Firmno.setVisibility(View.GONE);\r\n type=\"Proprietorship\";\r\n break;\r\n case 1 :\r\n layout_Firm.setVisibility(View.VISIBLE);\r\n layout_Firmno.setVisibility(View.VISIBLE);\r\n type=\"Partnership\";\r\n break;\r\n\r\n\r\n default :\r\n //The default selection is RadioButton 1\r\n layout_Firm.setVisibility(View.GONE);\r\n layout_Firmno.setVisibility(View.GONE);\r\n type=\"Proprietorship\";\r\n break;\r\n }\r\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton rEnCours=(RadioButton)findViewById(checkedId);\n\n Toast.makeText(Circonstance_Activity.this,rEnCours.getText(), Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup arg0, int checkedId) {\n\t\t\t\tswitch (checkedId) {\n\n\t\t\t\tcase R.id.rb_Chinese://\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.rb_Settings:\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.rb_Pinyin:\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n switch (checkedId) {\n case R.id.color_box4:\n color_type = 4;\n color_radio_group1.clearCheck();\n break;\n case R.id.color_box5:\n color_type = 5;\n color_radio_group1.clearCheck();\n break;\n case R.id.color_box6:\n color_type = 6;\n color_radio_group1.clearCheck();\n break;\n default:\n //Toast.makeText(getApplicationContext(), \"radio btn select plz\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n dialog.dismiss();\r\n MyLog.i(\"YUY\",\r\n String.valueOf(checkedId) + \" \"\r\n + group.getCheckedRadioButtonId());\r\n mVehicleTypeTV.setText(((RadioButton) layout\r\n .findViewById(checkedId)).getText().toString());\r\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n int childCount = group.getChildCount();\n for (int x = 0; x < childCount; x++) {\n RadioButton btn = (RadioButton) group.getChildAt(x);\n\n if (btn.getId() == checkedId) {\n\n persongender = btn.getText().toString();\n\n }\n\n }\n\n Log.e(\"Gender\", persongender);\n System.out.println(\"gender::\" + persongender);\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n Log.v(\"라디오버튼\"+checkedId+\"이고\",\"designer 값은 \"+R.id.designer+\"이다.\");\n\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n int position = (Integer) group.getTag();\n\n //select radio button depending on Tag value\n switch(checkedId){\n case R.id.radioButton4:\n //set grade value to the ArrayList element\n gradeList.get(position).setGrade(2);\n\n break;\n case R.id.radioButton3:\n gradeList.get(position).setGrade(3);\n\n break;\n case R.id.radioButton2:\n gradeList.get(position).setGrade(4);\n\n break;\n case R.id.radioButton:\n gradeList.get(position).setGrade(5);\n\n break;\n }\n }", "@Override\n public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {\n RadioButton rb = (RadioButton)group.findViewById(checkedId);\n Log.d(TAG, \"onCheckedChanged: \"+rb.getText().toString());\n identify = rb.getText().toString();\n variable_quantity.identify = rb.getText().toString();\n// if(rb.getText().toString()==\"学生\"){\n// variable_quantity.identify = \"学生\";\n// identify = \"学生\";\n// variable_quantity.ifStudent = true;\n// Log.d(TAG, \"login: \"+variable_quantity.ifStudent);\n// }\n// else{\n// variable_quantity.identify = \"商家\";\n// identify = \"商家\";\n// variable_quantity.ifStudent = false;\n// }\n }", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n switch (checkedId) {\n case R.id.color_box1:\n color_type = 1;\n color_radio_group2.clearCheck();\n break;\n case R.id.color_box2:\n color_type = 2;\n color_radio_group2.clearCheck();\n break;\n case R.id.color_box3:\n color_type = 3;\n color_radio_group2.clearCheck();\n break;\n default:\n //Toast.makeText(getApplicationContext(), \"radio btn select plz\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n int selectedId = group.getCheckedRadioButtonId();\n\n if (selectedId != -1) {\n // find the radiobutton by returned id\n rbGender = view.findViewById(selectedId);\n\n strGender = rbGender.getText().toString();\n }\n }", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\tif (group == male_female) {\n\t\t\tif (checkedId == R.id.radiobuttonmale) {\n\t\t\t\tismale = \"male\";\n\t\t\t} else {\n\t\t\t\tismale = \"female\";\n\t\t\t}\n\t\t}\n\n\t}", "@Override\r\n\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t if (checkedId == r1.getId()) {\r\n\t\tu_sex = r1.getText().toString();\r\n\t } else if (checkedId == r2.getId()) {\r\n\t\t// 把mRadio2的内容传到mTextView1\r\n\t\tu_sex = r2.getText().toString();\r\n\t }\r\n\t}", "@Override\n public void onCheckedChanged(RadioGroup group,\n int checkedId) {\n switch (checkedId) {\n case R.id.juzz: {\n\n int i = selected.size();\n for (int j = 0; j < i; j++) {\n selected.remove(0);\n }\n i = selected_ayah_from.size();\n for (int j = 0; j < i; j++) {\n selected_ayah_from.remove(0);\n }\n i = selected_ayah_to.size();\n for (int j = 0; j < i; j++) {\n selected_ayah_to.remove(0);\n }\n\n new SelectJuzzDialog(context, \"parah\");\n\n break;\n }\n case R.id.surah: {\n int i = selected.size();\n for (int j = 0; j < i; j++) {\n selected.remove(0);\n }\n i = selected_ayah_from.size();\n for (int j = 0; j < i; j++) {\n selected_ayah_from.remove(0);\n }\n i = selected_ayah_to.size();\n for (int j = 0; j < i; j++) {\n selected_ayah_to.remove(0);\n }\n new SelectJuzzDialog(context, \"surah\");\n break;\n }\n case R.id.ayah: {\n int i = selected.size();\n for (int j = 0; j < i; j++) {\n selected.remove(0);\n }\n i = selected_ayah_from.size();\n for (int j = 0; j < i; j++) {\n selected_ayah_from.remove(0);\n }\n i = selected_ayah_to.size();\n for (int j = 0; j < i; j++) {\n selected_ayah_to.remove(0);\n }\n new SelectJuzzDialog(context, \"ayah\");\n break;\n }\n default:\n\n break;\n }\n }", "public void onCheckedChanged(RadioGroup group, int checkedId) {\r\n\t\tswitch (checkedId) {\r\n\t\t\tcase R.id.rb1_land2:\r\n\t\t\t\trg_landVal2 = 10;\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.rb2_land2:\r\n\t\t\t\trg_landVal2 = 5;\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.rb3_land2:\r\n\t\t\t\trg_landVal2 = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.rb1_land3:\r\n\t\t\t\trg_landVal3 = 10;\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.rb2_land3:\r\n\t\t\t\trg_landVal3 = 5;\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.rb3_land3:\r\n\t\t\t\trg_landVal3 = 0;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "private void addListenerRadioGroup() {\n int selectedID = radioGroupJenisKel.getCheckedRadioButtonId();\n\n //Mencari radio Button\n radioButtonJenisKel = (RadioButton) findViewById(selectedID);\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n switch (checkedId) {\n case R.id.radio_add_user:\n changeMode(mAddUserFragment);\n break;\n case R.id.radio_add_group:\n\n changeMode(mAddGroupFragment);\n break;\n default:\n break;\n }\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n if (checkedId == R.id.radio_us) {\n Toast.makeText(getApplicationContext(), \"choice: US\",\n Toast.LENGTH_SHORT).show();\n } else if (checkedId == R.id.radio_canada) {\n Toast.makeText(getApplicationContext(), \"choice: CANADA\",\n Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\n\t\t\t\tif (checkedId == normal_sign.getId()) {\n\t\t\t\t\tsign_statu = \"30\";\n\t\t\t\t\tsign_pic_text.setVisibility(View.VISIBLE);\n\t\t\t\t\tspinner.setVisibility(View.GONE);\n\t\t\t\t} else if (checkedId == unnormal_sign.getId()) {\n\t\t\t\t\tsign_statu = \"20\";\n\t\t\t\t\tsign_pic_text.setVisibility(View.GONE);\n\t\t\t\t\tspinner.setVisibility(View.VISIBLE);\n\t\t\t\t} else if (checkedId == refused_sign.getId()) {\n\t\t\t\t\tsign_statu = \"00\";\n\t\t\t\t\tsign_pic_text.setVisibility(View.VISIBLE);\n\t\t\t\t\tspinner.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\tswitch(checkedId){\r\n\t\t\tcase R.id.add_device_actvity_checkbox_lamp:{\r\n\t\t\t\ttypeDevice = 0;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase R.id.add_device_actvity_checkbox_fan:{\r\n\t\t\t\ttypeDevice = 1;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase R.id.add_device_actvity_checkbox_garage:{\r\n\t\t\t\ttypeDevice = 2;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase R.id.add_device_actvity_checkbox_camera:{\r\n\t\t\t\ttypeDevice = 3;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase R.id.add_device_actvity_checkbox_tv:{\r\n\t\t\t\ttypeDevice = 4;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t}", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_administrative:\n if (checked)\n KeyID=0;\n break;\n case R.id.radio_guest:\n if (checked)\n KeyID=1;\n break;\n }\n }", "@Override\r\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId)\r\n\t\t\t{\n\t\t\t\tif (checkedId == addpass_male.getId())\r\n\t\t\t\t{\r\n\t\t\t\t\tsex = addpass_male.getText().toString();\r\n\t\t\t\t} else if (checkedId == addpass_female.getId())\r\n\t\t\t\t{\r\n\t\t\t\t\tsex = addpass_female.getText().toString();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\tif(checkedId==R.id.radioBtn_Cricket)\n\t\t{\n\t\t\tToast.makeText(getApplicationContext(), \"Your hobby is Cricket\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t}\n\t\telse if(checkedId==R.id.radioBtn_Reading)\n\t\t{\n\t\t\tToast.makeText(getApplicationContext(),\"Your hobby is Reading\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t}\n\t\telse if(checkedId==R.id.radioBtn_PlayingGames)\n\t\t{\n\t\t\tToast.makeText(getApplicationContext(),\"Your hobby is playing games\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t}\n\t}", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n switch (checkedId) {\n case R.id.rbBeer:\n Answer.setText(\"2\");\n break;\n case R.id.rbBeer5:\n Answer.setText(\"2\");\n break;\n case R.id.rbCider:\n Answer.setText(\"3\");\n break;\n case R.id.rbWine:\n Answer.setText(\"2\");\n break;\n case R.id.rbSpirits:\n Answer.setText(\"1\");\n break;\n case R.id.rbPops:\n Answer.setText(\"1\");\n break;\n }\n\n }", "@Override\n\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\tmPopup.dismiss();\n\t\t\tRadioButton radio = (RadioButton)group.findViewById(checkedId);\n\t\t\t\n\t\t\tArrayList<Subject> list = (ArrayList<Subject>)group.getTag();\n \t\tSubject s = list.get(0);\n\t\t\ts.classRoom = mClassRoom.getText().toString();\n\t \t\ts.color = mCurrentColor;\n\t \t\ts.email = mEmail.getText().toString();\n\t \t\ts.phone = mContact.getText().toString();\n\t \t\ts.subject = mSubject.getText().toString();\n\t \t\ts.teacher = mTeacher.getText().toString();\n\t \t\ts.edit = false;\n\t \t\ts.period = (Integer)radio.getTag();\n\t \t\t\n\t \t\tmTable.put(s, s);\n\t \t\tmTimeTable.renderSetup(CellClickListener, mTable, mSettings.weekday, mSettings.time);\n\t\t}", "private void RadioButton_Click(RadioGroup rGroup, int checkedId) {\n // Reset everything\n if (this.micClient != null) {\n this.micClient.endMicAndRecognition();\n try {\n this.micClient.finalize();\n } catch (Throwable throwable) {\n throwable.printStackTrace();\n }\n this.micClient = null;\n }\n\n if (this.dataClient != null) {\n try {\n this.dataClient.finalize();\n } catch (Throwable throwable) {\n throwable.printStackTrace();\n }\n this.dataClient = null;\n }\n\n //this.ShowMenu(false);\n this._startButton.setEnabled(true);\n }", "private void onClickRadioButton() {\n radioGroupChoice.setOnCheckedChangeListener(this);\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "private void checkSingleChoice(){\n \t\t\t\n \t\t\t// get selected radio button from radioGroup\n \t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n \t\t\t\n \t\t\tRadioButton selectedButton = (RadioButton)getView().findViewById(selectedId);\n \t\t\t\n \t\t\tif(selectedButton!=null){\n \t\t\t\t\n \t\t\t\tString choice = selectedButton.getTag().toString();\n \t\t\t\tString choiceText = selectedButton.getText().toString();\n \t\t\t\t\n \t\t\t\t// TESTING ONLY\n \t\t\t\tint qid = eventbean.getQid();\n \t\t\t\tLog.v(\"schoice\",\"QID=\"+qid+\"/Choice=\"+choice);\n \t\t\t\t\n \t\t\t\t//setting the response for that survey question\n \t\t\t\teventbean.setChoiceResponse(choice+\".\"+choiceText);\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t}", "@Override\n public void onCheckedChanged(RadioGroup group , int checkedId) {\n radio_b = (RadioButton) group.findViewById(checkedId);\n SharedPreferences.Editor editor = myPref.edit();\n\n switch (radio_b.getId()) {\n case R.id.radioButton:\n editor.putInt(getString(R.string.button_pressed),EASY);\n gameLevel = EASY;\n break;\n\n case R.id.radioButton2:\n editor.putInt(getString(R.string.button_pressed),MEDIUM);\n gameLevel = MEDIUM;\n break;\n\n case R.id.radioButton3:\n editor.putInt(getString(R.string.button_pressed),HARD);\n gameLevel = HARD;\n break;\n }\n editor.apply();\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n switch(checkedId)\n {\n case R.id.male:\n gender=\"male\";\n break;\n\n case R.id.female:\n gender=\"female\";\n break;\n }\n }", "@Override\n\tpublic void onCheckedChanged(RadioGroup arg0, int checkedId) {\n\n\t\tfloorList.get(mCheckedIndex).getBaseLayer().setVisible(false);\n\t\tmCheckedIndex = getCheckedIndex(checkedId);\n\n\t\tfloorList.get(mCheckedIndex).getBaseLayer().setVisible(true);\n\t\thsvFloor.smoothScrollTo(MyMath.dip2px(this, 40 * mCheckedIndex), 0);\n\t\tmHandler.post(mUpdateResults);\n\t}", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.decimal1:\n if (checked)\n selected1=\"decimal1\";\n toDecimal();\n Log.i(\"check\",\"checking decimal1\");\n break;\n case R.id.binary1:\n if (checked)\n selected1=\"binary1\";\n toDecimal();\n break;\n case R.id.useless1:\n if (checked)\n selected1=\"none\";\n toDecimal();\n break;\n }\n }", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tif(checkedId == cpu.getId()){\n\t\t\t\t\tLog.v(TAG,\"cpu\");\n\t\t\t\t\tvibrator.vibrate(pattern, -1);\n\t\t\t\t}else if(checkedId == memory.getId()) {\t\n\t\t\t\t\tvibrator.vibrate(pattern, -1);\n\t\t\t\t\tshowMemoryList();\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else if(checkedId == useRate.getId()) {\n\t\t\t\t\tLog.v(TAG, \"useRate\");\n\t\t\t\t\tvibrator.vibrate(pattern, -1);\n\t\t\t\t}else if(checkedId == other.getId()) {\n\t\t\t\t\tLog.v(TAG, \"other\");\n\t\t\t\t\tvibrator.vibrate(pattern, -1);\n\t\t\t\t}else{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\tswitch (checkedId) {\n\t\t\tcase R.id.btn_Interested:\n\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_LISTING, 0, false);\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_Fan:\n\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_LISTING, 0, false);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public void onLoadMenuRadioSelected();", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n switch (checkedId) {\n case R.id.cms:\n factor_1 = 1.0;\n hc=0;\n break;\n\n case R.id.feet:\n factor_1 = 0.3;\n hc=1;\n break;\n }\n\n }", "@Override\n\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\tswitch(checkedId)\n\t\t{\n\t\tcase R.id.broad_radio_public:{\n\t\t\tcontactContainer.setVisibility(View.GONE);\n\t\t\tvisibility=\"1\";\n\t\t\taddContacts.setText(\"JU CMS\");\n\t\t\tcustom_name=\"\";\n\t\t\tcustom_id=\" \";\n\n\t\t}\n\t\tbreak;\n\n\t\tcase R.id.broad_radio_custom:{\n\t\t\tcontactContainer.setVisibility(View.VISIBLE);\n\t\t\tvisibility=\"0\";\n\t\t\taddContacts.setText(\"\");\n\t\t\taddContacts.setHint(\"Add Contacts\");\n\t\t}\n\t\tbreak;\n\t\t}\n\t}", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n int row = group.getId() - GROUP_OFFSET;\n String text = ((RadioButton)findViewById(checkedId)).getText().toString();\n //figure out the amount this represents\n int amount = Reference.UNKNOWN;\n //re-map the values because currently 2 is traces and 1 is any amount\n switch (text) {\n case ANY:\n amount = Reference.ANY;\n break;\n case TRACES:\n amount = Reference.TRACE;\n break;\n case NONE:\n amount = Reference.NONE;\n break;\n }\n //figure out the row the radio butto\n\n //set this in the profile array\n data[row] = amount;\n }", "@Override\n\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\tswitch (checkedId) {\n\t\t\t\tcase R.id.multiply_radioButtonA:\n\t\t\t\t\tif (getRightFlag() == 1) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"恭喜你,答对了!\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tchangeToNext();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"不对,再想想~\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.multiply_radioButtonB:\n\t\t\t\t\tif (getRightFlag() == 2) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"恭喜你,答对了!\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tchangeToNext();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"不对,再想想~\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.multiply_radioButtonC:\n\t\t\t\t\tif (getRightFlag() == 3) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"恭喜你,答对了!\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tchangeToNext();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"不对,再想想~\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.multiply_radioButtonD:\n\t\t\t\t\tif (getRightFlag() == 4) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"恭喜你,答对了!\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tchangeToNext();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"不对,再想想~\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public void checkBtn(View v){\n int id = radioGroup.getCheckedRadioButtonId();\n\n radioButton= findViewById(id);\n estatSTR=radioButton.getText().toString();\n //Toast.makeText(this, \"select: \"+ radioButton.getText(),Toast.LENGTH_SHORT).show();\n txtEstat.setText(\"Estat com a \"+estatSTR);\n }", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tif(checkedId == inbox.getId()){\n\t\t\t\t\tmessageType = Sms.MESSAGE_TYPE_INBOX;\n\t\t\t\t}else if(checkedId == sent.getId()){\n\t\t\t\t\tmessageType = Sms.MESSAGE_TYPE_SENT;\n\t\t\t\t}else if(checkedId == drag.getId()){\n\t\t\t\t\tmessageType = Sms.MESSAGE_TYPE_DRAFT;\n\t\t\t\t}\n\t\t\t}", "public void onCheckedChanged( RadioGroup group, int checkedId ) {\n dbManager.deleteById( checkedId );\n Toast.makeText( DeleteActivity.this, \"Alarm deleted\",\n Toast.LENGTH_SHORT ).show( );\n\n // update screen\n updateView( );\n }", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n int row = group.getId() - GROUP_OFFSET;\n //figure out the amount this represents\n String text = ((RadioButton)findViewById(checkedId)).getText().toString();\n int amount = Reference.UNKNOWN;\n //re-map the values because currently 2 is traces and 1 is any amount\n switch (text) {\n case POSITIVE:\n amount = Reference.NONE;\n break;\n case NEGATIVE:\n amount = Reference.ANY;\n break;\n }\n //set this in the profile array\n data[row] = amount;\n }", "@Override\n public void onClick(View v) {\n int selectedId = radioGroup.getCheckedRadioButtonId();\n\n\n int selectedRadioButtonID = radioGroup.getCheckedRadioButtonId();\n checkedStateExperience = tvExpYrs.getText().toString();\n\n switch (selectedRadioButtonID) {\n case R.id.radioButton1:\n checkStatesButton = \"1\";\n\n\n\n String str = checkedStateExperience;\n String strNew = str.replace(\"+\", \"\");\n getFullData(mlat, mlng, prefManager.getApikey(), query, rad, strNew);\n\n break;\n case R.id.radioButton2:\n checkStatesButton = \"2\";\n String ast = checkedStateExperience;\n String nnew = ast.replace(\"+\", \"\");\n\n getData(mlat, mlng, prefManager.getApikey(), query, rad, nnew);\n\n break;\n\n }\n\n\n bts.dismiss();\n\n }", "public void checkRadioButtonCategory(RadioGroup radioGroup, int idChecked){\n anInterface.CheckRadioButtonCategory(radioGroup,idChecked);\n }", "public void onRadioButtonClicked4(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button7:\n if (checked)\n\n weeklyInformation.radiobutton7(radioButton7.getText().toString());\n\n break;\n case R.id.R_button8:\n if (checked)\n\n weeklyInformation.radiobutton8(radioButton8.getText().toString());\n\n break;\n }\n }", "@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n if (checkedId == R.id.radioButtonReceivedOtponRegisteredNumber) {\n new getPhoneNo().execute();\n btnSend1.setVisibility(View.VISIBLE);\n updatePhoneNumber.setVisibility(View.GONE);\n btnSend.setVisibility(View.GONE);\n userPhoneNo.setVisibility(View.VISIBLE);\n\n } else if (checkedId == R.id.radioButtonReceivedOtponUpdatedNumber) {\n btnSend.setVisibility(View.VISIBLE);\n updatePhoneNumber.setVisibility(View.VISIBLE);\n userPhoneNo.setVisibility(View.GONE);\n btnSend1.setVisibility(View.GONE);\n }\n }", "public void onRadioButtonClicked(View view) {\n\t boolean checked = ((RadioButton) view).isChecked();\n\t \n\t switch(view.getId()) {\n\t case R.id.continous:\n\t if (checked)\n\t \tusecase = 1; \n\t break;\n\t case R.id.segmented:\n\t if (checked)\n\t \tusecase = 0;\n\t break;\n\t }\n\t}", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.developer:\n if (checked)\n changeSpinnerOptions(\"Developer\");\n break;\n case R.id.tester:\n if (checked)\n changeSpinnerOptions(\"Tester\");\n break;\n }\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\tint id=buttonView.getId();\n\t\tRadioButton[] checbox=new RadioButton[3];\n \t\tchecbox[0]=less_thirty_check;\n \t\tchecbox[1]=thirty_fourty_check;\n \t\tchecbox[2]=great_fourty_check;\n \t\t\n \t\t\n \t\tRadioButton[] checkbox1=new RadioButton[3];\n \t\tcheckbox1[0]=health_check;\n \t\tcheckbox1[1]=diabetes_check;\n \t\tcheckbox1[2]=other_check;\n \t\t\n \t\t\n \t\tRadioButton[] checkbox2=new RadioButton[6];\n \t\tcheckbox2[0]=guy_check;\n \t\tcheckbox2[1]=dad_check;\n \t\tcheckbox2[2]=girl_check;\n \t\tcheckbox2[3]=mom_check;\n \t\tcheckbox2[4]=grandad_check;\n \t\tcheckbox2[5]=grand_ma;\n \t\t\n \t\t\n \t\tswitch (id) {\n \t\tcase R.id.less_thirty_check:\n \t\t\tif(isChecked){\n \t\t\t\n \t\t\t\tRadioButton check=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check, checbox);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase R.id.thirty_fourty_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check1=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check1, checbox);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.great_fourty_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check2=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check2, checbox);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.health_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check3=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check3, checkbox1);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.diabetes_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check4=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check4, checkbox1);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.other_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check5=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check5, checkbox1);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.guy_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check6=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check6, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.dad_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check7=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check7, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.girl_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check8=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check8, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.mom_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check9=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check9, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.grandad_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check10=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check10, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.grand_ma:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check11=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check11, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n\n \t\tdefault:\n// \t\t\tCheckBox check12=(CheckBox) findViewById(id);\n// \t\t\tcheckCondition(check12, this.check);\n \t\t\tbreak;\n \t\t}\n\t}", "public void onRadioButtonClicked1(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button1:\n if (checked)\n\n weeklyInformation.radiobutton1(radioButton1.getText().toString());\n\n break;\n case R.id.R_button2:\n if (checked)\n\n weeklyInformation.radiobutton2(radioButton2.getText().toString());\n\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n showProgress(true);\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.personal:\n if (checked)\n reporttpye=1;\n break;\n case R.id.firstcntr:\n if (checked)\n reporttpye=2;\n break;\n case R.id.finalcntr:\n if (checked)\n reporttpye=3;\n break;\n }\n mAuthTask = new FilterActivity.FilterInitTask(reporttpye);\n mAuthTask.execute((Matter[]) null);\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.radioButton2:\n if (checked)\n cause = \"struct_fire\";\n break;\n case R.id.radioButton3:\n if (checked)\n\n cause = \"hazmat\";\n break;\n case R.id.radioButton4:\n if (checked)\n // Ninjas rule\n cause = \"grass_fire\";\n break;\n case R.id.radioButton5:\n if (checked)\n // Ninjas rule\n cause = \"trash_fire\";\n break;\n case R.id.radioButton6:\n if (checked)\n // Ninjas rule\n cause = \"false_alarm\";\n break;\n case R.id.radioButton7:\n if (checked)\n // Ninjas rule\n cause = \"other_fire\";\n break;\n\n\n\n\n\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.coh_RadioButton:\n if (checked)\n paymentmode = \"coh\";\n flage =1;\n break;\n case R.id.netBank_RadioButton:\n if (checked)\n paymentmode = \"netbanking\";\n flage =1;\n break;\n case R.id.card_RadioButton:\n if (checked)\n paymentmode = \"card\";\n flage =1;\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_male:\n if (checked)\n break;\n case R.id.radio_female:\n if (checked)\n break;\n }\n }", "public void onRadioButtonClick(View view) {\n\n boolean checked = ((RadioButton) view).isChecked();\n\n // hacemos un case con lo que ocurre cada vez que pulsemos un botón\n\n switch(view.getId()) {\n case R.id.rb_Physical:\n if (checked)\n jobMode = \"Physical\";\n rbVirtual.setChecked(false);\n break;\n case R.id.rb_Virtual:\n if (checked)\n jobMode = \"Virtual\";\n rbPhysical.setChecked(false);\n break;\n }\n }", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tif(checkedId == senventy.getId()){\n\t\t\t\t\twordsNumber = NUMBER_SENVENTY;\n\t\t\t\t}else if(checkedId == oneHundredsixty.getId()){\n\t\t\t\t\twordsNumber = NUMBER_ONEHUNDREDSIXTY;\n\t\t\t\t}else if(checkedId == eightHundreds.getId()){\n\t\t\t\t\twordsNumber = NUMBER_EIGHTHUNDREDS;\n\t\t\t\t}\n\t\t\t}", "public void onRadioButtonClicked2(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button3:\n if (checked)\n\n weeklyInformation.radiobutton3(radioButton3.getText().toString());\n\n break;\n case R.id.R_button4:\n if (checked)\n\n weeklyInformation.radiobutton4(radioButton4.getText().toString());\n\n break;\n }\n }", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tif(checkedId == R.id.radio0){\n\t\t\t\t\ttipAfterTax=false;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttipAfterTax=true;\n\t\t\t\t}\n\t\t\t\tupdateStandard();\n\t\t\t\tupdateCustom();\n\t\t\t}", "@Override\r\n\t\t\tpublic void onCheckedChanged(RadioGroup radioGroup, int checkedId) {\n\t\t\t\tif (checkedId == selectSeat.getId()) {\r\n\t\t\t\t\tcinemaInfo_seat.clear();\r\n\t\t\t\t\tfor (int i = 0; i < cinemaInfo.size(); i++) {\r\n\t\t\t\t\t\tif (cinemaInfo.get(i).isSeat() == true) {\r\n\t\t\t\t\t\t\tcinemaInfo_seat.add(cinemaInfo.get(i));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcinemaAdapter = new BuyTicketSelectCinemaListAdapter(\r\n\t\t\t\t\t\t\tcinemaInfo_seat, BuyTicketSelectCinema.this);\r\n\t\t\t\t\tlistview.setAdapter(cinemaAdapter);\r\n\t\t\t\t} else if (checkedId == groupPurchase.getId()) {\r\n\t\t\t\t\tcinemaInfo_group.clear();\r\n\t\t\t\t\tfor (int i = 0; i < cinemaInfo.size(); i++) {\r\n\t\t\t\t\t\tif (cinemaInfo.get(i).isGroupPurchase() == true) {\r\n\t\t\t\t\t\t\tcinemaInfo_group.add(cinemaInfo.get(i));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcinemaAdapter = new BuyTicketSelectCinemaListAdapter(\r\n\t\t\t\t\t\t\tcinemaInfo_group, BuyTicketSelectCinema.this);\r\n\t\t\t\t\tlistview.setAdapter(cinemaAdapter);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcinemaAdapter = new BuyTicketSelectCinemaListAdapter(\r\n\t\t\t\t\t\t\tcinemaInfo, BuyTicketSelectCinema.this);\r\n\t\t\t\t\tlistview.setAdapter(cinemaAdapter);\r\n\t\t\t\t}\r\n\t\t\t}", "@Override \n\t public void onCheckedChanged(RadioGroup group, int checkedId) {\n\t if(checkedId==man.getId()) \n\t { \n\t \tcontent.setSex(\"男\");\n\t }else \n\t { \n\t \tcontent.setSex(\"女\");\n\t } \n\t }", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tif(checkedId == R.id.man)\n\t\t\t\t{\n\t\t\t\t\tsex = \"男\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsex = \"女\";\n\t\t\t\t}\n\t\t\t}", "public int getCheckedIndex() {\n // run through the array of radio buttons, returning when we find\n // a checked one\n for (int i = 0; i < radioButtons.length; i++) {\n if (radioButtons[i].isChecked()) {\n return i;\n }\n }\n\n // return -1 if none were checked\n return -1;\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.exercise:\n if (checked)\n // all of exercise\n break;\n case R.id.repose:\n if (checked)\n // all of repose\n break;\n case R.id.work:\n if (checked)\n // all of work\n break;\n }\n }", "@Override\n\t\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\t\tString answer = cursor.getString(cursor\n\t\t\t\t\t\t\t.getColumnIndex(\"answer\"));\n\t\t\t\t\tbtnA.setClickable(false);\n\t\t\t\t\tbtnB.setClickable(false);\n\t\t\t\t\tbtnC.setClickable(false);\n\t\t\t\t\tbtnD.setClickable(false);\n\t\t\t\t\timg_ROW.setVisibility(View.INVISIBLE);\n\t\t\t\t\tswitch (checkedId) {\n\t\t\t\t\tcase R.id.btnA:\n\t\t\t\t\t\tif (answer.equals(\"A\")) {\n\t\t\t\t\t\t\t// Toast.makeText(ZhangjielianxiActivity.this,\n\t\t\t\t\t\t\t// \"回答正确\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tzhangjiejiexi.setText(cursor.getString(cursor\n\t\t\t\t\t\t\t\t\t.getColumnIndex(\"jiexi\")));\n\t\t\t\t\t\t\timg_ROW.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\timg_ROW.setImageResource(R.drawable.dui);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * ContentValues cv=new ContentValues();\n\t\t\t\t\t\t\t * cv.put(\"isWrong\", 1);\n\t\t\t\t\t\t\t * writeDatabase.update(\"zhangjielianxi\", cv,\n\t\t\t\t\t\t\t * \"question='\"+questionString+\"'\", null);\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tint flag = 1;\n\t\t\t\t\t\t\tif (cursor2 != null && cursor2.getCount() != 0) {\n\t\t\t\t\t\t\t\tfor (cursor2.moveToFirst(); !cursor2\n\t\t\t\t\t\t\t\t\t\t.isAfterLast(); cursor2.moveToNext()) {\n\t\t\t\t\t\t\t\t\tif (cursor2.getString(\n\t\t\t\t\t\t\t\t\t\t\tcursor2.getColumnIndex(\"question\"))\n\t\t\t\t\t\t\t\t\t\t\t.equals(questionString))\n\t\t\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (1 == flag)\n\t\t\t\t\t\t\t\tInsertWrongtable();\n\t\t\t\t\t\t\tbtnA.setTextColor(Color.RED);\n\t\t\t\t\t\t\timg_ROW.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\timg_ROW.setImageResource(R.drawable.cuo);\n\t\t\t\t\t\t\tzhangjiejiexi.setText(cursor.getString(cursor\n\t\t\t\t\t\t\t\t\t.getColumnIndex(\"jiexi\")));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase R.id.btnB:\n\t\t\t\t\t\tif (answer.equals(\"B\")) {\n\t\t\t\t\t\t\t// Toast.makeText(ZhangjielianxiActivity.this,\n\t\t\t\t\t\t\t// \"回答正确\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tzhangjiejiexi.setText(cursor.getString(cursor\n\t\t\t\t\t\t\t\t\t.getColumnIndex(\"jiexi\")));\n\t\t\t\t\t\t\timg_ROW.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\timg_ROW.setImageResource(R.drawable.dui);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tint flag = 1;\n\t\t\t\t\t\t\tif (cursor2 != null && cursor2.getCount() != 0) {\n\t\t\t\t\t\t\t\tfor (cursor2.moveToFirst(); !cursor2\n\t\t\t\t\t\t\t\t\t\t.isAfterLast(); cursor2.moveToNext()) {\n\t\t\t\t\t\t\t\t\tif (cursor2.getString(\n\t\t\t\t\t\t\t\t\t\t\tcursor2.getColumnIndex(\"question\"))\n\t\t\t\t\t\t\t\t\t\t\t.equals(questionString))\n\t\t\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (1 == flag)\n\t\t\t\t\t\t\t\tInsertWrongtable();\n\t\t\t\t\t\t\tbtnB.setTextColor(Color.RED);\n\t\t\t\t\t\t\timg_ROW.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\timg_ROW.setImageResource(R.drawable.cuo);\n\t\t\t\t\t\t\tzhangjiejiexi.setText(cursor.getString(cursor\n\t\t\t\t\t\t\t\t\t.getColumnIndex(\"jiexi\")));\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase R.id.btnC:\n\t\t\t\t\t\tif (answer.equals(\"C\")) {\n\t\t\t\t\t\t\t// Toast.makeText(ZhangjielianxiActivity.this,\n\t\t\t\t\t\t\t// \"回答正确\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tzhangjiejiexi.setText(cursor.getString(cursor\n\t\t\t\t\t\t\t\t\t.getColumnIndex(\"jiexi\")));\n\t\t\t\t\t\t\timg_ROW.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\timg_ROW.setImageResource(R.drawable.dui);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tint flag = 1;\n\t\t\t\t\t\t\tif (cursor2 != null && cursor2.getCount() != 0) {\n\t\t\t\t\t\t\t\tfor (cursor2.moveToFirst(); !cursor2\n\t\t\t\t\t\t\t\t\t\t.isAfterLast(); cursor2.moveToNext()) {\n\t\t\t\t\t\t\t\t\tif (cursor2.getString(\n\t\t\t\t\t\t\t\t\t\t\tcursor2.getColumnIndex(\"question\"))\n\t\t\t\t\t\t\t\t\t\t\t.equals(questionString))\n\t\t\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (1 == flag)\n\t\t\t\t\t\t\t\tInsertWrongtable();\n\t\t\t\t\t\t\tbtnC.setTextColor(Color.RED);\n\t\t\t\t\t\t\timg_ROW.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\timg_ROW.setImageResource(R.drawable.cuo);\n\t\t\t\t\t\t\tzhangjiejiexi.setText(cursor.getString(cursor\n\t\t\t\t\t\t\t\t\t.getColumnIndex(\"jiexi\")));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase R.id.btnD:\n\t\t\t\t\t\tif (answer.equals(\"D\")) {\n\t\t\t\t\t\t\t// Toast.makeText(ZhangjielianxiActivity.this,\n\t\t\t\t\t\t\t// \"回答正确\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tzhangjiejiexi.setText(cursor.getString(cursor\n\t\t\t\t\t\t\t\t\t.getColumnIndex(\"jiexi\")));\n\t\t\t\t\t\t\timg_ROW.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\timg_ROW.setImageResource(R.drawable.dui);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tint flag = 1;\n\t\t\t\t\t\t\tif (cursor2 != null && cursor2.getCount() != 0) {\n\t\t\t\t\t\t\t\tfor (cursor2.moveToFirst(); !cursor2\n\t\t\t\t\t\t\t\t\t\t.isAfterLast(); cursor2.moveToNext()) {\n\t\t\t\t\t\t\t\t\tif (cursor2.getString(\n\t\t\t\t\t\t\t\t\t\t\tcursor2.getColumnIndex(\"question\"))\n\t\t\t\t\t\t\t\t\t\t\t.equals(questionString))\n\t\t\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (1 == flag)\n\t\t\t\t\t\t\t\tInsertWrongtable();\n\t\t\t\t\t\t\tbtnD.setTextColor(Color.RED);\n\t\t\t\t\t\t\timg_ROW.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\timg_ROW.setImageResource(R.drawable.cuo);\n\t\t\t\t\t\t\tzhangjiejiexi.setText(cursor.getString(cursor\n\t\t\t\t\t\t\t\t\t.getColumnIndex(\"jiexi\")));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "public void onClick(View v) {\n\t\t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n\t \n\t\t\t\t// find the radiobutton by returned id\n\t\t\t radioButton = (RadioButton) findViewById(selectedId);\n\t\t\t if(selectedId ==R.id.radio3){\n\t\t\t \t\n\t\t\t \tint myNum = Integer.parseInt(MainActivity.points);\n\t\t\t \tmyNum += 5;\n\t\t\t \tMainActivity.points = String.valueOf(myNum);\n\t\t\t \tIntent intent=new Intent(Test.this,Star.class);\n\t\t\t \tstartActivity(intent);\n\t\t\t \t\n\t\t\t \t\tToast.makeText(Test.this,\n\t\t\t \t\t\"Correct Answer\", Toast.LENGTH_SHORT).show();\n\t\t\t \t\t}\n\t\t\t else{\n\t\t\t \tToast.makeText(Test.this,\n\t\t\t\t \t\t\"Try Again\", Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t\t }", "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\t\n\t\t\t\tLog.d(TAG, \"onCheckedChanged----checkedId = \" + checkedId);\n\t\t\t\t\n\t\t\t\tif (checkedId == R.id.default_sort) {\n\t\t\t\t\tdismiss();\n\t\t\t\t\tmLauncher.mAppsCustomizeContent.AppsCustomizeSort(ConstantUtil.SORT_BY_INSTALLED_TIME);\n\t\t\t\t\teditor = mSharedPrefs.edit();\n\t\t\t\t\teditor.putInt(ConstantUtil.APP_SORT_MODE, ConstantUtil.SORT_BY_INSTALLED_TIME);\n\t\t\t\t\teditor.commit();\n\t\t\t\t\tToast.makeText(mLauncher, \"Sort by default\", Toast.LENGTH_LONG).show();\n\t\t\t\t} else if (checkedId == R.id.sort_by_alphabet) {\n\t\t\t\t\tdismiss();\n\t\t\t\t\tmLauncher.mAppsCustomizeContent.AppsCustomizeSort(ConstantUtil.SORT_BY_ALPHABET);\n\t\t\t\t\teditor = mSharedPrefs.edit();\n\t\t\t\t\teditor.putInt(ConstantUtil.APP_SORT_MODE, ConstantUtil.SORT_BY_ALPHABET);\n\t\t\t\t\teditor.commit();\n\t\t\t\t\tToast.makeText(mLauncher, \"Sort by Alphabet\", Toast.LENGTH_LONG).show();\n\t\t\t\t} else if (checkedId == R.id.sort_by_frequency) {\n\t\t\t\t\tdismiss();\n\t\t\t\t\tmLauncher.mAppsCustomizeContent.AppsCustomizeSort(ConstantUtil.SORT_BY_FREQUENCY);\n\t\t\t\t\teditor = mSharedPrefs.edit();\n\t\t\t\t\teditor.putInt(ConstantUtil.APP_SORT_MODE, ConstantUtil.SORT_BY_FREQUENCY);\n\t\t\t\t\teditor.commit();\n\t\t\t\t\tToast.makeText(mLauncher, \"Sort by Frequency\", Toast.LENGTH_LONG).show();\n\t\t\t\t} \n\t\t\t}", "@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\t\tint streamPosition = Integer.parseInt(group.findViewById(checkedId).getTag(R.id.tag_position).toString());\r\n\t\t\t\t\tplayChannel(mCurrentPosition, streamPosition);\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tradioOptionGrp = (RadioGroup) findViewById(R.id.radioOpt);\n\t\t\t\t\n\t\t\t\t//Get id of selected radioButton\n\t\t\t\tint selectOptId = radioOptionGrp.getCheckedRadioButtonId();\n\t\t\t\t\n\t\t\t\t//Get Reference to the Selected RadioButton\n\t\t\t\tradioOptBtn = (RadioButton) findViewById(selectOptId);\n\t\t\t\t\n\t\t\t\t//Display value of the selected RadioButton\n\t\t\t\tToast.makeText(getApplicationContext(), radioOptBtn.getText(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\n\t\t\t}", "public void onRadioButtonClicked(View v) {\n boolean checked = ((RadioButton) v).isChecked();\n\n // Check which radio button was clicked\n switch(v.getId()) {\n case R.id.radioSexoF:\n if (checked)\n sexo = Animal.SEXO_FEMEA;\n break;\n case R.id.radioSexoM:\n if (checked)\n sexo = Animal.SEXO_MACHO;\n break;\n }\n }", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n if (cliamte.getId() == checkedId) {\n Memory_News_Select = ClimateChange_Address;\n Log.d(\"weather\", \"cliamte \");\n requestNews();\n } else if (checkedId == stock.getId()) {\n Memory_News_Select = StockMarketings_Address;\n requestNews();\n } else if (checkedId == fitting.getId()) {\n Memory_News_Select = FittingBody_Address;\n requestNews();\n } else if (checkedId == pollution.getId()) {\n Memory_News_Select = Environment_Address;\n requestNews();\n } else if (checkedId == politics.getId()) {\n Memory_News_Select = Politics_Address;\n requestNews();\n } else if (checkedId == food.getId()) {\n Memory_News_Select = Food_Address;\n requestNews();\n } else if (checkedId == love.getId()) {\n Memory_News_Select = Family_Address;\n requestNews();\n } else if (checkedId == career.getId()) {\n Memory_News_Select = Career_Address;\n requestNews();\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_sat:\n if (checked) {\n LinearLayout time_options;\n time_options = (LinearLayout) findViewById(R.id.choose_time);\n time_options.setVisibility(View.VISIBLE);\n }\n\n break;\n case R.id.radio_fri:\n if (checked)\n // Ninjas rule\n break;\n case R.id.radio_eleven:\n if (checked) {\n Button offerHelp;\n offerHelp = (Button) findViewById(R.id.offer_help);\n offerHelp.setEnabled(true);\n offerHelp.setBackgroundResource(R.drawable.primary_button);\n }\n break;\n case R.id.radio_five:\n if (checked)\n // Ninjas rule\n break;\n }\n }", "private void setCheckBoxChecked() {\n grupoRespuestasUnoMagnitudes.check(radioChecked[0]);\n grupoRespuestasDosMagnitudes.check(radioChecked[1]);\n grupoRespuestasTresMagnitudes.check(radioChecked[2]);\n grupoRespuestasCuatroMagnitudes.check(radioChecked[3]);\n grupoRespuestasCincoMagnitudes.check(radioChecked[4]);\n grupoRespuestasSeisMagnitudes.check(radioChecked[5]);\n grupoRespuestasSieteMagnitudes.check(radioChecked[6]);\n grupoRespuestasOchoMagnitudes.check(radioChecked[7]);\n grupoRespuestasNueveMagnitudes.check(radioChecked[8]);\n grupoRespuestasDiezMagnitudes.check(radioChecked[9]);\n }", "public void onRadioButtonClicked2(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.decimal2:\n if (checked)\n selected2=\"decimal2\";\n toDecimal();\n Log.i(\"check\",\"checking decimal2\");\n break;\n case R.id.binary2:\n if (checked)\n selected2=\"binary2\";\n toDecimal();\n break;\n case R.id.useless2:\n if (checked)\n selected2=\"none\";\n toDecimal();\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n mySharedEditor = myPreferences.edit();\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.easy:\n if (checked) {\n mySharedEditor.putString(\"difficulty\", \"easy\");\n mySharedEditor.apply();\n }\n break;\n case R.id.medium:\n if (checked) {\n mySharedEditor.putString(\"difficulty\", \"medium\");\n mySharedEditor.apply();\n }\n break;\n case R.id.hard:\n if(checked) {\n mySharedEditor.putString(\"difficulty\", \"hard\");\n mySharedEditor.apply();\n }\n break;\n }\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n mp3.start();\n if (checkedId == R.id.groupCallRadioButton) {\n mCallType = CallType.GROUP;\n spinnerUsers.setVisibility((View.GONE));\n spinnerGroups.setVisibility((View.VISIBLE));\n spinnerUsers.setEnabled(false);\n spinnerGroups.setEnabled(true);\n } else {\n mCallType = CallType.PRIVATE;\n spinnerGroups.setVisibility((View.GONE));\n spinnerUsers.setVisibility((View.VISIBLE));\n spinnerGroups.setEnabled(false);\n spinnerUsers.setEnabled(true);\n }\n }", "@Override\n public void onClick(View arg0) {\n\n // get selected radio button from radioGroup\n int selectedId = RadioType.getCheckedRadioButtonId();\n\n // find the radiobutton by returned id\n RadioButton radioButton = (RadioButton) findViewById(selectedId);\n rdButtonSelectedText = radioButton.getText().toString();\n //Call method to get Adjustment List\n if (common.isConnected()) {\n AsyncStockReturnListWSCall task = new AsyncStockReturnListWSCall();\n task.execute();\n }\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\tif(isChecked){\n \t\t\tswitch (buttonView.getId()) {\n \t\t\tcase R.id.normalmapradio:\n \t\t\t\tcheckedmap=normalmap;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\tcase R.id.satelliteradio:\n \t\t\t\tcheckedmap=satellitemap;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\tcase R.id.bdnormalmap:\n \t\t\t\tcheckedmap=bdnormalmap;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\tcase R.id.bdsatellitemap:\n \t\t\t\tcheckedmap=bdsatellite;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\t}\n\t\t}\n\t}", "public void onRadioButtonClicked(View v) {\n RadioButton rb353 = (RadioButton) findViewById(R.id.ramo503_01);\n RadioButton rb354 = (RadioButton) findViewById(R.id.ramo503_02);\n\n //is the current radio button now checked?\n boolean checked = ((RadioButton) v).isChecked();\n\n //now check which radio button is selected\n //android switch statement\n switch (v.getId()) {\n\n case R.id.ramo503_01:\n if (checked)\n //if windows phone programming book is selected\n //set the checked radio button's text style bold italic\n rb353.setTypeface(null, Typeface.BOLD_ITALIC);\n //set the other two radio buttons text style to default\n rb354.setTypeface(null, Typeface.NORMAL);\n //Starting new intent\n Intent intent353 = new Intent(Mtramo503Activity.this,\n MainActivity.class);\n startActivity(intent353);\n\n\n Toast toast353 =\n Toast.makeText(Mtramo503Activity.this, \"Código Falla: RA106 - Criticidad: 1\", Toast.LENGTH_LONG);\n toast353.show();\n break;\n\n case R.id.ramo503_02:\n if (checked)\n //if windows phone programming book is selected\n //set the checked radio button's text style bold italic\n rb354.setTypeface(null, Typeface.BOLD_ITALIC);\n //set the other two radio buttons text style to default\n rb353.setTypeface(null, Typeface.NORMAL);\n //Starting new intent\n Intent intent354 = new Intent(Mtramo503Activity.this,\n MainActivity.class);\n startActivity(intent354);\n\n\n Toast toast354 =\n Toast.makeText(Mtramo503Activity.this, \"Código Falla: RA107 - Criticidad: 2\", Toast.LENGTH_LONG);\n toast354.show();\n break;\n\n }\n\n }" ]
[ "0.7291366", "0.7188274", "0.71839136", "0.7133232", "0.7067684", "0.706249", "0.7021893", "0.6972436", "0.6956884", "0.6940704", "0.69366753", "0.6931982", "0.6928446", "0.68930775", "0.68588567", "0.68576646", "0.68441904", "0.6827048", "0.6821967", "0.67923695", "0.67693627", "0.6733563", "0.67253476", "0.6717552", "0.67158204", "0.669719", "0.6641134", "0.66170436", "0.6608132", "0.6604156", "0.6601937", "0.65766174", "0.657055", "0.65649635", "0.6561654", "0.6560763", "0.6559417", "0.65469056", "0.65356904", "0.65333533", "0.65163505", "0.64969265", "0.64899355", "0.6487478", "0.64554936", "0.64485854", "0.6444203", "0.64319545", "0.641573", "0.64069194", "0.64061433", "0.64059716", "0.6396086", "0.63889825", "0.6381885", "0.6346844", "0.6280206", "0.6263006", "0.62458265", "0.6220783", "0.6193323", "0.61910814", "0.61818296", "0.6180311", "0.61588866", "0.6155811", "0.613855", "0.61349624", "0.6134462", "0.61243504", "0.6071957", "0.6069231", "0.606915", "0.6066364", "0.6049928", "0.6048597", "0.6020147", "0.6010577", "0.6008091", "0.6003884", "0.6002225", "0.5974601", "0.5971867", "0.5965527", "0.59654063", "0.59631085", "0.59584403", "0.59530646", "0.5924252", "0.59219426", "0.5912148", "0.5904735", "0.5902171", "0.5901497", "0.589954", "0.58791953", "0.5875541", "0.5874885", "0.5874693", "0.586003" ]
0.66876256
26
Constructor. Takes a MIDI number and turns it into a Note.
public Note(int midiNumber) { this.noteName = NoteName.C.noteAt(midiNumber); this.octave = midiNumber / OCTAVE_LENGTH; this.midiNumber = midiNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Note(int noteNumber, int instrument) {\n this.octave = (noteNumber / 12) - 1;\n this.pitch = Pitch.pitchFromNumber(noteNumber - (this.octave * 12));\n this.instrument = instrument;\n }", "public Note(char n, int dur) {\n\t\tnote = n;\n\t\tduration = dur;\n\t}", "public Note(Pitch pitch, int octave, int instrument) {\n if (octave < 0 || octave > 10) {\n throw new IllegalArgumentException(\"octave must be between 0 and 10 (inclusive)\");\n }\n\n this.pitch = pitch;\n this.octave = octave;\n this.instrument = instrument;\n }", "public Note noteAt(int interval) {\n\t\tint newMidiNote = getMidiNumber() + interval;\n\t\t\n\t\treturn new Note(newMidiNote);\n\t}", "public Note() {\n\t\tsuper();\n\t}", "public MidiTrack(int instrumentId) {\n\t\tnotes = new ArrayList<MidiNote>();\n\t\tthis.instrumentId = instrumentId;\n\t\tthis.initPitchDictionary();\n\t}", "public Note() {\n //uig = new UniqueIdGenerator();\n noteId = UUIDGenerator.getUUID();\n created_on = new Date();\n }", "public int getMidiNumber() {\n\t\treturn midiNumber;\n\t}", "public static Note makeNote(int pitch, int octave) {\n if (octave < 0) {\n throw new IllegalArgumentException(\"Invalid octave parameter!\");\n }\n return new Note(Pitch.makePitch(pitch),octave,0);\n }", "@Override\n public CompositionBuilder<MusicOperation> addNote(int start, int end, int instrument,\n int pitch, int volume) {\n this.listNotes.add(new SimpleNote(Pitch.values()[(pitch) % 12],\n Octave.values()[(pitch / 12) - 2 ], start, end - start, instrument, volume));\n return this;\n }", "public Note() {\n }", "void setNote(int note) {\n\t\tthis.note = note;\n\t}", "public static Note createNote(int octave, Pitch pitch, int startBeat, int endBeat, int\n instrument, int volume) {\n return new NoteImpl(octave, pitch, startBeat, endBeat, instrument, volume);\n }", "public Note(int _pitch, int _duration, int _dynamic) {\n pitch = _pitch;\n duration = _duration;\n dynamic = _dynamic;\n tiedIn = false;\n tiedOut = false;\n displayDynamic = false;\n }", "public Piano(int numNotes){\n pStrings = new InstString[numNotes][3];\n for(int a = 0; a < numNotes; a++){\n double freq = 440 * Math.pow(2, (double)(a-24)/(double)12);\n pStrings[a][0] = new GuitarString(freq);\n pStrings[a][1] = new GuitarString(freq + .45);\n pStrings[a][2] = new GuitarString(freq - .45);\n }\n }", "void addNote(int duration, int octave, int beatNum, int instrument, int volume, String pitch)\n throws IllegalArgumentException;", "void addNote(int duration, int octave, int beatNum, String pitch)\n throws IllegalArgumentException;", "public int toMidi(Note n) {\n\n int normIndex = n.getNoteIndex() + numOffset + (7 * octaveOffset);\n int numOctaves = normIndex/7;\n\n int midiAddend = MIDI_OFFSETS[normIndex - (7*numOctaves)];\n\n return 38 + midiAddend + 12*numOctaves; // 37 is low D\n }", "public Note(int duration, int offset, int pitch, int channel, int velocity) {\n this.duration = duration;\n this.offset = offset;\n this.pitch = pitch;\n this.channel = channel;\n this.velocity = velocity;\n }", "public static Note createNote(int value, int startBeat, int endBeat, int instrument, int\n volume) {\n return createNote((value / 12) - 1, Pitch.getPitch(value % 12), startBeat, endBeat, instrument,\n volume);\n }", "public BaseNote (java.lang.String id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}", "public Notes() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public static Note createNote(int octave, Pitch pitch, int startBeat, int endBeat) {\n return new NoteImpl(octave, pitch, startBeat, endBeat);\n }", "public MusicModel(int tempo) {\n this.notes = new HashMap<>();\n this.tempo = tempo;\n }", "public void sendMessage(final int note) {\n final ShortMessage myMsg = new ShortMessage();\n final long timeStamp = -1;\n\n // hard-coded a moderate velocity of 93 because there is no way of tracking speed of finger movement\n try {\n myMsg.setMessage(ShortMessage.NOTE_ON, 0, note, 93);\n } catch (final InvalidMidiDataException e) {\n System.err.println(\"Could not send midi message! \");\n System.err.println(e.getMessage());\n }\n this.midiReceiver.send(myMsg, timeStamp);\n\n// turn the note off after one second of playing\n final ExecutorService service = Executors.newFixedThreadPool(1);\n service.submit(() -> {\n try {\n Thread.sleep(1000);\n //stop old note from playing\n myMsg.setMessage(ShortMessage.NOTE_OFF, 0, note, 0);\n this.midiReceiver.send(myMsg, timeStamp);\n } catch (final InterruptedException | InvalidMidiDataException e) {\n e.printStackTrace();\n }\n });\n }", "public int getMidiNum() {\n\t\treturn midiNum % 12;\n\t}", "public ToMidi() throws FileNotFoundException {\n this.modes = createModes(\"data\\\\modes.txt\");\n this.rootNotes = createRootNotes(\"data\\\\notes.txt\");\n this.chordChanges = createChordChanges(\"data\\\\chordchanges.txt\");\n this.chordRules = new HashMap<String, int[]>();\n chordRules.put(\"maj\", new int[]{0, 4, 7});\n chordRules.put(\"min\", new int[]{0, 3, 7}); \n chordRules.put(\"dim\", new int[]{0, 3, 6});\n }", "public Note(){\n\t\t; //initDisplay(0);\n\t}", "private Notes() {}", "CompositionBuilder<T> addNote(int start, int end, int instrument, int pitch, int volume);", "public void loadNoteString(String notestring) {\n\t\t// convert the letters in the notestring to upper case\n\t\tnotestring = notestring.toUpperCase();\n\t\t// initialize duration, pitch, and octave\n\t\tint duration = 0;\n\t\tint pitch = 0;\n\t\tint octave = 0;\n\n\t\tString number = \"\";\n\t\tMidiNote midiNote;\n\t\tint prev_pitch = 60; // default : Octave is 0.\n\n\t\tfor (int i = 0; i < notestring.length(); i++) {\n\t\t\tchar note = notestring.charAt(i);\n\n\t\t\tswitch (note) {\n\t\t\t// MidiNote Character\n\t\t\t// Format : A or B or C or ... or G\n\t\t\tcase 'A':\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'D':\n\t\t\tcase 'E':\n\t\t\tcase 'F':\n\t\t\tcase 'G':\n\t\t\t\tmidiNote = new MidiNote(noteToPitch.get(note) + pitch + octave,\n\t\t\t\t\t\tduration);\n\t\t\t\t// since it's play notes, setSilent to be false\n\t\t\t\tmidiNote.setSilent(false);\n\t\t\t\t\n\t\t\t\tif (i < notestring.length() - 1) {\n\t\t\t\t\t// This increases pitch by 1 for sharp modifier\n\t\t\t\t\tif (notestring.charAt(i + 1) == '#')\n\t\t\t\t\t\tmidiNote.setPitch(midiNote.getPitch() + 1);\n\t\t\t\t\t// This decreases pitch by 1 for flat modifier\n\t\t\t\t\telse if (notestring.charAt(i + 1) == '!')\n\t\t\t\t\t\tmidiNote.setPitch(midiNote.getPitch() - 1);\n\t\t\t\t}\n\t\t\t\tnotes.add(midiNote);\n\t\t\t\tprev_pitch = noteToPitch.get(note) + pitch + octave;\n\t\t\t\tnumber = \"\";\n\t\t\t\tduration = 1; // default value = 1\n\t\t\t\tbreak;\n\n\t\t\t// when it encounters the character 'P', it should be silence\n\t\t\t// instead of reading note. This is for pause\n\t\t\tcase 'P':\n\t\t\t\tmidiNote = new MidiNote(prev_pitch, duration);\n\t\t\t\tmidiNote.setSilent(true);\n\t\t\t\tnotes.add(midiNote);\n\t\t\t\tnumber = \"\";\n\t\t\t\tduration = 1; // default value 1\n\t\t\t\tbreak;\n\n\t\t\t// Octave decreases every time it encounters '<'\n\t\t\t// Format : <\n\t\t\tcase '<':\n\t\t\t\toctave -= 12;\n\t\t\t\tbreak;\n\n\t\t\t// Octave increases every time it encounters '>'\n\t\t\t// Format : >\n\t\t\tcase '>':\n\t\t\t\toctave += 12;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t// if encountered a number (between 0 and 9) in the notestring\n\t\t\t\t// don't have to worry about ascii values here\n\t\t\t\tif (note >= '0' && note <= '9') {\n\t\t\t\t\tnumber += note;\n\t\t\t\t\tduration = Integer.parseInt(number);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public NoteM(Note note) {\n\t\tthis.id = note.getId();\n\t\tthis.idEvaluation = note.getIdEvaluation().getId();\n\t\tthis.idStudent = note.getIdStudent().getId();\n\t\tthis.score = note.getScore();\n\t\tthis.state = note.getState();\n\t\tthis.dateCreation = note.getDateCreation();\n\t\tthis.dateMerge = note.getDateMerge();\n\t\tthis.dateRemoved = note.getDateRemoved();\n\t}", "protected void sendMidiNote(int m, int n, int v)\n {\n byte[] msg = new byte[3];\n msg[0] = (byte)m;\n msg[1] = (byte)n;\n msg[2] = (byte)v;\n midiDriver.write(msg);\n }", "void openNote(Note note, int position);", "public Note(int note, char accidental, Pane notePane) {\n _note = note;\n _accidental = accidental;\n _accidentalImage = new ImageView();\n this.setUpLedger();\n this.setUpNote();\n }", "private Pitch(String note)\n {\n this.note = note;\n }", "public void setNote(String note);", "public static Note createNote(int value, int startBeat, int endBeat) {\n return createNote((value / 12) - 1, Pitch.getPitch(value % 12), startBeat, endBeat);\n }", "@Override\r\n\tpublic void setNote(long d, int hz) {\n\t\t\r\n\t}", "MidiView getMidi();", "public Note(long dateTime, String title, String content) {\n this.mDateTime = dateTime;\n this.mTitle = title;\n this.mContent = content;\n //creating a constructor which initializes the instances of the variables created above\n }", "public void setNote(int note)\r\n {\r\n if (note >= 1 && note <= 5)\r\n this.note = note;\r\n else\r\n System.out.println(\"ungültige Note\");\r\n }", "@Override\n\tpublic void playSequenceFromString(String noteString, int instrument) {\n\t\ttry {\n\t\t\tstopCurrentSound();\n\t\t\tcurrentSoundType = SOUNDTYPE_MIDI;\n\t\t\tgetMidiSound().playSequenceFromJFugueString(noteString, instrument);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Note(String description) throws NoteException {\n if(description.equals(\"note\")) {\n throw new NoteException();\n }\n this.description = description;\n }", "public void addNote(Note n){\n notes.add(n);\n }", "public interface IMidiView extends IView{\n /**\n * Plays the note.\n * @param pitch The pitch to play at\n * @param volume The volume of the note\n * @param length the length of the note\n * @param tempo The tempo of the note\n * @param instrument the instrument of the note\n * @throws InvalidMidiDataException when the note is invalid\n */\n void playNote(int pitch, int volume, int length, int tempo, int instrument)\n throws InvalidMidiDataException;\n\n /**\n * Plays the whole song.\n */\n void play();\n\n /**\n * ADDED IN HW 7!\n * Gets the song from the view.\n * @return ISong this song being returned\n */\n ISong getSong();\n\n /**\n * ADDED IN HW 7!\n * Sets the beat of the MIDI.\n * @param beat the beat to set to\n */\n void setBeat(int beat);\n\n /**\n * ADDED IN HW 7!\n * Gets the current beat of the MIDI player.\n * @return the current beat\n */\n int getBeat();\n}", "public void setNote(String note) {\r\n\r\n this.note = note;\r\n }", "public MidiView() throws MidiUnavailableException {\n this(MidiSystem.getSynthesizer());\n }", "public void setNote(String note) {\r\n this.note = note;\r\n }", "public void setNote(String note) {\r\n this.note = note; \r\n }", "public void setNote(String note) {\n\t\tthis._note = note;\n\t}", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "@Override\n public void addNote(int startTime, int duration, Pitch pitch, Octave octave) {\n List<Note> notes = new ArrayList<>();\n Note newNote = new SimpleNote(pitch, octave, startTime, duration);\n notes.add(newNote);\n\n if (this.notes.get(startTime) == null) {\n this.notes.put(startTime, notes);\n } else {\n List<Note> oldList = this.notes.remove(startTime);\n oldList.addAll(notes);\n this.notes.put(startTime, oldList);\n }\n\n }", "private ModelImpl(int tempo, List<Note> notes) {\n if (tempo < 50000 || tempo > 250000) {\n throw new IllegalArgumentException(\"Invalid tempo.\");\n }\n if (notes.isEmpty()) {\n throw new IllegalArgumentException(\"This shouldn't happen.\");\n }\n this.tempo = tempo;\n this.currentMeasure = DEFAULT_START;\n this.status = Status.Playing;\n this.low = new Note(1, 8, 0, Note.Pitches.C, true, 0, 1);\n this.high = new Note(1, 0, 0, Note.Pitches.A, true, 0, 1);\n this.sheet = new ArrayList<Set<Note>>();\n this.addAll(notes);\n }", "public static void learnFromSong(String midiFile) throws InvalidMidiDataException, IOException {\n Sequence sequence = MidiSystem.getSequence(new File(midiFile));\n MidiMessage message;\n int key;\n\n int id = 0;\n int[] noteArray=new int[2];\n\n for(Track track : sequence.getTracks()) //for each track\n {\n for(int i=0;i< track.size();i++) //for each signal\n {\n message = track.get(i).getMessage();\n\n if(message instanceof ShortMessage) //if ShortMessage\n {\n ShortMessage sm=(ShortMessage)message;\n\n if(sm.getCommand() == ShortMessage.NOTE_ON) //if note\n {\n key=sm.getData1(); //key in MIDI numder (from 0 to 127)\n\n if(id==2)\n {\n updateWeights(noteArray[0],noteArray[1],key);\n noteArray[0]=noteArray[1];\n noteArray[1]=key;\n }\n else\n noteArray[id++]=key;\n }\n }\n }\n }\n\n Weights.normalize();\n\n }", "public TranscribedNote()\r\n {\r\n\r\n }", "public static int getNote(MidiMessage mes){\r\n\t\tif (!(mes instanceof ShortMessage))\r\n\t\t\treturn 0;\r\n\t\tShortMessage mes2 = (ShortMessage) mes;\r\n\t\tif (mes2.getCommand() != ShortMessage.NOTE_ON)\r\n\t\t\treturn 0;\t\r\n\t\tif (mes2.getData2() ==0) return -mes2.getData1();\r\n\t\treturn mes2.getData1();\r\n\t}", "public void setNote(String note) {\n\t\tthis.note = note;\n\t}", "public static void main(String[] args) {\n ___ NUM_NOTES = ___;\n\n // input root note\n int root = Integer.parseInt(args[0]);\n\n // choose a random MIDI note within an octave above the root\n int rand = _____________;\n System.out.println(rand);\n\n // Plays the note\n StdAudio.play(note(midiToFreq(rand), 1, 1));\n }", "public BaseNote (\n\t\tjava.lang.String id,\n\t\tjava.lang.String content,\n\t\tjava.lang.String time) {\n\n\t\tthis.setId(id);\n\t\tthis.setContent(content);\n\t\tthis.setTime(time);\n\t\tinitialize();\n\t}", "public MidiView(MidiDevice midiDevice) {\n this.started = false;\n try {\n midiDevice.open();\n this.receiver = midiDevice.getReceiver();\n this.receiver = midiDevice.getReceiver();\n } catch (MidiUnavailableException e) {\n e.printStackTrace();\n }\n }", "public static String map_note_to_midi(String root) {\n // todo static generate map\n HashMap<String, Integer> note_to_midi_offset_map = new HashMap<String, Integer>();\n note_to_midi_offset_map.put(\"a\", -3);\n note_to_midi_offset_map.put(\"a#\", -2);\n note_to_midi_offset_map.put(\"b\", -1);\n note_to_midi_offset_map.put(\"c\", 0);\n note_to_midi_offset_map.put(\"c#\", 1);\n note_to_midi_offset_map.put(\"d\", 2);\n note_to_midi_offset_map.put(\"d#\", 3);\n note_to_midi_offset_map.put(\"e\", 4);\n note_to_midi_offset_map.put(\"f\", 5);\n note_to_midi_offset_map.put(\"f#\", 6);\n note_to_midi_offset_map.put(\"g\", 7);\n note_to_midi_offset_map.put(\"g#\", 8);\n if (root.length() == 2) {\n String note = root.substring(0, 1);\n int index = Integer.parseInt(root.substring(1));\n if (note_to_midi_offset_map.containsKey(note)) {\n int x = ((index) * 12) + note_to_midi_offset_map.get(note);\n return \"\" + x;\n }\n } else if (root.length() == 3) {\n String note = root.substring(0, 2);\n int index = Integer.parseInt(root.substring(2));\n if (note_to_midi_offset_map.containsKey(note)) {\n int x = ((index) * 12) + note_to_midi_offset_map.get(note);\n return \"\" + x;\n }\n }\n return root;\n }", "@Override\n\tpublic void playSequenceNote(final int note, final double duration,\n\t\t\tfinal int instrument, final int velocity) {\n\t\ttry {\n\t\t\tstopCurrentSound();\n\t\t\tcurrentSoundType = SOUNDTYPE_MIDI;\n\t\t\tgetMidiSound().playSequenceNote(note, duration, instrument);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void note(float start, float duration, float freq){\n\t out.playNote(start,duration,freq); \n\t }", "public BankNote(double value,String currency,long serialNumber) {\n\t\tsuper(value,currency);\n\t\tthis.serialNumber = serialNumber;\n\t}", "public void setNote(Note newNote) {\n\t \n\t //stores newNote in the note field\n\t this.note = newNote;\n }", "NoteCircle(Tone[] id, Prefix[] prefixes) {\n assert id.length == prefixes.length;\n this.notes = new LinkedHashMap<>();\n for (int i = 0; i < id.length; i++) {\n this.notes.put(id[i], prefixes[i]);\n }\n }", "QuoteNote createQuoteNote();", "public void setNote( final Double note )\r\n {\r\n this.note = note;\r\n }", "public static MidiEvent createNoteEvent(int command, int key, int velocity, long tick) throws Exception {\n ShortMessage message = createShortMessage(command, key, velocity);\n MidiEvent event = new MidiEvent(message, tick);\n return event;\n }", "@Override\n public NoteInfo createFromParcel(Parcel parcel) {\n\n return new NoteInfo(parcel);\n }", "public void playNote(int pitch) {\n\t\tsynthChannel.noteOn(pitch, MusicManager.SYNTH_NOTE_VELOCITY);\n\t}", "public void setDocumentNote (String DocumentNote);", "public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n }", "INote removeNote(int beatNum, String pitch, int octave) throws IllegalArgumentException;", "public String getNote(){\r\n\t\treturn note;\r\n\t}", "public String getNote()\n\t{\n\t\treturn note;\n\t}", "public NoteTip(Note note, Long Oid)\r\n {\r\n super();\r\n user = FormatterUtils.getUserLabel(note.getUser());\r\n userImageURL = MyPicturePreferenceUtils.getUsersImageURI(note.getUser());\r\n if (note.getTimestamp() != null)\r\n {\r\n timeStamp = DateUtils.formatDateTime(note.getTimestamp());\r\n timeStampAsDate = note.getTimestamp();\r\n }\r\n String noteTitle = StringEscapeUtils.unescapeHtml(note.getText());\r\n toolTipContent = noteTitle;\r\n title = noteTitle == null || noteTitle.length() < 30 ? noteTitle : noteTitle.substring(0, 29) + \"...\";\r\n title = title.replaceAll(\"\\\\n\", \"\");\r\n scopeType = getScopeType(note, Oid);\r\n }", "private Note(Parcel in) {\n content = in.readString();\n color = (Color) in.readSerializable();\n }", "public void setNoteType(int value) {\n this.noteType = value;\n }", "public void notePressed(int note) {\n seq.stop();\n seq.addNote(note, 200, 110);\n\n sequence = sequence.withNote(note, cursor);\n controller.setMidiSequence(sequence);\n\n if (cursor < 4) {\n cursor++;\n controller.setSelected(cursor);\n }\n }", "public String getNote() {\n\t\treturn _note;\n\t}", "public Note(String title, String description, int priority) {\n this.title = title;\n this.description = description;\n this.priority = priority;\n }", "@Override\n public void addNote(Note note) {\n\n List<Note> notes = new ArrayList<>();\n notes.add(note);\n\n if (this.notes.get(note.getBeat()) == null) {\n this.notes.put(note.getBeat(), notes);\n } else {\n List<Note> oldList = this.notes.remove(note.getBeat());\n oldList.addAll(notes);\n this.notes.put(note.getBeat(), oldList);\n }\n }", "public NoteController() {\n\t\tsuper();\n\t\tdateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tfinal String[] i18nJs = {\"note.err.name\", \"note.delete.confirm\", \"note.caldate.format\"};\n\t\tsuper.setI18nJsValues(i18nJs, \"^note\\\\.\");\n\t}", "public SoundPlayer(File f, boolean isMidi) throws IOException, \r\n UnsupportedAudioFileException, LineUnavailableException, \r\n MidiUnavailableException, InvalidMidiDataException { \r\n if (isMidi) { // The file is a MIDI file \r\n midi = true; \r\n // First, get a Sequencer to play sequences of MIDI events \r\n // That is, to send events to a Synthesizer at the right time. \r\n sequencer = MidiSystem.getSequencer(); // Used to play sequences \r\n sequencer.open(); // Turn it on. \r\n \r\n // Get a Synthesizer for the Sequencer to send notes to \r\n Synthesizer synth = MidiSystem.getSynthesizer(); \r\n synth.open(); // acquire whatever resources it needs \r\n \r\n // The Sequencer obtained above may be connected to a Synthesizer \r\n // by default, or it may not. Therefore, we explicitly connect it. \r\n Transmitter transmitter = sequencer.getTransmitter(); \r\n Receiver receiver = synth.getReceiver(); \r\n transmitter.setReceiver(receiver); \r\n \r\n // Read the sequence from the file and tell the sequencer about it \r\n sequence = MidiSystem.getSequence(f); \r\n sequencer.setSequence(sequence); \r\n audioLength = (int) sequence.getTickLength(); // Get sequence length \r\n } else { // The file is sampled audio \r\n midi = false; \r\n // Getting a Clip object for a file of sampled audio data is kind \r\n // of cumbersome. The following lines do what we need. \r\n AudioInputStream ain = AudioSystem.getAudioInputStream(f); \r\n try { \r\n DataLine.Info info = new DataLine.Info(Clip.class, ain \r\n .getFormat()); \r\n clip = (Clip) AudioSystem.getLine(info); \r\n clip.open(ain); \r\n } finally { // We're done with the input stream. \r\n ain.close(); \r\n } \r\n // Get the clip length in microseconds and convert to milliseconds \r\n audioLength = (int) (clip.getMicrosecondLength() / 1000); \r\n } \r\n \r\n // Now create the basic GUI \r\n play = new JButton(\"Play\"); // Play/stop button \r\n progress = new JSlider(0, audioLength, 0); // Shows position in sound \r\n time = new JLabel(\"0\"); // Shows position as a # \r\n \r\n // When clicked, start or stop playing the sound \r\n play.addActionListener(new ActionListener() { \r\n public void actionPerformed(ActionEvent e) { \r\n if (playing) \r\n stop(); \r\n else \r\n play(); \r\n } \r\n }); \r\n \r\n // Whenever the slider value changes, first update the time label. \r\n // Next, if we're not already at the new position, skip to it. \r\n progress.addChangeListener(new ChangeListener() { \r\n public void stateChanged(ChangeEvent e) { \r\n int value = progress.getValue(); \r\n // Update the time label \r\n if (midi) \r\n time.setText(value + \"\"); \r\n else \r\n time.setText(value / 1000 + \".\" + (value % 1000) / 100); \r\n // If we're not already there, skip there. \r\n if (value != audioPosition) \r\n skip(value); \r\n } \r\n }); \r\n \r\n // This timer calls the tick( ) method 10 times a second to keep \r\n // our slider in sync with the music. \r\n timer = new javax.swing.Timer(100, new ActionListener() { \r\n public void actionPerformed(ActionEvent e) { \r\n tick(); \r\n } \r\n }); \r\n \r\n // put those controls in a row \r\n Box row = Box.createHorizontalBox(); \r\n row.add(play); \r\n row.add(progress); \r\n row.add(time); \r\n \r\n // And add them to this component. \r\n setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); \r\n this.add(row); \r\n \r\n // Now add additional controls based on the type of the sound \r\n if (midi) \r\n addMidiControls(); \r\n else \r\n addSampledControls(); \r\n }", "public String getNote() {\n\t\treturn note;\n\t}", "public MidiLoader ( ) throws MidiUnavailableException {\n this.midisMap = new HashMap<String, MidiSoundHolder> ( );\n\n this.sequencer = MidiSystem.getSequencer ( );\n if ( this.sequencer == null )\n throw new MidiUnavailableException ( \"No MIDI sequencer found\" );\n\n this.sequencer.open ( );\n\n /**\n * Link system synthesizer and sequencer if they are not already linked\n */\n if ( !( this.sequencer instanceof Synthesizer ) ) {\n System.out.println ( \"Linking the MIDI sequencer and synthesizer\" );\n Synthesizer synthesizer = MidiSystem.getSynthesizer ( );\n Receiver synthReceiver = synthesizer.getReceiver ( );\n Transmitter seqTransmitter = this.sequencer.getTransmitter ( );\n seqTransmitter.setReceiver ( synthReceiver );\n }\n }", "public String getNote()\n {\n return note;\n }", "public Note(String title, String text, Date date){\n this.title=title;\n this.text=text;\n this.date=date;\n }", "public void addNote()\n {\n String stringNote;\n char actualNote;\n int beat;\n \n System.out.print(\"Enter the note > \"); //gets the note from user\n stringNote = in.nextLine();\n actualNote = stringNote.charAt(0);\n \n System.out.print(\"Enter the length of the note in beats > \"); //gets the beats from user\n beat = in.nextInt();\n \n Note note = new Note(actualNote, beat); //creates Note to be added\n \n score.add(note); //adds the note to the score\n \n in.nextLine();\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }" ]
[ "0.7455251", "0.6864299", "0.6693591", "0.6676438", "0.6557097", "0.6513002", "0.64980066", "0.63978153", "0.62811214", "0.627921", "0.61820906", "0.6167269", "0.6107465", "0.6093295", "0.60885334", "0.60598636", "0.60588557", "0.60397565", "0.60349166", "0.6011109", "0.59983814", "0.5997432", "0.59614384", "0.5956791", "0.5921296", "0.5906943", "0.58137655", "0.58028126", "0.5790516", "0.5764027", "0.5760402", "0.57516426", "0.5747457", "0.57155263", "0.5705702", "0.5702509", "0.56743395", "0.56623185", "0.5618492", "0.5612995", "0.56097037", "0.55681545", "0.55438286", "0.55299556", "0.55298346", "0.5527883", "0.5521059", "0.55163884", "0.5511708", "0.55065876", "0.54928887", "0.5475149", "0.5475149", "0.5475149", "0.5475149", "0.5475149", "0.5467133", "0.5458778", "0.5439716", "0.5437837", "0.54330117", "0.54241925", "0.5410597", "0.53596926", "0.5320249", "0.53194296", "0.53150326", "0.53088945", "0.527607", "0.52516663", "0.5251165", "0.5237132", "0.52317125", "0.52211785", "0.5218157", "0.5217105", "0.52164245", "0.5215788", "0.5205864", "0.51775956", "0.5168371", "0.51626706", "0.5160589", "0.51598525", "0.5156363", "0.5155019", "0.5151823", "0.5139651", "0.51383144", "0.51246846", "0.51148045", "0.5112596", "0.5104242", "0.51009536", "0.50919735", "0.5085033", "0.5085033", "0.5085033", "0.5085033", "0.5085033" ]
0.8087206
0
Checks if the two Notes equal each other.
public boolean equals(Note otherNote) { return getMidiNumber() == otherNote.getMidiNumber(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean sameNoteAs(Note otherNote) {\n\t\treturn getNoteName() == otherNote.getNoteName();\n\t}", "@Override\n public boolean equals(Object obj) {\n if(!(obj instanceof Note)) return false;\n Note comparing = (Note) obj;\n if(!this.title.equals(comparing.getTitle())) return false;\n if(!this.body.equals(comparing.getBody())) return false;\n return this.author.equals(comparing.getAuthor());\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof PurchaseOrderNotes)) {\n return false;\n }\n PurchaseOrderNotes other = (PurchaseOrderNotes) object;\n if ((this.notesId == null && other.notesId != null) || (this.notesId != null && !this.notesId.equals(other.notesId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }", "public boolean equivalentInteractions(InteractionObject first, InteractionObject second) {\n\t\tboolean result = \n\t\t\tfirst.getType() == second.getType() &&\n\t\t\tfirst.getIndex() == second.getIndex();\n\t\treturn result;\n\t}", "boolean overlap(AbstractNote other) {\n return this.type == other.type &&\n this.octave == other.octave;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Note)) {\n return false;\n }\n Note other = (Note) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "protected boolean areContentsTheSame(T old, T news) {\n if (old == null)\n return news == null;\n return old.sameContents(news);\n }", "@Override\n public boolean areContentsTheSame(@NonNull Note oldItem, @NonNull Note newItem) {\n return oldItem.getTitle().equals(newItem.getTitle()) &&\n oldItem.getDescription().equals(newItem.getDescription()) &&\n oldItem.getPriority() == newItem.getPriority();\n }", "@Test\n public void createNewNote() throws Exception{\n final CourseInfo course = sDataManager.getCourse(\"android_async\");\n final String noteTitle = \"Test note title\";\n final String noteText = \"This is the body test of my text note\";\n\n int noteIndex = sDataManager.createNewNote();\n NoteInfo newNote = sDataManager.getmNotes().get(noteIndex);\n newNote.setmCourses(course);\n newNote.setmTitle(noteTitle);\n newNote.setmText(noteText);\n\n NoteInfo compareNote = sDataManager.getmNotes().get(noteIndex);//contains the things that we put on the note at that point\n assertEquals(compareNote.getmCourses(), course);\n assertEquals(compareNote.getmTitle(), noteTitle);\n assertEquals(compareNote.getmText(), noteText);\n// assertSame(newNote, compareNote);//checks if two references point to the same object\n }", "public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }", "@Test\n public void testEqualsReturnsTrueOnIdenticalRecords() {\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(true));\n }", "public boolean equals(Document other){\n boolean something = true;\r\n\r\n if(other == null){ //make sure that the object we are comparing to isn't null\r\n something = false;\r\n }\r\n if(this.getClass() != other.getClass()){ //makes sure the object are of the same class\r\n something = false;\r\n }\r\n if(!this.name.equalsIgnoreCase(other.name) || other.name == null){ //compares if the documents have the same name ignoring uppercase\r\n something = false;\r\n }\r\n if(!this.owner.equalsIgnoreCase(other.owner) || other.owner == null){ //comapre if both documents have the same owner ignoring uppercase\r\n something = false;\r\n }\r\n if(!this.id.equals(other.id) || other.id == null){ //compare if both documents have the same id\r\n something = false;\r\n }\r\n return something; //if something return true, then both documents are the same otherwise they are different\r\n }", "@Nonnull \r\n\tpublic static <T> Observable<Boolean> sequenceEqual(\r\n\t\t\t@Nonnull final Observable<? extends T> first,\r\n\t\t\t@Nonnull final Observable<? extends T> second) {\r\n\t\treturn sequenceEqual(first, second, Functions.equals());\r\n\t}", "@Override\n public boolean areItemsTheSame(@NonNull Note oldItem, @NonNull Note newItem) {\n // Two Note item are same if there ID are same - uniquely identify each entry\n return oldItem.getId() == newItem.getId();\n }", "public boolean isEqual(FusableBooks record1, FusableBooks record2) {\n\t\treturn sim.calculate(record1.getBookName(), record2.getBookName()) == 1.0;\n\t}", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof AbRemarkCommand)) {\n return false;\n }\n\n // state check\n AbRemarkCommand e = (AbRemarkCommand) other;\n return index.equals(e.index)\n && remark.equals(e.remark);\n }", "@Test\n public void findSimilarNotes() throws Exception{\n final CourseInfo course = sDataManager.getCourse(\"android_async\");\n final String noteTitle = \"Test note title\";\n final String noteText1 = \"This is the body test of my text note\";\n final String noteText2 = \"This is the body test of my second text note\";\n\n int noteIndex1 = sDataManager.createNewNote();\n NoteInfo newNote1 = sDataManager.getmNotes().get(noteIndex1);\n newNote1.setmCourses(course);\n newNote1.setmTitle(noteTitle);\n newNote1.setmText(noteText1);\n\n int noteIndex2 = sDataManager.createNewNote();\n NoteInfo newNote2 = sDataManager.getmNotes().get(noteIndex2);\n newNote2.setmCourses(course);\n newNote2.setmTitle(noteTitle);\n newNote2.setmText(noteText2);\n\n int foundIndex1 = sDataManager.findNote(newNote1);\n assertEquals(noteIndex1, foundIndex1);\n\n int foundIndex2 = sDataManager.findNote(newNote2);\n assertEquals(noteIndex2, foundIndex2);\n }", "public static <T> Observable<Boolean> sequenceEqual(\r\n\t\t\tfinal Iterable<? extends T> first,\r\n\t\t\tfinal Observable<? extends T> second) {\r\n\t\treturn sequenceEqual(first, second, Functions.equals());\r\n\t}", "public static boolean compareNotices(Notice upDatedNotice) throws Exception {\n Session session = HibernateUtil.getCurrentSession();\n String textToUpdate = upDatedNotice.getText();\n Notice notice = get(upDatedNotice.getAncestorID());\n int textHash = 0;\n if(notice.getText() != null) {\n textHash = notice.getText().hashCode();\n }\n int updateTextHash = textToUpdate.hashCode();\n if (textHash == updateTextHash) {\n return false;\n }\n session.save(upDatedNotice);\n return true;\n }", "private boolean sameTopic(HelpTopic topic1, HelpTopic topic2) {\n return topic1 == topic2 || (topic1 != null && topic2 != null && topic1.equals(topic2));\n }", "public boolean equivalent(Explanation<OWLAxiom> e1, Explanation<OWLAxiom> e2) throws OWLOntologyCreationException {\n if (e1.equals(e2)) {\n return true;\n }\n\n // check if they have the same size, same entailment types, same numbers of axiom types\n IsoUtil pre = new IsoUtil();\n if (!pre.passesPretest(e1, e2)) {\n \t//System.out.println(\"NOT THE SAME!\");\n return false;\n }\n \n //check the current datatypes used in the justifications. If they don't match, reject this.\n HashSet<OWLDatatype> dataTypes1 = new HashSet<OWLDatatype>();\n HashSet<OWLDatatype> dataTypes2 = new HashSet<OWLDatatype>();\n \n for(OWLAxiom ax:e1.getAxioms())\n {\n \t for(OWLDatatype dt:ax.getDatatypesInSignature())\n {\n \tif(dt.isBuiltIn())\n \t{\n \t\tdataTypes1.add(dt);\n \t}\n }\n }\n for(OWLAxiom ax:e2.getAxioms())\n {\n \t for(OWLDatatype dt:ax.getDatatypesInSignature())\n {\n \tif(dt.isBuiltIn())\n \t{\n \t\tdataTypes2.add(dt);\n \t}\n }\n } \n \n if(!dataTypes1.equals(dataTypes2))\n {\n \treturn false;\n }\n \n //check to see if both justifications are both real or fake w.r.t. reasoner\n /**\n OWLOntologyManager ontoman = OWLManager.createOWLOntologyManager();\n Boolean E1ENT = null;\n OWLReasoner j1 = rf.createReasoner(ontoman.createOntology(e1.getAxioms()));\n\t\tE1ENT = j1.isEntailed(e1.getEntailment());\n\t\tj1.flush();\n\t\tOWLReasoner j2;\n\t Boolean E2ENT = null;\n\t j2 = rf.createReasoner(ontoman.createOntology(e2.getAxioms()));\n\t\tE2ENT = j2.isEntailed(e2.getEntailment());\n\t\tj2.flush();\n\t\tSystem.out.println(e1.getEntailment().toString() + \": \" + E1ENT + \" \" + e2.getEntailment().toString() + \": \" + E2ENT);\n\t\tSystem.out.println(!((E1ENT && E2ENT) || (!E1ENT && !E2ENT)));\n\t\tif(!((E1ENT && E2ENT) || (!E1ENT && !E2ENT))) {\n\t\tSystem.out.println(\"Entailment check failed\");\n\t return false;\t\n\t\t}\n\t\t**/\n\t\t// otherwise do the full check\t\n AxiomTreeBuilder atb = new AxiomTreeBuilder();\n\n AxiomTreeNode et1 = atb.generateAxiomTree(e1.getEntailment());\n AxiomTreeNode et2 = atb.generateAxiomTree(e2.getEntailment());\n AxiomTreeNode jt1 = atb.generateExplanationTree(e1);\n AxiomTreeNode jt2 = atb.generateExplanationTree(e2);\n \n //for(AxiomTreeMapping atm:getMappingCandidates(et1,et2))\n //{\n \t//atm.printMapping();\n //}\n \n List<AxiomTreeMapping> candidates = getMappingCandidates(jt1, jt2);\n //System.out.println(candidates.size());\n /**\n for(AxiomTreeMapping c : candidates) {\n \t System.out.println(c.getVarsForTarget());\n \t System.out.println(c.getVarsForSource());\n \t System.out.println(isCorrectMapping(e1, et1, jt1, c.getVarsForSource(), e2, et2, jt2, c.getVarsForTarget()));\n }\n **/\n \n \n for (AxiomTreeMapping c : candidates) {\n //System.out.println(\"\\n--------------- MAPPING ---------------\\n\");\n if (isCorrectMapping(e1, et1, jt1, c.getVarsForSource(), e2, et2, jt2, c.getVarsForTarget())) {\n //c.printMapping();\n //System.out.println(\"TRUE MAPPING:\");\n //System.out.println(c.getVarsForTarget());\n //System.out.println(c.getVarsForSource());\n \t return true;\n }\n }\n \n //for(AxiomTreeMapping atm:candidates)\n //{\n \t//atm.printMapping();\n //}\n return false;\n }", "private boolean equalKeys(Object other) {\r\n if (this == other) {\r\n return true;\r\n }\r\n if (!(other instanceof Contacto)) {\r\n return false;\r\n }\r\n Contacto that = (Contacto) other;\r\n if (this.getIdContacto() != that.getIdContacto()) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean differ(Object a, Object b) {\n Node set1 = find(getNode(a));\n Node set2 = find(getNode(b));\n\n return set1 != set2;\n }", "@Test\n public void testEqualsReturnsFalseOnDifferentIdVal() throws Exception {\n setRecordFieldValue(otherRecord, \"id\", 42L);\n\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n }", "boolean hasSameAs();", "public boolean checker(Object primObj, Object equalObj, Object diffObj) {\n logger.log(Level.FINE, \"Primary object:: \" + primObj);\n logger.log(Level.FINE,\n \"Object that is equal to the primary one:: \" + equalObj);\n logger.log(Level.FINE,\n \"Object that is different from the primary one:: \" + diffObj);\n\n if (!primObj.equals(equalObj)) {\n logger.log(Level.FINE, primObj + \" isn't equal to \" + equalObj);\n return false;\n }\n\n if (primObj.equals(diffObj)) {\n logger.log(Level.FINE, primObj + \" is equal to \" + diffObj);\n return false;\n }\n\n /*\n * Check that toString() method invoked twice on the same object\n * produces equal String objects\n */\n logger.log(Level.FINE,\n \"Check that toString() method invoked twice on the same object\"\n + \" produces equal String objects ...\");\n String str1 = primObj.toString();\n String str2 = primObj.toString();\n\n if (!(str1.equals(str2))) {\n logger.log(Level.FINE,\n \"toString() method invoked twice on the same object\"\n + \" produces non-equal String objects:\\n\" + str1 + \"\\n\"\n + str2);\n return false;\n }\n logger.log(Level.FINE, \"\\tpassed\");\n\n /*\n * Check that 2 equal objects have equal string representations\n */\n logger.log(Level.FINE,\n \"Check that 2 equal objects have equal string\"\n + \" representations ...\");\n String primObj_str = primObj.toString();\n String equalObj_str = equalObj.toString();\n\n if (!(primObj_str.equals(equalObj_str))) {\n logger.log(Level.FINE,\n \"2 equal objects have non-equal string representations:\\n\"\n + primObj_str + \"\\n\" + equalObj_str);\n return false;\n }\n logger.log(Level.FINE, \"\\tpassed\");\n return true;\n }", "default boolean isSameStateAs(ReadOnlyTask other) {\n return other == this // short circuit if same object\n || (other != null // this is first to avoid NPE below\n && other.getContent().equals(this.getContent())); // state checks here onwards\n //&& other.getDate().equals(this.getDate())\n //&& other.getTime().equals(this.getTime()));\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Acquirente)) {\n return false;\n }\n Acquirente that = (Acquirente) other;\n if (this.getIdacquirente() != that.getIdacquirente()) {\n return false;\n }\n return true;\n }", "@Override\n public boolean hardDiff(FObject o1, FObject o2, FObject diff) {\n if ( this.get(o1) == null ) {\n if ( this.get(o2) == null ) {\n return false;\n } else {\n //shadow copy, since we only use to print out diff entry in journal\n this.set(diff, this.get(o2));\n return true;\n }\n }\n //Both this.get(o1) and thid.get(o2) are not null\n //The propertyInfo is instance of AbstractObjectProperty, so that there is no way to do nested propertyInfo check\n //No matter if there are point to same instance or not, treat them as difference\n //if there are point to different instance, indeed there are different\n //if there are point to same instance, we can not guarantee if there are no difference comparing with record in the journal.\n //shodow copy\n this.set(diff, this.get(o2));\n return true;\n }", "@Test\n\tpublic void testEqualsFalso() {\n\t\t\n\t\tassertFalse(contato1.equals(contato2));\n\t}", "private boolean isSame(Calendar first, Calendar second)\n {\n return (first.get(Calendar.DAY_OF_MONTH) == second.get(Calendar.DAY_OF_MONTH))\n && (first.get(Calendar.MONTH) == second.get(Calendar.MONTH))\n && (first.get(Calendar.YEAR) == second.get(Calendar.YEAR));\n }", "private void assertSymmetric(UMLMessageArgument msgArg1,UMLMessageArgument msgArg2) throws Exception\r\n\t{\r\n\t\tif( msgArg1!=null && msgArg2!=null)\r\n\t\t\tassertEquals(msgArg1.equals(msgArg2),msgArg2.equals(msgArg1));\r\n\t}", "public static boolean isEqual(JexlNode first, JexlNode second) {\n return checkEquality(first, second).isEqual();\n }", "private static final boolean equal(Object a, Object b) {\n if (a == b)\n return true;\n if (a == null)\n return false;\n if (b == null)\n return false;\n return a.equals(b);\n }", "@Override\n public boolean areItemsTheSame(Concert oldConcert, Concert newConcert) {\n return oldConcert.getId() == newConcert.getId();\n }", "@Test\n public void testEquals_sameParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are equivalent\n assertThat(cellIdentityNr).isEqualTo(anotherCellIdentityNr);\n }", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "private void assertSameTask(ReadOnlyTask task1, ReadOnlyTask task2) {\n if (task1 == null && task2 == null) {\n // both null\n return;\n }\n\n if (task1 == null) {\n fail(\"task1 is null but task2 is NOT null\");\n }\n\n if (task2 == null) {\n fail(\"task1 is NOT null but task2 is null\");\n }\n\n assertTrue(\"Expected: <\" + task1 + \"> but was <\" + task2 + \">\", task1.isSameStateAs(task2));\n }", "public boolean equals(ListNode one, ListNode two){\n\t \t\treturn one.val == two.val;\n\t \t}", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof NoteDevoir)) {\r\n return false;\r\n }\r\n NoteDevoir other = (NoteDevoir) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n public void testEquals_differentParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI + 1,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are different\n assertThat(cellIdentityNr).isNotEqualTo(anotherCellIdentityNr);\n }", "protected boolean areItemsTheSame(T old, T news) {\n if (old == null)\n return news == null;\n return old.sameItems(news);\n }", "public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}", "@Test\n public void testEquals_2() {\n LOGGER.info(\"testEquals_2\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hej\");\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "private boolean comparePersistentIdEntrys(@Nonnull PairwiseId one, @Nonnull PairwiseId other)\n {\n // Do not compare times\n //\n return Objects.equals(one.getPairwiseId(), other.getPairwiseId()) &&\n Objects.equals(one.getIssuerEntityID(), other.getIssuerEntityID()) &&\n Objects.equals(one.getRecipientEntityID(), other.getRecipientEntityID()) &&\n Objects.equals(one.getSourceSystemId(), other.getSourceSystemId()) &&\n Objects.equals(one.getPrincipalName(), other.getPrincipalName()) &&\n Objects.equals(one.getPeerProvidedId(), other.getPeerProvidedId());\n }", "boolean hasNotes();", "public boolean equals(Object other) {\n return super.equals(other) &&\n requiredPrimitiveType == ((AtomicSequenceConverter)other).requiredPrimitiveType;\n }", "public boolean isEqual(MonthDay other) {\n if(month == other.month && day == other.day) {\n return true;\n } else {\n return false;\n }\n }", "@Test\n public void testEqualsReturnsFalseOnDifferentStartVal() throws Exception {\n setRecordFieldValue(otherRecord, \"start\", null);\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n\n equals = otherRecord.equals(record);\n\n assertThat(equals, is(false));\n }", "public boolean areLinesIdentical(Field[] line1, Field[] line2) {\n\t\tif (line1.length != line2.length) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i=0; i<line1.length; i++) {\n\t\t\tField f1 = line1[i];\n\t\t\tField f2 = line2[i];\n\t\t\tboolean ident = f1.isEmpty() || f2.isEmpty() || f1.getSymbol() == f2.getSymbol();\n\t\t\tif (!ident) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof BlastingtypeRelationsAud)) {\n return false;\n }\n BlastingtypeRelationsAud that = (BlastingtypeRelationsAud) other;\n Object myBtrAudUid = this.getBtrAudUid();\n Object yourBtrAudUid = that.getBtrAudUid();\n if (myBtrAudUid==null ? yourBtrAudUid!=null : !myBtrAudUid.equals(yourBtrAudUid)) {\n return false;\n }\n return true;\n }", "private boolean compareStatements(com.hp.hpl.jena.rdf.model.Statement stmt1,com.hp.hpl.jena.rdf.model.Statement stmt2) {\n if (!stmt1.getSubject().toString().equals(stmt2.getSubject().toString()))\n return false;\n else if (!stmt1.getObject().toString().equals(stmt2.getObject().toString()))\n return false;\n else if (!stmt1.getPredicate().toString().equals(stmt2.getPredicate().toString()))\n return false;\n else\n return true;\n }", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return a.equals(b);\n }", "protected boolean isEqual( Object lhs, Object rhs ){\r\n\t\tboolean x = lhs==null;\r\n\t\tboolean y = rhs == null;\r\n\t\t//XOR OPERATOR, only one is null\r\n\t\tif ((x || y) && !(x && y))\r\n\t\t\treturn false;\r\n\t\tif (lhs.equals(rhs))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }", "static boolean areIdentical(Line l1, Line l2) {\n return areParallel(l1, l2) && (Math.abs(l1.c - l2.c) < EPS);\n }", "@Override\n public boolean isSame(Item other) {\n return this.equals(other);\n }", "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "@Test\r\n public void testObjectPropertyWithEqualOrSameList() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ObjectProperty<ObservableList<String>> otherPropertySameList = new SimpleObjectProperty<>(list);\r\n assertFalse(\"sanity: two properties with same list are not equal\", \r\n property.equals(otherPropertySameList));\r\n ObjectProperty<ObservableList<String>> otherPropertyEqualList =\r\n new SimpleObjectProperty(createObservableList(true));\r\n assertFalse(\"sanity: two properties with equal list are not equal\", \r\n property.equals(otherPropertyEqualList));\r\n }", "@Override\n public boolean areContentsTheSame(Comment newItem) {\n return getItem().getName().equals(newItem.getName());\n }", "@Test\n public void testEqualsReturnsFalseOnDifferentEndVal() throws Exception {\n setRecordFieldValue(otherRecord, \"end\", null);\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n\n equals = otherRecord.equals(record);\n\n assertThat(equals, is(false));\n }", "private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }", "@Test\r\n public void testNotificationSetEqualElement() {\r\n ObservableList first = FXCollections.observableArrayList(getPerson1());\r\n ObservableList second = FXCollections.observableArrayList(getPerson2());\r\n int index = 0;\r\n assertEquals(\"sanity: \", first.get(index), second.get(index));\r\n ListChangeReport report = new ListChangeReport(first);\r\n first.set(index, second.get(index));\r\n assertEquals(\"list must have fired on setting equal item\", 1, report.getEventCount());\r\n \r\n }", "public boolean equals(Term other) {\n\t\treturn this.coefficient == other.coefficient && this.exponent == other.exponent;\n\t}", "public boolean same(Rational that) {\n\treturn (this.n == that.getNum() && this.d == that.getDenom());\n }", "public static void equalsDemo() {\n\n//\t\tSystem.out.printf(\"demo1 == demo2 = %s%n\", demo1 == demo2);\n//\t\tSystem.out.printf(\"demo2 == demo3 = %s%n\", demo2 == demo3);\n//\t\tSystem.out.printf(\"demo2.equals(demo3) = %s%n\", demo2.equals(demo3));\n//\t\tSystem.out.printf(\"%n\");\n\t}", "public boolean equals(Line other) {\r\n // exactly the same line\r\n if (this.start.equals(other.start) && this.end.equals(other.end)) {\r\n return true;\r\n }\r\n // opossite lines\r\n if (this.start().equals(other.end) && this.end().equals(other.start)) {\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof User)) {\n return false;\n }\n User that = (User) other;\n if (this.getIduser() != that.getIduser()) {\n return false;\n }\n return true;\n }", "private static boolean isEqual(int[] nums1, int[] nums2){\n \tfor(int i=0; i<nums1.length; i++){\n \t\tif(nums1[i]!=nums2[i]){\n \t\t\treturn false;\n \t\t}\n \t}\n \treturn true;\n }", "public boolean equivalent(Tradeoff trade)\r\n\t{\r\n\t\tboolean eq = false;\r\n\t\tif ((trade.getOnt1().toString().equals(ont1.toString())) &&\r\n\t\t\t\t(trade.getOnt2().toString().equals(ont2.toString())))\r\n\t\t\teq = true;\r\n\t\telse if ((trade.getOnt1().toString().equals(ont2.toString())) &&\r\n\t\t\t\t(trade.getOnt2().toString().equals(ont1.toString())))\r\n\t\t\teq = true;\r\n\t\treturn eq;\r\n\t}", "public boolean isEqual(Expression other) {\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n if (other instanceof Mult) {\n return (((Mult) other).getLeft().toString().equals(left.toString())\n && ((Mult) other).getRight().toString().equals(right.toString()))\n || ((Mult) other).getLeft().toString().equals(right.toString())\n && ((Mult) other).getRight().toString().equals(left.toString());\n }\n\n return false;\n }", "public boolean equals(Object other)\n\t{\n\t\treturn (this.mySubjectStart == ((Alignment)other).mySubjectStart && this.mySubjectFinish == ((Alignment)other).mySubjectFinish\n\t\t\t\t&& this.myQueryStart == ((Alignment)other).myQueryStart && this.myQueryFinish == ((Alignment)other).myQueryFinish);\n\t}", "public boolean testVerify(Synth synth2, String key, Object obj1, Object obj2)\n {\n return false;\n }", "@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }", "boolean hasIsEquivalent();", "public boolean mojeEquals(Obj o1, Obj o2) {\r\n\t\t//System.out.println(o1.getName() + \" \" + o2.getName());\r\n\t\tboolean sameRight = true; // 21.06.2020. provera prava pristupa\r\n\t\tboolean sameName = true;\t// 22.06.2020. ako nisu metode ne moraju da imaju isto ime\r\n\t\tboolean sameArrayType = true; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t\t\r\n\t\tif (o1.getKind() == Obj.Meth && o2.getKind() == Obj.Meth) {\r\n\t\t\tsameRight = o1.getFpPos() == o2.getFpPos()+10; \r\n\t\t\tsameName = o1.getName().equals(o2.getName());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (o1.getType().getKind() == Struct.Array && o2.getType().getKind() == Struct.Array) {\r\n\t\t\t\tif (!(o1.getType().getElemType() == o2.getType().getElemType())) { // ZA KLASE MOZDA TREBA equals\r\n\t\t\t\t\tsameArrayType = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// 16.08.2020.\r\n//\t\tif (o1.getType().getKind() == Struct.Class || o1.getType().getKind() == Struct.Interface)\r\n//\t\t\treturn true;\r\n\t\t\r\n\t\t\r\n\t\treturn o1.getKind() == o2.getKind() \r\n\t\t\t\t&& sameName\r\n\t\t\t\t&& o1.getType().equals(o2.getType())\r\n\t\t\t\t&& /*adr == other.adr*/ o1.getLevel() == o2.getLevel()\r\n\t\t\t\t&& equalsCompleteHash(o1.getLocalSymbols(), o2.getLocalSymbols())\r\n\t\t\t\t&& sameRight // 21.06.2020. provera prava pristupa\r\n\t\t\t\t&& sameArrayType; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t}", "public boolean areEqual(T[] arr1, T[] arr2){\r\n if(arr1.length != arr2.length){\r\n return false;\r\n }\r\n\r\n for(int i = 0; i < arr1.length; i++){\r\n //System.out.println(arr1[i] + \" \" + arr2[i]);\r\n if(!arr1[i].equals(arr2[i])){\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "@Test\n\tpublic void testEquivalentSequences(){\n\t\tchord = new Chord(1, Tonality.maj, 4);\n\t\tChord chord2 = new Chord(1, Tonality.maj, 4);\n\t\tassertTrue(chord.equals(chord2));\n\t\tassertTrue(chord2.equals(chord));\n\n\t\tLinkedList<Chord> sequence = new LinkedList<Chord>();\n\t\tLinkedList<Chord> sequence2 = new LinkedList<Chord>();\n\n\t\tsequence.add(chord);\n\t\tsequence.add(chord2);\n\t\tsequence2.add(chord);\n\t\tsequence2.add(chord2);\n\t\tassertEquals(sequence, sequence2);\n\n\t\tsequence2.clear();\n\t\tsequence2.addAll(sequence);\n\t\tassertEquals(sequence, sequence2);\n\t}", "public boolean equals(Object other)\n {\n \t// if the *pointers* are the same, then by golly it must be the same object!\n \tif (this == other)\n \t\treturn true;\n \t\n \t// if the parameter is null or the two objects are not instances of the same class,\n \t// they can't be equal\n \telse if (other == null || this.getClass() != other.getClass())\n \t\treturn false;\n \t\n //Since this class is what the bag will use if it wants\n //to hold strings, we'll use the equals() method in the\n //String class to check for equality\n \telse if ((this.content).equals(((StringContent)other).content))\n return true;\n \t\n else return false;\n }", "@Override\n\tpublic boolean equals(Object other) {\n\t\tif (this == null || other == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!(other instanceof TextNode)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (!(this.toString().equals(other.toString()))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean checkIdentity(Order otherOrder) {\n\t\treturn getId() != otherOrder.getId();\n\t}", "public final void testSameObjectEquals() {\n final Transaction copy = testTransaction1;\n assertTrue(testTransaction1.equals(copy)); // pmd doesn't like either\n // way\n\n }", "@Override\r\n public boolean equals(Object other) {\r\n if (other instanceof Song == false)\r\n return false;\r\n return this.toString().equals(other.toString());\r\n }", "public static boolean areSame(AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return t1.toString().equals(t2.toString());\n }", "@SuppressWarnings(\"null\")\n public static boolean charSequencesEqual(CharSequence a, CharSequence b, boolean ignoreCase) {\n Checks.notNull(\"a\", a);\n Checks.notNull(\"b\", b);\n if ((a == null) != (b == null)) {\n return false;\n } else if (a == b) {\n return true;\n }\n if (a instanceof String && b instanceof String) {\n return ignoreCase ? ((String) a).equalsIgnoreCase((String) b) : a.equals(b);\n }\n @SuppressWarnings(\"null\")\n int length = a.length();\n if (length != b.length()) {\n return false;\n }\n if (!ignoreCase && a.getClass() == b.getClass() && a.getClass() != NoCopySubsequence.class) {\n return a.equals(b);\n }\n if (!ignoreCase && a instanceof String) {\n return ((String) a).contentEquals(b);\n } else if (!ignoreCase && b instanceof String) {\n return ((String) b).contentEquals(a);\n } else {\n if (ignoreCase) {\n return contentEqualsIgnoreCase(a, b);\n }\n return biIterate(a, (index, ch, l, remaining) -> {\n boolean match = ch == b.charAt(index);\n return !match ? BiIterateResult.NO : BiIterateResult.MAYBE;\n }).isOk();\n }\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }" ]
[ "0.698212", "0.6464366", "0.6314298", "0.61465675", "0.60431", "0.60353374", "0.6010289", "0.59815574", "0.59416366", "0.5936563", "0.5889531", "0.5887732", "0.5825297", "0.57827985", "0.5771724", "0.57603085", "0.5730547", "0.572416", "0.5722277", "0.57185113", "0.5661627", "0.5660856", "0.5660586", "0.56525075", "0.5650847", "0.56394875", "0.5633168", "0.5629715", "0.5615447", "0.56118155", "0.55869293", "0.5583574", "0.5571332", "0.5564761", "0.5564086", "0.55553555", "0.55496913", "0.5540058", "0.55359817", "0.55300546", "0.5526729", "0.5507885", "0.5505203", "0.549256", "0.54898095", "0.5488346", "0.5482703", "0.54702437", "0.5461708", "0.5455961", "0.5447692", "0.5447676", "0.543633", "0.5410853", "0.5410087", "0.54069304", "0.5406733", "0.539896", "0.53983974", "0.53943455", "0.5391193", "0.53874403", "0.5387035", "0.5381286", "0.5375286", "0.5369996", "0.53695184", "0.53674644", "0.5359956", "0.5352021", "0.5347457", "0.53471863", "0.5341112", "0.534005", "0.53309083", "0.5322255", "0.5321172", "0.53195655", "0.5313706", "0.5312059", "0.5311873", "0.5311728", "0.53091383", "0.53085506", "0.53080755", "0.5307025", "0.5302695", "0.5302507", "0.5302507", "0.5302507", "0.5302507", "0.5302507", "0.5302507", "0.5302507", "0.5302507", "0.5302507", "0.5302507", "0.5302507", "0.5302507", "0.5302507" ]
0.6979646
1
Checks if the two NoteNames are the same.
public boolean sameNoteAs(Note otherNote) { return getNoteName() == otherNote.getNoteName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean namesEqual(String name1, String name2) {\n if (StringUtil.isEmpty(name1) && StringUtil.isEmpty(name2)) {\n return true;\n }\n if (normalizer.isDelimited(defaultRule, name1)) {\n if (!Objects.equals(name1, name2)) {\n return false;\n }\n } else {\n if (!StringUtil.equalsIgnoreCase(name1, name2)) {\n return false;\n }\n }\n return true;\n }", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean fullNamesEqual(String name1, String name2) {\n if (StringUtil.isEmpty(name1) && StringUtil.isEmpty(name2)) {\n return true;\n }\n // Split multi-part names into individual components and compare\n // each component. If delimited, do case compare.\n String[] names1 = normalizer.splitName(defaultRule, name1);\n String[] names2 = normalizer.splitName(defaultRule, name2);\n if (names1.length != names2.length) {\n return false;\n }\n for (int i = 0; i < names1.length; i++) {\n if (normalizer.isDelimited(defaultRule, names1[i])) {\n if (!Objects.equals(names1[i],names2[i])) {\n return false;\n }\n } else {\n if (!StringUtil.equalsIgnoreCase(names1[i],names2[i])) {\n return false;\n }\n }\n }\n return true;\n }", "public final static boolean checkNames(String playerOneName, String playerTwoName)\n\t{\n\t\tif(playerOneName.length()>15||playerOneName.length()<2||playerTwoName.length()<2||playerTwoName.length()>15) return false;\n\t\tif(!playerOneName.matches(\"[a-zA-Z]+\")||!playerTwoName.matches(\"[a-zA-Z]+\")) return false;\n\t\tif(playerOneName.substring(0,1).equals(playerTwoName.substring(0,1))) return false;\n\t\treturn true;\n\t}", "@Test\n public void equals_returnsTrueIfNameIsTheSame_false() {\n Animal firstAnimal = new Animal(\"Deer\");\n Animal anotherAnimal = new Animal(\"Deer\");\n assertTrue(firstAnimal.equals(anotherAnimal));\n }", "public boolean isNameEquals(String name) {\n\n return (_name.equalsIgnoreCase(name));//Checks not case sensitive\n }", "public boolean equalsName(String otherName) {\n return name.equals(otherName);\n }", "public boolean equals(Note otherNote) {\n\t\treturn getMidiNumber() == otherNote.getMidiNumber();\n\t}", "public final boolean isObjectNameEqual(final String objectName)\n {\n return (getObjectName().equals(objectName.trim()));\n }", "public final void testDifferentNameEquals() {\n assertFalse(testTransaction1.equals(testTransaction2)); // pmd doesn't\n // like either\n // way\n }", "public boolean nameEquals(IonModification a) {\n return parsedName.equals(a.parsedName);\n }", "public boolean checkName(String employeeName) {\r\n\t\tif(this.employeeName == employeeName)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "static boolean equal (String s1, String s2) {\r\n if (s1==errorSignature) return true;\r\n if (s2==errorSignature) return true;\r\n if (s1==null || s1.length()==0)\r\n return s2==null || s2.length()==0;\r\n return s1.equals (s2);\r\n }", "private boolean validNames(String whiteName, String blackName){\n return whiteName.length() > 0 && blackName.length() > 0 &&\n !whiteName.equalsIgnoreCase(blackName);\n }", "private boolean equals(String str1, String str2)\n\t{\n\t\tif (str1.length() != str2.length()) // Easiest to check is if they are the same to potentially avoid running remaining code\n\t\t\treturn false;\n\t\tfor(int i = 0; i < str1.length(); i++)\n\t\t{\n\t\t\tif (str1.charAt(i) != str2.charAt(i)) // If at any point one char is not equal to the same char at a given index then they are disimilar\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true; // If no discrepancies are found then the strings must be equal\n\t}", "@Override\n public boolean areContentsTheSame(@NonNull Note oldItem, @NonNull Note newItem) {\n return oldItem.getTitle().equals(newItem.getTitle()) &&\n oldItem.getDescription().equals(newItem.getDescription()) &&\n oldItem.getPriority() == newItem.getPriority();\n }", "public boolean shortNameEquals(IdentifierResolver ts) {\n\t\treturn shortName.equals(ts.shortName);\n\t}", "static public String checkName(String origName) {\n String newName = sanitizeName(origName);\n\n if (!newName.equals(origName)) {\n String msg =\n _(\"The sketch name had to be modified. Sketch names can only consist\\n\" +\n \"of ASCII characters and numbers (but cannot start with a number).\\n\" +\n \"They should also be less than 64 characters long.\");\n System.out.println(msg);\n }\n return newName;\n }", "private boolean isZipEntryNameAllowed(String [] zipEntryNames) {\n if(zipEntryNames != null)\n for(int i=0; i<zipEntryNames.length; i++) {\n if(TextUtils.isEmpty(zipEntryNames[i])) {\n Log.d(TAG, \"zipEntryName \"+i+\"is empty or null\");\n return false;\n }\n for(int j=i+1; j<zipEntryNames.length ; j++){\n Log.d(TAG, \"compare #\"+i+\" : \"+zipEntryNames[i]+\" with #\"+j+\" : \"+zipEntryNames[j]); // TODO : remove this line\n if(zipEntryNames[i] != null && zipEntryNames[i].equals(zipEntryNames[j])) {\n Log.d(TAG, \"zipEntryName can't be duplicate, \"+i+\" : \"+zipEntryNames[i]+\" with \"+j+\" : \"+zipEntryNames[j]);\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public boolean isSame(Bike other) {\n if (other == this) {\n return true;\n }\n\n return other != null\n && other.getName().equals(this.getName());\n }", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "public boolean ifDuplicated(String other, String[] temporary) {\n\t\tfor (String s : temporary) {\n\t\t\tif (s != null && s.equals(other)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean areContentsTheSame(Comment newItem) {\n return getItem().getName().equals(newItem.getName());\n }", "public boolean isDuplicateName(String name) {\n return presenter.isDuplicateName(name);\n }", "public boolean is(String fName, String lName)\n {\n return firstName.equals(fName) && lastName.equals(lName);\n }", "private boolean equalsChars(char[] first, char[] second) {\n for (int i = 0; i < second.length; i++)\n if (first[i] != second[i])\n return false;\n return true;\n }", "@Override\n public boolean areItemsTheSame(@NonNull Note oldItem, @NonNull Note newItem) {\n // Two Note item are same if there ID are same - uniquely identify each entry\n return oldItem.getId() == newItem.getId();\n }", "private boolean hasNomeRepetido(String[] listaNomes) {\n for (int i = 0; i < listaNomes.length; i++) {\n for (int j = 0; j < listaNomes.length; j++) {\n if ((i != j) && (listaNomes[i].equals(listaNomes[j]))) {\n return true;\n }\n }\n }\n\n return false;\n }", "private static boolean letterDifferByOne(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n\n int differenceCount = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) != word2.charAt(i)) {\n differenceCount++;\n }\n }\n return (differenceCount == 1);\n }", "public static boolean doStacksShareOreName (ItemStack firstStack, ItemStack secondStack) {\n \n for (final int firstName : OreDictionary.getOreIDs(firstStack))\n for (final int secondName : OreDictionary.getOreIDs(secondStack))\n if (firstName == secondName)\n return true;\n \n return false;\n }", "public static boolean isEqual(String s1, String s2) {\r\tif(s1.length() != s2.length()){\r\t return false;\r\t}\r\tfor(int i = 0; i< s1.length();i++){\r\t if (s1.charAt(i) != s2.charAt(i)){\r\t\treturn false;\r\t }\r\t}\r\treturn true;\r }", "private boolean patientNameCheck( List<Patient> databasePatients, String newID , String oldID)\n {\n for( Patient temp : databasePatients )\n {\n if( temp.getPatientReference().equals(newID)) {\n if (newID.equals(oldID)) {\n return true;\n } else {\n return false;\n }\n }\n }\n return true;\n }", "public static boolean isUnique(String name, String[] array1) {\n\t\t\n\t\t// Searches through the store item arrays and see if it's the same\n\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\tif (name.equals(array1[i])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean duplicationCheck(String userName) {\n\t\tboolean ret = true;\n\t\tif(obs.isEmpty()) {\n\t\t\tret = true;\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0; i<obs.size(); i++) {\n\t\t\t\tif(obs.get(i).getUserName().compareTo(userName) == 0) {\n\t\t\t\t\tret = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tret = true;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public static void checkNamesAreAllDiferent(HoldemPlayerDecider players[], HoldemServerMiddleMan middleMan) {\n\t\tfor(int i=0; i<players.length; i++) {\n\t\t\tfor(int j=i+1; j<players.length; j++) {\n\t\t\t\tif( (players[i].getName()).equals( players[j].getName() ) ) {\n\t\t\t\t\tmiddleMan.sendMessageToGroup(\"ERROR: 2 of the player names are the same!\");\n\t\t\t\t\tmiddleMan.sendMessageToGroup(players[i].getName());\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean checkSam(String stringA, String stringB) {\r\n\t\tString[] s1 = stringA.split(\" \");\r\n\t\tString[] s2 = stringB.split(\" \");\r\n\t\tif(s1.length == s2.length){\r\n\t\t\tint count = 0;\r\n\t\t\tfor (String sB : s2) {\r\n\t\t\t\tfor (String sA : s1) {\r\n\t\t\t\t\tif(sA.equals(sB)){\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == s2.length){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n }", "public static boolean isSame(String str1, String str2)\r\n {\r\n if (str1 == null && str2 == null) return true;\r\n if (str1 == null || str2 == null) return false;\r\n return str1.equals(str2);\r\n }", "private\n static\n void\n assertEventDataEqual( MingleReactorEvent ev1,\n String ev1Name,\n MingleReactorEvent ev2,\n String ev2Name )\n {\n Object o1 = null;\n Object o2 = null;\n String desc = null;\n\n switch ( ev1.type() ) {\n case VALUE: o1 = ev1.value(); o2 = ev2.value(); desc = \"value\"; break;\n case FIELD_START:\n o1 = ev1.field(); o2 = ev2.field(); desc = \"field\"; break;\n case STRUCT_START:\n o1 = ev1.structType(); o2 = ev2.structType(); desc = \"structType\";\n break;\n default: return;\n }\n\n state.equalf( o1, o2, \"%s.%s != %s.%s (%s != %s)\",\n ev1Name, desc, ev2Name, desc, o1, o2 );\n }", "boolean hasSameAs();", "private static boolean equalityTest3(String a, String b)\n {\n return System.identityHashCode(a) == System.identityHashCode(b);\n }", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "public boolean equals(Object ob){\n return name.equals(((PhoneRecord)ob).getName());\n }", "public boolean isVerifyingNames() {\n return verifyNames;\n }", "private void verifyNames(BaseArtifactType artifact) {\n // First, build a list of all the names within this artifact.\n List<String> propertyNames = new ArrayList<String>();\n List<String> relationshipNames = new ArrayList<String>();\n for (Property property : artifact.getProperty()) {\n propertyNames.add(property.getPropertyName());\n }\n for (Relationship relationship : artifact.getRelationship()) {\n relationshipNames.add(relationship.getRelationshipType());\n }\n \n // Then, compare against both reserved and local names.\n for (String propertyName : propertyNames) {\n if (isReserved(propertyName)) {\n error = ArtificerConflictException.reservedName(propertyName);\n }\n if (relationshipNames.contains(propertyName)) {\n error = ArtificerConflictException.duplicateName(propertyName);\n }\n if (Collections.frequency(propertyNames, propertyName) > 1) {\n error = ArtificerConflictException.duplicateName(propertyName);\n }\n }\n for (String relationshipName : relationshipNames) {\n // \"relatedDocument\" is a unique case. Due to shortcomings in the S-RAMP spec, it's an actual field\n // on DerivedArtifactType. But, we also have to use it as a general relationship, since there is no\n // DerivedExtendedArtifactType (ie, if an extended artifact type is derived, it also needs that field,\n // but doesn't).\n // TODO: Fix that!\n if (!relationshipName.equals(\"relatedDocument\")) {\n if (isReserved(relationshipName)) {\n error = ArtificerConflictException.reservedName(relationshipName);\n }\n if (propertyNames.contains(relationshipName)) {\n error = ArtificerConflictException.duplicateName(relationshipName);\n }\n }\n }\n }", "private static boolean equalityTest2(String a, String b)\n {\n return a.equals(b);\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (this == obj) { return true; }\r\n\t\tif (obj == null) { return false; }\r\n\t\tif (!(obj instanceof Song)) { return false; }\r\n\t\tfinal Song other = (Song) obj;\r\n\t\t\r\n\t\treturn\r\n\t\t\t((name == other.name) || (name != null && name.equals(other.name))) &&\r\n\t\t\t(duration == other.duration);\r\n\t}", "public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$8) != 0;\n }\n }", "public void sameNameError(String nickname) {\n notifyNicknameNotValid(nickname);\n }", "protected final boolean compareNameAndNS(final XNode y\n\t\t, final ArrayReporter rep){\n\t\tif (!getLocalName().equals(y.getLocalName())\n\t\t\t|| getNSUri() != null && !getNSUri().equals(y.getNSUri())\n\t\t\t|| getNSUri() == null && y.getNSUri() != null) {\n\t\t\t//Names differs: &{0} and &{1}\n\t\t\trep.error(XDEF.XDEF289, getXDPosition(), y.getXDPosition());\n\t\t\tcompareNamespace(y, rep);\n\t\t\treturn false;\n\t\t}\n\t\treturn compareNamespace(y, rep);\n\t}", "public boolean isEqual(FusableBooks record1, FusableBooks record2) {\n\t\treturn sim.calculate(record1.getBookName(), record2.getBookName()) == 1.0;\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n NameKey nameKey = (NameKey) o;\n return this.analyser.compare(this, nameKey) == 0;\n }", "boolean sameArtist(Artist that) {\r\n\t\treturn this.name.equals(that.name); \r\n\t\t// && this.painting.samePainting(that.painting);\r\n\t}", "public boolean equalsName(String otherCode) {\n return CODE.equals(otherCode);\n }", "public boolean checkName(String name)\n {\n return true;\n }", "boolean equal(String s1, String s2) {\n return compareStrings(s1, s2) == 0;\n }", "public boolean isSameAccount(BankAccount account1, BankAccount account2){\n return account1.accountName == account2.accountName;\n }", "private boolean isDifferent(String contentInGiven, String contentInCurr) {\n if (contentInGiven == null && contentInCurr == null) {\n return false;\n } else if (contentInCurr != null && contentInGiven != null\n && contentInCurr.equals(contentInGiven)) {\n return false;\n }\n return true;\n }", "@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }", "public boolean isSameIngredient(Ingredient otherIngredient) {\n if (otherIngredient == this) {\n return true;\n }\n\n return otherIngredient != null\n && otherIngredient.getName().equalsIgnoreCase(getName());\n }", "public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }", "public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }", "public boolean areLinesIdentical(Field[] line1, Field[] line2) {\n\t\tif (line1.length != line2.length) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i=0; i<line1.length; i++) {\n\t\t\tField f1 = line1[i];\n\t\t\tField f2 = line2[i];\n\t\t\tboolean ident = f1.isEmpty() || f2.isEmpty() || f1.getSymbol() == f2.getSymbol();\n\t\t\tif (!ident) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n public boolean equals(Object that) {\r\n if (this == that) {\r\n return true;\r\n }\r\n if (that == null) {\r\n return false;\r\n }\r\n if (getClass() != that.getClass()) {\r\n return false;\r\n }\r\n PensionDicDosagename other = (PensionDicDosagename) that;\r\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\r\n && (this.getDosageName() == null ? other.getDosageName() == null : this.getDosageName().equals(other.getDosageName()))\r\n && (this.getInputCode() == null ? other.getInputCode() == null : this.getInputCode().equals(other.getInputCode()))\r\n && (this.getCleared() == null ? other.getCleared() == null : this.getCleared().equals(other.getCleared()))\r\n && (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()));\r\n }", "public final boolean isSimpleName() {\n return (_names.length == 1);\n }", "public boolean isEqual(Stack msg, Object obj) {\n if (!(obj instanceof ConstNameAndType)) {\n msg.push(\"obj/obj.getClass() = \"\n + (obj == null ? null : obj.getClass()));\n msg.push(\"this.getClass() = \"\n + this.getClass());\n return false;\n }\n ConstNameAndType other = (ConstNameAndType)obj;\n\n if (!super.isEqual(msg, other)) {\n return false;\n }\n\n if (!this.theName.isEqual(msg, other.theName)) {\n msg.push(String.valueOf(\"theName = \"\n + other.theName));\n msg.push(String.valueOf(\"theName = \"\n + this.theName));\n return false;\n }\n if (!this.typeSignature.isEqual(msg, other.typeSignature)) {\n msg.push(String.valueOf(\"typeSignature = \"\n + other.typeSignature));\n msg.push(String.valueOf(\"typeSignature = \"\n + this.typeSignature));\n return false;\n }\n return true;\n }", "public boolean isSetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(NAME$0) != 0;\r\n }\r\n }", "public boolean equals(String instanceName)\n {\n if (name.equals(instanceName))\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "private boolean sameTopic(HelpTopic topic1, HelpTopic topic2) {\n return topic1 == topic2 || (topic1 != null && topic2 != null && topic1.equals(topic2));\n }", "public boolean doWeHaveSameStops(String corridorA, String corridorB);", "static Boolean isOneAway(String s1, String s2) {\r\n\t\tboolean results = false;\r\n\t\tchar[] chars1 = s1.toCharArray();\r\n\t\tchar[] chars2 = s2.toCharArray();\r\n\t\tif(s1.equals(s2)) {\r\n\t\t\tresults = true;\r\n\t\t}else if(chars1.length==chars2.length) {\r\n\t\t\tint mismatches = 0;\r\n\t\t\tfor(int i = 0; i < chars1.length; i++ ) {\r\n\t\t\t\tif(chars1[i]!=chars2[i]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else if(Math.abs(s1.length() - s2.length())==1) {\r\n\t\t\tif(s1.length() > s2.length()) {\r\n\t\t\t\tchars1 = s1.toCharArray();\r\n\t\t\t\tchars2 = s2.toCharArray();\r\n\t\t\t}else {\r\n\t\t\t\tchars1 = s2.toCharArray();\r\n\t\t\t\tchars2 = s1.toCharArray();\r\n\t\t\t}\r\n\t\t\tint mismatches = 0;\r\n\t\t\tint cursor1 = 0;\r\n\t\t\tint cursor2 = 0;\r\n\t\t\twhile((cursor1 < chars1.length) && (cursor2 < chars2.length)) {\r\n\t\t\t\tif(chars1[cursor1] != chars2[cursor2]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t\tcursor2++;\r\n\t\t\t\t}\t\t\t\t \r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else {\r\n\t\t\tresults = false;\r\n\t\t}\r\n\t\r\n\t\treturn results;\r\n\t}", "public boolean isValidName(String proposedName);", "public static boolean validateFellow(String name){\n\n for(String n : fellows)\n {\n if (n.equals(name))\n return true; \n } \n return false;\n }", "private boolean oneCharOff( String word1, String word2 )\n {\n if( word1.length( ) != word2.length( ) )\n return false;\n int diffs = 0;\n for( int i = 0; i < word1.length( ); i++ )\n if( word1.charAt( i ) != word2.charAt( i ) )\n if( ++diffs > 1 )\n return false;\n return diffs == 1;\n }", "@Test\n public void equals_differentName() {\n SiteInfo si1 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Foo Site\"\n );\n SiteInfo si2 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Bar Site\"\n );\n\n Assert.assertNotEquals(si1, si2);\n }", "public boolean typeStringsEqual(String uti1, String uti2);", "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "boolean equalProps(InstanceProperties props) {\n String propsName = props.getString(PROPERTY_NAME, null);\n return propsName != null\n ? propsName.equals(name)\n : name == null;\n }", "public static boolean equals(CharSequence a, CharSequence b) {\r\n\t\tif (a == b) return true;\r\n\t\tint length;\r\n\t\tif (a != null && b != null && (length = a.length()) == b.length()) {\r\n\t\t\tif (a instanceof String && b instanceof String) {\r\n\t\t\t\treturn a.equals(b);\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\t\t\tif (a.charAt(i) != b.charAt(i)) return false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isEqual(StringNum a, StringNum b) {\n\t\tif(a.getNumber().equalsIgnoreCase(b.getNumber())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {\n Station oldStation = mOldStations.get(oldItemPosition);\n Station newStation = mNewStations.get(newItemPosition);\n if (oldStation.getStationName().equals(newStation.getStationName()) &&\n oldStation.getPlaybackState() == newStation.getPlaybackState() &&\n oldStation.getStationImageSize() == newStation.getStationImageSize()) {\n return true;\n } else {\n return false;\n }\n }", "private static void assertStatesEquals(State[] statesFsaExpected, State[] statesFsaActual) {\n\t\t\n\t\t\n\t\tArrayList<String> statesNamesExpected = new ArrayList<String>();\n\t\tArrayList<String> statesNamesActual = new ArrayList<String>();\n\t\t\n\t\t\n\t\t//populate\n\t\tfor ( State s : statesFsaExpected ){\n\t\t\tstatesNamesExpected.add(s.getName());\n\t\t}\n\t\t\n\t\tfor ( State s : statesFsaActual ) {\n\t\t\tstatesNamesActual.add(s.getName());\n\t\t}\n\t\t\n\t\t\n\t\t//check\n\t\tfor ( String expected : statesNamesExpected ){\n\t\t\tif ( ! statesNamesActual.contains(expected) ){\n\t\t\t\tfail(\"State \"+expected+\" not found\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor ( String actual : statesNamesActual ){\n\t\t\tif ( ! statesNamesExpected.contains(actual) ){\n\t\t\t\tfail(\"State \"+actual+\" not expected\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString s2 = \"Gowda\";\n\t\tString s3 = \"Gowda\";\n//\t\t\n//\t\tSystem.out.println(s.equals(s2));\n\t\t\n\t\tSystem.out.println(s2.equals(s3));\n\t\t\n\t\tSystem.out.println(s2 == s3); //\n\t\t\n\t}", "private boolean bothModified(String contentInCur,\n String contentinGiven, String contentInSp) {\n if (contentInSp == null && contentinGiven != null\n && contentInCur != null) {\n return true;\n } else if (contentInSp != null && !contentInSp.equals(contentInCur)\n && !contentInSp.equals(contentinGiven)) {\n return true;\n }\n return false;\n }", "@Test\n public void setNameTest() {\n e1.setName(\"Pepper Stark\");\n String expected = \"Pepper Stark\";\n\n assertEquals(\"The expected new name does not match the actual: \"\n , expected, e1.getName());\n }", "public boolean checkDuplicates(String tempName)\n\t{\n\t\tif (!hasPermission(\"staff\")\n\t\t\t&& !Moban.hasMatch(\"multok\", tempName, connSocket.getInetAddress().getHostName()))\n\t\t\tfor (UserCon cs : conns)\n\t\t\t{\n\t\t\t\tif (cs.hasPermission(\"staff\"))\n\t\t\t\t\tcontinue;\n\t\t\t\tif (cs.host1.equals(connSocket.getInetAddress().getHostName())\n\t\t\t\t\t&& !cs.ch.name.equalsIgnoreCase(tempName)\n\t\t\t\t\t&& !Moban.hasMatch(\"multok\", cs.ch.name, cs.host1)\n\t\t\t\t\t&& !cs.hasPermission(\"staff\"))\n\t\t\t\t{\n\t\t\t\t\tsendln(\"Another character is already logged in from the same connection you're using.\");\n\t\t\t\t\tsendln(\"If you were playing on a character but were disconnected or did not quit using\");\n\t\t\t\t\tsendln(\"the 'quit' command, please log back on to that character and 'quit' before\");\n\t\t\t\t\tsendln(\"logging on with a different character.\");\n\t\t\t\t\tsendln(\"\");\n\t\t\t\t\tsendln(\"Note that multiplaying (using multiple characters at the same time) is not\");\n\t\t\t\t\tsendln(\"permitted on Agape. If there is more than one person at your connection who\");\n\t\t\t\t\tsendln(\"would like the play the game, please speak with a staff member.\");\n\t\t\t\t\tcloseSocket();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\tfor (UserCon cs : conns)\n\t\t\tif (cs.ch.name.equalsIgnoreCase(tempName) && cs != this)\n\t\t\t{\n\t\t\t\tconns.remove(cs);\n\t\t\t\twriting = cs.writing;\n\t\t\t\tch = cs.ch;\n\t\t\t\tch.conn = this;\n\t\t\t\tcs.sendln(\"This character has been logged on from a different connection.\");\n\t\t\t\tcs.sendln(\"If this message appears after no action on your part, you may\");\n\t\t\t\tcs.sendln(\"wish to change your password to prevent hacking attempts.\");\n\t\t\t\tsysLog(\"connections\", \"New connection for \"+tempName+\": Booting old connection.\");\n\t\t\t\tcs.closeSocket();\n\t\t\t\tbreak;\n\t\t\t}\n\t\treturn false;\n\t}", "static boolean isNameThePhoneNumber(String name, String number)\n {\n if (TextUtils.isEmpty(name) || TextUtils.isEmpty(number))\n return false;\n\n // Strip separators from both and return the comparison\n return TextUtils.equals(PhoneNumberUtils.stripSeparators(name), PhoneNumberUtils.stripSeparators(number));\n }", "private static boolean equalityTest4(String a, String b)\n {\n if(a.length() == 0 && b.length() == 0)\n {\n return true;\n }\n else\n {\n if(a.length() == 0 || b.length() == 0)\n {\n return false;\n }\n if(a.charAt(0) == b.charAt(0))\n {\n return equalityTest4(a.substring(1), b.substring(1));\n }\n else\n {\n return false;\n }\n }\n }", "public static void main(String args[])\n {\n String s2 = \"Welcome\"; //new String (\"Welcome\"); // new operator\n \n \n String s1= new String(\"Welcome\");\n // String s2= new String(\"Welcome\");\n \n \n if(s1.equals(s2))\n {\n System.out.println(\"contents same\");\n }\n else\n {\n System.out.println(\"contents not same\");\n }\n \n if(s1==s2)\n {\n System.out.println(\"address same\");\n }\n else\n {\n System.out.println(\"address not same\");\n }\n \n \n \n }", "@Test\n public void getNameTest() {\n // expected name for e1\n String expected = \"Pepper Potts\";\n\n assertEquals(\"The expected value of name does not match the actual: \"\n , expected, e1.getName());\n }", "public boolean absoluteNameEquals(String s) {\n\t\treturn absoluteName.equals(s);\n\t}", "public boolean isEqual (Set <JLabel> lineLetters) {\n\t\treturn wordLetters.equals(lineLetters);\n\t}", "private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }", "@Test(expected = IllegalArgumentException.class)\n public void sameShapeName() {\n\n testAnimation.addShape(r, 1, 100);\n\n // new shape with same name\n IShape f = new Rectangle(\"R\",\n 2, 4,\n 3, 50, 10,\n 30.0, 75.0);\n\n testAnimation.addShape(f, 30, 80);\n }", "@Override\n public boolean equals(Object obj) {\n if(!(obj instanceof Note)) return false;\n Note comparing = (Note) obj;\n if(!this.title.equals(comparing.getTitle())) return false;\n if(!this.body.equals(comparing.getBody())) return false;\n return this.author.equals(comparing.getAuthor());\n }", "public static boolean compareNotices(Notice upDatedNotice) throws Exception {\n Session session = HibernateUtil.getCurrentSession();\n String textToUpdate = upDatedNotice.getText();\n Notice notice = get(upDatedNotice.getAncestorID());\n int textHash = 0;\n if(notice.getText() != null) {\n textHash = notice.getText().hashCode();\n }\n int updateTextHash = textToUpdate.hashCode();\n if (textHash == updateTextHash) {\n return false;\n }\n session.save(upDatedNotice);\n return true;\n }", "public boolean isLongPressedName2(String name, String typed) {\n int nLen = name.length();\n int tLen = typed.length();\n int i = 0;\n for (int j = 0; j < tLen; j++) {\n if (i < nLen && name.charAt(i) == typed.charAt(j)) {\n i++;\n } else if (j == 0 || typed.charAt(j) != typed.charAt(j - 1)) return false;\n }\n return i == nLen;\n }", "private void assertSymmetric(UMLMessageArgument msgArg1,UMLMessageArgument msgArg2) throws Exception\r\n\t{\r\n\t\tif( msgArg1!=null && msgArg2!=null)\r\n\t\t\tassertEquals(msgArg1.equals(msgArg2),msgArg2.equals(msgArg1));\r\n\t}", "@Test\r\n\tpublic void testSetName() {\r\n\t\tn1.setName(new Name(\"Mrs\", \"Jess\", \"Surname\"));\r\n\t\tassertEquals(n1.getName(), new Name(\"Mrs\", \"Jess\", \"Surname\"));\r\n\t}", "@Test\n public void equalsWithDifferentName() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"key1\");\n AttributeKey<Number> key2 = new AttributeKey<Number>(Number.class, \"key2\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }" ]
[ "0.688623", "0.6638449", "0.65329045", "0.62227154", "0.616534", "0.6158029", "0.6003321", "0.5908887", "0.58046013", "0.5763341", "0.5749176", "0.574457", "0.5725459", "0.5719053", "0.56843865", "0.5651138", "0.56470466", "0.56177735", "0.56018656", "0.5584077", "0.55838", "0.55700964", "0.55497026", "0.5545237", "0.5544475", "0.55296534", "0.55188733", "0.55155826", "0.5503442", "0.5492267", "0.5491356", "0.54763997", "0.54589033", "0.5385996", "0.53792226", "0.5359172", "0.53590435", "0.53521436", "0.5349178", "0.53324735", "0.5321792", "0.5310201", "0.5293872", "0.52913356", "0.52828693", "0.5275095", "0.52527326", "0.5248507", "0.5247714", "0.5244732", "0.5243812", "0.52350885", "0.52308553", "0.5225134", "0.5224424", "0.52158356", "0.5215297", "0.52119005", "0.52100337", "0.52018064", "0.5195286", "0.5195286", "0.5189123", "0.5186416", "0.5183934", "0.51775557", "0.51709914", "0.5160716", "0.51357716", "0.5129748", "0.5129097", "0.5111475", "0.5100076", "0.5099174", "0.50989187", "0.50851864", "0.50796276", "0.50750643", "0.50744796", "0.50597316", "0.50572324", "0.5048416", "0.5048335", "0.50461316", "0.50454473", "0.50433064", "0.5040944", "0.50343037", "0.5025383", "0.502537", "0.5017852", "0.5012234", "0.5007245", "0.50046426", "0.5003462", "0.4991084", "0.49898982", "0.49866328", "0.4984802", "0.49728495" ]
0.71165246
0
Checks if this note is higher than the other note.
public boolean greaterThan(Note otherNote) { return getMidiNumber() > otherNote.getMidiNumber(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean lessThan(Note otherNote) {\n\t\treturn getMidiNumber() < otherNote.getMidiNumber();\n\t}", "@Override\n\t\tprotected boolean lessThan(final Entry hitA, final Entry hitB) {\n\t\t\tassert hitA != hitB;\n\t\t\tassert hitA.mSlot != hitB.mSlot;\n\n\t\t\tfinal int c = mOneReverseMul * mFirstComparator.compare(hitA.mSlot, hitB.mSlot);\n\t\t\tif (c != 0) \n\t\t\t\treturn c > 0;\n\n\t\t\t\t// avoid random sort order that could lead to duplicates (bug #31241):\n\t\t\t\treturn hitA.getDoc() > hitB.getDoc();\n\t\t}", "public boolean greaterThan(final Bytes other)\n\t{\n\t\tif ((this == other) || (other == null))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn bytes() > other.bytes();\n\t}", "public int isGreaterThan(PokerHand otherHand)\n\t{\n\t\tint rank1 = this.getValue();\n\t\tint rank2 = otherHand.getValue();\n\t\tif(rank1 == rank2) return 0;\n\t\telse if(rank1 < rank2) return 1;\n\t\telse return -1;\n\t}", "@Override\n public boolean isGreater(Query e1, Query e2) {\n return this.compare(e1,e2) == this.GREATER;\n }", "public boolean greaterThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == 1;\n }", "public boolean isLargerThan(Rectangle other){\n\t\treturn this.getArea() > other.getArea();\n\t\n\t}", "private boolean isBigger(int pos1, int pos2) {\n //Comparable c1 = heap.get(pos1);\n //Comparable c2 = heap.get(pos2);\n //return c1.compareTo(c2) > 0;\n return heap.get(pos1).compareTo(heap.get(pos2)) > 0;\n }", "public final boolean lessThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue < topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isHigher(Operator o){\n if(indent > o.indent){\n return true;\n }else{\n return prec > o.prec;\n }\n }", "public final boolean greaterThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }", "public AbstractBoolean greater(Interval other){\n\t\ttry {\n\t\t\t// If this.max > this.min then True\n\t\t\tif ((!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min < other.max then False\n\t\t\tif ((!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "private boolean isGreater(BigInt rhs) {\n if (isPositive && !rhs.isPositive) {\n // rhs is negative and this is positive\n return true;\n } else if (!isPositive && rhs.isPositive) {\n // rhs is positive and this is negative\n return false;\n }\n // The numbers have the same sign\n\n if (number.size() > rhs.number.size()) {\n // This is longer than the other, so this is bigger if it positive\n return isPositive;\n } else if (number.size() < rhs.number.size()) {\n // This is shorter than the other, so the other is bigger if this positive\n return !isPositive;\n }\n\n for (int i = number.size() - 1; i >= 0; --i) {\n if (number.get(i) > rhs.number.get(i)) {\n return isPositive;\n } else if (number.get(i) < rhs.number.get(i)) {\n return !isPositive;\n }\n }\n\n return false;\n }", "public boolean greaterP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) > (yRatio.numerator * x.denominator));\n }\n }\n }", "public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }", "public boolean Mayor(Object obj1, Object obj2){\n return (Double.parseDouble(obj1.toString()) > Double.parseDouble(obj2.toString()));\n }", "public boolean greaterThan(HeapNode h) {\n \n int t1 = this.getTreeNode().getBuilding().getTotalTimeTaken();\n int t2 = h.getTreeNode().getBuilding().getTotalTimeTaken();\n\n if ( t1 == t2) {\n int num1 = this.getTreeNode().getBuilding().getNum();\n int num2 = h.getTreeNode().getBuilding().getNum();\n return num1 > num2;\n }\n else {\n return t1 > t2;\n }\n }", "public boolean greaterThan(TextPos gtPos) {\n if (isLastPosition()) {\n return true;\n }\n return this.value > gtPos.value;\n }", "@Override\n public boolean isLess(Query e1, Query e2) {\n return this.compare(e1,e2) == this.LESS;\n }", "public static boolean isLarger(int first, int second) {\n if (first > second) {\n return true;\n } else {\n return false;\n }\n }", "private boolean less(Comparable a, Comparable b) {\n return a.compareTo(b) < 0;\n }", "@Override\n public int compare(Slope s1, Slope s2){\n if(s2.deno * s1.nomi - s1.deno * s2.nomi < 0) return -1;\n else if(s2.deno * s1.nomi - s1.deno * s2.nomi > 0) return 1;\n else return 0;\n }", "@Override\n\t\t\tpublic int compare(Sentence s1, Sentence s2) {\n\t\t\t\tif(s1.getScore() > s2.getScore()) return -1;\n\t\t\t\telse return 1;\n\t\t\t}", "@Override\n\t//o1 > o2 如果返回正数则 升序。\n\tpublic int compare(Subject o1, Subject o2) {\n\t\tint ret = 1;\n\t\tif(o1.getRatingNum() > o2.getRatingNum()){\n\t\t\t//键入中文的负号,竟然是一个运行时错误。\n\t\t\tret = -1;\n\t\t}else if(o1.getRatingNum() == o2.getRatingNum()){\n\t\t\tret = 0;\n\t\t}\n\t\treturn ret;\n\t\t//下一句有double类型的舍入误差。\n\t\t//return (int) (o1.getRatingNum() - o2.getRatingNum());\n\t}", "@Contract(pure = true)\r\n public boolean isGreaterThan(@NotNull Priority priority) {\r\n return !isLessThan(priority) && this != priority;\r\n }", "public boolean isOlderThan(long timeToCompareWith) {\n return (this.timestamp < timeToCompareWith);\n }", "@Override\n public int compare(Query e1, Query e2) {\n if (e1.getFreq() < e2.getFreq() ||\n (e1.getFreq() == e2.getFreq() && e1.getText().compareTo(e2.getText()) > 0))\n return this.LESS;\n else if (e1.getFreq() > e2.getFreq() ||\n (e1.getFreq() == e2.getFreq() && e1.getText().compareTo(e2.getText()) < 0))\n return this.GREATER;\n return this.EQUAL;\n }", "@Override\n public int compare(StoryInformation o1, StoryInformation o2) {\n if (o1.getOrder() > o2.getOrder())\n return 1;\n else\n return -1;\n }", "public int compare(Figure other){\n if(this.getArea()>other.getArea()){\n return 1; \n }\n if( this.getArea()<other.getArea()){\n return -1;\n }\n return 0;\n }", "@Override\n public int compareTo(Record o) {\n if (this.result - o.result > 0) {\n return 1;\n } else if (this.result - o.result < 0) {\n return -1;\n } else {\n // press time: the less, the better.\n if (this.pressTime < o.pressTime) {\n return 1;\n } else if (this.pressTime > o.pressTime) {\n return -1;\n } else {\n // total times: the more, the better.\n if (this.totalTimes > o.totalTimes) {\n return 1;\n } else if (this.totalTimes < o.totalTimes) {\n return -1;\n }\n return 0;\n }\n }\n }", "@Override\n public int compare(PostItem lhs, PostItem rhs) {\n int o1 = lhs.getOrder();\n int o2 = rhs.getOrder();\n return (o1>o2? -1 : (o1==o2 ? 0 : 1));\n }", "public int compareTo(EarthquakeMarker other) {\r\n\t\t//to return them from high to low put OTHER FIRST\r\n\t\t//to return from low to high, put THIS FIRST\r\n\t\treturn Float.compare(other.getMagnitude(),this.getMagnitude());\r\n\t}", "public int compareTo(Message other){\n if(time < other.time) {\n return -1;\n } else { // assume one comes before the other in all instances\n return 1;\n }\n }", "public int compare(LineString s1, LineString s2) {\n\t\t\t\tboolean m1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(s1.getNumPoints()-1));\n\t\t\t\tboolean m2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(s2.getNumPoints()-1));\n\t\t\t\tif (m1 != m2) {\n\t\t\t\t\treturn m1 ? -1 : 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//is start of extension moving away\n\t\t\t\t\tboolean a1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(1));\n\t\t\t\t\tboolean a2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(1));\n\t\t\t\t\tif (a1 != a2) {\n\t\t\t\t\t\treturn a1 ? -1 : 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t\t//prefer lines that end higher than they start\n\t\t\t\t\t\tboolean endsHigher1 = s1.getCoordinateN(0).getZ() <= s1.getCoordinateN(s1.getNumPoints()-1).getZ();\n\t\t\t\t\t\tboolean endsHigher2 = s2.getCoordinateN(0).getZ() <= s2.getCoordinateN(s2.getNumPoints()-1).getZ();\n\t\t\t\t\t\tif (endsHigher1 != endsHigher2) {\n\t\t\t\t\t\t\treturn endsHigher1 ? -1 : 1;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (s1.getNumPoints() == s2.getNumPoints()) {\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tdouble slope1 = (SpatialUtils.getAverageElevation(s1) - s1.getCoordinateN(0).getZ()) / s1.getLength();\n\t\t\t\t\t\t\t\tdouble slope2 = (SpatialUtils.getAverageElevation(s2) - s2.getCoordinateN(0).getZ()) / s2.getLength();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn slope1 > slope2 ? -1 \n\t\t\t\t\t\t\t\t\t\t : slope1 < slope2 ? 1 \n\t\t\t\t\t\t\t\t\t : 0;\n\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\treturn s1.getNumPoints() > s2.getNumPoints() ? -1 \n\t\t\t\t\t\t\t\t\t\t : s1.getNumPoints() < s2.getNumPoints() ? 1 \n\t\t\t\t\t\t\t\t\t : 0; \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n public int compareTo(Fastener that) {\n if (this.diameter > that.diameter) return +1;\n else if (this.diameter < that.diameter) return -1;\n else if (this.pitch > that.pitch) return +1;\n else if (this.pitch < that.pitch) return -1;\n else return 0;\n }", "@Override\n public int compare(MyPoint p1, MyPoint p2) {\n int thresh = 80;\n int xComp = Double.compare(p1.x, p2.x);\n //if they are on the same column, check who is the higher one.\n if (Math.abs(p1.x - p2.x) <= thresh) {\n return -Double.compare(p1.y, p2.y);\n } else\n return xComp;\n }", "public static boolean isGreater(BIGNUM num, BIGNUM num2) {\n\t\tif (num.E > num2.E) {\n\t\t\treturn true;\n\t\t} else if (num.E == num2.E) {\n\t\t\tif (num.NUM > num2.NUM) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public int compare(LineString s1, LineString s2) {\n\t\t\t\tboolean m1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(s1.getNumPoints()-1));\n\t\t\t\tboolean m2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(s2.getNumPoints()-1));\n\t\t\t\tif (m1 != m2) {\n\t\t\t\t\treturn m1 ? -1 : 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//is start of extension moving away\n\t\t\t\t\tboolean a1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(1));\n\t\t\t\t\tboolean a2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(1));\n\t\t\t\t\tif (a1 != a2) {\n\t\t\t\t\t\treturn a1 ? -1 : 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t\tif (s1.getNumPoints() == s2.getNumPoints()) {\n\t\t\t\t\t\t\ttry {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdouble fit1 = (avgElevationFitness.fitness(s1) - s1.getCoordinateN(0).getZ()) / s1.getLength();\n\t\t\t\t\t\t\t\tdouble fit2 = (avgElevationFitness.fitness(s2) - s2.getCoordinateN(0).getZ()) / s2.getLength();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (fit1<0) {\n\t\t\t\t\t\t\t\t\tfit1 = 1/fit1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (fit2<0) {\n\t\t\t\t\t\t\t\t\tfit2 = 1/fit2;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn fit1 > fit2 ? -1 \n\t\t\t\t\t\t\t\t\t\t : fit1 < fit2 ? 1 \n\t\t\t\t\t\t\t\t\t : 0;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch(IOException e) {\n\t\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn s1.getNumPoints() > s2.getNumPoints() ? -1 \n\t\t\t\t\t\t\t\t\t : s1.getNumPoints() < s2.getNumPoints() ? 1 \n\t\t\t\t\t\t\t\t : 0; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public final boolean greaterThanEquals() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue >= topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\t\t\t\tpublic int compare(twi arg0, twi arg1) {\n\t\t\t\t\tif (arg0.timestamp > arg1.timestamp) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else if (arg0.timestamp < arg1.timestamp) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "@Override\n\tpublic int compare(Assignment a1, Assignment a2) {\n\t\tif (a1.weight > a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight > a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight < a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight < a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight == a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight == a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight < a2.weight) return 1;\n\t\tif (a1.weight > a2.weight) return -1;\n\t\treturn 0;\n\t}", "public boolean lessP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) < (yRatio.numerator * x.denominator));\n }\n }\n }", "public int compare(Notifica o1, Notifica o2) {\n if (o1.data.after(o2.data)) {\n return 1;\n } else if (o2.data.after(o1.data)) {\n return -1;\n } else {\n return 0;\n }\n }", "public int compare(Photograph a, Photograph b) {\n int returnVal = a.getCaption().compareTo(b.getCaption());\n if (returnVal != 0) {\n return returnVal;\n }\n returnVal = b.getRating() - a.getRating();\n return returnVal; \n }", "public int compare(Skill s1,Skill s2){\n\t\t\t\t\treturn s1.getNumber()-s2.getNumber();\r\n\t\t\t\t}", "public int compare(Skill s1,Skill s2){\n\t\t\t\t\treturn s1.getNumber()-s2.getNumber();\r\n\t\t\t\t}", "@Override\n\tpublic int compare(GridPoint o1, GridPoint o2) {\n\t\treturn o1.getLesson()-o2.getLesson();\n\t}", "public static boolean almost_greater(double a, double b) {\n if (almost_equals(a,b)) {\n return false;\n }\n return a > b;\n }", "public boolean isAfter(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret > 0;\r\n\t}", "protected static boolean less(Comparable a, Comparable b) {\n\t\treturn a.compareTo(b) < 0;\r\n\t}", "@Override\n\t\t\tpublic int compare(Laptop lap1, Laptop lap2) {\n\n\t\t\t\tif (lap1.getRam() > lap2.getRam()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t} else if(lap1.getRam() == lap2.getRam()) {\n\t\t\t\t\treturn 0;\n\t\t\t\t} else {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}", "public static boolean almost_greater(double a, double b, long maxUlps) {\n if (almost_equals(a, b, maxUlps)) {\n return false;\n }\n return a > b;\n }", "public boolean isLarger(Dog b) {\n return getWeight() > b.getWeight();\n }", "public final boolean lessThanEquals() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue <= topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean greaterThan(String a, String b) {\n if (a==\"\" && b==\"\") {return false;}\n if (a==\"\") {return false;}\n if (b==\"\") {return true;}\n String[] as = a.split(\" \");\n String[] bs = b.split(\" \");\n int alen = as.length;\n int blen = bs.length; \n int[] als = new int[alen];\n int[] bls = new int[blen];\n for (int i=0; i<alen; i++) {als[i]=as[i].length();}\n for (int i=0; i<blen; i++) {bls[i]=bs[i].length();}\n Arrays.sort(als);\n Arrays.sort(bls);\n reverse(als);\n reverse(bls);\n boolean is=false;\n boolean done=false;\n for (int i=0; i<alen && i<blen && !done; i++) {\n //System.out.println(als[i]+\" \"+bls[i]+\" || \"+a+\" : \"+b);\n if (als[i]>bls[i]) {is=true; done=true;}\n if (als[i]<bls[i]) {is=false; done=true;}\n }\n return is;\n }", "public boolean isGreaterThan(int num) {\n System.out.println(\"Is your number greater than \" + num + \"? (y/n)\");\n String answer = this.reader.nextLine();\n if (answer.equals(\"y\")) {\n return true;\n } else {\n return false;\n }\n }", "@Override\n\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\tFloatWritable key1 = (FloatWritable) a;\n\t\tFloatWritable key2 = (FloatWritable) b;\n\n\t\t// Implemet sorting in descending order\n\t//\tint result = key1.get() < key2.get() ? 1 : key1.get() == key2.get() ? 0 : -1;\n\t\treturn -1 * key1.compareTo(key2);\n\t}", "public boolean isBelow( final double x, final double y ) {\n\t\t// is the line below the point?\n\t\treturn ( this.getY1() > y ) && ( this.getY2() > y );\n\t}", "public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }", "public boolean greaterThan(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.lessThan(this);\n return this.num()>obj2.num();\n }", "public boolean precedingOver (RuleSet RS1, RuleSet RS2) {\n \n return (this.getError(RS1) < this.getError(RS2));\n }", "public String compare(Pokemon poke2) {\n if (this.getHitPoints() != poke2.getHitPoints()) {\n String tempName = this.getHitPoints() > poke2.getHitPoints() ? this.getName() : poke2.getName();\n return tempName + \" has higher hit points\";\n }\n return \"Equal hit points\";\n }", "@Override\n\tpublic int compare(Person p1, Person p2) {\n\t\tif(p1.getWeight() >p2.getWeight()){\n\t\n\t\treturn 1;\n\t\t}\n\t\telse if(p1.getWeight()==p2.getWeight()){\n\t\t\tif(p1.getHeight() >p2.getHeight()){\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public boolean isLarger2(Dog b) {\n if (getWeight() > b.getWeight()) {\n return true;\n }\n return false;\n }", "@Override\n public int compare(Pen p1, Pen p2) {\n int r1 = p1.remaining();\n int r2 = p2.remaining();\n if(r1 == 1) r1 = 7;\n if(r2 == 1) r2 = 7;\n return Integer.compare(r1,r2);\n }", "public int compare(Key<Double, Double> a, Key<Double, Double> b){\n\t\t\tif (a.getFirst() < b.getFirst()){\n\t\t\t\treturn -1;\n\t\t\t} else if (a.getFirst() == b.getFirst()){\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}", "public boolean isAfter(Group3Date b) {\n\t\t\treturn compareTo(b) > 0;\n\t\t}", "public boolean HasGreaterUtility(DijkstraDistance d2, Method source)\n\t{\n\t\tdouble thisQuality = this.quality - source.getPosition().distance(this.position);\n\t\tdouble d2Quality = d2.quality - source.getPosition().distance(d2.position);\n\t\tboolean result = thisQuality>d2Quality;\n\t\tif (result)\n\t\t{\n\t\t\tMain.Message(debugFlag, \"[DijkstraDistance] Utility \" + source.label + \"-\" + nodeName + \" (\" + thisQuality + \")>\"\n\t\t\t\t\t+ source.label + \"-\" + d2.nodeName + \"(\" + d2Quality + \")\");\n\t\t}\n\t\treturn result;\n\t}", "public boolean inOrder(Data other){\n\t\treturn data.compareTo(other.getData()) <= 0; \n\t}", "public boolean greater(int firstIndex, int secondIndex){\n\t\tvalidateHeapIndex(firstIndex);\n\t\tvalidateHeapIndex(secondIndex);\n\t\t\n\t\tint cmp = keys.get(heap[firstIndex]).compareTo(keys.get(heap[secondIndex]));\n\t\treturn (cmp > 0);\n\t}", "public int compare(Person a, Person b){\n int aWeight = (int)a.getWeight();\n int bWeight = (int)b.getWeight();\n return aWeight - bWeight;\n }", "public static boolean almost_less(double a, double b, long maxUlps) {\n if (almost_equals(a, b, maxUlps)) {\n return false;\n }\n return a < b;\n }", "public boolean valueLargerThan(Money other);", "public int compare(WritableComparable a, WritableComparable b) {\n\t\treturn -super.compare(a, b);\n\t}", "public boolean greaterEqualP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) >= (yRatio.numerator * x.denominator));\n }\n }\n }", "public String greaterTime(String time2) {\r\n\r\n\t\tint compare = _time.compareTo(time2);\r\n\r\n\t\tif (compare > 0) {\r\n\t\t\treturn _time;\r\n\t\t}\r\n\r\n\t\telse if (compare < 0) {\r\n\t\t\treturn time2;\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\treturn _time; // If both the times are the same, return the first time as the greater time in order for the overlap checking to function properly \r\n\t\t}\r\n\t}", "public int compare(Edge a, Edge b) {\n // for ascending\n return a.weight - b.weight;\n\n // for descending\n // return b.weight - a.weight;\n }", "public boolean greaterThan(int gtPos) {\n if (isLastPosition()) {\n return true;\n }\n return this.value > gtPos;\n }", "public int compareTo(Message other) {\n \tif(date.after(other.date)){\n\t\treturn 1;\n \t}\n \telse{\n\t\treturn -1;\n \t}\n }", "public int compare(SearchNode sn1, SearchNode sn2) {\n int hp1 = sn1.dist + sn1.board.manhattan();\n int hp2 = sn2.dist + sn2.board.manhattan();\n \n if (hp1 > hp2) return 1;\n if (hp1 < hp2) return -1;\n return 0;\n }", "@Override\n\t\t\tpublic int compare(LiveAlarm object1, LiveAlarm object2) {\n\t\t\t\tlong start1 = object1.startT;\n\t\t\t\tlong start2 = object2.startT;\n\t\t\t\t\n\t\t\t\tif (start1 < start2) return -1;\n\t\t\t\tif (start1 == start2) return 0;\n\t\t\t\tif (start1 > start2) return 1;\n\t\t\t\t\n\t\t\t\treturn 0;//to suppress the compiler error;\n\t\t\t}", "@Override\n\tpublic int compareTo(Tile another) {\n\n\t\tfloat diference = (distanceToStart + distanceToEnd) - (another.distanceToStart + another.distanceToEnd);\n\n\t\tif( diference < 0 )\n\t\t\treturn -1;\n\t\telse if ( diference > 0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "@Override\n\t\tpublic int compare(Task o1, Task o2) {\n\t\t\tif(o1.numberLeft > o2.numberLeft)return -1;\n\t\t\telse if(o1.numberLeft < o2.numberLeft)return 1;\n\t\t\telse return 0;\n\t\t}", "private static boolean less(Comparable p, Comparable q) {\n return p.compareTo(q) < 0;\n }", "public boolean overlapsWith (Stick other)\r\n {\r\n return Math.max(getStart(), other.getStart()) < Math.min(\r\n getStop(),\r\n other.getStop());\r\n }", "public AbstractBoolean less(Interval other){\n\t\ttry {\n\t\t\t// If this.max < this.min then True\n\t\t\tif ((!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min > other.max then False\n\t\t\tif ((!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "public boolean Compare(int num1 , int num2){\n\t\tboolean retval = false;\n\t\tint aux02 = num2 + 1 ;\n\t\tif (num1 < num2){\n\t\t\t retval = false ;\n\t\t}\n\t\telse{\n\t\t\tif (!(num1 < aux02)){\n\t\t\t\tretval = false ;\n\t\t\t} \n\t\t\telse {\n\t\t\t\tretval = true ;\n\t\t\t} \n\t\t}\n\t\treturn retval ;\n }", "public static boolean almost_less(double a, double b) {\n if (almost_equals(a, b)) {\n return false;\n }\n return a < b;\n }", "private boolean checkPrice(Order otherOrder) {\n\t\tif (getDirection() == Direction.ASK && otherOrder.getDirection() == Direction.BID\n\t\t\t\t&& getPrice() <= otherOrder.getPrice()) {\n\t\t\treturn true;\n\t\t}\n\t\tif (getDirection() == Direction.BID && otherOrder.getDirection() == Direction.ASK\n\t\t\t\t&& getPrice() >= otherOrder.getPrice()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean overlap(AbstractNote other) {\n return this.type == other.type &&\n this.octave == other.octave;\n }", "private int Compare(ResultsClass lhs, ResultsClass rhs) {\n if (lhs.bodyPart > rhs.bodyPart) {\n return 1;\n } else if (lhs.bodyPart > rhs.bodyPart) {\n return -1;\n } else {\n return 0;\n }\n }", "@Override\n public int compareTo(LineItem other) {\n return (int)(other.getCost() - this.getCost()); // Decreasing order\n }", "@Override\n\t\tpublic int compareTo(Event other) {\n\t\t\tif (this.time < other.time + 1.0e-9) return -1;\n\t\t\telse if (this.time > other.time - 1.0e-9) return 1;\n\t\t\telse {\n\t\t\t\tif(this.active > other.active) return 1;\n\t\t\t\telse return -1;\n\t\t\t}\n\t\t}", "private boolean greater(int i, int j) {\r\n\r\n return compare(pq[i], pq[j]) > 0;\r\n\r\n }", "@Override\n\t\t\tpublic int compare(Edge o1, Edge o2) {\n\t\t\t\tif (o1.weight < o2.weight)\n\t\t\t\t\treturn -1;\n\t\t\t\telse if (o1.weight > o2.weight)\n\t\t\t\t\treturn 1;\n\t\t\t\telse\n\t\t\t\t\treturn 0;\n\t\t\t}", "@Override\n public int compareTo(Score other) {\n return (int) (100 * (this.getAsDouble() - other.getAsDouble()));\n }", "@Test\n\tpublic void lessThanTest() {\n\t\tassertTrue(x.less(y));\n\t\tassertFalse(y.less(x));\n\t}", "public boolean lessThan(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.greaterThan(this);\n return this.num()<obj2.num();\n }", "@Override\r\n\tpublic int compare(WaterBottle o1, WaterBottle o2) {\n\t\treturn o1.weight-o2.weight;\r\n\t}" ]
[ "0.6807285", "0.65566033", "0.6414148", "0.62786204", "0.62553245", "0.6206004", "0.6142138", "0.60536927", "0.6026484", "0.59968483", "0.5956442", "0.5899797", "0.58954084", "0.57201934", "0.56815815", "0.56456935", "0.56356746", "0.56277454", "0.56207806", "0.56170493", "0.56145173", "0.5590638", "0.55826056", "0.55710995", "0.5565735", "0.54940796", "0.5488952", "0.5482304", "0.54814523", "0.5431639", "0.5429797", "0.5422529", "0.5401793", "0.54006094", "0.539001", "0.5370772", "0.5368437", "0.53681874", "0.5365166", "0.53617233", "0.5356755", "0.53565574", "0.5352056", "0.53514415", "0.5341612", "0.5337037", "0.5337037", "0.5335619", "0.53349453", "0.53325933", "0.53321636", "0.53130955", "0.5295994", "0.5291772", "0.5290171", "0.52855897", "0.5285221", "0.5285034", "0.5283593", "0.5278889", "0.5275491", "0.5269456", "0.5268628", "0.525323", "0.5247021", "0.52338517", "0.52312857", "0.5229432", "0.52261645", "0.5221995", "0.5221341", "0.5217707", "0.5214052", "0.520299", "0.51976556", "0.5191548", "0.5188501", "0.51812977", "0.5166656", "0.5162596", "0.515501", "0.5154298", "0.515339", "0.5150134", "0.51406956", "0.51346236", "0.5130073", "0.5128545", "0.5128358", "0.5127454", "0.51266426", "0.51234174", "0.5121084", "0.5120429", "0.5116802", "0.51153255", "0.5114733", "0.5112403", "0.51123875", "0.5110314" ]
0.74659324
0
Checks if this note is lower than the other note.
public boolean lessThan(Note otherNote) { return getMidiNumber() < otherNote.getMidiNumber(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected boolean lessThan(final Entry hitA, final Entry hitB) {\n\t\t\tassert hitA != hitB;\n\t\t\tassert hitA.mSlot != hitB.mSlot;\n\n\t\t\tfinal int c = mOneReverseMul * mFirstComparator.compare(hitA.mSlot, hitB.mSlot);\n\t\t\tif (c != 0) \n\t\t\t\treturn c > 0;\n\n\t\t\t\t// avoid random sort order that could lead to duplicates (bug #31241):\n\t\t\t\treturn hitA.getDoc() > hitB.getDoc();\n\t\t}", "@Override\n public boolean isLess(Query e1, Query e2) {\n return this.compare(e1,e2) == this.LESS;\n }", "public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }", "private boolean less(Comparable a, Comparable b) {\n return a.compareTo(b) < 0;\n }", "protected static boolean less(Comparable a, Comparable b) {\n\t\treturn a.compareTo(b) < 0;\r\n\t}", "final boolean isLessThan(final GbofId other){\r\n if (source_.is_less_than(other.source()) ) return true;\r\n if (other.source().is_less_than(source_)) return false;\r\n\r\n if (creation_ts_.isLessThan(other.creation_ts())) return true;\r\n if (creation_ts_.isGreaterThan(other.creation_ts())) return false;\r\n\r\n if (is_fragment_ && !other.is_fragment_) return true;\r\n if (!is_fragment_ && other.is_fragment_) return false;\r\n \r\n if (is_fragment_) {\r\n if (frag_length_ < other.frag_length_) return true;\r\n if (other.frag_length_ < frag_length_) return false;\r\n\r\n if (frag_offset_ < other.frag_offset_) return true;\r\n if (other.frag_offset_ < frag_offset_) return false;\r\n }\r\n\r\n return false; // all equal\r\n }", "public static boolean less_or_equal(String s1, String s2) {\n if (s1.compareTo(s2) >= 0) return true;\n //f.pln(\" Util::lessThan: s1 = \"+s1+\" s2 = \"+s2+\" rtn = \"+rtn);\n return false;\n }", "public boolean isBefore(Book b1, Book b2);", "public boolean precedingOver (RuleSet RS1, RuleSet RS2) {\n \n return (this.getError(RS1) < this.getError(RS2));\n }", "public boolean lessThan(TextPos ltPos) {\n if (isLastPosition()) {\n return false;\n }\n return this.value < ltPos.value;\n }", "public AbstractBoolean less(Interval other){\n\t\ttry {\n\t\t\t// If this.max < this.min then True\n\t\t\tif ((!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min > other.max then False\n\t\t\tif ((!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "public boolean isLessThan(StringNum a, StringNum b) {\n\t\tif(a.getNumber().length() > b.getNumber().length()) {\n\t\t\treturn false;\n\t\t}\n\t\telse if(a.getNumber().length() < b.getNumber().length()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tfor(int i = 0; i < a.getNumber().length(); i++) {\n\t\t\t\tif(Character.getNumericValue(a.getNumber().charAt(i)) < Character.getNumericValue(b.getNumber().charAt(i))) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse if(Character.getNumericValue(a.getNumber().charAt(i)) > Character.getNumericValue(b.getNumber().charAt(i))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isLower(DateTime dt) {\n return Long.parseLong(this.vStamp) < Long.parseLong(dt.getStamp());\r\n }", "public boolean isBefore(final String date1, final String date2) {\n return compare(date1, date2) < 0;\n }", "public boolean isBefore(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret < 0;\r\n\t}", "@Override\n public Note getLowestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note lowestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.isLower(lowestNote)) {\n lowestNote = currentNote;\n }\n }\n if (lowestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return lowestNote;\n }", "@Override\n public int compare(Slope s1, Slope s2){\n if(s2.deno * s1.nomi - s1.deno * s2.nomi < 0) return -1;\n else if(s2.deno * s1.nomi - s1.deno * s2.nomi > 0) return 1;\n else return 0;\n }", "@Test\n\tpublic void lessThanTest() {\n\t\tassertTrue(x.less(y));\n\t\tassertFalse(y.less(x));\n\t}", "private static boolean less(Comparable p, Comparable q) {\n return p.compareTo(q) < 0;\n }", "public int compare(LineString s1, LineString s2) {\n\t\t\t\tboolean m1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(s1.getNumPoints()-1));\n\t\t\t\tboolean m2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(s2.getNumPoints()-1));\n\t\t\t\tif (m1 != m2) {\n\t\t\t\t\treturn m1 ? -1 : 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//is start of extension moving away\n\t\t\t\t\tboolean a1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(1));\n\t\t\t\t\tboolean a2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(1));\n\t\t\t\t\tif (a1 != a2) {\n\t\t\t\t\t\treturn a1 ? -1 : 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t\t//prefer lines that end higher than they start\n\t\t\t\t\t\tboolean endsHigher1 = s1.getCoordinateN(0).getZ() <= s1.getCoordinateN(s1.getNumPoints()-1).getZ();\n\t\t\t\t\t\tboolean endsHigher2 = s2.getCoordinateN(0).getZ() <= s2.getCoordinateN(s2.getNumPoints()-1).getZ();\n\t\t\t\t\t\tif (endsHigher1 != endsHigher2) {\n\t\t\t\t\t\t\treturn endsHigher1 ? -1 : 1;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (s1.getNumPoints() == s2.getNumPoints()) {\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tdouble slope1 = (SpatialUtils.getAverageElevation(s1) - s1.getCoordinateN(0).getZ()) / s1.getLength();\n\t\t\t\t\t\t\t\tdouble slope2 = (SpatialUtils.getAverageElevation(s2) - s2.getCoordinateN(0).getZ()) / s2.getLength();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn slope1 > slope2 ? -1 \n\t\t\t\t\t\t\t\t\t\t : slope1 < slope2 ? 1 \n\t\t\t\t\t\t\t\t\t : 0;\n\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\treturn s1.getNumPoints() > s2.getNumPoints() ? -1 \n\t\t\t\t\t\t\t\t\t\t : s1.getNumPoints() < s2.getNumPoints() ? 1 \n\t\t\t\t\t\t\t\t\t : 0; \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public boolean greaterThan(Note otherNote) {\n\t\treturn getMidiNumber() > otherNote.getMidiNumber();\n\t}", "private static boolean lt(Comparable lhs, Comparable rhs) \n {\n return lhs.compareTo(rhs) < 0;\n }", "public boolean isBefore(Group3Date b) {\n\t\t\treturn compareTo(b) < 0;\n\t\t}", "private static boolean less(Student v, Student w) {\r\n if (v == w) return false; // optimization when reference equals\r\n return v.compareTo(w) < 0;\r\n }", "private boolean iflt(PyObject x, PyObject y) {\n \n if (this.compare == null) {\n /* NOTE: we rely on the fact here that the sorting algorithm\n only ever checks whether k<0, i.e., whether x<y. So we\n invoke the rich comparison function with _lt ('<'), and\n return -1 when it returns true and 0 when it returns\n false. */\n return x._lt(y).__nonzero__();\n }\n \n PyObject ret = this.compare.__call__(x, y);\n \n if (ret instanceof PyInteger) {\n int v = ((PyInteger)ret).getValue();\n return v < 0;\n }\n throw Py.TypeError(\"comparision function must return int\");\n }", "private static boolean less(Comparable v, Comparable w) {\n return v.compareTo(w) < 0;\n }", "private static boolean less(Comparable v, Comparable w) {\n return v.compareTo(w) < 0;\n }", "private static boolean less(Comparable v, Comparable w) {\n return v.compareTo(w) < 0;\n }", "public boolean smallerThan(int a, int b)\n\t{\n\t\tif (data[a].compareTo(data[b]) < 0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Override\n public boolean lessThan(Object o1, Object o2) {\n return ((MI)o1).value < ((MI)o2).value;\n }", "public static boolean less (int a, int b, String s) {\n int N = s.length();\n String v;\n String w;\n \n // construct suffix to compare\n if (a > 0) \n v = s.substring(a,N) + s.substring(0, a);\n else\n v = s.substring(a,N);\n \n // construct suffix to compare\n if (b > 0) \n w = s.substring(b,N) + s.substring(0, b);\n else\n w = s.substring(b,N);\n \n // is v less than v?\n if (v.compareTo(w) < 0)\n return true;\n else \n return false;\n }", "public boolean hasLower(){\n return (alg.hasLower(input.getText().toString()));\n }", "private static boolean less(Comparable v, Comparable w) {\n return (v.compareTo(w) < 0);\n }", "private static boolean less(Comparable v, Comparable w)\n\t{\n\t\tif(v.compareTo(w)<0) {\n\t\t\treturn true; \n\t\t}\n\t\treturn false; \n\t}", "public boolean isBefore(Date b) {\r\n\t\treturn compareTo(b) < 0;\r\n\t}", "public final boolean lessThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue < topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public int compare(LineString s1, LineString s2) {\n\t\t\t\tboolean m1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(s1.getNumPoints()-1));\n\t\t\t\tboolean m2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(s2.getNumPoints()-1));\n\t\t\t\tif (m1 != m2) {\n\t\t\t\t\treturn m1 ? -1 : 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//is start of extension moving away\n\t\t\t\t\tboolean a1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(1));\n\t\t\t\t\tboolean a2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(1));\n\t\t\t\t\tif (a1 != a2) {\n\t\t\t\t\t\treturn a1 ? -1 : 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t\tif (s1.getNumPoints() == s2.getNumPoints()) {\n\t\t\t\t\t\t\ttry {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdouble fit1 = (avgElevationFitness.fitness(s1) - s1.getCoordinateN(0).getZ()) / s1.getLength();\n\t\t\t\t\t\t\t\tdouble fit2 = (avgElevationFitness.fitness(s2) - s2.getCoordinateN(0).getZ()) / s2.getLength();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (fit1<0) {\n\t\t\t\t\t\t\t\t\tfit1 = 1/fit1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (fit2<0) {\n\t\t\t\t\t\t\t\t\tfit2 = 1/fit2;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn fit1 > fit2 ? -1 \n\t\t\t\t\t\t\t\t\t\t : fit1 < fit2 ? 1 \n\t\t\t\t\t\t\t\t\t : 0;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch(IOException e) {\n\t\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn s1.getNumPoints() > s2.getNumPoints() ? -1 \n\t\t\t\t\t\t\t\t\t : s1.getNumPoints() < s2.getNumPoints() ? 1 \n\t\t\t\t\t\t\t\t : 0; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public boolean lessP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) < (yRatio.numerator * x.denominator));\n }\n }\n }", "public static boolean lessThan(int[] post1, int[] post2) {\n // Comparison test\n if (differential(post1) < differential(post2)) {\n return true;\n }\n return false;\n }", "@Override\r\n\tpublic boolean isLessThan(Node node) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic int compareTo(Tile another) {\n\n\t\tfloat diference = (distanceToStart + distanceToEnd) - (another.distanceToStart + another.distanceToEnd);\n\n\t\tif( diference < 0 )\n\t\t\treturn -1;\n\t\telse if ( diference > 0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public int compareTo(LyricSentence o) {\n if (this.milliSec < o.milliSec) {\n return -1; // earlier than the latter one\n } else if (this.milliSec > o.milliSec) {\n return 1; // the latter one is earlier\n } else {\n return 0; // equals\n }\n }", "protected static boolean isBefore(String first, String second, String... values) {\n List<String> valueList = Arrays.asList(values);\n return valueList.indexOf(first) < valueList.indexOf(second);\n }", "@Override\n\t\t\tpublic int compare(LiveAlarm object1, LiveAlarm object2) {\n\t\t\t\tlong start1 = object1.startT;\n\t\t\t\tlong start2 = object2.startT;\n\t\t\t\t\n\t\t\t\tif (start1 < start2) return -1;\n\t\t\t\tif (start1 == start2) return 0;\n\t\t\t\tif (start1 > start2) return 1;\n\t\t\t\t\n\t\t\t\treturn 0;//to suppress the compiler error;\n\t\t\t}", "@Override\n public int compare(Query e1, Query e2) {\n if (e1.getFreq() < e2.getFreq() ||\n (e1.getFreq() == e2.getFreq() && e1.getText().compareTo(e2.getText()) > 0))\n return this.LESS;\n else if (e1.getFreq() > e2.getFreq() ||\n (e1.getFreq() == e2.getFreq() && e1.getText().compareTo(e2.getText()) < 0))\n return this.GREATER;\n return this.EQUAL;\n }", "@Override\n\t\t\tpublic int compare(Sentence s1, Sentence s2) {\n\t\t\t\tif(s1.getScore() > s2.getScore()) return -1;\n\t\t\t\telse return 1;\n\t\t\t}", "@Override\n\t//o1 > o2 如果返回正数则 升序。\n\tpublic int compare(Subject o1, Subject o2) {\n\t\tint ret = 1;\n\t\tif(o1.getRatingNum() > o2.getRatingNum()){\n\t\t\t//键入中文的负号,竟然是一个运行时错误。\n\t\t\tret = -1;\n\t\t}else if(o1.getRatingNum() == o2.getRatingNum()){\n\t\t\tret = 0;\n\t\t}\n\t\treturn ret;\n\t\t//下一句有double类型的舍入误差。\n\t\t//return (int) (o1.getRatingNum() - o2.getRatingNum());\n\t}", "public boolean isBefore(Date that) {\n return compareTo(that) < 0;\n }", "@Contract(pure = true)\r\n public abstract boolean isLessThan(@NotNull Priority priority);", "public boolean isAbove( final double x, final double y ) {\n\t\t// is the line above the point?\n\t\treturn ( this.getY1() < y ) && ( this.getY2() < y );\n\t}", "public double lower()\n\t{\n\t\treturn _dblLower;\n\t}", "public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }", "public boolean lessThan(MyDate other){\t\n \t\tif (other.year > year){\n \t\t\treturn true;\n \t\t}\n \t\telse if (other.year == year){\n \t\t\tif (other.month > month){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse if (other.month == month){\n \t\t\t\tif (other.day > day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn false;\n\t}", "public boolean lessThan(int ltPos) {\n if (isLastPosition()) {\n return false;\n }\n return this.value < ltPos;\n }", "public static State min(State a, State b){\n return a.score <= b.score ? a: b;\n }", "public static boolean almost_less(double a, double b) {\n if (almost_equals(a, b)) {\n return false;\n }\n return a < b;\n }", "public boolean lessThan(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.greaterThan(this);\n return this.num()<obj2.num();\n }", "public Boolean before(Event event) {\n int result = this.compareTo(event);\n if (result < 0) return true;\n return false;\n }", "private boolean isSmallLexi(String curr, String ori) {\n if (curr.length() != ori.length()) {\n return curr.length() < ori.length();\n }\n for (int i = 0; i < curr.length(); i++) {\n if (curr.charAt(i) != ori.charAt(i)) {\n return curr.charAt(i) < ori.charAt(i);\n }\n }\n return true;\n }", "protected boolean less(int i, int j)\n {\n return pq[i].compareTo(pq[j]) < 0;\n }", "public boolean isBefore(People p){\n\t\t//If P is higher age\n\t\tif( this.age==7 && p.age!=7)\n\t\t\treturn true;\n\t\t//If current is professor\n\t\tif(this.age!=7 && this.age!=8){\n\t\t\treturn p.age ==8;\n\t\t}\n\t\t//If p is professor\n\t\tif(p.age!=7 && p.age!=8){\n\t\t\treturn this.age ==7;\n\t\t}\n\t\t//If current is 8\n\t\tif(this.age==8 && p.age==7){\n\t\t\treturn false;\n\t\t}\n\t\t//Same age - age 7\n\t\tif(this.age== p.age && this.age==7){\n\t\t\treturn this.height <= p.height;\n\t\t}\n\t\tif(this.age== p.age && this.age==8){\n\t\t\treturn this.height >= p.height;\n\t\t}\n\t\tSystem.out.println(\"Some Error!!\"+this.age+\" \"+this.height+\" \"+p.age+\" \"+p.height);\n\t\treturn false;\n\t}", "public static Object lt(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) < 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) < 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in lt\");\n\t}", "@Override\n public int compareTo(SpellingError se) {\n int me = getStartPosition().getOffset();\n int other = se.getStartPosition().getOffset();\n if(me == other) return 0;\n if(me < other) return -1;\n return 1;\n }", "public Point getLowerPoint() {\n return lower;\n }", "@Override\n\tpublic int compare(GridPoint o1, GridPoint o2) {\n\t\treturn o1.getLesson()-o2.getLesson();\n\t}", "public int compareTo(EarthquakeMarker other) {\r\n\t\t//to return them from high to low put OTHER FIRST\r\n\t\t//to return from low to high, put THIS FIRST\r\n\t\treturn Float.compare(other.getMagnitude(),this.getMagnitude());\r\n\t}", "@Override\n public int compare(final Triangle t1, final Triangle t2) {\n final Vec4 min1 = t1.getMin();\n final Vec4 min2 = t2.getMin();\n return Double.compare(min1.get(splitType), min2.get(splitType));\n }", "public int compareTo(PointDouble other) { // override less than operator\n if (Math.abs(x - other.x) > EPS) // useful for sorting\n return (int)Math.ceil(x - other.x); // first: by x-coordinate\n else if (Math.abs(y - other.y) > EPS)\n return (int)Math.ceil(y - other.y); // second: by y-coordinate\n else\n return 0; // they are equal\n }", "boolean hasLt();", "@Override\r\n public int compareTo( Trader other )\r\n {\r\n return screenName.toLowerCase().compareTo( other.screenName.toLowerCase() );\r\n }", "final boolean operator_less(final Sample x) {\n for (int i = 0; i < positive_features.size(); i++) {\n if (i >= x.positive_features.size()) return false;\n int v0 = positive_features.get(i);\n int v1 = x.positive_features.get(i);\n if (v0 < v1) return true;\n if (v0 > v1) return false;\n }\n return false;\n }", "public boolean priorTo(OperationOption other) {\n if (Double.compare(priority, other.priority) < 0)\n return true;\n\n if (Double.compare(priority, other.priority) > 0)\n return false;\n\n return operation.getJob().getId() < other.operation.getJob().getId();\n }", "public int compareTo(Message other){\n if(time < other.time) {\n return -1;\n } else { // assume one comes before the other in all instances\n return 1;\n }\n }", "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n \t return false;\n \t}\n \treturn (text[i0+n]<text[i1+n]);\n }", "public static boolean almost_less(double a, double b, long maxUlps) {\n if (almost_equals(a, b, maxUlps)) {\n return false;\n }\n return a < b;\n }", "public static boolean onHorizontalLine(Point p1, Point p2) {\n return (p1.getY() - p2.getY()) == 0;\n }", "private boolean isDFltdFMin()\n {\n double fLow = (x2.getF(0) < x1.getF(0)) ? x2.getF(0) : x1.getF(0);\n double dF = Math.abs(fLowBor-fLow);\n return (dF < dFMin) ? true : false;\n }", "@Override\n public int compare(Sentence s1, Sentence s2) {\n if (s1.getIndex() < s2.getIndex()) return -1;\n else if (s1.getIndex() > s2.getIndex()) return 1;\n return 0;\n }", "private static <Key extends Comparable<Key>> boolean less(Key v, Key w) \n\t{\n\t\treturn (v.compareTo (w) < 0);\n\t}", "public boolean isLessThan(final Magnitude timeStamp) {\n this.ensureAtLeastPartResolved();\n if (timeStamp instanceof DateTime) {\n return !isNull && !timeStamp.isEmpty() && date.before(((DateTime) timeStamp).date);\n } else {\n throw new IllegalArgumentException(\"Parameter must be of type Time\");\n }\n }", "public void setLowerPoint(Point lower) {\n this.lower = lower;\n }", "public boolean lessThanOrEqual(TextPos ltPos) {\n if (isLastPosition()) {\n return false;\n }\n return this.value <= ltPos.value;\n }", "public boolean leq(Inatnum a) throws Exception {//purpose: to find if an innatum is less than our equal to another inatnum\n\t\tif((this.isZero() &&a.isZero())==true) {return true;}//if our this value is zero and our a value is zero then return true\n\t\tif((this.isZero())==false&&a.isZero()==true) {return false;}// if our this value isnt zero and our a value is then return false\n\t\tif((this.isZero())==true&&a.isZero()==false) {return true;}// if our this value is zero and our a value isnt then return true\n\t\telse {return this.pred().leq(a.pred());\t}}", "@Override\r\n\tpublic int compare(BBEntity arg0, BBEntity arg1) {\n\t\treturn arg0.getStart()-arg1.getStart();\r\n\t}", "public static boolean isTimeBefore(String time1, String time2, DateFormat dateFormat)\n\t{\n\t\ttime1 = time1.trim();\n\t\ttime2 = time2.trim();\n\t\ttry\n\t\t{\n\t\t\treturn dateFormat.parse(time1).before(dateFormat.parse(time2));\n\t\t}\n\t\tcatch (ParseException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean a_lt_b(BigDecimal a, BigDecimal b) {\n\t\tif (a == null || b == null) {\n\t\t\tthrow new RuntimeException(\"a_lt_b参数错误,a:[\" + a + \"],b:[\" + b + \"]\");\n\t\t}\n\t\tint result = a.compareTo(b);\n\t\tboolean c = result == -1;\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tLOG.debug(\"[\" + a + \" < \" + b + \" is \" + c + \"]\");\n\t\t}\n\t\treturn c;\n\t}", "@Override\n\t\t\tpublic int compare(Interval o1, Interval o2) {\n\t\t\t\treturn o1.start-o2.start;\n\t\t\t}", "@Test\n public void testCompareToLess() {\n assertTrue(o1.compareTo(o_test) < 0);\n }", "private boolean expandsBefore(\n RolapCalculation calc1,\n RolapCalculation calc2)\n {\n final int solveOrder1 = calc1.getSolveOrder();\n final int solveOrder2 = calc2.getSolveOrder();\n if (solveOrder1 > solveOrder2) {\n return true;\n } else {\n return solveOrder1 == solveOrder2\n && calc1.getHierarchyOrdinal()\n < calc2.getHierarchyOrdinal();\n }\n }", "public int compare(Key<Double, Double> a, Key<Double, Double> b){\n\t\t\tif (a.getFirst() < b.getFirst()){\n\t\t\t\treturn -1;\n\t\t\t} else if (a.getFirst() == b.getFirst()){\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}", "public static boolean isTimeBefore(String time1, String time2)\n\t{\n\t\treturn isTimeBefore(time1, time2, getDateTimeFormat());\n\t}", "@Override\r\n\t\t\t\tpublic int compare(twi arg0, twi arg1) {\n\t\t\t\t\tif (arg0.timestamp > arg1.timestamp) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else if (arg0.timestamp < arg1.timestamp) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public Boolean compare(Highlight theOtherHighlight){\n return myText.equals(theOtherHighlight.getText());\n }", "public boolean isBefore(@NonNull final CalendarDay other) {\n return date.isBefore(other.getDate());\n }", "@Override\n\t\t\t\t\t\tpublic int compare(SearchItem lhs, SearchItem rhs) {\n\t\t\t\t\t\t\tString first = lhs.get_text().toString();\n\t\t\t\t\t\t\tString sec = rhs.get_text().toString();\n\n\t\t\t\t\t\t\tint i1 = first.indexOf(constraint.toString());\n\t\t\t\t\t\t\tint i2 = sec.indexOf(constraint.toString());\n\n\t\t\t\t\t\t\treturn (i1 < i2) ? -1 : (i1 == i2) ? 0 : 1;\n\t\t\t\t\t\t}", "@Override\n public int compareTo(@Nonnull Letter other) {\n return ComparisonChain.start().compare(this.getContent(), other.getContent()).result();\n }", "public boolean isOlderThan(long timeToCompareWith) {\n return (this.timestamp < timeToCompareWith);\n }", "public boolean isLargerThan(Rectangle other){\n\t\treturn this.getArea() > other.getArea();\n\t\n\t}", "public boolean lessThan(int y, int z){\n\t\treturn queueArray[y][0].compareTo(queueArray[z][0]) < 0;\n\t}", "private boolean isHorizantalLines2Points(Point p1, Point p2) {\n\n if (abs(p1.y - p2.y ) < 70 && p1.x != p2.x) {\n return true;\n }\n return false;\n }" ]
[ "0.6800438", "0.63638425", "0.61836106", "0.6167391", "0.6118105", "0.6040769", "0.59759206", "0.593314", "0.5920097", "0.58943254", "0.5868139", "0.5867911", "0.5811964", "0.5795206", "0.57581025", "0.57573646", "0.5720193", "0.57103384", "0.5705126", "0.5703642", "0.57031155", "0.5665924", "0.55864006", "0.5573704", "0.55205935", "0.5504058", "0.5504058", "0.5504058", "0.5493111", "0.54906726", "0.5477712", "0.5472146", "0.5468695", "0.54661", "0.5454547", "0.5449639", "0.54404277", "0.54334486", "0.54257387", "0.5423943", "0.54130214", "0.54114276", "0.5390838", "0.5387243", "0.5333943", "0.53144217", "0.5301654", "0.52990884", "0.5295119", "0.5290241", "0.5287492", "0.5274975", "0.5273436", "0.5260881", "0.5259651", "0.5224796", "0.5204833", "0.5180339", "0.5178824", "0.51778877", "0.5169653", "0.5168331", "0.5162975", "0.5161166", "0.51593876", "0.5152131", "0.5146936", "0.5139367", "0.5129648", "0.5125948", "0.5124141", "0.5107387", "0.5106917", "0.51005244", "0.50982785", "0.5093237", "0.5093199", "0.5091702", "0.5091023", "0.50825596", "0.5074004", "0.5073866", "0.5072129", "0.5071381", "0.5058164", "0.5054402", "0.5054153", "0.50491583", "0.5041405", "0.5038698", "0.5036054", "0.5032418", "0.503213", "0.5031783", "0.5023014", "0.5022657", "0.5021165", "0.50176746", "0.5014922", "0.50120366" ]
0.7528134
0
Finds the MIDI number
public int getMidiNumber() { return midiNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMidiNum() {\n\t\treturn midiNum % 12;\n\t}", "String getMidiTarget();", "public static int getNote(MidiMessage mes){\r\n\t\tif (!(mes instanceof ShortMessage))\r\n\t\t\treturn 0;\r\n\t\tShortMessage mes2 = (ShortMessage) mes;\r\n\t\tif (mes2.getCommand() != ShortMessage.NOTE_ON)\r\n\t\t\treturn 0;\t\r\n\t\tif (mes2.getData2() ==0) return -mes2.getData1();\r\n\t\treturn mes2.getData1();\r\n\t}", "public static int getNotePosition(Byte midiByte) {\n int shifted = midiByte.intValue() - Constants.MIDI_OFFSET;\n int octave = shifted / 12;\n int keyIndex = shifted % 12;\n return ((7 * octave) * wkInterval + offsetMap[keyIndex]); //hardcoded\n }", "public int getLowestOctaveMidiNumber() {\n\t\treturn noteName.getLowestOctaveMidiNumber();\n\t}", "private static String findNumber() {\n\t\treturn null;\r\n\t}", "public static int offset_moteId() {\n return (0 / 8);\n }", "public int toMidi(Note n) {\n\n int normIndex = n.getNoteIndex() + numOffset + (7 * octaveOffset);\n int numOctaves = normIndex/7;\n\n int midiAddend = MIDI_OFFSETS[normIndex - (7*numOctaves)];\n\n return 38 + midiAddend + 12*numOctaves; // 37 is low D\n }", "MidiView getMidi();", "public MidiDeviceDescriptor getMidiDevice();", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "public static String map_note_to_midi(String root) {\n // todo static generate map\n HashMap<String, Integer> note_to_midi_offset_map = new HashMap<String, Integer>();\n note_to_midi_offset_map.put(\"a\", -3);\n note_to_midi_offset_map.put(\"a#\", -2);\n note_to_midi_offset_map.put(\"b\", -1);\n note_to_midi_offset_map.put(\"c\", 0);\n note_to_midi_offset_map.put(\"c#\", 1);\n note_to_midi_offset_map.put(\"d\", 2);\n note_to_midi_offset_map.put(\"d#\", 3);\n note_to_midi_offset_map.put(\"e\", 4);\n note_to_midi_offset_map.put(\"f\", 5);\n note_to_midi_offset_map.put(\"f#\", 6);\n note_to_midi_offset_map.put(\"g\", 7);\n note_to_midi_offset_map.put(\"g#\", 8);\n if (root.length() == 2) {\n String note = root.substring(0, 1);\n int index = Integer.parseInt(root.substring(1));\n if (note_to_midi_offset_map.containsKey(note)) {\n int x = ((index) * 12) + note_to_midi_offset_map.get(note);\n return \"\" + x;\n }\n } else if (root.length() == 3) {\n String note = root.substring(0, 2);\n int index = Integer.parseInt(root.substring(2));\n if (note_to_midi_offset_map.containsKey(note)) {\n int x = ((index) * 12) + note_to_midi_offset_map.get(note);\n return \"\" + x;\n }\n }\n return root;\n }", "public int getNumber(String comm){\n try{\n return comando.get(comm);\n } catch(Exception e){\n return -1;\n }\n }", "public int getID() {\n\t\tif (tone.getNoteID() < 0) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn (tone.getNoteID() + shift.getShiftID()) + (12 * octave) + 12;\n\t}", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public MidiSoundHolder getMidi ( String name ) {\n return this.midisMap.get ( name );\n }", "public int getSignalNameNumber(String name);", "public int getNum();", "public static String getNum() {\n\tString num;\n\tnum = gameNum.getText();\n\treturn num;\n\n }", "private int queryNumberChar() throws IOException {\n\t\tbrin.mark(2);\n\t\treturn brin.read();\n\t}", "void sendMidi (byte[] msg, int offset, int count);", "public int getM_InOut_ID();", "int getMsgid();", "String getIdNumber();", "public int get_moteId() {\n return (int)getUIntBEElement(offsetBits_moteId(), 16);\n }", "java.lang.String getNum2();", "public java.lang.String getMID() {\r\n return MID;\r\n }", "public int findGameTypeBySerialNo(String serialNo) throws ApplicationException;", "public int get_infos_seq_num() {\n return (int)getUIntBEElement(offsetBits_infos_seq_num(), 16);\n }", "public NM getPsl28_SessionNo() { \r\n\t\tNM retVal = this.getTypedField(28, 0);\r\n\t\treturn retVal;\r\n }", "public int mo23267I() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13747Qc)).intValue();\n }", "public static int offsetBits_moteId() {\n return 0;\n }", "long getMessageId(int index);", "java.lang.String getNum1();", "public int getMessageId() {\n return concatenateBytes(binary[MSID_OFFSET],\n binary[MSID_OFFSET+1],\n binary[MSID_OFFSET+2],\n binary[MSID_OFFSET+3]);\n }", "public int findPosition(int num) {\n\t\t\n\t\tString s = new Integer(num).toString();\n\t\tSystem.out.println(\"After converting input number to string: \" + s);\n\t\t\n\t\tint i = 0, j = 0;\n\t\tint m = s.length(), n = input.length();\n\t\t\n\t\tfor(i = 0; i <= n - m; i++) {\n\t\t\tj = 0;\n\t\t\twhile(j < m && input.charAt(i + j) == s.charAt(j)) {\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tif(j == m) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn -1;\n\t}", "@Override\n\tpublic int getPumpNumber(String s) {\n\t\treturn getPumpID(s);\n\t}", "long getMsgId();", "public int getSeqNo();", "public int getSeqNo();", "String getDocumentNumber();", "public static String searchMobileNum (String body){\r\n\t\tif(body.contains(\":\")){\r\n\t\t\tif(body.indexOf(\":\") == 10){\r\n\t\t\t\tbody = body.substring(0, 10);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(isDigit(body))\r\n\t\t\treturn body;\r\n\t\telse return null;\r\n\t}", "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "public String getMiNo() {\r\n return miNo;\r\n }", "public static int offset_seqnum() {\n return (264 / 8);\n }", "@Generated\n @Selector(\"trackID\")\n public native int trackID();", "public int find(int p) {\r\n return id[p];\r\n }", "public Integer mo13274m() {\n DmcVideoMeta dmcVideoMeta = this.f9144g0;\n if (dmcVideoMeta != null) {\n UserMediaMeta X = dmcVideoMeta.mo13065X();\n if (X != null) {\n return X.mo13235m();\n }\n }\n return null;\n }", "@DISPID(-2147417087)\n @PropGet\n java.lang.Object recordNumber();", "public static Sequence getSequence(){\n\t\treturn curMIDI;\n\t}", "public int mo23282X() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13879sb)).intValue();\n }", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "@Test\n\tpublic void testMID() throws Exception {\n\t\ttest.setMID(9000000001L);\n\t\tAssert.assertEquals(9000000001L, test.getMID());\n\t}", "public int get_position(long number) {\n return ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].getInt((int) (number * POINTER_LENGTH % ptr_parts_size[0] + 9));\n }", "public final long mo15021d() {\n if (this.f11892g != -9223372036854775807L) {\n return Math.min(this.f11894i, this.f11893h + ((((SystemClock.elapsedRealtime() * 1000) - this.f11892g) * ((long) this.f11888c)) / 1000000));\n }\n int playState = this.f11886a.getPlayState();\n if (playState == 1) {\n return 0;\n }\n long playbackHeadPosition = 4294967295L & ((long) this.f11886a.getPlaybackHeadPosition());\n if (this.f11887b) {\n if (playState == 2 && playbackHeadPosition == 0) {\n this.f11891f = this.f11889d;\n }\n playbackHeadPosition += this.f11891f;\n }\n if (this.f11889d > playbackHeadPosition) {\n this.f11890e++;\n }\n this.f11889d = playbackHeadPosition;\n return playbackHeadPosition + (this.f11890e << 32);\n }", "private int mo115245l() {\n int i = 0;\n while (i < this.f119298r) {\n int i2 = 0;\n while (i2 < this.f119297q.length && this.f119297q[i2] != i) {\n i2++;\n }\n if (i2 == this.f119297q.length) {\n return i;\n }\n i++;\n }\n return i;\n }", "private void getMidiReceiver() {\n\n final MidiDevice.Info[] midiDeviceInfo = MidiSystem.getMidiDeviceInfo();\n MidiDevice midiDevice;\n this.midiReceiver = null;\n\n //Loop each midi device info\n for (final MidiDevice.Info i : midiDeviceInfo) {\n //Find piano app\n if (i.toString().equals((\"PianoApp\"))) {\n //Try to get the receiver\n try {\n midiDevice = MidiSystem.getMidiDevice(i);\n midiDevice.open();\n this.midiReceiver = midiDevice.getReceiver();\n } catch (final MidiUnavailableException ignored) {\n }\n }\n }\n if (this.midiReceiver == null) {\n System.err.println(\"Could not get Midi Receiver\");\n }\n }", "netty.framework.messages.MsgId.MsgID getMsgID();", "netty.framework.messages.MsgId.MsgID getMsgID();", "public String getNum() {\r\n return num;\r\n }", "public int mo4321K() {\n View a = mo4328a(mo4732e() - 1, -1, false, true);\n if (a == null) {\n return -1;\n }\n return mo4749l(a);\n }", "private int m106810b(String str) {\n for (int i = 0; i < this.f86083b.size(); i++) {\n C23360e eVar = (C23360e) this.f86083b.get(i);\n if ((eVar instanceof StoryFeedItemViewModel) && str.equals(((StoryFeedItemViewModel) eVar).mo84780g())) {\n return i;\n }\n }\n return -1;\n }", "public static double midiToFreq(int note) {\n return (Math.pow(2, ((note - 69) / 12.0))) * 440;\n }", "public int mo23266H() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13742Pc)).intValue();\n }", "public String getNum() {\n return num;\n }", "public String getNum() {\n return num;\n }", "public int mo23310ma() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13711Jb)).intValue();\n }", "public int mo15797hn() {\n return this.f3883JI;\n }", "int getSequenceNumber();", "public String getReceivedSerialNumber() ;", "public MidiCommand parse(javax.sound.midi.MidiMessage mm);", "int getReceivingMinorFragmentId(int index);", "public Integer getMsgId() {\n return msgId;\n }", "public int mo744n() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(37, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }", "public NM getSessionNo() { \r\n\t\tNM retVal = this.getTypedField(28, 0);\r\n\t\treturn retVal;\r\n }", "int obtenerNumeroMovimiento();", "public int getNumber() {\n\t\treturn 666;\n\t}", "private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }", "public int mo23323u() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13722Lc)).intValue();\n }", "public int mo23306ka() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13706Ib)).intValue();\n }", "public int getNum() throws RemoteException {\n\t\treturn 0;\r\n\t}", "public int getNum()\n {\n return num;\n }", "public int getNum()\n {\n return num;\n }", "@Override\r\n\tpublic String getPID() {\n\t\treturn \"GY\"+getID();\r\n\t}", "public int getReadedRecordNumber();", "void PegaMIDI(){\r\n // ler os dispositivos MIDIS instalados na máquina, hardware e softwares\r\n MidiDevice device;\r\n MidiDevice.Info[] infos = MidiSystem.getMidiDeviceInfo();\r\n for (int i=0; i<infos.length ;i++){\r\n try {\r\n device=MidiSystem.getMidiDevice(infos[i]);\r\n MDevices.add(device);\r\n cbMidi.addItem(device.getDeviceInfo().getName()+\" \"+device.getDeviceInfo().getVersion());\r\n \r\n } catch (MidiUnavailableException e){}\r\n \r\n }\r\n }", "int getUnknown13();", "@Override\r\n\tpublic String getPID() {\n\t\treturn \"NYXQYZ\"+getID();\r\n\t}", "private int findNumber(String find) {\n String val = \"\";\n // Checks if each for numbers in string and concatenates them to string val\n for (int i = 0; i < find.length(); i++) {\n if (Character.isDigit(find.charAt(i))) {\n val += find.charAt(i);\n }\n // When a non number is found break the loop\n else {\n break;\n }\n }\n // Returns interger value of string val since it represents and index\n return Integer.parseInt(val);\n }", "int getIdNum();", "java.lang.String getSerialNumber();", "java.lang.String getSerialNumber();" ]
[ "0.7201073", "0.6439129", "0.6091319", "0.59998304", "0.5914109", "0.57952887", "0.5785578", "0.5768214", "0.5756704", "0.5708218", "0.5648935", "0.5617496", "0.5594249", "0.5589954", "0.5589877", "0.55648035", "0.5518752", "0.5500378", "0.54995525", "0.5490387", "0.54600763", "0.5436782", "0.5423213", "0.5392806", "0.5348651", "0.5347154", "0.5335326", "0.53322124", "0.530976", "0.52891976", "0.52849853", "0.5271769", "0.5269732", "0.5266355", "0.5246305", "0.52421", "0.52381325", "0.5226884", "0.52110463", "0.52110463", "0.5202428", "0.51928073", "0.51903194", "0.51903194", "0.51903194", "0.518428", "0.5170843", "0.51672626", "0.51440483", "0.5139703", "0.5133716", "0.5129175", "0.5124647", "0.5120245", "0.5120245", "0.5120245", "0.5120245", "0.5120245", "0.5120245", "0.5120245", "0.5104462", "0.5099476", "0.5090794", "0.5088325", "0.5081376", "0.5081235", "0.5081235", "0.5069921", "0.5058154", "0.50532913", "0.5047845", "0.50476754", "0.5039406", "0.5039406", "0.50340474", "0.50253487", "0.50230765", "0.5020057", "0.5018373", "0.50183696", "0.50146455", "0.50112027", "0.5006434", "0.50038326", "0.50009716", "0.50008506", "0.49980578", "0.49963894", "0.499527", "0.4991865", "0.4991865", "0.4990933", "0.4987747", "0.49855438", "0.4980232", "0.49716476", "0.4969161", "0.4955887", "0.49493277", "0.49493277" ]
0.7018779
1
Finds this note's lowest octave's MIDI number.
public int getLowestOctaveMidiNumber() { return noteName.getLowestOctaveMidiNumber(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMidiNum() {\n\t\treturn midiNum % 12;\n\t}", "public static int getNotePosition(Byte midiByte) {\n int shifted = midiByte.intValue() - Constants.MIDI_OFFSET;\n int octave = shifted / 12;\n int keyIndex = shifted % 12;\n return ((7 * octave) * wkInterval + offsetMap[keyIndex]); //hardcoded\n }", "public int getID() {\n\t\tif (tone.getNoteID() < 0) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn (tone.getNoteID() + shift.getShiftID()) + (12 * octave) + 12;\n\t}", "int minNoteValue();", "public int getMidiNumber() {\n\t\treturn midiNumber;\n\t}", "@Override\n public Note getLowestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note lowestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.isLower(lowestNote)) {\n lowestNote = currentNote;\n }\n }\n if (lowestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return lowestNote;\n }", "public static int getNote(MidiMessage mes){\r\n\t\tif (!(mes instanceof ShortMessage))\r\n\t\t\treturn 0;\r\n\t\tShortMessage mes2 = (ShortMessage) mes;\r\n\t\tif (mes2.getCommand() != ShortMessage.NOTE_ON)\r\n\t\t\treturn 0;\t\r\n\t\tif (mes2.getData2() ==0) return -mes2.getData1();\r\n\t\treturn mes2.getData1();\r\n\t}", "public int toMidi(Note n) {\n\n int normIndex = n.getNoteIndex() + numOffset + (7 * octaveOffset);\n int numOctaves = normIndex/7;\n\n int midiAddend = MIDI_OFFSETS[normIndex - (7*numOctaves)];\n\n return 38 + midiAddend + 12*numOctaves; // 37 is low D\n }", "public int getOctave() {\n return this.octave;\n }", "@Override\n public Note getLowest() {\n if (this.sheet.isEmpty()) {\n throw new IllegalArgumentException(\"No note is added.\");\n }\n Note currentLow = new Note(this.low.getDuration(), this.low.getOctave(),\n this.low.getStartMeasure(), this.low.getPitch(), this.low\n .getIsHead(), this.low.getInstrument(), this.low.getVolume());\n for (int i = 0; i < this.sheet.size(); i++) {\n for (Note n : this.sheet.get(i)) {\n if (currentLow.compareTo(n) == 1) {\n currentLow = n;\n }\n }\n }\n return currentLow;\n }", "int getOctave() {\n return this.octave;\n }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "int maxNoteValue();", "@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }", "public int getMin() {\n\t\t\treturn harr[0];\n\t\t}", "public int findMin() {\r\n\t\treturn this.min.value;\r\n\t}", "private int firstNonzeroIntNum() {\n \tif (firstNonzeroIntNum == -2) {\n \t // Search for the first nonzero int\n \t int i;\n \t for (i=magnitude.length-1; i>=0 && magnitude[i]==0; i--)\n \t\t;\n \t firstNonzeroIntNum = magnitude.length-i-1;\n \t}\n \treturn firstNonzeroIntNum;\n }", "public int getFirstNonzeroDigit() {\n int i;\n if (this.firstNonzeroDigit == -2) {\n if (this.sign == 0) {\n i = -1;\n } else {\n i = 0;\n while (this.digits[i] == 0) {\n i++;\n }\n }\n this.firstNonzeroDigit = i;\n }\n return this.firstNonzeroDigit;\n }", "public String getMinSeqNo() throws Exception {\n return \"-1\";\n }", "public int getMid() {\r\n return mid;\r\n }", "public static String compareFreq(double fileFreq)\n\t{\n\t\tfor(int i = 0; i <= 8; i++)\n\t\t{\n\t\t\tif(fileFreq <= 1.025 * constantTones[11] * (Math.pow(2,i)) )\n\t\t\t{\n\t\t\t\t//If the note appears to be in this octave, the program attempts to determine the note\n\t\t\t\tfor(int j = 0; j < constantTones.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif(fileFreq <= (1.025 * constantTones[j] * (Math.pow(2,i)) ) )\n\t\t\t\t\t{\n\t\t\t\t\t\tnum = 0;\n\t\t\t\t\t\tString note = findNoteValue(j);\n\t\t\t\t\t\tnum = (i*7) + num;\n\n\t\t\t\t\t\tSystem.out.println(num + \", Octave = \" + i);\n\t\t\t\t\t\tString fullNote = note + i;\n\t\t\t\t\t\treturn fullNote;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn \"Invalid\";\n\t}", "public int getNoteIndex(long id){\n\t\tint result = -1;\n\t\tObjectListElement e;\n\t\tfor(int i = 0 ; i<allNotes.size();i++){\n\t\t\te = allNotes.get(i);\n\t\t\tif(e.getId()==id){\n\t\t\t\tresult = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Override\n public int getMinMeasurementNumber() {\n return super.getMinMeasurementNumber();\n }", "public Number getMinimum() {\n return ((ADocument) getDocument()).min;\n }", "int getFirstNumber();", "public static int getStartingMonkeyNum(String[] args) {\n\n int start = 0;\n\n if (args.length != 1) {\n errorAndExit();\n }\n\n try {\n start = Integer.parseInt(args[0]);\n } catch (NumberFormatException ex) {\n errorAndExit();\n }\n\n if (start < 1) {\n errorAndExit();\n }\n\n return start;\n\n }", "public int minimum() {\n \n if (xft.size() == 0) {\n return -1;\n }\n \n Integer repr = xft.minimum();\n \n assert(repr != null);\n \n return repr.intValue();\n }", "public static String map_note_to_midi(String root) {\n // todo static generate map\n HashMap<String, Integer> note_to_midi_offset_map = new HashMap<String, Integer>();\n note_to_midi_offset_map.put(\"a\", -3);\n note_to_midi_offset_map.put(\"a#\", -2);\n note_to_midi_offset_map.put(\"b\", -1);\n note_to_midi_offset_map.put(\"c\", 0);\n note_to_midi_offset_map.put(\"c#\", 1);\n note_to_midi_offset_map.put(\"d\", 2);\n note_to_midi_offset_map.put(\"d#\", 3);\n note_to_midi_offset_map.put(\"e\", 4);\n note_to_midi_offset_map.put(\"f\", 5);\n note_to_midi_offset_map.put(\"f#\", 6);\n note_to_midi_offset_map.put(\"g\", 7);\n note_to_midi_offset_map.put(\"g#\", 8);\n if (root.length() == 2) {\n String note = root.substring(0, 1);\n int index = Integer.parseInt(root.substring(1));\n if (note_to_midi_offset_map.containsKey(note)) {\n int x = ((index) * 12) + note_to_midi_offset_map.get(note);\n return \"\" + x;\n }\n } else if (root.length() == 3) {\n String note = root.substring(0, 2);\n int index = Integer.parseInt(root.substring(2));\n if (note_to_midi_offset_map.containsKey(note)) {\n int x = ((index) * 12) + note_to_midi_offset_map.get(note);\n return \"\" + x;\n }\n }\n return root;\n }", "public int getMin() {\n\t\treturn getMin(0.0f);\n\t}", "public int mo23310ma() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13711Jb)).intValue();\n }", "public static double midiToFreq(int note) {\n return (Math.pow(2, ((note - 69) / 12.0))) * 440;\n }", "public int getMpen(){\n\t\treturn mpen;\n\t}", "public static void main(String[] args) {\n ___ NUM_NOTES = ___;\n\n // input root note\n int root = Integer.parseInt(args[0]);\n\n // choose a random MIDI note within an octave above the root\n int rand = _____________;\n System.out.println(rand);\n\n // Plays the note\n StdAudio.play(note(midiToFreq(rand), 1, 1));\n }", "@Override\n public int getDuration() {\n if (this.music.size() == 0) {\n return 0;\n }\n else {\n int highestDuration = 0;\n ArrayList<Note> allNotes = this.getAllNotes();\n // find the note that has the longest length in the last arrayList\n for (Note note : allNotes) {\n if (note.getEndBeat() > highestDuration) {\n highestDuration = note.getEndBeat();\n }\n }\n return highestDuration;\n }\n }", "@Override\n\tpublic long getMinnum() {\n\t\treturn _esfTournament.getMinnum();\n\t}", "public int getMPC_Order_BOMLine_ID() {\n\t\tInteger ii = (Integer) get_Value(\"MPC_Order_BOMLine_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getLowestChromID();", "public final int getMajor() {\n return get(0);\n }", "String getFirstInt();", "public int min()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint minNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] < minNumber)\n\t\t\t\t{\n\t\t\t\t\tminNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn minNumber;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\n\t}", "public int getMinimumSectionNumber ( )\r\n\t{\r\n\t\tTwoDDisplayContin dis = ( TwoDDisplayContin ) listOfOtherContins.first ( );\r\n\r\n\t\treturn dis.getSectionNumber ( );\r\n\t}", "public long getMid() {\n return mid_;\n }", "public long getMid() {\n return mid_;\n }", "public int findMin() {\n\t\tint min = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ((int)data.get(count) < min)\n\t\t\t\tmin = (int)data.get(count);\n\t\treturn min;\n\t}", "public int mo23306ka() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13706Ib)).intValue();\n }", "INote removeNote(int beatNum, String pitch, int octave) throws IllegalArgumentException;", "public long getMid() {\n return mid_;\n }", "public long getMid() {\n return mid_;\n }", "static int findMin0(int[] nums) {\r\n \r\n // **** sanity check ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[nums.length - 1] > nums[0])\r\n return nums[0];\r\n\r\n // **** loop looking for the next smallest value ****\r\n for (int i = 0; i < nums.length - 1; i++) {\r\n if (nums[i] > nums[i + 1])\r\n return nums[i + 1];\r\n }\r\n\r\n // **** min not found ****\r\n return -1;\r\n }", "public String getLineNumber() \n\t{\n\t\treturn getNumber().substring(9,13);\n\t}", "public final int mo21871m() {\n return this.f24537i;\n }", "double getArchiveMinInt();", "@Override\n public Note getHighest() {\n if (this.sheet.isEmpty()) {\n throw new IllegalArgumentException(\"No note is added.\");\n }\n Note currentHigh = new Note(this.high.getDuration(), this.high.getOctave\n (), this.high.getStartMeasure(), this.high.getPitch(), this.high\n .getIsHead(), this.high.getInstrument(), this.high.getVolume());\n for (int i = 0; i < this.sheet.size(); i++) {\n for (Note n : this.sheet.get(i)) {\n if (currentHigh.compareTo(n) == -1) {\n currentHigh = n;\n }\n }\n }\n return currentHigh;\n }", "long getMid();", "long getMid();", "public Integer getMajorPid() {\n return majorPid;\n }", "public java.lang.Short getMpTonePackageIndex() {\r\n return mpTonePackageIndex;\r\n }", "public int findGeneStart()\n {\n return findGeneStart(0);\n }", "public int m2714o() {\n return ((Integer) this.f2439a.m2666a(ea.by)).intValue();\n }", "public int getMin()\n\t{\n\t\treturn min;\n\t}", "public int getMin() {\n\t\treturn min;\n\t}", "public int m2713n() {\n return ((Integer) this.f2439a.m2666a(ea.bx)).intValue();\n }", "public java.lang.Short getStartDigitPosition() {\r\n return startDigitPosition;\r\n }", "MidiView getMidi();", "public int mo4321K() {\n View a = mo4328a(mo4732e() - 1, -1, false, true);\n if (a == null) {\n return -1;\n }\n return mo4749l(a);\n }", "public int findMin(){\n\t\tif(root==nil){\n\t\t\treturn 0;\n\t\t}\n\t\tNode temp = root;\n\t\twhile(temp.left != nil){\n\t\t\ttemp=temp.left;\n\t\t}\n\t\treturn temp.id;\n\t}", "public java.lang.String getMID() {\r\n return MID;\r\n }", "public int getLineNo()\n\t{\n\t\treturn getIntColumn(OFF_LINE_NO, LEN_LINE_NO);\n\t}", "public long getMinimum() {\n\t\treturn this._min;\n\t}", "public int getNumeroLave() {\n\t\treturn numeroLave;\n\t}", "public int getMinorCountX() {\r\n return minorCountX;\r\n }", "@Override\n public IPeaksSpectrum asMajorPeaks() {\n return getHighestNPeaks(MAJOR_PEAK_NUMBER);\n }", "private int firstNonzeroIntNum() {\n int fn = firstNonzeroIntNum - 2;\n if (fn == -2) { // firstNonzeroIntNum not initialized yet\n fn = 0;\n\n // Search for the first nonzero int\n int i;\n int mlen = mag.length;\n for (i = mlen - 1; i >= 0 && mag[i] == 0; i--)\n ;\n fn = mlen - i - 1;\n firstNonzeroIntNum = fn + 2; // offset by two to initialize\n }\n return fn;\n }", "public static int findInDictR(String note){\n\t\tint pos = -1;\n\t\tString altNote = note.substring(1, note.length()) + note.substring(0,1);\n\n\t\tfor(int x = noteDictionary.length - 1; x > 0; x--){\n\t\t\tif(note.equals(noteDictionary[x])\n\t\t\t\t|| altNote.equals(noteDictionary[x])){\n\t\t\t\tpos = x;\n\t\t\t\tx = 0;\n\t\t\t}\n\t\t}\n\t\treturn pos;\n\t}", "public int findLowestTemp() {\n\t\t\n\t\tint min = 0;\n\t\tint indexLow = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tif (temps[i][1] < min) {\n\t\t\t\tmin = temps[i][1];\n\t\t\t\tindexLow = 0;\n\t\t\t}\n\t\t\n\t\treturn indexLow;\n\t\t\n\t}", "public int getAudioJittcomp();", "static int findMin(double[] pq)\n\t{\n\t\tint ind = -1; \n\t\tfor (int i = 0; i < pq.length; ++i)\n\t\t\tif (pq[i] >= 0 && (ind == -1 || pq[i] < pq[ind]))\n\t\t\t\tind = i;\n\t\treturn ind;\n\t}", "public static int getNormalizedPitch(Note note) {\n try {\n String pitch = note.getPitch().toString();\n String octave = new Integer(note.getOctave()).toString();\n\n String target = null;\n\n if (note.getPitch().equals(Pitch.R)) {\n target = \"REST\";\n } else {\n if(note.getAlteration().equals(Alteration.N))\n target = pitch.concat(octave);\n else if(note.getAlteration().equals(Alteration.F))\n target = pitch.concat(\"F\").concat(octave);\n else\n target = pitch.concat(\"S\").concat(octave);\n }\n\n \n\n Class cClass = ConverterUtil.class;\n Field field = cClass.getField(target);\n Integer value = (Integer) field.get(null);\n\n return value.intValue()%12;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }", "public static int getFirstIntValue(String line) {\n return getNthIntValue(line, 1);\n }", "public Integer findSmallestNumber() {\r\n\t\t// take base index element as smallest number\r\n\t\tInteger smallestNumber = numArray[0];\r\n\t\t// smallest number find logic\r\n\t\tfor (int i = 1; i < numArray.length; i++) {\r\n\t\t\tif (numArray[i] != null && numArray[i] < smallestNumber) {\r\n\t\t\t\tsmallestNumber = numArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// return smallest number from the given array\r\n\t\treturn smallestNumber;\r\n\t}", "public int getMinFrequency() {\n\t\t\tif (mMinFrequency == 0) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + MIN_FREQUENCY);\n\t\t\t\tif (list == null || list.isEmpty()) return 0;\n\t\t\t\tint value = 0;\n\t\t\t\ttry { value = Integer.valueOf(list.get(0)); }\n\t\t\t\tcatch (NumberFormatException ignored) {}\n\t\t\t\tmMinFrequency = value / 1000;\n\t\t\t}\n\t\t\treturn mMinFrequency;\n\t\t}", "public int getInterval(Note otherNote) {\n\t\treturn getMidiNumber() - otherNote.getMidiNumber();\n\t}", "public int getMinimun(){\n int lowGrade = grades[0]; //assume que grades[0] é a menor nota\n \n //faz um loop pelo array de notas\n for(int grade: grades){\n //se nota for mais baixa que lowGrade, essa note é atribuida a lowGrade\n if(grade < lowGrade){\n lowGrade = grade;\n }\n }\n \n return lowGrade;\n }", "public int extractMinimum() {\n \n //O(log_2(w))\n int min = minimum();\n\n if (min == -1) {\n assert(xft.size() == 0);\n return -1;\n }\n \n remove(min);\n \n return min;\n }", "public static int findInDict(String note){\n\t\tint pos = -1;\n\t\tString altNote = note.substring(1, note.length()) + note.substring(0,1);\n\n\t\tfor(int x = 0; x < noteDictionary.length - 1; x++){\n\t\t\tif(note.equals(noteDictionary[x])\n\t\t\t\t|| altNote.equals(noteDictionary[x])){\n\t\t\t\tpos = x;\n\t\t\t\tx = noteDictionary.length;\n\t\t\t}\n\t\t}\n\t\treturn pos;\n\t}", "public double getMajorX() {\r\n return majorX;\r\n }", "public int minValue() {\n\t\treturn minValue(root);\n\t}", "public static int offset_seqnum() {\n return (264 / 8);\n }", "public Long mo13272k() {\n return C3641o.m12394d(this.f9143f0);\n }", "private int getPmidIdx() {\n return this.colStartOffset + 2;\n }", "public int getMin(){\n\t\treturn min;\n\t}", "private double getLowest()\n {\n if (currentSize == 0)\n {\n return 0;\n }\n else\n {\n double lowest = scores[0];\n for (int i = 1; i < currentSize; i++)\n {\n if (scores[i] < lowest)\n {\n scores[i] = lowest;\n }\n }\n return lowest;\n }\n }", "public Integer mo13274m() {\n DmcVideoMeta dmcVideoMeta = this.f9144g0;\n if (dmcVideoMeta != null) {\n UserMediaMeta X = dmcVideoMeta.mo13065X();\n if (X != null) {\n return X.mo13235m();\n }\n }\n return null;\n }", "public int getxMin() {\n\t\treturn xMin;\n\t}", "public int getMin() {\n int length = minList.size();\n int returnValue = 0;\n if (length > 0) {\n returnValue = minList.get(length - 1);\n }\n return returnValue;\n \n }", "public int minY()\n\t{\n\t\tint m = coords[0][1];\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tm = Math.min(m, coords[i][1]);\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "static int findMin(int[] nums) {\r\n \r\n // **** sanity check(s) ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** initialization ****\r\n int left = 0;\r\n int right = nums.length - 1;\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[right] > nums[left])\r\n return nums[left];\r\n\r\n // **** binary search approach ****\r\n while (left < right) {\r\n\r\n // **** compute mid point ****\r\n int mid = left + (right - left) / 2;\r\n\r\n // **** check if we found min ****\r\n if (nums[mid] > nums[mid + 1])\r\n return nums[mid + 1];\r\n\r\n if (nums[mid - 1] > nums[mid])\r\n return nums[mid];\r\n\r\n // **** decide which way to go ****\r\n if (nums[mid] > nums[0])\r\n left = mid + 1; // go right\r\n else\r\n right = mid - 1; // go left\r\n }\r\n\r\n // **** min not found (needed to keep the compiler happy) ****\r\n return 69696969;\r\n }", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }" ]
[ "0.6336811", "0.6283091", "0.6207696", "0.618532", "0.6059039", "0.5969328", "0.5959416", "0.5776866", "0.5772991", "0.5583099", "0.55752695", "0.5461786", "0.5353749", "0.53217846", "0.5298865", "0.52734846", "0.5205117", "0.51764107", "0.5176202", "0.5170895", "0.51640046", "0.514957", "0.5135213", "0.51292115", "0.51279956", "0.5127665", "0.5096024", "0.5086472", "0.50621253", "0.5056333", "0.5044374", "0.5044185", "0.50440484", "0.5043249", "0.5034448", "0.5032966", "0.5032817", "0.50302863", "0.5027474", "0.50259507", "0.50062376", "0.49997693", "0.49997693", "0.49964604", "0.49810824", "0.49771786", "0.49653402", "0.49653402", "0.4948283", "0.493019", "0.48935696", "0.4881631", "0.48717713", "0.48700422", "0.48700422", "0.4859176", "0.4859049", "0.4846378", "0.48459363", "0.48424146", "0.48386753", "0.48353493", "0.4823163", "0.48213372", "0.480478", "0.4787646", "0.47635645", "0.47579494", "0.47557548", "0.474899", "0.47414282", "0.4740274", "0.47320694", "0.47194928", "0.4713316", "0.47114724", "0.47074047", "0.46997696", "0.46983838", "0.46940503", "0.4692016", "0.46915787", "0.46843317", "0.4679824", "0.46743396", "0.46716523", "0.4670735", "0.46706608", "0.46664754", "0.46630204", "0.46594208", "0.46586633", "0.4656165", "0.46486634", "0.4645979", "0.4645928", "0.4638455", "0.46367505", "0.46367505", "0.46367505" ]
0.8385433
0
Finds the interval between two notes.
public int getInterval(Note otherNote) { return getMidiNumber() - otherNote.getMidiNumber(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic int compare(Interval o1, Interval o2) {\n\t\t\t\treturn o1.start-o2.start;\n\t\t\t}", "public interface Interval extends Comparable<Interval> {\n\n /**\n * Returns the start coordinate of this interval.\n * \n * @return the start coordinate of this interval\n */\n int getStart();\n\n /**\n * Returns the end coordinate of this interval.\n * <p>\n * An interval is closed-open. It does not include the returned point.\n * \n * @return the end coordinate of this interval\n */\n int getEnd();\n\n default int length() {\n return getEnd() - getStart();\n }\n\n /**\n * Returns whether this interval is adjacent to another.\n * <p>\n * Two intervals are adjacent if either one ends where the other starts.\n * \n * @param interval - the interval to compare this one to\n * @return <code>true</code> if the intervals are adjacent; otherwise\n * <code>false</code>\n */\n default boolean isAdjacent(Interval other) {\n return getStart() == other.getEnd() || getEnd() == other.getStart();\n }\n \n /**\n * Returns whether this interval overlaps another.\n * \n * This method assumes that intervals are contiguous, i.e., there are no\n * breaks or gaps in them.\n * \n * @param o - the interval to compare this one to\n * @return <code>true</code> if the intervals overlap; otherwise\n * <code>false</code>\n */\n default boolean overlaps(Interval o) {\n return getEnd() > o.getStart() && o.getEnd() > getStart();\n }\n \n /**\n * Compares this interval with another.\n * <p>\n * Ordering of intervals is done first by start coordinate, then by end\n * coordinate.\n * \n * @param o - the interval to compare this one to\n * @return -1 if this interval is less than the other; 1 if greater\n * than; 0 if equal\n */\n default int compareTo(Interval o) {\n if (getStart() > o.getStart()) {\n return 1;\n } else if (getStart() < o.getStart()) {\n return -1;\n } else if (getEnd() > o.getEnd()) {\n return 1;\n } else if (getEnd() < o.getEnd()) {\n return -1;\n } else {\n return 0;\n }\n }\n}", "static int calculateTimeDelta(TimeInterval interval_1, TimeInterval interval_2) {\n TimeInterval earlier;\n TimeInterval later;\n if (interval_1.getStartTime().before(interval_2.getStartTime())) {\n earlier = interval_1;\n later = interval_2;\n } else {\n earlier = interval_2;\n later = interval_1;\n }\n\n return (int) (later.getStartTime().getTime() - earlier.getStopTime().getTime());\n }", "public Interval diff(Interval other) {\n\t\treturn this.plus(other.mul(new Interval(\"-1\", \"-1\")));\n\t}", "public static Interval intersection(Interval in1, Interval in2){\r\n double a = in1.getFirstExtreme();\r\n double b = in1.getSecondExtreme();\r\n double c = in2.getFirstExtreme();\r\n double d = in2.getSecondExtreme();\r\n char p1 = in1.getFEincluded();\r\n char p2 = in1.getSEincluded();\r\n char p3 = in2.getFEincluded();\r\n char p4 = in2.getSEincluded();\r\n \r\n if (a==c && b==d){\r\n if (a==b){\r\n if (p1=='[' && p3=='[' && p2==']' && p4==']'){\r\n return new Interval(in1);\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }else{\r\n return new Interval(a,b,p1==p3?p1:'(',p2==p4?p2:')');\r\n }\r\n }else if (a<c && b<=c){\r\n if (b==c && p2==']' && p3=='['){\r\n return new Interval(b,b,p3,p2);\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }else if (a<=c && b<d){\r\n if (a==c){\r\n return new Interval(a,b,p1==p3?p1:'(',p2);\r\n }else{\r\n return new Interval(c,b,p3,p2);\r\n }\r\n }else if(a<c && b==d){\r\n return new Interval(c,b,p3,p2==p4?p2:')');\r\n }else if(a<=c && b>d){\r\n if (a==c){\r\n return new Interval(a,d,p1==p3?p1:'(',p4);\r\n }else{\r\n return new Interval(in2);\r\n }\r\n }else if (a>c && b<=d){\r\n if (b==d){\r\n return new Interval(a,b,p1,p2==p4?p2:')');\r\n }else{\r\n return new Interval(in1);\r\n }\r\n }else if (a<=d && b>d){\r\n if (a==d){\r\n if (p1=='[' && p4==']'){\r\n return new Interval(a,a,p1,p4);\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }else{\r\n return new Interval(a,d,p1,p4);\r\n }\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }", "public Interval mergeInterval(Interval first, Interval second){\n Interval result = new Interval();\n result.start = Math.min(first.start,second.start);\n result.end = Math.max(first.end,second.end);\n return result;\n }", "private double intersect(double start0, double end0, double start1, double end1)\n {\n double length = Double.min(end0, end1) - Double.max(start0, start1);\n return Double.min(Double.max(0, length), 1.0);\n }", "public static Interval subtraction(Interval in1, Interval in2){\r\n //in1.print();\r\n //in2.print();\r\n return new Interval(in1.getFirstExtreme()-in2.getSecondExtreme(),in1.getSecondExtreme()-in2.getFirstExtreme(),in1.getFEincluded()=='['&&in2.getSEincluded()==']'?in1.getFEincluded():'(',in1.getSEincluded()==']'&&in2.getFEincluded()=='['?in1.getSEincluded():')');\r\n }", "@Override\r\n\t public int compareTo(Interval o) {\n\r\n\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t try{\r\n\t Date startDate = sdf.parse(start);\r\n\t Date endDate = sdf.parse(end);\r\n\t Date pstartDate = sdf.parse(o.start);\r\n\t Date pendDate = sdf.parse(o.end);\r\n\r\n\t return startDate.compareTo(pstartDate);\r\n\r\n\t }catch(Exception ex){\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return 0;\r\n\t }", "public int getInterdigitInterval();", "@Override\n public int compareTo(Interval otherInterval) {\n return start.compareTo(otherInterval.start);\n }", "public Interval mul(Interval other) {\n\t\tHashSet<String> boundSet = new HashSet<>();\n\n\t\tString x1 = this.getLow();\n\t\tString x2 = this.getHigh();\n\t\tString y1 = other.getLow();\n\t\tString y2 = other.getHigh();\n\n\t\t// x1y1\n\t\tif (x1.equals(\"-Inf\")) {\n\t\t\tif (y1.equals(\"-Inf\"))\n\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(y1) > 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse if (Long.parseLong(y1) < 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse\n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else if (y1.equals(\"-Inf\")) {\n\t\t\tif (x1.equals(\"-Inf\"))\n\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(x1) > 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse if (Long.parseLong(x1) < 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse\n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else {\n\t\t\tboundSet.add(String.valueOf(Long.parseLong(x1) * Long.parseLong(y1)));\n\t\t}\n\n\t\t// x1y2\n\t\tif (x1.equals(\"-Inf\")) {\n\t\t\tif (y2.equals(\"+Inf\"))\n\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(y2) > 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse if (Long.parseLong(y2) < 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else if (y2.equals(\"+Inf\")) {\n\t\t\tif (x1.equals(\"-Inf\"))\n\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(x1) > 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse if (Long.parseLong(x1) < 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else {\n\t\t\tboundSet.add(String.valueOf(Long.parseLong(x1) * Long.parseLong(y2)));\n\t\t}\n\n\t\t// x2y1\n\t\tif (x2.equals(\"+Inf\")) {\n\t\t\tif (y1.equals(\"-Inf\"))\n\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(y1) > 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse if (Long.parseLong(y1) < 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else if (y1.equals(\"-Inf\")) {\n\t\t\tif (x2.equals(\"+Inf\"))\n\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(x2) > 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse if (Long.parseLong(x2) < 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else {\n\t\t\tboundSet.add(String.valueOf(Long.parseLong(x2) * Long.parseLong(y1)));\n\t\t}\n\n\t\t// x2y2\n\t\tif (x2.equals(\"+Inf\")) {\n\t\t\tif (y2.equals(\"+Inf\"))\n\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(y2) > 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse if (Long.parseLong(y2) < 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse\n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else if (y2.equals(\"+Inf\")) {\n\t\t\tif (x2.equals(\"+Inf\"))\n\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\telse {\n\t\t\t\tif (Long.parseLong(x2) > 0)\n\t\t\t\t\tboundSet.add(\"+Inf\");\n\t\t\t\telse if (Long.parseLong(x2) < 0)\n\t\t\t\t\tboundSet.add(\"-Inf\");\n\t\t\t\telse \n\t\t\t\t\tboundSet.add(\"0\");\n\t\t\t}\n\t\t} else {\n\t\t\tboundSet.add(String.valueOf(Long.parseLong(x2) * Long.parseLong(y2)));\n\t\t}\n\n\t\treturn new Interval(getMinValue(boundSet), getMaxValue(boundSet));\n\t}", "public void add(Interval<T> interval) {\n ArrayList<Interval<T>> that = new ArrayList<Interval<T>>();\n that.add(interval);\n\n /*\n * The following algorithm works with any size ArrayList<Interval<T>>.\n * We do only one interval at a time to do an insertion sort like adding of intervals, so that they don't need to be sorted.\n */\n int pos1 = 0, pos2 = 0;\n Interval<T> i1, i2, i1_2;\n\n for (; pos1 < this.size() && pos2 < that.size(); ++pos2) {\n i1 = this.intervals.get(pos1);\n i2 = that.get(pos2);\n\n if (i1.is(IntervalRelation.DURING_INVERSE, i2) || i1.is(IntervalRelation.START_INVERSE, i2) || i1.is(IntervalRelation.FINISH_INVERSE, i2) || i1.is(IntervalRelation.EQUAL, i2)) {//i1 includes i2\n //ignore i2; do nothing\n } else if (i1.is(IntervalRelation.DURING, i2) || i1.is(IntervalRelation.START, i2) || i1.is(IntervalRelation.FINISH, i2)) {//i2 includes i1\n this.intervals.remove(pos1);//replace i1 with i2\n --pos2;\n } else if (i1.is(IntervalRelation.OVERLAP, i2) || i1.is(IntervalRelation.MEET, i2)) {//i1 begin < i2 begin < i1 end < i2 end; i1 end = i2 begin\n i1_2 = new Interval<T>(i1.begin(), i2.end());//merge i1 and i2\n this.intervals.remove(pos1);\n that.add(pos2 + 1, i1_2);\n } else if (i1.is(IntervalRelation.OVERLAP_INVERSE, i2) || i1.is(IntervalRelation.MEET_INVERSE, i2)) {//i2 begin < i1 begin < i2 end < i1 end; i2 end = i1 begin\n i1_2 = new Interval<T>(i2.begin(), i1.end());//merge i2 and i1\n this.intervals.remove(pos1);\n this.intervals.add(pos1, i1_2);\n } else if (i1.is(IntervalRelation.BEFORE, i2)) {//i1 < i2 < (next i1 or next i2)\n ++pos1;\n --pos2;\n } else if (i1.is(IntervalRelation.AFTER, i2)) {//i2 < i1 < (i1 or next i2)\n this.intervals.add(pos1, i2);\n ++pos1;\n }\n }\n\n //this finishes; just append the rest of that\n if (pos2 < that.size()) {\n for (int i = pos2; i < that.size(); ++i) {\n this.intervals.add(that.get(i));\n }\n }\n }", "public HBox answerIntervalLine(String begin, String end)\n {\n HBox answerIntervalLine = new HBox(5);\n answerIntervalLine.getChildren().addAll(new Label(\"Esteve entre \"), new Text(begin), new Label(\" e \"), new Text(end));\n answerIntervalLine.setAlignment(Pos.BASELINE_LEFT);\n\n return answerIntervalLine; \n }", "public SequenceRegion interval(Sequence start, Sequence stop) {\n\t/* Ravi thingToDo. */\n\t/* use a single constructor */\n\t/* Performance */\n\treturn (SequenceRegion) ((above(start, true)).intersect((below(stop, false))));\n/*\nudanax-top.st:15693:SequenceSpace methodsFor: 'making'!\n{SequenceRegion CLIENT} interval: start {Sequence} with: stop {Sequence}\n\t\"Return a region of all sequence >= lower and < upper.\"\n\t\n\t\"Ravi thingToDo.\" \"use a single constructor\" \"Performance\"\n\t^((self above: start with: true)\n\t\tintersect: (self below: stop with: false)) cast: SequenceRegion!\n*/\n}", "@Test\n public void isOverlap_interval1ContainsInterval2OnEnd_trueReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(0,3);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(true));\n }", "public int getInterval() { return _interval; }", "@Test\n public void isOverlap_interval1OverlapsInterval2OnStart_trueReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(3,12);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(true));\n }", "public double interval() {\n return interval;\n }", "@Test\n public void isOverlap_interval1BeforeInterval2_falseReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(8,12);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(false));\n }", "@Test\n public void isOverlap_interval1AfterInterval2_falseReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(-10,-3);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(false));\n }", "public Interval getInterval() { return interval; }", "public static double diff() {\n System.out.println(\"Enter minuend\");\n double a = getNumber();\n System.out.println(\"Enter subtrahend\");\n double b = getNumber();\n\n return a - b;\n }", "@NonNull\n public static String getDiff(@NonNull String[] before, @NonNull String[] after) {\n StringBuilder sb = new StringBuilder();\n\n int n = before.length;\n int m = after.length;\n\n // Compute longest common subsequence of x[i..m] and y[j..n] bottom up\n int[][] lcs = new int[n + 1][m + 1];\n for (int i = n - 1; i >= 0; i--) {\n for (int j = m - 1; j >= 0; j--) {\n if (before[i].equals(after[j])) {\n lcs[i][j] = lcs[i + 1][j + 1] + 1;\n } else {\n lcs[i][j] = Math.max(lcs[i + 1][j], lcs[i][j + 1]);\n }\n }\n }\n\n int i = 0;\n int j = 0;\n while ((i < n) && (j < m)) {\n if (before[i].equals(after[j])) {\n i++;\n j++;\n } else {\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n while (i < n && j < m && !before[i].equals(after[j])) {\n if (lcs[i + 1][j] >= lcs[i][j + 1]) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n i++;\n } else {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n j++;\n }\n }\n }\n }\n\n if (i < n || j < m) {\n assert i == n || j == m;\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n for (; i < n; i++) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n }\n for (; j < m; j++) {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n }\n }\n\n return sb.toString();\n }", "public static Interval division(Interval in1, Interval in2){\r\n if(in2.getSecondExtreme()==0.0||in2.getFirstExtreme()==0.0){\r\n System.out.println(\"División por cero!\");\r\n System.exit(1);\r\n return new Interval();\r\n }else{\r\n return new Interval(in1.getFirstExtreme()/in2.getSecondExtreme(),in1.getSecondExtreme()/in2.getFirstExtreme(),in1.getFEincluded()=='['&&in2.getSEincluded()==']'?in1.getFEincluded():'(',in1.getSEincluded()==']'&&in2.getFEincluded()=='['?in1.getSEincluded():')');\r\n }\r\n }", "default int compareTo(Interval o) {\n if (getStart() > o.getStart()) {\n return 1;\n } else if (getStart() < o.getStart()) {\n return -1;\n } else if (getEnd() > o.getEnd()) {\n return 1;\n } else if (getEnd() < o.getEnd()) {\n return -1;\n } else {\n return 0;\n }\n }", "public interface ReadableInterval\n{\n\n public abstract boolean contains(ReadableInstant readableinstant);\n\n public abstract boolean contains(ReadableInterval readableinterval);\n\n public abstract boolean equals(Object obj);\n\n public abstract Chronology getChronology();\n\n public abstract DateTime getEnd();\n\n public abstract long getEndMillis();\n\n public abstract DateTime getStart();\n\n public abstract long getStartMillis();\n\n public abstract int hashCode();\n\n public abstract boolean isAfter(ReadableInstant readableinstant);\n\n public abstract boolean isAfter(ReadableInterval readableinterval);\n\n public abstract boolean isBefore(ReadableInstant readableinstant);\n\n public abstract boolean isBefore(ReadableInterval readableinterval);\n\n public abstract boolean overlaps(ReadableInterval readableinterval);\n\n public abstract Duration toDuration();\n\n public abstract long toDurationMillis();\n\n public abstract Interval toInterval();\n\n public abstract MutableInterval toMutableInterval();\n\n public abstract Period toPeriod();\n\n public abstract Period toPeriod(PeriodType periodtype);\n\n public abstract String toString();\n}", "int intervalSize(T v1, T v2) {\n int c = 0;\n Node x = successor(v1);\n while (x != null && x.value.compareTo(v2) < 0) {\n c++;\n x = successor(x);\n }\n return c;\n }", "public Node interval()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tLexer.Token lp = lexer.getToken();\r\n\t\tif(lp==Lexer.Token.LEFT_PARENTHESIS\r\n\t\t|| lp==Lexer.Token.LEFT_BRACKETS)\r\n\t\t{\r\n\t\t\tNode exp1 = expression();\r\n\t\t\tif(exp1!=null)\r\n\t\t\t{\r\n\t\t\t\tif(lexer.getToken()==Lexer.Token.COMMA)\r\n\t\t\t\t{\r\n\t\t\t\t\tNode exp2 = expression();\r\n\t\t\t\t\tif(exp2!=null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tLexer.Token rp = lexer.getToken();\r\n\t\t\t\t\t\tif(rp==Lexer.Token.RIGHT_PARENTHESIS\r\n\t\t\t\t\t\t|| rp==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tInterval iv = new Interval(exp1,exp2);\r\n\t\t\t\t\t\t\tif(lp==Lexer.Token.LEFT_PARENTHESIS) iv.lhsClosed(false);\r\n\t\t\t\t\t\t\telse iv.lhsClosed(true);\r\n\t\t\t\t\t\t\tif(rp==Lexer.Token.RIGHT_PARENTHESIS) iv.rhsClosed(false);\r\n\t\t\t\t\t\t\telse iv.rhsClosed(true);\r\n\t\t\t\t\t\t\treturn iv;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}", "int minNoteValue();", "public long getIntervals(){\n return this.interval;\n }", "@Test\n public void isOverlap_interval1ContainWithinInterval2_trueReturned() throws Exception{\n Interval interval1 = new Interval(-1,5);\n Interval interval2 = new Interval(0,3);\n\n boolean result = SUT.isOverlap(interval1,interval2);\n Assert.assertThat(result,is(true));\n }", "@Test\n public void sample1(){\n int[][] a = new int[][] {\n new int [] {0,2},\n new int [] {5,10},\n new int [] {13,23},\n new int [] {24,25}\n };\n int [][] b = new int [][] {\n new int [] {1,5},\n new int [] {8,12},\n new int [] {15,24},\n new int [] {25,26}\n };\n int [][] expected = new int [][] {\n new int [] {1,2},\n new int [] {5,5},\n new int [] {8,10},\n new int [] {15,23},\n new int [] {24,24},\n new int [] {25,25},\n };\n int [][] output = underTest.intervalIntersection(a,b);\n assertArrayEquals(expected,output);\n }", "public static int getQuot(String time1, String time2)\r\n/* 164: */ throws ParseException\r\n/* 165: */ {\r\n/* 166:239 */ SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 167:240 */ Calendar cal = Calendar.getInstance();\r\n/* 168:241 */ cal.setTime(sdf.parse(time1));\r\n/* 169:242 */ long start = cal.getTimeInMillis();\r\n/* 170:243 */ cal.setTime(sdf.parse(time2));\r\n/* 171:244 */ long end = cal.getTimeInMillis();\r\n/* 172:245 */ long between_days = (end - start) / 86400000L;\r\n/* 173: */ \r\n/* 174:247 */ return Integer.parseInt(String.valueOf(between_days));\r\n/* 175: */ }", "public int getInterval() {\r\n return interval;\r\n }", "public IntervalPolyType combine( RelDataTypeFactoryImpl typeFactory, IntervalPolyType that ) {\n assert this.typeName.isYearMonth() == that.typeName.isYearMonth();\n boolean nullable = isNullable || that.isNullable;\n TimeUnit thisStart = Objects.requireNonNull( typeName.getStartUnit() );\n TimeUnit thisEnd = typeName.getEndUnit();\n final TimeUnit thatStart = Objects.requireNonNull( that.typeName.getStartUnit() );\n final TimeUnit thatEnd = that.typeName.getEndUnit();\n\n int secondPrec = this.intervalQualifier.getStartPrecisionPreservingDefault();\n final int fracPrec =\n SqlIntervalQualifier.combineFractionalSecondPrecisionPreservingDefault(\n typeSystem,\n this.intervalQualifier,\n that.intervalQualifier );\n\n if ( thisStart.ordinal() > thatStart.ordinal() ) {\n thisEnd = thisStart;\n thisStart = thatStart;\n secondPrec = that.intervalQualifier.getStartPrecisionPreservingDefault();\n } else if ( thisStart.ordinal() == thatStart.ordinal() ) {\n secondPrec =\n SqlIntervalQualifier.combineStartPrecisionPreservingDefault(\n typeFactory.getTypeSystem(),\n this.intervalQualifier,\n that.intervalQualifier );\n } else if ( null == thisEnd || thisEnd.ordinal() < thatStart.ordinal() ) {\n thisEnd = thatStart;\n }\n\n if ( null != thatEnd ) {\n if ( null == thisEnd || thisEnd.ordinal() < thatEnd.ordinal() ) {\n thisEnd = thatEnd;\n }\n }\n\n RelDataType intervalType = typeFactory.createSqlIntervalType( new SqlIntervalQualifier( thisStart, secondPrec, thisEnd, fracPrec, SqlParserPos.ZERO ) );\n intervalType = typeFactory.createTypeWithNullability( intervalType, nullable );\n return (IntervalPolyType) intervalType;\n }", "public abstract HalfOpenIntRange approximateSpan();", "private double getStartY() {\n\t\treturn Math.min(y1, y2);\n\t}", "public void compareStartEndDate() {\n String[] startDateArray = startDate.split(dateOperator);\n String[] endDateArray = endDate.split(dateOperator);\n \n // Compares year first, then month, and then day.\n if (Integer.parseInt(startDateArray[2]) > Integer.parseInt(endDateArray[2])) {\n endDate = endDateArray[0] +\"/\"+ endDateArray[1] +\"/\"+ startDateArray[2];\n } else if (Integer.parseInt(startDateArray[2]) == Integer.parseInt(endDateArray[2])) {\n if (Integer.parseInt(startDateArray[1]) > Integer.parseInt(endDateArray[1])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n } else if (Integer.parseInt(startDateArray[1]) == Integer.parseInt(endDateArray[1]) && \n Integer.parseInt(startDateArray[0]) > Integer.parseInt(endDateArray[0])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n }\n }\n }", "public static int secondsDifference(String start, String end) {\n int difference; //difference is initialized,and will be returned at the end.\n //firstsec is the amount of seconds past midnight in the start time, and\n //secondsec is the amount of seconds past midnight in the end time. In order to\n //calculate this, secondsAfterMidnight() method was called for start and end.\n int firstsec = secondsAfterMidnight(start); \n int secondsec = secondsAfterMidnight(end);\n //If start or end returns -1 through secondsAfterMidnight(), then the input was \n //not proper, so difference is set to -99999.\n if (firstsec == -1 || secondsec == -1){\n difference = -99999;\n }else { //if both inputs are proper, then proceed to calculating difference.\n difference = secondsec - firstsec;\n }\n return difference; //difference is returned to main. \n }", "public static Interval addition(Interval in1, Interval in2){\r\n return new Interval(in1.getFirstExtreme()+in2.getFirstExtreme(),in1.getSecondExtreme()+in2.getSecondExtreme(),in1.getFEincluded()==in2.getFEincluded()?in1.getFEincluded():'(',in1.getSEincluded()==in2.getSEincluded()?in1.getSEincluded():')');\r\n }", "public Note noteAt(int interval) {\n\t\tint newMidiNote = getMidiNumber() + interval;\n\t\t\n\t\treturn new Note(newMidiNote);\n\t}", "private List<Interval> merge(Interval interval, Interval dnd) {\n if (dnd.a <= interval.a && dnd.b >= interval.b) {\n return Collections.emptyList();\n }\n // [ dnd [ ] interval ]\n if (dnd.a <= interval.a && dnd.b >= interval.a) {\n return Collections.singletonList(new Interval(dnd.b, interval.b, IntervalType.E));\n }\n // [ interval [ dnd ] ]\n if (interval.a <= dnd.a && dnd.b <= interval.b) {\n return Arrays.asList(\n new Interval(interval.a, dnd.a, IntervalType.E),\n new Interval(dnd.b, interval.b, IntervalType.E)\n );\n }\n // [ interval [ ] dnd ]\n if (interval.a <= dnd.a && interval.b >= dnd.a) {\n return Collections.singletonList(new Interval(interval.a, dnd.a, IntervalType.E));\n }\n // else\n // [ int ] [ dnd ]\n // [dnd] [int]\n // return int\n return Collections.singletonList(interval);\n }", "public static String longestSubSequence(String str1, int st1, String str2, int st2) {\n if ((st1 >= str1.length()) || (st2 >= str2.length()))\n return null;\n String subStr1 = str1.substring(st1, str1.length());\n String subStr2 = str2.substring(st2, str2.length());\n String lonSeq1 = null;\n String lonSeq2 = null;\n if (subStr1.length() == 1) {\n lonSeq1 = (str2.contains(subStr1)) ? subStr1 : null;\n } else {\n lonSeq1 = longestSubSequence(str1, st1 + 1, str2, st2);\n if ((lonSeq1 != null) && (!lonSeq1.isEmpty())) {\n String sub2 = str2.substring(0, str2.indexOf(lonSeq1.charAt(0)));\n if ((sub2 != null) && (!sub2.isEmpty())) {\n if (sub2.contains(String.valueOf(str1.charAt(st1)))) {\n lonSeq1 = str1.charAt(st1) + lonSeq1;\n }\n }\n }\n }\n if (subStr2.length() == 1) {\n lonSeq2 = (str1.contains(subStr2)) ? subStr2 : null;\n } else {\n // find longestSequence with str1 index increased\n lonSeq2 = longestSubSequence(str1, st1, str2, st2 + 1);\n if ((lonSeq2 != null) && (!lonSeq2.isEmpty())) {\n // find the index of longSeq2 in str1\n String sub1 = str1.substring(0, str1.indexOf(lonSeq2.charAt(0)));\n if ((sub1 != null) && (!sub1.isEmpty())) {\n if (sub1.contains(String.valueOf(str2.charAt(st2)))) {\n lonSeq2 = str2.charAt(st2) + lonSeq2;\n }\n }\n }\n\n }\n\n if ((lonSeq1 == null) || (lonSeq1.isEmpty())) return lonSeq2;\n if ((lonSeq2 == null) || (lonSeq2.isEmpty())) return lonSeq1;\n return (lonSeq1.length() > lonSeq2.length()) ? lonSeq1 : lonSeq2;\n }", "public Coordinates midPoint(Coordinates a, Coordinates b);", "public int compare(TimeInterval ti) {\r\n\t\tlong diff = 0;\r\n\t\tfor (int field = 8; field >= 1; field--) {\r\n\t\t\tdiff += (getNumberOfIntervals(field) - ti\r\n\t\t\t\t\t.getNumberOfIntervals(field))\r\n\t\t\t\t\t* getMaximumNumberOfMinutesInField(field);\r\n\t\t}\r\n\t\tif (diff == 0)\r\n\t\t\treturn 0;\r\n\t\telse if (diff > 0)\r\n\t\t\treturn 1;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}", "public int getAvpfRrInterval();", "boolean isNewInterval();", "@Override\n public int compareTo(SkipInterval interval) {\n if(this.startAddr >= interval.startAddr && this.endAddr <= interval.endAddr){\n return 0;\n }\n if(this.startAddr > interval.startAddr){\n return 1;\n } else if(this.startAddr < interval.startAddr){\n return -1;\n } else if(this.endAddr > interval.endAddr){\n return 1;\n } else if(this.endAddr < interval.endAddr){\n return -1;\n } else\n return 0;\n \n// \n// if(this.startAddr >= interval.startAddr && this.endAddr <= interval.endAddr){\n// return 0;\n// } else if(this.startAddr > interval.endAddr){\n// return 1;\n// } else{\n// return -1;\n// }\n }", "public static boolean openIntervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 < end2 && start2 < end1);\n\t}", "public Integer getInterval() {\n\t\treturn interval;\n\t}", "WindowingClauseBetween createWindowingClauseBetween();", "public Coordinates inBetweenPoint(Coordinates a, Coordinates b, double ratio);", "public static int nextNote(int n1,int n2) {\n double rnd,sum=0;\n rnd=Math.random();\n for(int i=0;i<12;i++)\n {\n sum+=weights[n1-60][n2-60][i];\n\n if(rnd<=sum)\n return i+60;\n }\n return 62;\n }", "private PairOfNodeIndexIntervals createNodeIndexIntervalPair(int firstStart, int secondStart, int matchedLen) {\n\t\t// new first and second \n\t\tNodeIndexInterval first = new NodeIndexInterval(getStartNodeIndex(firstStart),\n\t\t\t\tgetEndNodeIndex(firstStart, matchedLen));\n\t\tNodeIndexInterval second = new NodeIndexInterval(getStartNodeIndex(secondStart),\n\t\t\t\tgetEndNodeIndex(secondStart, matchedLen));\n\n\t\tPairOfNodeIndexIntervals pair = new PairOfNodeIndexIntervals(first, second);\n\n\t\treturn pair;\n\t}", "@Override\n\tpublic long getTimeLapsed(long start, long end) {\n\t\tlong difference=(end - start);\n\t\treturn difference;\t}", "public static Interval product(Interval in1, Interval in2){\r\n return new Interval(in1.getFirstExtreme()*in2.getFirstExtreme(),in1.getSecondExtreme()*in2.getSecondExtreme(),in1.getFEincluded()==in2.getFEincluded()?in1.getFEincluded():'(',in1.getSEincluded()==in2.getSEincluded()?in1.getSEincluded():')');\r\n }", "public static boolean intervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 <= end2 && start2 <= end1);\n\t}", "private int beforeNowAfter(Date lectureDate, int start, int end){\n Date now = new Date();\n if(lectureDate.getYear()<now.getYear()){\n return 0;\n }else if(lectureDate.getYear()>now.getYear()){\n return 2;\n }else{\n if(lectureDate.getMonth()<now.getMonth()){\n return 0;\n }else if(lectureDate.getMonth()>now.getMonth()){\n return 2;\n }else{\n if(lectureDate.getDate()<now.getDate()){\n return 0;\n }else if(lectureDate.getDate()>now.getDate()){\n return 2;\n }else{\n if(end==now.getHours()&&now.getMinutes()>15){ //Lectures end officially after 15min past the end hour.\n return 0;\n }else if(end<now.getHours()){\n return 0;\n }else if(start>now.getHours()){\n return 2;\n }else{\n return 1;\n }\n }\n }\n }\n }", "Intervalle(double bas, double haut){\n this.inf = bas;\n this.sup = haut;\n }", "private Interval readRecordInterval(Record row, Session session) {\n Timestamp start = (Timestamp) session.getDatasourcePlatform().convertObject(row.get(\"recordinterval_0\"), java.sql.Timestamp.class);\n Timestamp end = (Timestamp) session.getDatasourcePlatform().convertObject(row.get(\"recordinterval\"), java.sql.Timestamp.class);\n return new Interval(start.getTime(), end.getTime());\n }", "net.opengis.gml.x32.TimeIntervalLengthType getTimeInterval();", "public double getDifference()\n {\n return first - second;\n }", "private int alwaysMoreOpen(int start, int end, String s){\n int diff=0, temp=0, res=0;\n for(int i=end; i>start;i--){\n if(s.charAt(i)==')') diff++;\n else {\n if(diff>0){\n diff--;\n temp+=2;\n }\n else{\n res=Math.max(temp,res);\n temp=0;\n }\n }\n }\n return Math.max(temp,res);\n}", "public int nonOverlapIntervals(Interval[] intervals) {\n\t\tif (intervals == null || intervals.length == 0)\n\t\t\treturn 0;\n\t\tArrays.sort(intervals, (o1, o2) -> o1.end - o2.end);\n\t\t// comparator is quicker than lambda\n\t\tArrays.sort(intervals, new Comparator<Interval>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Interval o1, Interval o2) {\n\t\t\t\treturn o1.end - o2.end;\n\t\t\t}\n\t\t});\n\t\tint end = intervals[0].end, count = 1;\n\t\t// find longest non-conflict\n\t\tfor (int i = 1; i < intervals.length; i++) {\n\t\t\t// conflict\n\t\t\tif (intervals[i].start >= end) {\n\t\t\t\tcount++;\n\t\t\t\tend = intervals[i].end;\n\t\t\t}\n\t\t}\n\t\treturn intervals.length - count;\n\t}", "public ArrayList<Interval> merge(ArrayList<Interval> intervals) {\n if (intervals.size() > 1) {\n int[] startArray = new int[intervals.size()];\n int[] endArray = new int[intervals.size()];\n ArrayList<Interval> ans = new ArrayList<>();\n int count = 0;\n for (Interval val : intervals) {\n startArray[count] = val.start;\n endArray[count] = val.end;\n count++;\n }\n Arrays.sort(startArray);\n Arrays.sort(endArray);\n\n\n for (int i = 0; i < intervals.size()-1; i++) {\n int start = startArray[i];\n int end = endArray[i];\n\n while (i<intervals.size()-1 && startArray[i+1]<=end){\n end=endArray[i+1];\n i++;\n }\n\n Interval interval = new Interval(start,end);\n ans.add(interval);\n\n }\n\n return ans;\n }\n return intervals;\n }", "public int intersectionSizeTwo(int[][] intervals) {\n \tint n = intervals.length;\n \tArrays.sort(intervals, new Comparator<int[]>() {\n\t\t\t@Override\n\t\t\tpublic int compare(int[] o1, int[] o2) {\n\t\t\t\treturn o1[1] == o2[1]?o2[0]-o1[0]:o1[1]-o2[1];\n\t\t\t}\n\t\t});\n \t\n \tint res = 0;\n \t// two highest most point have more chances of being picked later\n \t/* proof why largest two elements are enough\n \t * intervals are sorted in increasing end point.\nhttps://leetcode.com/problems/set-intersection-size-at-least-two/discuss/113085/Ever-wonder-why-the-greedy-algorithm-works-Here-is-the-explanation!\n \t */\n \tint l = intervals[0][1] - 1, r = intervals[0][1];\n \tres += 2;\n \t\n \tfor(int i = 0;i < n;i++) {\n \t\tint []curr = intervals[i];\n \t\t// 1 element common\n \t\tif(l < curr[0] && curr[0] <= r) {\n \t\t\tres++;\n \t\t\tl = r;\n \t\t\tr = curr[1];\n \t\t// none common \n \t\t} else if(curr[0] > r) {\n \t\t\tres += 2;\n \t\t\tl = curr[1]-1;\n \t\t\tr = curr[1];\n \t\t}\n \t}\n \treturn res;\n }", "public static int getDistance(int startKey, int endKey) {\n\t\t// Rounding keys to the nearest (lower) white key\n\t\tstartKey = PianoKeyboard.isWhite(startKey) ? startKey : startKey - 1;\n\t\tendKey = PianoKeyboard.isWhite(endKey) ? endKey : endKey - 1;\n\n\t\t// Computing distance of each from C0\n\t\t// Moving notes in same octave\n\t\tint normStartKey = Note.getNoteInRange(startKey, Note.C0, Note.B0);\n\t\tint normEndKey = Note.getNoteInRange(endKey, Note.C0, Note.B0);\n\n\t\tint normDistA = 0;\n\t\tint normDistB = 0;\n\t\tint[] majorScale = Chord.majorScale();\n\t\tfor(int i = 0; i < majorScale.length; i++) {\n\t\t\tif(normStartKey == Note.C0 + majorScale[i]) {\n\t\t\t\tnormDistA = i;\n\t\t\t}\n\t\t\tif(normEndKey == Note.C0 + majorScale[i]) {\n\t\t\t\tnormDistB = i;\n\t\t\t}\n\t\t}\n\n\t\t// Computing absolute distances from C0\n\t\tint distA = normDistA + 7 * ((startKey - normStartKey) / 12);\n\t\tint distB = normDistB + 7 * ((endKey - normEndKey) / 12);\n\n\t\treturn distB - distA;\n\t}", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "int getLimit( Token t1, Token t2) \r\n {\r\n \tMExprToken lastToken = (MExprToken)t1;\r\n \tMExprToken nextToken = (MExprToken)t2;\r\n \t\r\n \tint end = lastToken.getCharEnd();\r\n \tint start = nextToken.getCharStart();\r\n \t\r\n \tif ( end+1 < start) {\r\n \t\treturn end+1;\r\n \t}\r\n \t/*\r\n \t * I can't see how this can happen, but this is not terrible.\r\n \t */\r\n return end;\r\n }", "boolean overlap(AbstractNote other) {\n return this.type == other.type &&\n this.octave == other.octave;\n }", "public boolean isOverLap(DateInterval other)\n\t{\n\n\t\tif (startDate.isAfter(other.startDate) && startDate.isBefore(other.endDate) || endDate.isAfter(other.startDate) && endDate.isBefore(other.endDate) || other.startDate.isAfter(startDate) && other.startDate.isBefore(endDate) || other.endDate.isAfter(startDate) && other.endDate.isBefore(endDate))\n\t\t\treturn true;\n\t\treturn false;\n\n\t}", "static int compare(EpochTimeWindow left, EpochTimeWindow right) {\n long leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getBeginTime();\n long rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getBeginTime();\n\n int result = Long.compare(leftValue, rightValue);\n if (0 != result) {\n return result;\n }\n\n leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getEndTime();\n rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getEndTime();\n\n result = Long.compare(leftValue, rightValue);\n return result;\n }", "private static double distanceRange(Range r1, Range r2) {\n if (r1 == null || r2 == null) {\n return 0D;\n }\n int a =\n Math.max(\n Math.abs(r1.getStartLine() - r2.getStartLine()),\n Math.abs(r1.getEndLine() - r2.getEndLine()));\n int b = myMax(r1.getStartLine(), r1.getEndLine(), r2.getStartLine(), r2.getEndLine());\n return formatDouble(1.0 - (double) a / b);\n }", "public static Note lookupRest (Chord left,\r\n Chord right)\r\n {\r\n // Define the area limited by the left and right chords with their stems\r\n // and check for intersection with a rest note\r\n Polygon polygon = new Polygon();\r\n polygon.addPoint(left.headLocation.x, left.headLocation.y);\r\n polygon.addPoint(left.tailLocation.x, left.tailLocation.y);\r\n polygon.addPoint(right.tailLocation.x, right.tailLocation.y);\r\n polygon.addPoint(right.headLocation.x, right.headLocation.y);\r\n\r\n for (TreeNode node : left.getMeasure().getChords()) {\r\n Chord chord = (Chord) node;\r\n\r\n // Not interested in the bounding chords\r\n if ((chord == left) || (chord == right)) {\r\n continue;\r\n }\r\n\r\n for (TreeNode n : chord.getNotes()) {\r\n Note note = (Note) n;\r\n\r\n // Interested in rest notes only\r\n if (note.isRest()) {\r\n Rectangle box = note.getBox();\r\n\r\n if (polygon.intersects(box.x, box.y, box.width, box.height)) {\r\n return note;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n }", "public long checkInterval()\r\n/* 184: */ {\r\n/* 185:363 */ return this.checkInterval.get();\r\n/* 186: */ }", "Between createBetween();", "public int compare(TimeSpan std1, TimeSpan std2) {\n\t\t\t//ascending order\n\t\t\treturn std1.start - std2.start;\n\t\t}", "public static Interval union(Interval in1, Interval in2){\r\n if (Interval.intersection(in1, in2).isEmpty())\r\n return new Interval();\r\n double a = in1.getFirstExtreme();\r\n double b = in1.getSecondExtreme();\r\n double c = in2.getFirstExtreme();\r\n double d = in2.getSecondExtreme();\r\n double fe, se;\r\n char ai = in1.getFEincluded();\r\n char bi = in1.getSEincluded();\r\n char ci = in2.getFEincluded();\r\n char di = in2.getSEincluded();\r\n char fei, sei;\r\n if (a<c){\r\n fe = a;\r\n fei = ai;\r\n }\r\n else if (a>c){\r\n fe = c;\r\n fei = ci;\r\n }\r\n else{\r\n fe = a;\r\n fei = ai==ci?ai:'(';\r\n }\r\n if (d<b){\r\n se = b;\r\n sei = bi;\r\n }\r\n else if (d>b){\r\n se = d;\r\n sei = di;\r\n }\r\n else{\r\n se = b;\r\n sei = bi==di?bi:')';\r\n }\r\n return new Interval(fe,se,fei,sei);\r\n }", "private long getTimeIni(ArrayList<Point> r, ArrayList<Point> s){\n\t\t// Get the trajectory with latest first point\n\t\tlong t1 = s.get(0).timeLong > r.get(0).timeLong ? \n\t\t\t\ts.get(0).timeLong : r.get(0).timeLong;\n\t\treturn t1;\n\t}", "public interface IntervalRange<V extends Comparable<V>> extends Range<V> {\n\n\t/**\n\t * This method returns the lower bound of the interval.\n\t * \n\t * @return the lower bound. <code>null</code> means there is no lower bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getLowerBound();\n\n\t/**\n\t * This method returns the upper bound of the interval.\n\t * \n\t * @return the upper bound. <code>null</code> means there is no upper bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getUpperBound();\n\n}", "private static int getSequenceOverlapIndex(String base, String toOverlay) {\n\t\tif (toOverlay.length() <= base.length() / 2) {\n\t\t\treturn -1;\n\t\t}\n\n\t\t// Start with the first half of the overlaying sequence\n\t\tStringBuilder suffix = new StringBuilder();\n\t\tsuffix.append(toOverlay.substring(0, base.length() / 2 + 1));\n\n\t\t// Pull characters from the rest of the overlaying sequence until a match is found\n\t\tfor (int i = base.length() / 2 + 1; i < toOverlay.length(); i++) {\n\t\t\tsuffix.append(toOverlay.charAt(i));\n\n\t\t\tif (base.endsWith(suffix.toString())) {\n\t\t\t\treturn base.length() - suffix.length();\n\t\t\t}\n\t\t}\n\n\t\t// No overlap found\n\t\treturn -1;\n\t}", "@Override\n public int compareTo(Interval o) {\n return 0;\n }", "public List<Interval> merge(List<Interval> intervals) {\n // sort the interval list by start\n Collections.sort(intervals, new Comparator<Interval>() {\n @Override\n public int compare(Interval o1, Interval o2) {\n return o1.start - o2.start;\n }\n });\n // use a linked list as data structure\n LinkedList<Interval> output = new LinkedList<>();\n for (Interval interval : intervals) {\n if (output.isEmpty()) {\n output.addLast(interval);\n } else {\n if (interval.start <= output.getLast().end) {\n // if present interval.start <= last interval.end,\n // update last interval.end by max interval.end between present and last\n output.getLast().end = Math.max(interval.end, output.getLast().end);\n } else {\n output.addLast(interval);\n }\n }\n }\n return output;\n }", "@Test(dataProvider = \"optionalOrNot\", expectedExceptions = CommandLineException.BadArgumentValue.class)\n public void testIntervalSetAndMergingOverlap(IntervalArgumentCollection iac){\n iac.addToIntervalStrings(\"1:1-100\");\n iac.addToIntervalStrings(\"1:101-200\");\n iac.addToIntervalStrings(\"1:90-110\");\n iac.intervalSetRule = IntervalSetRule.INTERSECTION;\n iac.intervalMergingRule = IntervalMergingRule.ALL;\n iac.getIntervals(hg19GenomeLocParser.getSequenceDictionary());\n }", "public Interval plus(Interval other) {\n\t\tInterval result = new Interval(\"\", \"\");\n\n\t\tif (isNegativeInfinite() || other.isNegativeInfinite())\n\t\t\tresult.setLow(\"-Inf\");\n\t\telse {\n\t\t\tresult.setLow(String.valueOf(Long.parseLong(this.getLow()) + Long.parseLong(other.getLow())));\n\t\t}\n\n\t\tif (isPositiveInfinite() || other.isPositiveInfinite())\n\t\t\tresult.setHigh(\"+Inf\");\n\t\telse {\n\t\t\tresult.setHigh(String.valueOf(Long.parseLong(this.getHigh()) + Long.parseLong(other.getHigh())));\n\t\t}\n\n\t\treturn result;\n\t}", "public Interval(String low, String high) {\n\t\tthis.low = low;\n\t\tthis.high = high;\n\t}", "public static List<Interval> insert(List<Interval> intervals, Interval newInterval) {\n\t\t\tList<Interval> res = new ArrayList<Interval>();\n\t if (intervals == null||intervals.size() == 0){\n\t res.add(newInterval);\n\t return res;\n\t }\n\t\t\tint start=0, end = 0; \n\t\t\t// find the insert position for newInterval , to be insert or merged\n\t\t\tfor( Interval interval : intervals) {\n\t\t\t\tif(newInterval.start > interval.end) start++;\n\t\t\t\tif(newInterval.end >= interval.start) end++;\n\t\t\t else break;\n\t\t\t}\n\t\t\t\n\t\t\tif(start== end) { // no need merge, just copy all intervals into res\n\t\t\t\tres.addAll(intervals);\n\t\t\t\tres.add(start, newInterval) ; // insert the new one\n\t\t\t\treturn res;\n\t\t\t}\n\t\t\tfor(int i=0; i< start; i++) res.add(intervals.get(i));\n\t\t\t// intervl and newInterval are a closer range\n\t\t\tInterval interval = new Interval( Math.min( intervals.get(start).start, newInterval.start),\n\t\t\t\t\t\t\t\t\t\t\t\tMath.max( intervals.get(end-1).end, newInterval.end)); // note that, it's end-1\n\t\t\tres.add(interval);\n\t\t\tfor(int j=end; j< intervals.size(); j++) {\n\t\t\t\tres.add(intervals.get(j)); // after the newInterval insert, copy the remains into res\n\t\t\t}\n\t\t\treturn res;\n\t\t}", "long getMid();", "long getMid();", "private static int editDis(String str1, String str2, int l1, int l2) {\n\t\tint[][] dp = new int[l1+1][l2+1];\n\t\tfor(int i=0;i<l2+1;i++) {\n\t\t\tdp[0][i]=i;\n\t\t}\n\t\tfor(int i=0;i<l1+1;i++) {\n\t\t\tdp[i][0]=i;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<l1+1;i++) {\n\t\t\tfor(int j=1;j<l2+1;j++) {\n\t\t\t\tif(str1.charAt(i-1)==str2.charAt(j-1))\n\t\t\t\t\tdp[i][j]=dp[i-1][j-1];\n\t\t\t\telse {\n\t\t\t\t\tdp[i][j]=Math.min(dp[i][j], Math.min(dp[i][j-1], dp[i-1][j]))+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[l1][l2];\n\t\t\n\t}", "public boolean overlaps(ReadableInterval interval) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[11]++;\r\n long thisStart = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[12]++;\r\n long thisEnd = getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[13]++;\nint CodeCoverConditionCoverageHelper_C4;\r\n if ((((((CodeCoverConditionCoverageHelper_C4 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C4 |= (2)) == 0 || true) &&\n ((interval == null) && \n ((CodeCoverConditionCoverageHelper_C4 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[4].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C4, 1) || true)) || (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[4].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C4, 1) && false)) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[7]++;\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[14]++;\r\n long now = DateTimeUtils.currentTimeMillis();\r\n return (thisStart < now && now < thisEnd);\n\r\n } else {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[8]++;\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[15]++;\r\n long otherStart = interval.getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[16]++;\r\n long otherEnd = interval.getEndMillis();\r\n return (thisStart < otherEnd && otherStart < thisEnd);\r\n }\r\n }", "public ListNode findMergePointIn_Time_Order_N_(ListNode list1,ListNode list2 ){\n\t\t\n\t\tif(list1==null || list2==null)\n\t\t\treturn null;\n//\t\telse if((list1!=null && list1.next==null) && (list2!=null && list2.next==null) && (list1.val==list2.val) )) {\n//\t\t return list1;\n//\t\t}\t\n//\t\n\t\telse{\n\t\t\tint length1=0,length2=0,diff = 0;\n\t\t\tListNode head1 =list1;\n\t\t\tListNode head2 = list2;\n\t\t\twhile(head1!=null){\n\t\t\t\tlength1++;\n\t\t\t\thead1=head1.getNextNode();\n\t\t\t}\n\t\t\twhile(head2!=null){\n\t\t\t\tlength1++;\n\t\t\t\thead2=head2.getNextNode();\n\t\t\t}\n\t\t\tif(length1<length2){\n\t\t\t\thead1=list2;//bigger list in h1\n\t\t\t\thead2=list1;//smaller in h2\n\t\t\t\tdiff= length2-length1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thead1=list1;//bigger list in h1\n\t\t\t\thead2=list2;//smaller list in h2\n\t\t\t\tdiff= length2-length1;\n\t\t\t}\n\t\t\tint pos =0;\n\t\t\twhile(pos<diff){ //till we are at (diff+1) position in larger list \n\t\t\t\thead1=head1.getNextNode();\n\t\t\t\tpos++;\n\t\t\t}\n\t\t\twhile(head1!=null && head2!=null){//increase till end of link list \n\t\t\t\tif(head1==head2){\n\t\t\t\t\treturn head1;\n\t\t\t\t}\n\t\t\t\thead1=head1.getNextNode();\n\t\t\t\thead2=head2.getNextNode();\n\t\t\t}\n\t\t\treturn head1.getNextNode();\n\t\t}\n\t}", "@Override\n\tpublic NoteValueRange getNoteValueRange() {\n\t\tinKeyNoteValueRange.setLowestNote(lowestNote.getNoteValue());\n\t\tinKeyNoteValueRange.setHighestNote(highestNote.getNoteValue());\n\t\treturn inKeyNoteValueRange;\n\t}", "public boolean insert (IInterval interval) {\n\t\tcheckInterval (interval);\n\t\t\n\t\tint begin = interval.getLeft();\n\t\tint end = interval.getRight();\n\t\t\n\t\tboolean modified = false;\n\t\t\n\t\t// Matching both? \n\t\tif (begin <= left && right <= end) {\n\t\t\tcount++;\n\t\t\t\n\t\t\t// now allow for update (overridden by subclasses)\n\t\t\tupdate(interval);\n\t\t\t\n\t\t\tmodified = true;\n\t\t} else {\n\t\t\tint mid = (left+right)/2;\n\n\t\t\tif (begin < mid) { modified |= lson.insert (interval); }\n\t\t\tif (mid < end) { modified |= rson.insert (interval); }\n\t\t}\n\t\t\n\t\treturn modified;\n\t}", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "private static int getExplanationDeadlineInterval(ConfigurationObject config) {\r\n\r\n // Read explanation deadline interval:\r\n String valueStr = Helper.getPropertyValue(config, EXPLANATION_DEADLINE_INTERVAL, false, false);\r\n int value;\r\n try {\r\n if (valueStr != null) {\r\n value = Integer.parseInt(valueStr);\r\n\r\n if (value <= 0) {\r\n throw new LateDeliverablesTrackerConfigurationException(\r\n \"The property 'explanationDeadlineIntervalInHours' should be a positive integer.\");\r\n }\r\n } else {\r\n value = DEFAULT_EXPLANATION_DEADLINE_INTERVAL;\r\n }\r\n\r\n } catch (NumberFormatException e) {\r\n throw new LateDeliverablesTrackerConfigurationException(\r\n \"The property 'explanationDeadlineIntervalInHours' should be a positive integer.\", e);\r\n }\r\n\r\n return value;\r\n\r\n }", "public Interval(){\r\n firstExtreme = 0.0d;\r\n secondExtreme = 0.0d;\r\n feIncluded = '(';\r\n seIncluded = ')';\r\n }", "private boolean isIntervalSelected(Date startDate, Date endDate)\n/* */ {\n/* 133 */ if (isSelectionEmpty()) return false;\n/* 134 */ return (((Date)this.selectedDates.first()).equals(startDate)) && (((Date)this.selectedDates.last()).equals(endDate));\n/* */ }", "protected int findInterval( Double val ){\n\t\tfor( int i = 0; i < histogram.length; i++ ){\n\t\t\tif( (lowerBound + i * this.interval) >= val )\n\t\t\t\treturn Math.max( 0, i - 1 );\n\t\t}\n\t\treturn histogram.length - 1;\n\t}" ]
[ "0.59555984", "0.59114623", "0.57582754", "0.5598976", "0.55202353", "0.55037564", "0.53896254", "0.5359899", "0.5260694", "0.5229542", "0.52114666", "0.51593524", "0.5155298", "0.5136241", "0.5114633", "0.5086639", "0.5080359", "0.50660753", "0.5065622", "0.5046366", "0.5017644", "0.50122404", "0.5011555", "0.4990052", "0.4989161", "0.49804217", "0.49767125", "0.4943073", "0.49401957", "0.49317726", "0.4925978", "0.49008742", "0.4884127", "0.4863534", "0.48633018", "0.48438612", "0.48395854", "0.48301017", "0.48196313", "0.48176396", "0.48051175", "0.47992367", "0.47546136", "0.47379982", "0.47356567", "0.4727063", "0.47135076", "0.47044018", "0.47001424", "0.46943673", "0.46877274", "0.46821266", "0.4668878", "0.46616444", "0.46595103", "0.4656747", "0.46496326", "0.46322122", "0.4627986", "0.46243417", "0.46195364", "0.4618246", "0.46165058", "0.46128094", "0.46080762", "0.45890498", "0.45797968", "0.4567394", "0.45576814", "0.45518318", "0.45363802", "0.45361125", "0.45351118", "0.4527504", "0.45232183", "0.45202225", "0.45176172", "0.451539", "0.45149982", "0.44871014", "0.44854808", "0.44820085", "0.4474934", "0.44739836", "0.4468018", "0.44636494", "0.44620448", "0.44600445", "0.44539845", "0.44539845", "0.4447362", "0.4446088", "0.4439616", "0.44251776", "0.44229168", "0.44201416", "0.44121736", "0.44120076", "0.44118476", "0.44065922" ]
0.7040199
0
Finds the note at a given interval.
public Note noteAt(int interval) { int newMidiNote = getMidiNumber() + interval; return new Note(newMidiNote); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testfindNote() {\n System.out.println(\"findNote\");\n net.sharedmemory.tuner.Note instance = new net.sharedmemory.tuner.Note();\n\n double frequency = 441.123;\n java.lang.String expectedResult = \"A4\";\n java.lang.String result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 523.25;\n expectedResult = \"C5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 417.96875;\n expectedResult = \"G#4\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 1316.40625;\n expectedResult = \"B5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n }", "ArrayList<INote> getNotesAt(int beatNum);", "public Note getNote(Note note) throws NoSuchElementException;", "private int searchIndex(int low, int high, int millisecond) {\n\n int mid;\n\n int cnt = mLyricContent.size() - 1;\n if (low < 0 || low > cnt || high < 0 || high > cnt || high < low) {\n throw new IllegalArgumentException();\n }\n\n // should be the first sentence\n if (low == 0 && millisecond <= mLyricContent.elementAt(low).getTime() ) {\n return low;\n }\n\n // should be the last sentence\n if ((mLyricContent.size() - 1) == high\n && mLyricContent.elementAt(high).getTime() <= millisecond) {\n return high;\n }\n\n while (low < high) {\n mid = (high + low) / 2;\n if (mLyricContent.elementAt(mid).getTime() <= millisecond) {\n if (millisecond < mLyricContent.elementAt(mid + 1).getTime()) {\n return mid;\n } else {\n low = mid + 1;\n continue;\n }\n } else {\n if (mLyricContent.elementAt(mid - 1).getTime() <= millisecond) {\n return mid - 1;\n } else {\n high = mid - 1;\n continue;\n }\n }\n }\n\n return INVALID_INDEX; // -1\n }", "public static int findInDict(String note){\n\t\tint pos = -1;\n\t\tString altNote = note.substring(1, note.length()) + note.substring(0,1);\n\n\t\tfor(int x = 0; x < noteDictionary.length - 1; x++){\n\t\t\tif(note.equals(noteDictionary[x])\n\t\t\t\t|| altNote.equals(noteDictionary[x])){\n\t\t\t\tpos = x;\n\t\t\t\tx = noteDictionary.length;\n\t\t\t}\n\t\t}\n\t\treturn pos;\n\t}", "public static int findInDictR(String note){\n\t\tint pos = -1;\n\t\tString altNote = note.substring(1, note.length()) + note.substring(0,1);\n\n\t\tfor(int x = noteDictionary.length - 1; x > 0; x--){\n\t\t\tif(note.equals(noteDictionary[x])\n\t\t\t\t|| altNote.equals(noteDictionary[x])){\n\t\t\t\tpos = x;\n\t\t\t\tx = 0;\n\t\t\t}\n\t\t}\n\t\treturn pos;\n\t}", "public S interval(String interval) {\n builder.interval(interval);\n return self;\n }", "public S interval(Long interval) {\n builder.interval(interval);\n return self;\n }", "public int getInterval(Note otherNote) {\n\t\treturn getMidiNumber() - otherNote.getMidiNumber();\n\t}", "private void getNotes(MusicCircle circle){\n\t\tif(! circle.isMuted()){\n\t\t\tfor(int i=0; i<circle.getNumNotes(); i++){\n\t\t\t\tif( circle.getS(i) != SILENCE) note(circle.getT(i) + loopOffset, circle.getD(i), Fofs(circle.getS(i) + circle.getBaseSemitone()));\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic TextNote getTextNote(TextNote note) {\n\t\tif (note == null) return note;\n\t\t\n\t\tList<TextNote> noteList = repository.findAll();\n\t\tint listIndex = noteList.indexOf(note);\n\t\treturn noteList.get(listIndex);\n\t}", "void searchNotes(Note arr[]){\n\n }", "public static int getNotePosition(Byte midiByte) {\n int shifted = midiByte.intValue() - Constants.MIDI_OFFSET;\n int octave = shifted / 12;\n int keyIndex = shifted % 12;\n return ((7 * octave) * wkInterval + offsetMap[keyIndex]); //hardcoded\n }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "@Override\n\tpublic Note findById(Serializable id) {\n\t\tString sql = \"select * from cn_note where cn_note_id=?\";\n\t\ttry {\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\n\t\t\tpst.setString(1, (String)id);\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\tif(rs.next()){\n\t\t\t\tNote n = new Note();\n\t\t\t\tString cn_note_id = rs.getString(\"cn_note_id\");\n\t\t\t\tString cn_notebook_id = rs.getString(\"cn_notebook_id\");\n\t\t\t\tString cn_user_id = rs.getString(\"cn_user_id\");\n\t\t\t\tString cn_note_status_id = rs.getString(\"cn_note_status_id\");\n\t\t\t\tString cn_note_type_id = rs.getString(\"cn_note_type_id\");\n\t\t\t\tString cn_note_title = rs.getString(\"cn_note_title\");\n\t\t\t\tString cn_note_body = rs.getString(\"cn_note_body\");\n\t\t\t\tlong cn_note_create_time = rs.getLong(\"cn_note_create_time\");\n\t\t\t\tlong cn_note_last_modify_time = rs.getLong(\"cn_note_last_modify_time\");\n\t\t\t\tn.setCn_note_body(cn_note_body);\n\t\t\t\tn.setCn_note_create_time(cn_note_create_time);\n\t\t\t\tn.setCn_note_id(cn_note_id);\n\t\t\t\tn.setCn_note_last_modify_time(cn_note_last_modify_time);\n\t\t\t\tn.setCn_note_status_id(cn_note_status_id);\n\t\t\t\tn.setCn_note_title(cn_note_title);\n\t\t\t\tn.setCn_note_type_id(cn_note_type_id);\n\t\t\t\tn.setCn_notebook_id(cn_notebook_id);\n\t\t\t\tn.setCn_user_id(cn_user_id);\n\t\t\t\treturn n;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "void addNote(int duration, int octave, int beatNum, int instrument, int volume, String pitch)\n throws IllegalArgumentException;", "@Test\n\tpublic void findIndividualNotesTest() {\n//\t\tlog.trace(\"Finding Individual Notes\");\n\t\tfinal short week = 2;\n\n\t\t// get the list of individual notes for week 2\n\t\tList<Note> notes = noteDao.findIndividualNotes(TEST_QCBATCH_ID, week);\n\n\t\t// check if the individual notes size is equal to 16\n\t\tassertEquals(16, notes.size());\n\t}", "public boolean contains(Note note);", "public static int getNote(MidiMessage mes){\r\n\t\tif (!(mes instanceof ShortMessage))\r\n\t\t\treturn 0;\r\n\t\tShortMessage mes2 = (ShortMessage) mes;\r\n\t\tif (mes2.getCommand() != ShortMessage.NOTE_ON)\r\n\t\t\treturn 0;\t\r\n\t\tif (mes2.getData2() ==0) return -mes2.getData1();\r\n\t\treturn mes2.getData1();\r\n\t}", "void openNote(Note note, int position);", "@Test\n\tpublic void noteContentCallback() throws Exception {\n\t\tadd(\"test.txt\", \"abc\");\n\t\tfinal String note = \"this is a note\";\n\t\tnote(note);\n\n\t\tfinal AtomicReference<String> found = new AtomicReference<String>();\n\n\t\tCommitFinder finder = new CommitFinder(testRepo);\n\t\tfinder.setFilter(new NoteContentFilter() {\n\n\t\t\tprotected boolean include(RevCommit commit, Note note,\n\t\t\t\t\tString content) {\n\t\t\t\tfound.set(content);\n\t\t\t\treturn super.include(commit, note, content);\n\t\t\t}\n\n\t\t});\n\t\tfinder.find();\n\t\tassertEquals(note, found.get());\n\t}", "public TimedVariable findWithin(long sec, int fudge)\n\t{\n//Logger.instance().info(\"findWithin(\" + sec + \", \" + fudge + \")\"\n//+ \"date value = \" + (new Date(sec*1000L)));\n\t\tfor(TimedVariable tv : vars)\n\t\t{\n\t\t\tint sect = (int)(tv.getTime().getTime() / 1000L);\n\t\t\tint dt = sect - (int)sec;\n//Logger.instance().info(\"findWithin sect=\" + sect + \", dt=\" + dt);\n\t\t\tif (dt == 0)\n\t\t\t\treturn tv;\n\t\t\t\n\t\t\t// 20170525 Changed second clause below from \"dt <= fudge\" to \"dt < fudge\".\n\t\t\t// This will prevent a value from being considered part of two different time slices.\n\t\t\t// Example roundSec=60, so fudge=30. If sec=12:00:00 we want to accept 11:59:30...12:00:29\n\t\t\t// because 12:00:30 would be considered part of the 12:01 timeslice.\n\t\t\tif (-fudge <= dt && dt < fudge)\n\t\t\t\treturn tv;\n\t\t}\n\t\treturn null;\n\t}", "public TimedVariable findInterp(long sec)\n\t{\n\t\t// If we have a value at the specified time, just return it.\n\t\tTimedVariable tv = this.findWithin(sec, 0);\n\t\tif (tv != null)\n\t\t\treturn tv;\n\t\t\n\t\tTimedVariable prev = findPrev(sec);\n\t\tTimedVariable next = findNext(sec);\n\t\tif (prev == null || next == null)\n\t\t\treturn null;\n\n\t\tlong prevSec = (prev.getTime().getTime() / 1000L);\n\t\tlong nextSec = (next.getTime().getTime() / 1000L);\n\t\tlong timeRange = nextSec - prevSec;\nLogger.instance().debug3(\"findInterp(sec=\" + sec + \") prevSec=\" + prevSec + \", nextSec=\" + nextSec);\n\t\tif (timeRange == 0)\n\t\t\treturn null;\n\n\t\tdouble pos = (double)(sec - prevSec) / (double)timeRange;\n\n\t\tdouble prevVal = 0.0;\n\t\tdouble nextVal = 0.0;\n\t\ttry\n\t\t{\n\t\t\tprevVal = prev.getDoubleValue();\n\t\t\tnextVal = next.getDoubleValue();\n\t\t}\n\t\tcatch(ilex.var.NoConversionException ex)\n\t\t{\n\t\t\tLogger.instance().warning(\"Attempt to interpolate a non-number.\");\n\t\t\treturn null;\n\t\t}\n\t\tdouble val = prevVal + (nextVal - prevVal) * pos;\n\t\tTimedVariable ret = new TimedVariable(val);\n\t\tret.setTime(new Date(sec * 1000L));\n\t\treturn ret;\n\t}", "public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfNotes(String lowerInclusive, String upperInclusive) {\n return fetchRange(Income.INCOME.NOTES, lowerInclusive, upperInclusive);\n }", "void addNote(int duration, int octave, int beatNum, String pitch)\n throws IllegalArgumentException;", "@Override\n public void addNote(Note n) {\n if (this.sheet.size() < n.getDuration() + n.getStartMeasure()) {\n for (int i = this.sheet.size(); i < n.getDuration() + n.getStartMeasure(); i++) {\n sheet.add(new HashSet<>());\n }\n }\n for (int i = 0; i < n.getDuration(); i++) {\n for (Note t : this.sheet.get(i + n.getStartMeasure())) {\n if (t.equals(n)) {\n throw new IllegalArgumentException(\"Already placed a note.\");\n }\n }\n }\n this.sheet.get(n.getStartMeasure()).add(n);\n int currentMeasure = n.getStartMeasure() + 1;\n for (int i = 1; i < n.getDuration(); i++) {\n Note hold = new Note(1, n.getOctave(), currentMeasure,\n n.getPitch(), false, n.getInstrument(), n.getVolume());\n this.sheet.get(currentMeasure).add(hold);\n currentMeasure++;\n }\n\n this.high = this.getHighest();\n this.low = this.getLowest();\n }", "String note();", "public Interval getInterval() { return interval; }", "public void noteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n getReturnPattern().addElement(note);\r\n }", "public int findMatchingBracket(\n final IDocument document,\n final int offset,\n boolean exact)\n {\n if (exact) bracketMatcher.setViewer(null);\n try\n {\n final int[] ret = new int[1];\n \n IRegion matchRegion = bracketMatcher.match(document, offset);\n \n if (matchRegion == null) ret[0] = -1;\n else ret[0] =\n matchRegion.getOffset() == offset - 1\n ? matchRegion.getOffset() + matchRegion.getLength() - 1\n : matchRegion.getOffset();\n \n return ret[0];\n }\n finally\n {\n if (exact) bracketMatcher.setViewer(sourceViewer);\n }\n }", "@Override\n public List getNotesPlayingAtBeat(int beat) {\n List<Note> notes = this.getNotes();\n ArrayList<Note> notesAtBeat = new ArrayList<>();\n\n for (int i = 0; i < notes.size(); i++) {\n Note current = notes.get(i);\n\n if (current.isPlaying(beat)) {\n notesAtBeat.add(current);\n }\n }\n\n return notesAtBeat;\n }", "public int getNoteIndex(long id){\n\t\tint result = -1;\n\t\tObjectListElement e;\n\t\tfor(int i = 0 ; i<allNotes.size();i++){\n\t\t\te = allNotes.get(i);\n\t\t\tif(e.getId()==id){\n\t\t\t\tresult = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Note(int duration, int offset, int pitch, int channel, int velocity) {\n this.duration = duration;\n this.offset = offset;\n this.pitch = pitch;\n this.channel = channel;\n this.velocity = velocity;\n }", "public String searchAllNotesByKeyword(String noteList, String s) {\n int i = 0;\n while (i < allNotes.size()) {\n if (allNotes.get(i).getNote().contains(s)) {\n noteList += allNotes.get(i).getNote() + \"\\n\";\n }\n i++;\n }\n return noteList;\n }", "public ObjectListElement getNote(long id){\n\t\tObjectListElement e;\n\t\tfor(int i = 0 ; i<allNotes.size();i++){\n\t\t\te = allNotes.get(i);\n\t\t\tif(e.getId()==id)\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}", "public IndexedList<Task> search(int noteCount) {\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getNotes().size()==noteCount)\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t\t\n\t}", "public NewsNotifications getSingleNewsNotificationByNewsNotificationId(int newsNotificationId);", "@Override\n\tpublic Note findByName(Serializable name) {\n\t\t\n\t\treturn null;\n\t}", "public static Finder<Long, Period> find() {\r\n\t\treturn new Finder<Long, Period>(Long.class, Period.class);\r\n\t}", "public static Note createNote(int octave, Pitch pitch, int startBeat, int endBeat, int\n instrument, int volume) {\n return new NoteImpl(octave, pitch, startBeat, endBeat, instrument, volume);\n }", "public String find(String kw) {\n StringJoiner result = new StringJoiner(\"\\n\");\n for (int i = 0; i < tasks.size(); i++) {\n Task t = tasks.get(i);\n if (t.toString().contains(kw)) {\n result.add(String.format(\"%d.%s\", i + 1, t));\n }\n }\n\n return result.toString();\n }", "String notes();", "public String getDocumentNote();", "CompositionBuilder<T> addNote(int start, int end, int instrument, int pitch, int volume);", "public static Note createNote(int value, int startBeat, int endBeat, int instrument, int\n volume) {\n return createNote((value / 12) - 1, Pitch.getPitch(value % 12), startBeat, endBeat, instrument,\n volume);\n }", "@Override\n public CompositionBuilder<MusicOperation> addNote(int start, int end, int instrument,\n int pitch, int volume) {\n this.listNotes.add(new SimpleNote(Pitch.values()[(pitch) % 12],\n Octave.values()[(pitch / 12) - 2 ], start, end - start, instrument, volume));\n return this;\n }", "public static Note createNote(int octave, Pitch pitch, int startBeat, int endBeat) {\n return new NoteImpl(octave, pitch, startBeat, endBeat);\n }", "public synchronized Notes getNotesInstance(PresentationNotesElement noteElement) {\n\t\t\tif (maNotesRepository.containsKey(noteElement))\n\t\t\t\treturn maNotesRepository.get(noteElement);\n\t\t\telse {\n\t\t\t\tNotes newNotes = new Notes(noteElement);\n\t\t\t\tmaNotesRepository.put(noteElement, newNotes);\n\t\t\t\treturn newNotes;\n\t\t\t}\n\t\t}", "void addNote(int x, int y);", "public int find(Base subseq, int startAt)\n {\n return find(new Base[]{subseq}, startAt);\n }", "INote removeNote(int beatNum, String pitch, int octave) throws IllegalArgumentException;", "public int find(Strand subseq, int startAt)\n {\n return find(subseq.getSeq(), startAt);\n }", "public Note getNote(String name, String path) {\n\t\tfor(Note k: this.notes.keySet())\n\t\t\tif(k!=null && (k.getFile()==null ? path==null : k.getFile().getPath().equals(path)) \n\t\t\t\t\t&& k.getName().equals(name) )\n\t\t\t\treturn k;\n\t\treturn null;\n\t}", "public int getInterval() { return _interval; }", "java.lang.String getNotes();", "java.lang.String getNotes();", "private int findEntry(long msb, long lsb) {\n\n int lowIndex = 0;\n int highIndex = index.remaining() / 24 - 1;\n float lowValue = Long.MIN_VALUE;\n float highValue = Long.MAX_VALUE;\n float targetValue = msb;\n\n while (lowIndex <= highIndex) {\n int guessIndex = lowIndex + Math.round(\n (highIndex - lowIndex)\n * (targetValue - lowValue)\n / (highValue - lowValue));\n int position = index.position() + guessIndex * 24;\n long m = index.getLong(position);\n if (msb < m) {\n highIndex = guessIndex - 1;\n highValue = m;\n } else if (msb > m) {\n lowIndex = guessIndex + 1;\n lowValue = m;\n } else {\n // getting close...\n long l = index.getLong(position + 8);\n if (lsb < l) {\n highIndex = guessIndex - 1;\n highValue = m;\n } else if (lsb > l) {\n lowIndex = guessIndex + 1;\n lowValue = m;\n } else {\n // found it!\n return position;\n }\n }\n }\n\n // not found\n return -1;\n }", "@Test\n\tpublic void findQCIndividualNotesTest(){\n//\t\tlog.trace(\"GETTING individual notes by Trainee\");\n\t\tfinal short weekNum = 2;\n\t\t\n\t\t// get notes\n\t\tList<Note> notes = noteDao.findQCIndividualNotes(TEST_TRAINEE_ID, weekNum);\n\t\t\n\t\t// compare with expected\n\t\tassertEquals(notes.size(),1);\n\t\tassertEquals(notes.get(0).getContent(),\"technically weak on SQL.\");\n\t}", "Note getOneEntity(Long id);", "public void repeatNotes()\n {\n int start, end;\n \n printScore(); //prints the current score that we have for the user to reference\n \n System.out.print(\"\\nEnter the note number that starts the repetition > \"); //prompts to enter the start of the repetition\n start = in.nextInt();\n \n System.out.print(\"Enter the note number that ends the repetition > \"); //prompts user to enter the end of the repetition\n end = in.nextInt();\n \n if (start <= score.size() && start > 0 && end <= score.size() && end >= start)\n {\n for (int i = 0; i <= ((end - 1) - (start - 1)); i++)\n {\n Note tempNote = new Note(score.get((start - 1) + i).getNote(), score.get((start - 1) + i).getBeat());\n score.add(tempNote);\n }\n }\n else\n {\n System.out.print(\"Error. \");\n if (end < 1 || end > score.size())\n System.out.println(\"The ending note number is not valid.\");\n else if (start < 1 || start > score.size())\n System.out.println(\"The starting note number is not valid.\");\n else if (start > end)\n System.out.println(\"The starting note number can not be bigger than the ending note number.\"); \n }\n }", "String getNotes();", "public static String findNoteValue(int val)\n\t{\n\n\t\tswitch(val)\n\t\t{\n\t\t\tcase 0:\n\t\t\t{\n\t\t\t\tnum = 0;\n\t\t\t\treturn \"C\";\n\t\t\t}\n\t\t\t\n\t\t\tcase 1:\n\t\t\t{\t\n\t\t\t\tnum = 0;\n\t\t\t\treturn \"C_SHARP\";\n\t\t\t}\t\n\t\t\tcase 2:\n\t\t\t{\n\t\t\t\tnum = 1;\n\t\t\t\treturn \"D\";\n\t\t\t}\n\t\t\tcase 3:\n\t\t\t{\n\t\t\t\tnum = 1;\n\t\t\t\treturn \"D_SHARP\";\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcase 4:\n\t\t\t{\n\t\t\t\tnum = 2;\n\t\t\t\treturn \"E\";\n\t\t\t}\n\t\t\t\n\t\t\tcase 5:\n\t\t\t{\n\t\t\t\tnum = 3;\n\t\t\t\treturn \"F\";\n\t\t\t}\n\t\t\t\n\t\t\tcase 6:\n\t\t\t{\t\n\t\t\t\tnum = 3;\n\t\t\t\treturn \"F_SHARP\";\n\t\t\t}\n\t\t\t\n\t\t\tcase 7:\n\t\t\t{\t\n\t\t\t\tnum = 4;\n\t\t\t\treturn \"G\";\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcase 8:\n\t\t\t{\n\t\t\t\tnum = 4;\n\t\t\t\treturn \"G_SHARP\";\t\n\t\t\t}\n\t\t\t\n\t\t\tcase 9:\n\t\t\t{\n\t\t\t\tnum = 5;\n\t\t\t\treturn \"A\";\t\n\t\t\t}\n\t\t\t\n\t\t\tcase 10:\n\t\t\t{\n\t\t\t\tnum = 5;\n\t\t\t\treturn \"A_SHARP\";\t\n\t\t\t}\n\t\t\t\n\t\t\tcase 11:\n\t\t\t{\n\t\t\t\tnum = 6;\n\t\t\t\treturn \"B\";\t\n\t\t\t}\n\t\t\t\n\t\t\tdefault: \n\t\t\t\treturn \"There is an issue.\";\n\n\t\t}\n\n\t}", "public Note(Pitch pitch, int octave, int instrument) {\n if (octave < 0 || octave > 10) {\n throw new IllegalArgumentException(\"octave must be between 0 and 10 (inclusive)\");\n }\n\n this.pitch = pitch;\n this.octave = octave;\n this.instrument = instrument;\n }", "@Test\n public void findSimilarNotes() throws Exception{\n final CourseInfo course = sDataManager.getCourse(\"android_async\");\n final String noteTitle = \"Test note title\";\n final String noteText1 = \"This is the body test of my text note\";\n final String noteText2 = \"This is the body test of my second text note\";\n\n int noteIndex1 = sDataManager.createNewNote();\n NoteInfo newNote1 = sDataManager.getmNotes().get(noteIndex1);\n newNote1.setmCourses(course);\n newNote1.setmTitle(noteTitle);\n newNote1.setmText(noteText1);\n\n int noteIndex2 = sDataManager.createNewNote();\n NoteInfo newNote2 = sDataManager.getmNotes().get(noteIndex2);\n newNote2.setmCourses(course);\n newNote2.setmTitle(noteTitle);\n newNote2.setmText(noteText2);\n\n int foundIndex1 = sDataManager.findNote(newNote1);\n assertEquals(noteIndex1, foundIndex1);\n\n int foundIndex2 = sDataManager.findNote(newNote2);\n assertEquals(noteIndex2, foundIndex2);\n }", "public void sequentialNoteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n\r\n getReturnPattern().addElement(note);\r\n }", "public NoteDuration getNoteDuration(int duration)\n\t{\n\t\tint whole = quarternote * 4;\n\t\t//\t\t 1 = 32/32\n\t\t//\t\t 3/4 = 24/32\n\t\t//\t\t 1/2 = 16/32\n\t\t//\t\t 3/8 = 12/32\n\t\t//\t\t 1/4 = 8/32\n\t\t//\t\t 3/16 = 6/32\n\t\t//\t\t 1/8 = 4/32 = 8/64\n\t\t//\t\t triplet = 5.33/64\n\t\t//\t\t 1/16 = 2/32 = 4/64\n\t\t//\t\t 1/32 = 1/32 = 2/64\n\n\t\tif (duration >= 28 * whole / 32)\n\t\t return NoteDuration.Whole;\n\t\telse if (duration >= 20 * whole / 32)\n\t\t return NoteDuration.DottedHalf;\n\t\telse if (duration >= 14 * whole / 32)\n\t\t return NoteDuration.Half;\n\t\telse if (duration >= 10 * whole / 32)\n\t\t return NoteDuration.DottedQuarter;\n\t\telse if (duration >= 7 * whole / 32)\n\t\t return NoteDuration.Quarter;\n\t\telse if (duration >= 5 * whole / 32)\n\t\t return NoteDuration.DottedEighth;\n\t\telse if (duration >= 6 * whole / 64)\n\t\t return NoteDuration.Eighth;\n\t\telse if (duration >= 5 * whole / 64)\n\t\t return NoteDuration.Triplet;\n\t\telse if (duration >= 3 * whole / 64)\n\t\t return NoteDuration.Sixteenth;\n\t\telse if (duration >= 2 * whole / 64)\n\t\t return NoteDuration.ThirtySecond;\n\t\telse if (duration >= whole / 64)\n\t\t return NoteDuration.SixtyFour; // TODO : EXTEND UNTIL 1/128 to be able to extract the onset in SYMBOLIC representation\n\t\telse if (duration >= whole / 128)\n\t\t return NoteDuration.HundredTwentyEight;\n\t\telse\n\t\t return NoteDuration.ZERO;\n\t}", "void note(float start, float duration, float freq){\n\t out.playNote(start,duration,freq); \n\t }", "public interface ReadableInterval\n{\n\n public abstract boolean contains(ReadableInstant readableinstant);\n\n public abstract boolean contains(ReadableInterval readableinterval);\n\n public abstract boolean equals(Object obj);\n\n public abstract Chronology getChronology();\n\n public abstract DateTime getEnd();\n\n public abstract long getEndMillis();\n\n public abstract DateTime getStart();\n\n public abstract long getStartMillis();\n\n public abstract int hashCode();\n\n public abstract boolean isAfter(ReadableInstant readableinstant);\n\n public abstract boolean isAfter(ReadableInterval readableinterval);\n\n public abstract boolean isBefore(ReadableInstant readableinstant);\n\n public abstract boolean isBefore(ReadableInterval readableinterval);\n\n public abstract boolean overlaps(ReadableInterval readableinterval);\n\n public abstract Duration toDuration();\n\n public abstract long toDurationMillis();\n\n public abstract Interval toInterval();\n\n public abstract MutableInterval toMutableInterval();\n\n public abstract Period toPeriod();\n\n public abstract Period toPeriod(PeriodType periodtype);\n\n public abstract String toString();\n}", "public static NoteCircle getId(Tone tone, Prefix prefix) {\n NoteCircle[] circ = values();\n for (int i = 0; i < circ.length; i++) {\n if (circ[i].getNotes().get(tone) == prefix) {\n return circ[i];\n }\n }\n System.out.println(\"// todo thow some kind of exception\");\n return null;\n }", "public static Notes getInstance(PresentationNotesElement noteElement) {\n\t\tPresentationDocument ownerDocument = (PresentationDocument) ((OdfFileDom) (noteElement.getOwnerDocument()))\n\t\t\t\t.getDocument();\n\t\treturn ownerDocument.getNotesBuilder().getNotesInstance(noteElement);\n\n\t}", "@Override\n public List<Note> getNotesAtBeat(int beat) {\n ArrayList<Note> listAtBeat = new ArrayList<>();\n\n List<Note> current = notes.get(beat);\n\n if (current == null) {\n this.notes.put(beat, listAtBeat);\n return notes.get(beat);\n } else {\n listAtBeat.addAll(current);\n return listAtBeat;\n }\n }", "public int get(int i) {\n\t\tint n = intervals.size();\n\t\tint index = 0;\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tInterval I = intervals.get(j);\n\t\t\tint a = I.a;\n\t\t\tint b = I.b;\n\t\t\tfor (int v = a; v <= b; v++) {\n\t\t\t\tif (index == i) {\n\t\t\t\t\treturn v;\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "@Test\n public void shouldReturnOneNoteById() {\n Note note = noteService.findOneById(1L);\n\n // Then\n assertThat(note, is(equalTo(note1)));\n }", "public TimedVariable findNext(long sec)\n\t{\n\t\treturn findNext(new Date(sec*1000L));\n\t}", "PineAlarm selectOneByExample(PineAlarmExample example);", "SysNotice selectOneByExample(SysNoticeExample example);", "@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }", "public static Note lookupRest (Chord left,\r\n Chord right)\r\n {\r\n // Define the area limited by the left and right chords with their stems\r\n // and check for intersection with a rest note\r\n Polygon polygon = new Polygon();\r\n polygon.addPoint(left.headLocation.x, left.headLocation.y);\r\n polygon.addPoint(left.tailLocation.x, left.tailLocation.y);\r\n polygon.addPoint(right.tailLocation.x, right.tailLocation.y);\r\n polygon.addPoint(right.headLocation.x, right.headLocation.y);\r\n\r\n for (TreeNode node : left.getMeasure().getChords()) {\r\n Chord chord = (Chord) node;\r\n\r\n // Not interested in the bounding chords\r\n if ((chord == left) || (chord == right)) {\r\n continue;\r\n }\r\n\r\n for (TreeNode n : chord.getNotes()) {\r\n Note note = (Note) n;\r\n\r\n // Interested in rest notes only\r\n if (note.isRest()) {\r\n Rectangle box = note.getBox();\r\n\r\n if (polygon.intersects(box.x, box.y, box.width, box.height)) {\r\n return note;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n }", "@Override\n public int getFinalBeat() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n int farthestBeat = 0;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n int currentEnd = currentNote.getBeat() + currentNote.getDuration();\n\n if (currentEnd > farthestBeat) {\n farthestBeat = currentEnd;\n }\n }\n return farthestBeat;\n }", "@Test\n\tpublic void testFind() {\n\t\tint longestLength = Deencapsulation.invoke(longestSubsequent, \"find\", \"1 -1 2 -2 2 2 6 5 5 0\");\n\t\tassertEquals(2, longestLength);\n\t\tlongestLength = Deencapsulation.invoke(longestSubsequent, \"find\", \"1 2 3 0 1 5 4 3 2 0\");\n\t\tassertEquals(4, longestLength);\n\t\tlongestLength = Deencapsulation.invoke(longestSubsequent, \"find\", \"0\");\n\t\tassertEquals(1, longestLength);\n\t\tlongestLength = Deencapsulation.invoke(longestSubsequent, \"find\", \"4\");\n\t\tassertEquals(1, longestLength);\n\t}", "public int find(Base subseq)\n {\n return find(subseq, 0);\n }", "@Import(\"notedTemplate\")\n\tint getNote();", "public int getInterval() {\r\n return interval;\r\n }", "public static int searchForIntervalBoundary(long time) {\n\n int intakeIndex = 1;\n\n for (int i = theirIntakes.size() - 1; i > 0; i--) {\n if (theirIntakes.get(i).getCreationTime() < time) {\n intakeIndex = i;\n break;\n }\n }\n\n return intakeIndex;\n\n }", "List<ComplainNoteDO> selectByExampleWithRowbounds(ComplainNoteDOExample example, RowBounds rowBounds);", "@Test\n\tpublic void findTraineeNoteTest(){\n//\t\tlog.trace(\"Testing findTraineeNote\");\n\t\tfinal short weekNum = 2;\n\t\tfinal String content = \"Good communication. Not as confident and less use of technical terms\";\n\t\t\n\t\t// find trainee note\n\t\tNote actual = noteDao.findTraineeNote(TEST_TRAINEE_ID, weekNum);\n\n\t\t// compare with expected\n\t\tassertFalse(actual.isQcFeedback());\n\t\tassertEquals(content, actual.getContent());\n\t\tassertEquals(weekNum, actual.getWeek());\n\t\tassertEquals(TEST_TRAINEE_ID, actual.getTrainee().getTraineeId());\n\t}", "private int findSingleHit(double target) {\n int hits = 0;\n int idxFound = -1;\n int n = orgGridAxis.getNcoords();\n for (int i = 0; i < n; i++) {\n if (intervalContains(target, i)) {\n hits++;\n idxFound = i;\n }\n }\n if (hits == 1)\n return idxFound;\n if (hits == 0)\n return -1;\n return -hits;\n }", "public static NoteCircle getId(Note note) {\n return getId(note.getTone(), note.getPrefix());\n }", "public void parallelNoteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n\r\n getReturnPattern().addElement(note);\r\n }", "public static Note getNoteFromID(int id, Shift prefShift) {\n\t\tint shiftNum = prefShift.getShiftID();\n\n\t\tint octave = (id / 12) - 1;\n\t\tint toneMod = (id - shiftNum + 12) % 12;\n\n\t\tTone tone = Tone.notes.get(toneMod);\n\t\tint shiftID = shiftNum + 2;\n\n\t\tif (tone == null) {\n\t\t\tif (shiftNum <= 0) {\n\t\t\t\ttone = Tone.notes.get((toneMod + 11) % 12);\n\t\t\t\tshiftID++;\n\t\t\t} else {\n\t\t\t\ttone = Tone.notes.get((toneMod + 1) % 12);\n\t\t\t\tshiftID--;\n\t\t\t}\n\t\t}\n\n\t\tNote note = new Note(tone, Shift.shifts.get(shiftID), octave);\n\t\treturn note;\n\t}", "public static Note createNote(int value, int startBeat, int endBeat) {\n return createNote((value / 12) - 1, Pitch.getPitch(value % 12), startBeat, endBeat);\n }", "public int find(String subseq, int startAt)\n {\n return find(subseq.split(\"\"), startAt);\n }", "@Cacheable(value = \"FindNote\", key = \"#noteId\")\n\t@Override\n\tpublic Response findUserNote(String token) {\n\t\t\n\t\tString email = jwt.getEmailId(token);\n\t\t\n\t\tif(email != null) {\n\t\t\tList<Note> note = noterepository.findByEmailId(email);\n\t\t\treturn new Response(200, noteEnvironment.getProperty(\"Find_Note\"), note);\n\t\t}\n\t\treturn new Response(404, noteEnvironment.getProperty(\"UNAUTHORIZED_USER_EXCEPTION\"), null);\n\t}", "public Builder interval(Integer interval) {\n\t\t\tthis.interval = interval;\n\t\t\treturn this;\n\t\t}", "public static List<NoteInfo> searchAllNotes() {\n\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n\n String email = Secured.getUser(ctx());\n List<NoteEntry> entryIdList = NoteEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .findList();\n for (NoteEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n\n List<NoteInfo> noteList = NoteInfo.find()\n .select(\"note\")\n .where()\n .in(\"noteEntryId\", finalIdList)\n .findList();\n\n return noteList;\n }", "@Override\n public void removeNote(Note n) {\n if (!n.getIsHead()) {\n throw new IllegalArgumentException(\"cannot remove a note that is not\" +\n \"the head note\");\n }\n boolean result = false;\n for (int i = 0; i < n.getDuration(); i++) {\n for (Note t : this.sheet.get(i + n.getStartMeasure())) {\n if (t.equals(n)) {\n result = true;\n }\n }\n }\n if (result == false) {\n throw new IllegalArgumentException(\"note doesn't exist\");\n }\n Note head = find(n.getStartMeasure(), n.getDuration(), n.getOctave(), n\n .toMidiIndex());\n this.sheet.get(n.getStartMeasure()).remove(head);\n\n\n for (int i = 1; i < n.getDuration(); i++) {\n int currentMeasure = n.getStartMeasure() + i;\n\n Note hold = find(currentMeasure, 1, n.getOctave(), n\n .toMidiIndex());\n this.sheet.get(currentMeasure).remove(hold);\n }\n }", "private OWLIndividual getTimesliceIndividualFor(\n\t\t\tOWLIndividual individual, TimeInterval interval) {\n\t\tMap<TimeInterval, OWLIndividual> intervalToTimesliceIndividual \n\t\t\t= timesliceToIndividual.get(individual);\n\t\tif(intervalToTimesliceIndividual == null) {\n\t\t\tintervalToTimesliceIndividual = new HashMap<TimeInterval, OWLIndividual>();\n\t\t\ttimesliceToIndividual.put(individual, intervalToTimesliceIndividual);\n\t\t}\n\t\t\n\t\t// Then, search by interval and obtain the timesliceIndividual.\n\t\tOWLIndividual timesliceIndividual = intervalToTimesliceIndividual.get(interval);\n\t\tif(timesliceIndividual == null) {\n\t\t\ttimesliceIndividual = getOWLDataFactory().getOWLAnonymousIndividual();\n\t\t\tintervalToTimesliceIndividual.put(interval, timesliceIndividual);\n\t\t}\n\t\t\n\t\treturn timesliceIndividual;\n\t}", "public static Note makeNote(int pitch, int octave) {\n if (octave < 0) {\n throw new IllegalArgumentException(\"Invalid octave parameter!\");\n }\n return new Note(Pitch.makePitch(pitch),octave,0);\n }", "String getMyNoteTextByKey(Key verse);", "public int find(Strand subseq)\n {\n return find(subseq.getSeq());\n }" ]
[ "0.6055371", "0.54927903", "0.5390325", "0.52822554", "0.5078692", "0.5034284", "0.5020995", "0.49580425", "0.49346715", "0.4869377", "0.48686892", "0.4859827", "0.4802451", "0.47842368", "0.476849", "0.47118697", "0.47018367", "0.46830842", "0.46770757", "0.4676633", "0.46646446", "0.4652107", "0.4651499", "0.4628092", "0.46278766", "0.46250755", "0.46060807", "0.45957792", "0.45917517", "0.458928", "0.45613563", "0.4557496", "0.45572415", "0.45558232", "0.4541262", "0.4534638", "0.45289928", "0.45205644", "0.45173833", "0.45078057", "0.45020267", "0.44969085", "0.44947255", "0.44911012", "0.44906563", "0.44852498", "0.44788054", "0.44693235", "0.4468244", "0.4467036", "0.4464366", "0.44593", "0.44546726", "0.44433045", "0.4432697", "0.4432697", "0.44283205", "0.44159117", "0.4413562", "0.44130033", "0.4404669", "0.44033596", "0.43958622", "0.43907925", "0.43897066", "0.4385238", "0.43843752", "0.43807116", "0.43717945", "0.43696478", "0.4360531", "0.43565533", "0.4356523", "0.43468875", "0.43462119", "0.434437", "0.43410116", "0.43331566", "0.43212852", "0.43201712", "0.43185335", "0.43152028", "0.43132332", "0.4311588", "0.43025503", "0.42984933", "0.42981872", "0.42971677", "0.4295912", "0.42931262", "0.42882687", "0.42813268", "0.42798042", "0.42732728", "0.42533323", "0.42527032", "0.424926", "0.42442578", "0.42435193", "0.42400774" ]
0.70013654
0
Converts the types to a JSON array.
protected String typesJSONResponse(final Collection<ComputationTargetType> types) { final List<ComputationTargetType> sorted = new ArrayList<>(types); Collections.sort(sorted, SORT_ORDER); try { final JSONWriter response = new JSONStringer().object().key("types").array(); for (final ComputationTargetType type : sorted) { response.object().key("label").value(type.getName()).key("value").value(type.toString()).endObject(); } return response.endArray().endObject().toString(); } catch (final JSONException e) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native JsArrayString getTypes()/*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\treturn jso.types;\n }-*/;", "public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();", "public void getTypes(HttpServletResponse resp, List<MobilityType> types) {\n try {\n if (types == null) {\n types = new ArrayList<>();\n types.addAll(Arrays.asList(MobilityType.values()));\n }\n String json = new Genson().serialize(types);\n resp.setContentType(\"application/json\");\n resp.getOutputStream().write(json.getBytes());\n } catch (IOException exp) {\n exp.printStackTrace();\n }\n }", "public Type[] types();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();", "private JSONArray foodsToJson() {\n JSONArray jsonArray = new JSONArray();\n\n for (Food f : units) {\n jsonArray.put(f.toJson());\n }\n\n return jsonArray;\n }", "public ResultFormat[] getTypes() {\n\n if (types == null) {\n types = loadFormats();\n }\n return types.clone();\n }", "public static byte[] genAllTypes(){\n byte[] types = { DataType.BAG, DataType.BIGCHARARRAY, DataType.BOOLEAN, DataType.BYTE, DataType.BYTEARRAY,\n DataType.CHARARRAY, DataType.DOUBLE, DataType.FLOAT, DataType.DATETIME,\n DataType.GENERIC_WRITABLECOMPARABLE,\n DataType.INTEGER, DataType.INTERNALMAP,\n DataType.LONG, DataType.MAP, DataType.TUPLE, DataType.BIGINTEGER, DataType.BIGDECIMAL};\n return types;\n }", "private Object[] getSamplePropertiesAsArray()\n {\n return (swp.get(0)).getPropertyTypes().toArray();\n\n }", "@GET\n @Path(\"allTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAllTypes() {\n return typesJSONResponse(_types.getAllTypes());\n }", "public Object[] getObjectArray1() {\n Object[] customTypes = new Object[10];\n for (int i = 0; i < customTypes.length; i++) {\n ServerCustomType sct = new ServerCustomType();\n sct.setId(i);\n customTypes[i] = sct;\n }\n return customTypes;\n }", "public String[] getTypes() {\n return impl.getTypes();\n }", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "public int[] getTypes(){\n int[] types={TYPE_STRING,TYPE_STRING,TYPE_STRING,TYPE_INT};\n return types;\n }", "public JsonNode getTypesJson(String notation) throws IOException {\n ObjectNode resultTypes = mapper.createObjectNode();\n\n ClassLoader classLoader = getClass().getClassLoader();\n\n JsonNode typesList = mapper.readTree(\n new File(classLoader.getResource(notation + \"/typesList.json\").getFile()));\n JsonNode allTypes = mapper.readTree(\n new File(classLoader.getResource(notation + \"/elementsTypes_en.json\").getFile()));\n\n resultTypes.set(\"elements\", getElementsTypes(typesList, allTypes));\n resultTypes.set(\"blocks\", getBlocksTypes(typesList, allTypes));\n\n return resultTypes;\n }", "private Object arrayToSPLArray(String name, JSONArray jarr, Type ptype) throws Exception {\n\t\tif(l.isLoggable(TraceLevel.DEBUG)) {\n\t\t\tl.log(TraceLevel.DEBUG, \"Creating Array: \" + name);\n\t\t}\n\t\tCollectionType ctype = (CollectionType) ptype;\n\t\tint cnt=0;\n\t\tString cname = \"List: \" + name;\n\n\t\tswitch(ctype.getElementType().getMetaType()) {\n\t\tcase INT8:\n\t\tcase UINT8: \n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tbyte[] arr= new byte[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Byte)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT16:\n\t\tcase UINT16:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tshort[] arr= new short[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Short)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT32:\n\t\tcase UINT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tint[] arr= new int[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Integer)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase INT64:\n\t\tcase UINT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tlong[] arr= new long[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Long)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase BOOLEAN:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tboolean[] arr= new boolean[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Boolean)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tfloat[] arr= new float[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Float)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tdouble[] arr= new double[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Double)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase USTRING:\n\t\t{\n\t\t\tList<String> lst = new ArrayList<String>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((String)obj);\n\t\t\t}\n\t\t\treturn lst.toArray(new String[lst.size()]);\n\t\t} \n\n\t\tcase BSTRING:\n\t\tcase RSTRING:\n\t\t{\n\t\t\tList<RString> lst = new ArrayList<RString>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((RString)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase TUPLE:\n\t\t{\n\t\t\tList<Tuple> lst = new ArrayList<Tuple>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Tuple)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase LIST:\n\t\tcase BLIST:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase SET:\n\t\tcase BSET:\n\t\t{\n\t\t\tSet<Object> lst = new HashSet<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase DECIMAL32:\n\t\tcase DECIMAL64:\n\t\tcase DECIMAL128:\n\t\t{\n\t\t\tList<BigDecimal> lst = new ArrayList<BigDecimal>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((BigDecimal)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase TIMESTAMP:\n\t\t{\n\t\t\tList<Timestamp> lst = new ArrayList<Timestamp>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Timestamp)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\n\t\t//TODO -- not yet supported types\n\t\tcase BLOB:\n\t\tcase MAP:\n\t\tcase BMAP:\n\t\tcase COMPLEX32:\n\t\tcase COMPLEX64:\n\t\tdefault:\n\t\t\tthrow new Exception(\"Unhandled array type: \" + ctype.getElementType().getMetaType());\n\t\t}\n\n\t}", "@GET\n @Path(\"additionalTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAdditionalTypes() {\n return typesJSONResponse(_types.getAdditionalTypes());\n }", "public ArrayList<String> getTypes(){\n return this.types;\n }", "public ClassType[] getArray(){\n\t\t\tClassType[] temp = new ClassType[count];\n\t\t\tfor (int i = 0; i < count; i++){\n\t\t\t\ttemp[i] = new ClassType(anArray[i]);\n\t\t\t}\n\t\t\treturn temp;\n\t\t}", "@GET\n @Path(\"simpleTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getSimpleTypes() {\n return typesJSONResponse(_types.getSimpleTypes());\n }", "static String[] getAllTypeNames()\n\t{\n\t\treturn new String[] {\"String\", \"int\", \"double\", \"long\", \"boolean\", \"String[]\", \"int[]\", \"double[]\", \"long[]\"};\n\t}", "public String[] getMimeTypes() {\n/* 187 */ Set types = new HashSet(this.type_hash.keySet());\n/* 188 */ types.addAll(this.fallback_hash.keySet());\n/* 189 */ types.addAll(this.native_commands.keySet());\n/* 190 */ String[] mts = new String[types.size()];\n/* 191 */ mts = (String[])types.toArray((Object[])mts);\n/* 192 */ return mts;\n/* */ }", "@Override\r\n\tprotected Object covertToArrayType(Object componentType) throws SerializeException {\r\n\t\t//return super.covertToArrayType(AdvancedDeserializerUtil.covertToArrayType(componentType));\r\n\t\treturn super.covertToArrayType(AdvancedDeserializerUtil.covertToArrayType(componentType));\r\n\t}", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "@RequestMapping(value=\"/datatypes\",method=RequestMethod.GET)\n public DataFieldType[] getAllDataTypes(){\n return DataFieldType.values();\n }", "@RequestMapping(value = \"/contracts/types\", method = RequestMethod.GET)\n public JsonListWrapper<String> listAllTypes() {\n Collection<String> items = ((ContractService) service).findAllInsuranceTypes();\n return JsonListWrapper.withTotal(items);\n }", "public void arrayToJson() {\n\n var result = ctx.select(DEPARTMENT.DEPARTMENT_ID, DEPARTMENT.NAME,\n field(\"COLUMN_VALUE\").as(\"EVALUATION\"))\n .from(DEPARTMENT, lateral(select(field(\"COLUMN_VALUE\"))\n .from(table(DEPARTMENT.TOPIC))))\n .forJSON().path()\n .fetch();\n\n System.out.println(\"Example (array)\" + result.formatJSON());\n }", "@JsonSetter(\"fieldTypes\")\r\n public void setFieldTypes (List<DocumentFieldType> value) { \r\n this.fieldTypes = value;\r\n }", "static private PowerlessArray<String>\n types(final Class<?> actual) {\n final Class<?> end =\n Struct.class.isAssignableFrom(actual) ? Struct.class : Object.class;\n final PowerlessArray.Builder<String> r = PowerlessArray.builder(4);\n for (Class<?> i=actual; end!=i; i=i.getSuperclass()) { ifaces(i, r); }\n return r.snapshot();\n }", "private String[] getJSONStringList() throws SQLException {\n String sql = \"select concat(c.chart_type, ', ', c.intermediate_data) content \" +\n \"from pride_2.pride_chart_data c, pride_2.pride_experiment e \" +\n \"where c.experiment_id = e.experiment_id \" +\n \"and e.accession = ? \" +\n \"order by 1\";\n\n Connection conn = PooledConnectionFactory.getConnection();\n PreparedStatement stat = conn.prepareStatement(sql);\n stat.setString(1, accession);\n ResultSet rs = stat.executeQuery();\n\n List<String> jsonList = new ArrayList<String>();\n while (rs.next()) {\n jsonList.add(rs.getString(1));\n }\n\n rs.close();\n conn.close();\n\n return jsonList.toArray(new String[jsonList.size()]);\n }", "public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}", "public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}", "public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}", "private org.json.simple.JSONArray createJsonArrayList() {\n org.json.simple.JSONArray list = new org.json.simple.JSONArray();\n for (VoteOption v : voteOptions) {\n list.add(v.getText());\n }\n return list;\n }", "public String[] getDataTypes(T2 ob) {\n\t\tString[] s = null;\t\t\r\n\t\tjava.lang.reflect.Field[] f1=ob.getClass().getDeclaredFields(); \r\n\t\ts=new String[f1.length];\r\n\t\tfor(int i=1;i<f1.length;i++)\r\n\t\t{\r\n\t\tSystem.out.println(f1[i].getType().toString());\t\r\n\t\ts[i]=f1[i].getType().toString();\t\t\r\n\t\t}\t\r\n\t\treturn s;\r\n\t}", "@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn null;\n\t\t}", "public Set<Class<?>> getTypes() {\n\t\treturn dataTypes;\n\t}", "public Set<Class<?>> getTypes() {\n\t\treturn dataTypes;\n\t}", "public final void setTypes(AutocompleteType... types) {\n if (types == null) {\n return;\n }\n String[] stypes = new String[types.length]; \n for (int i=0; i < types.length; i++) {\n stypes[i] = types[i].value();\n }\n JsArrayString a = ArrayHelper.toJsArrayString(stypes);\n setTypesImpl(a);\n }", "public List<TypeInfo> getTypes() {\r\n return types;\r\n }", "public boolean isArrayType()\n/* */ {\n/* 138 */ return true;\n/* */ }", "private JsonArray toJsonObjectArray(Iterable<Map<String, Value>> values) {\n JsonArray arr = new JsonArray();\n for (Map<String, ?> item : values) {\n arr.add(JsonUtils.toJsonObject(item));\n }\n return arr;\n }", "public static Object createArray(TypeList type) {\n\t\tList<Integer> listDimensions = type.getDimensions();\n\t\tint[] dimensions = new int[listDimensions.size()];\n\t\tfor (int i = 0; i < dimensions.length; i++) {\n\t\t\tdimensions[i] = listDimensions.get(i);\n\t\t}\n\n\t\tType eltType = type.getInnermostType();\n\t\treturn createArray(eltType, dimensions);\n\t}", "private static String nativeArrayToJSONString(NativeArray nativeArray) throws Exception \n { \n Object[] propIds = nativeArray.getIds(); \n if (isArray(propIds) == true) \n {\n \tList<String> jsonArray = new ArrayList<String>();\n \tClass typeClass = null;\n for (int i=0; i<propIds.length; i++) \n { \n Object propId = propIds[i]; \n if (propId instanceof Integer) \n { \n Object value = nativeArray.get((Integer)propId, nativeArray);\n Object json = toJson(value);\n jsonArray.add(json+\"\");\n if(typeClass==null) typeClass = json.getClass();\n } \n } \n return HAPUtilityJson.buildArrayJson(jsonArray.toArray(new String[0]), typeClass);\n } \n else \n { \n \tMap<String, String> mapJson = new LinkedHashMap<String, String>();\n \tMap<String, Class<?>> mapTypeJson = new LinkedHashMap<String, Class<?>>();\n for (Object propId : propIds) \n { \n \tString key = propId.toString();\n Object value = nativeArray.get(key, nativeArray);\n Object json = toJson(value);\n mapJson.put(key, json+\"\");\n mapTypeJson.put(key, json.getClass()); \n } \n return HAPUtilityJson.buildMapJson(mapJson, mapTypeJson); \n }\n }", "public Object[] toRawArray();", "@Override\n public ImmutableList<String> getTypeParts() {\n return types.toImmutable();\n }", "@Override\r\n\tpublic JSONObject buildJson() {\n\t\tJSONObject json = new JSONObject();\r\n\t\ttry {\r\n\t\t\tsetInt(json,d_type,type);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogUtil.log.error(e.getMessage(),e);\r\n\t\t}\r\n\t\treturn json;\r\n\t}", "private TypeSummary[] getTypeSummaryArray() {\r\n System.out.println(\"RefactoringAction.getTypeSummaryArray()\");\r\n if (selectedFileSet == null) {\r\n if (typeArray != null) {\r\n return typeArray;\r\n } else if (typeSummary != null) {\r\n return new TypeSummary[]{typeSummary};\r\n } else if (fieldSummary != null) {\r\n typeSummary = (TypeSummary)fieldSummary.getParent();\r\n return new TypeSummary[]{typeSummary};\r\n } else if (methodSummary != null) {\r\n typeSummary = (TypeSummary)methodSummary.getParent();\r\n return new TypeSummary[]{typeSummary};\r\n } else {\r\n return new TypeSummary[0];\r\n }\r\n } else {\r\n return selectedFileSet.getTypeSummaryArray();\r\n }\r\n }", "public com.guidewire.datamodel.TypekeyDocument.Typekey[] getTypekeyArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(TYPEKEY$16, targetList);\r\n com.guidewire.datamodel.TypekeyDocument.Typekey[] result = new com.guidewire.datamodel.TypekeyDocument.Typekey[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public String[] listAIResponseFromJSON(JSONArray listAIResponseArr) {\n\n //just going to do this manually since I don't know how Gson does arrays of only strings\n\n //this is the only function I could find that changes an unkeyed JSONArray into usable objects:\n List<Object> allAITypesObjList = listAIResponseArr.toList();\n //I don't want to deal with something as vague as a list<object>, so change it into an arrayList<String>:\n\n //ArrayList<String> allAITypes = new ArrayList<>();\n String[] allAITypes = new String[50]; //there is no way there will ever be more than 50 ai types\n\n //iterate through the List<Object> and copy its strings into allAITypes\n for (int a = 0; a < allAITypesObjList.size(); a++)\n {\n String currAITypeString = allAITypesObjList.get(a).toString();\n //allAITypes.add(currAITypeString);\n allAITypes[a] = currAITypeString;\n }\n\n return allAITypes;\n }", "public Object getJsonObject() {\n return JSONArray.toJSON(values);\n }", "public int[] getType() {\n return (type);\n }", "private void refreshArrayTypes(final Set typesToBeRefreshed) {\r\n for (Iterator refreshTypes = typesToBeRefreshed.iterator();\r\n refreshTypes.hasNext(); ) {\r\n\r\n BinTypeRef typeRef = (BinTypeRef) refreshTypes.next();\r\n\r\n if (!typeRef.isResolved()) { // nothing to update\r\n if (Assert.enabled) {\r\n System.err.println(\"Project.refreshArrayTypes - type already not resolved: \"\r\n + typeRef.getQualifiedName());\r\n }\r\n getProject().loadedTypes.remove(typeRef.getQualifiedName());\r\n continue;\r\n }\r\n\r\n if (typeRef.isArray()) {\r\n BinArrayType arrayType = (BinArrayType) typeRef.getBinType();\r\n\r\n BinTypeRef newRef\r\n = getProject().getTypeRefForName(arrayType.getArrayType().getQualifiedName());\r\n\r\n if (newRef != null){\r\n arrayType.setArrayType(newRef);\r\n } else {\r\n //System.out.println(\"Didn`t found new BinTypeRef for BinArrayType type\");\r\n getProject().loadedTypes.remove(typeRef.getQualifiedName());\r\n }\r\n } else {\r\n //System.out.println(\"Type to be refreshed is not array type\");\r\n getProject().loadedTypes.remove(typeRef.getQualifiedName());\r\n }\r\n }\r\n }", "UsedTypes getTypes();", "public ActionTypeDescriptor[] getActionTypesAsArray() {\r\n return actionTypes.toArray(\r\n new ActionTypeDescriptor[actionTypes.size()]);\r\n }", "public Object[] toArray() {\n return new Object[] {this.firstname+\" \"+this.lastname, this.email, this.password, this.id, this.type};\n }", "public String[] getAcceptedTypes() {\n\t\tLinkedList<String> typelist = new LinkedList<String>(acceptedEventTypes.keySet());\n\t\tCollections.sort(typelist);\n\t\tString[] result = new String[typelist.size()];\n\t\tint c = 0;\n\t\tfor (String t : typelist) {\n\t\t\tresult[c] = t;\n\t\t\tc++;\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic Object[] toArray() {\n\t\treturn null;\n\t}", "private RoomType[] getRoomTypeStrings()\r\n\t{\r\n\t\treturn bCtrl.getAllRoomTypes().stream().toArray(RoomType[]::new);\r\n\t}", "@Override\n\tpublic Class<?>[] getConverterTypes() {\n\t\treturn new Class<?>[] {Calendar.class}; \n\t}", "public abstract Object toJson();", "Object[] toArray();", "Object[] toArray();", "Object[] toArray();", "public void setTypes(ArrayList<String> types){\n this.types = types;\n }", "@JsonGetter(\"fieldTypes\")\r\n public List<DocumentFieldType> getFieldTypes ( ) { \r\n return this.fieldTypes;\r\n }", "public Class[] getTypes() {\n Class[] types = new Class[elements.size()];\n\n for (int i = 0; i < elements.size(); i++) {\n Object value = elements.get(i);\n\n if (value != null)\n types[i] = value.getClass();\n }\n\n return types;\n }", "public List<SecTyp> getAllTypes();", "public Class<?>[] getTypes(Object[] input){\n\n Class<?>[] parameters = new Class<?>[input.length];\n for (int i = 0; i < parameters.length; i++){\n if (isNumeric(input[i].toString())){\n parameters[i] = int.class;\n }else{\n parameters[i] = String.class;\n }\n }\n return parameters;\n }", "@Override\r\n\tpublic Vector<Integer> getTypes() {\n\t\treturn this.types;\r\n\t}", "@Nonnull\n public AnyType getArrayType() {\n return arrayType;\n }", "String [] getSupportedTypes();", "public JSONArray getJSONArray() {\n JSONArray result = new JSONArray();\n try {\n result.put(setting.ZERO.getJsonId(), setting.ZERO.getValueAsInt());\n // Strings\n result.put(setting.BLANK.getJsonId(), setting.BLANK.getValueAsString());\n result.put(setting.CHARACTERISTIC_DICE_TEST_NAME.getJsonId(), setting.CHARACTERISTIC_DICE_TEST_NAME.getValueAsString());\n\n // Numbers\n // characteristic numbers\n result.put(setting.CHARACTERISTIC_AMOUNT.getJsonId(), setting.CHARACTERISTIC_AMOUNT.getValueAsInt());\n result.put(setting.CHARACTERISTIC_MORE_AMOUNT.getJsonId(), setting.CHARACTERISTIC_MORE_AMOUNT.getValueAsInt());\n result.put(setting.CHARACTERISTIC_DICE_TEST_AMOUNT.getJsonId(), setting.CHARACTERISTIC_DICE_TEST_AMOUNT.getValueAsInt());\n\n // Option menu numbers\n result.put(setting.OPTION_MENU_ITEM_ID_SETTINGS.getJsonId(), setting.OPTION_MENU_ITEM_ID_SETTINGS.getValueAsInt());\n result.put(setting.OPTION_MENU_ITEM_ID_EDIT.getJsonId(), setting.OPTION_MENU_ITEM_ID_EDIT.getValueAsInt());\n result.put(setting.OPTION_MENU_ITEM_ORDER_IN_CATEGORY.getJsonId(), setting.OPTION_MENU_ITEM_ORDER_IN_CATEGORY.getValueAsInt());\n\n // JSON Strings\n result.put(setting.JSON_NAME.getJsonId(), setting.JSON_NAME.getValueAsString());\n result.put(setting.JSON_VALUE.getJsonId(), setting.JSON_VALUE.getValueAsString());\n\n //JSON Position Numbers\n result.put(setting.JSON_POS_CHARACTERISTICS.getJsonId(), setting.JSON_POS_CHARACTERISTICS.getValueAsInt());\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n return result;\n }", "public List<TypeObjet> getTypesObjets() {\n\t\treturn null;\n\t}", "@Override\n public List<T> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n JsonElement postJsonArray = json.getAsJsonArray();\n return new Gson().fromJson(postJsonArray,typeOfT);\n }", "protected JSONArray getTacoFichas() {\n\t\tJSONArray jsa = new JSONArray();\r\n\t\tfor (int i = 0; i < this.fichasMesa.size(); i++) {\r\n\t\t\tjsa.put(this.fichasMesa.get(i).toJSON());\r\n\t\t}\r\n\t\treturn jsa;\r\n\t}", "private String[] buildTypeRegistrations(String[] baseKeys, boolean noSQLrecurse) {\n\t\tClassLoaderService cls = registry.getService(ClassLoaderService.class);\n\t\tArrayList<String> keys = new ArrayList<>( baseKeys.length << 1 );\n\t\tfor ( String bk : baseKeys ) {\n\t\t\tString className;\n\t\t\tboolean addSQL = true;\n\t\t\ttry {\n\t\t\t\tClass c;\n\t\t\t\tswitch ( bk ) {\n\t\t\t\t\tcase \"boolean\":\n\t\t\t\t\t\tc = boolean.class;\n\t\t\t\t\t\tclassName = \"Z\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"byte\":\n\t\t\t\t\t\tc = byte.class;\n\t\t\t\t\t\tclassName = \"B\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"char\":\n\t\t\t\t\t\tc = char.class;\n\t\t\t\t\t\tclassName = \"C\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"double\":\n\t\t\t\t\t\tc = double.class;\n\t\t\t\t\t\tclassName = \"D\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"float\":\n\t\t\t\t\t\tc = float.class;\n\t\t\t\t\t\tclassName = \"F\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"int\":\n\t\t\t\t\t\tc = int.class;\n\t\t\t\t\t\tclassName = \"I\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"long\":\n\t\t\t\t\t\tc = long.class;\n\t\t\t\t\t\tclassName = \"J\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"short\":\n\t\t\t\t\t\tc = short.class;\n\t\t\t\t\t\tclassName = \"S\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// load to make sure it exists\n\t\t\t\t\t\tc = cls.classForName( bk );\n\t\t\t\t\t\tclassName = c.getName();\n\t\t\t\t\t\taddSQL = false;\n\t\t\t\t}\n\t\t\t\tif ( c.isPrimitive() ) {\n\t\t\t\t\t// disallow. \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif ( c.isArray() ) {\n\t\t\t\t\tkeys.add( \"[\" + className );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tkeys.add( \"[L\" + className + \";\" );\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch ( ClassLoadingException ex ) {\n\t\t\t\t// just ignore. It means we won't be adding that key\n\t\t\t}\n\t\t\tif ( addSQL ) {\n\t\t\t\t// Not all type names given are Java classes, so assume the others are Database types\n\t\t\t\tif ( noSQLrecurse ) {\n\t\t\t\t\t// type is just \"basetype ARRAY\", never \"basetype ARRAY ARRAY ARRAY\"\n\t\t\t\t\tkeys.add( bk );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// PostgreSQL type names\n\t\t\t\t\tkeys.add( bk + \"[]\" );\n\t\t\t\t\t// standard SQL\n\t\t\t\t\tkeys.add( bk + \" ARRAY\" );\n\t\t\t\t\t// also possible\n\t\t\t\t\tkeys.add( bk + \" array\" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn keys.toArray( new String[keys.size()] );\n\t}", "@Override\n public Map<String, Class> getReturnedTypes() {\n return outputTypes;\n }", "public Object[] toArray() {\n\t\treturn null;\n\t}", "public String[] getNodeTypes()\r\n {\r\n\treturn ntMap.keySet().toArray(new String[ntMap.size()]);\r\n }", "public static boolean isArray_amtype() {\n return false;\n }", "public void setTypes(ResultFormat[] types) {\n\n this.types = types != null ? types.clone() : null;;\n }", "@ReactMethod\n public void setReportTypes(final ReadableArray types) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @SuppressLint(\"WrongConstant\")\n @Override\n public void run() {\n try {\n final ArrayList<String> keys = ArrayUtil.parseReadableArrayOfStrings(types);\n final ArrayList<Integer> types = ArgsRegistry.reportTypes.getAll(keys);\n\n final int[] typesInts = new int[types.size()];\n for (int i = 0; i < types.size(); i++) {\n typesInts[i] = types.get(i);\n }\n\n BugReporting.setReportTypes(typesInts);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }", "public List<String> getDataPointTypes() {\n Object[] dpTypes = (Object[])configMap.get(DATA_POINT_TYPES);\n List<String> types = Utility.downcast( dpTypes );\n return types;\n }", "public TypeElement<?>[] getTypeElements() {\n\t\t\treturn (this.TypeElements.size() == 0)\n\t\t\t\t\t?EmptyTypeElements\n\t\t\t\t\t:this.TypeElements.values().toArray(EmptyTypeElements);\n\t\t}", "public JsonWriter array() {\n startValue();\n\n stack.push(context);\n context = new JsonContext(JsonContext.Mode.LIST);\n writer.write('[');\n\n return this;\n }", "TypeInfo[] typeParams();", "@GET\n\t@Path(\"types\")\n public Response getDeviceTypes() {\n List<DeviceType> deviceTypes;\n try {\n deviceTypes = DeviceMgtAPIUtils.getDeviceManagementService().getAvailableDeviceTypes();\n return Response.status(Response.Status.OK).entity(deviceTypes).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the list of device types.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }", "public static TypeArray v(int size) {\n TypeArray newArray = new TypeArray();\n\n newArray.types = new Type[size];\n\n for (int i = 0; i < size; i++) {\n newArray.types[i] = UnusuableType.v();\n }\n\n return newArray;\n }", "public List<AssetType> getAssetTypes() throws IOException {\n try {\n String strBody = null;\n Map<String, String> params = null;\n String correctPath = \"/AssetTypes\";\n UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + correctPath);\n String url = uriBuilder.build().toString();\n\n \n String response = this.DATA(url, strBody, params, \"GET\");\n TypeReference<List<AssetType>> typeRef = new TypeReference<List<AssetType>>() {};\n return apiClient.getObjectMapper().readValue(response, typeRef);\n\n } catch (IOException e) {\n throw xeroExceptionHandler.handleBadRequest(e.getMessage());\n } catch (XeroApiException e) {\n throw xeroExceptionHandler.handleBadRequest(e.getMessage(), e.getResponseCode(),JSONUtils.isJSONValid(e.getMessage()));\n }\n }", "public final ArrayList<Application.ApplicationType> getApplicationTypes() {\n\n\t\t// TODO - check if it works\n\t\tList<String> list = JsUtils.listFromJsArrayString(JsUtils.getNativePropertyArrayString(this, \"applicationTypes\"));\n\t\tArrayList<Application.ApplicationType> result = new ArrayList<Application.ApplicationType>();\n\t\tfor (String s : list) {\n\t\t\tresult.add(Application.ApplicationType.valueOf(s));\n\t\t}\n\t\treturn result;\n\n\t}", "public void computeTypeIds() {\n classes.add(null);\n jsonObjects.add(new JsonObject(program));\n \n // Do java.lang.String first to reserve typeId 1 for the mashup case.\n computeSourceClass(program.getTypeJavaLangString());\n assert (classes.size() == 2);\n \n /*\n * Compute the list of classes than can successfully satisfy cast\n * requests, along with the set of types they can be successfully cast to.\n * Do it in super type order.\n */\n for (Iterator it = program.getDeclaredTypes().iterator(); it.hasNext();) {\n JReferenceType type = (JReferenceType) it.next();\n if (type instanceof JClassType) {\n computeSourceClass((JClassType) type);\n }\n }\n \n for (Iterator it = program.getAllArrayTypes().iterator(); it.hasNext();) {\n JArrayType type = (JArrayType) it.next();\n computeSourceClass(type);\n }\n \n // pass our info to JProgram\n program.initTypeInfo(classes, jsonObjects);\n program.recordQueryIds(queryIds);\n }", "@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn (List<Type>)BaseDao.select(\"select * from type\", Type.class);\r\n\t}", "@Override\n public boolean isArray() {\n return false;\n }", "public Type[] getReturnTypes() {\n \t\treturn actualReturnTypes;\n \t}", "UserType[] getUserTypes();", "public boolean supportsJsonType() {\n return false;\n }", "public java.util.List<Type> getType() { \n\t\tif (myType == null) {\n\t\t\tmyType = new java.util.ArrayList<Type>();\n\t\t}\n\t\treturn myType;\n\t}", "public List<String> getAvailableDataTypes() {\n Set<String> typeSet = new TreeSet<String>();\n\n ITimer timer = TimeUtil.getTimer();\n timer.start();\n\n try {\n for (Provider provider : DataDeliveryHandlers.getProviderHandler()\n .getAll()) {\n\n for (ProviderType type : provider.getProviderType()) {\n typeSet.add(type.getDataType().toString());\n }\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the provider list.\", e);\n }\n\n List<String> typeList = new ArrayList<String>(typeSet);\n timer.stop();\n\n return typeList;\n }" ]
[ "0.68728185", "0.64697206", "0.62031555", "0.61832106", "0.61571544", "0.6076043", "0.60611296", "0.6013762", "0.6011375", "0.59931505", "0.59721756", "0.5894788", "0.5788093", "0.57841873", "0.57628727", "0.5715914", "0.57139397", "0.56779826", "0.56730574", "0.5589677", "0.5568682", "0.55601853", "0.55567396", "0.55477333", "0.5539271", "0.553134", "0.5494993", "0.5477589", "0.5475289", "0.546743", "0.54657775", "0.5462317", "0.5462317", "0.5462317", "0.54387957", "0.543361", "0.5429596", "0.5428559", "0.5428559", "0.54159653", "0.5405865", "0.5395528", "0.5390393", "0.53807676", "0.53729886", "0.53726834", "0.5362572", "0.53609324", "0.53420997", "0.5335808", "0.53289056", "0.5316064", "0.53016514", "0.53011405", "0.52940136", "0.5291424", "0.52769494", "0.52591044", "0.5252716", "0.5252258", "0.52503157", "0.5239541", "0.52314", "0.52314", "0.52314", "0.5225133", "0.5218513", "0.5200149", "0.51979715", "0.5194263", "0.51854986", "0.51789564", "0.5172151", "0.5171875", "0.5171166", "0.51673985", "0.51560724", "0.5154822", "0.5149259", "0.51460224", "0.514389", "0.51251674", "0.51143724", "0.51105475", "0.5103493", "0.51003236", "0.5094925", "0.5093552", "0.5092948", "0.508454", "0.5082263", "0.5070517", "0.50643903", "0.5063416", "0.5057515", "0.50545186", "0.5029089", "0.5028047", "0.5025539", "0.50183046" ]
0.6806093
1
Gets the simple computation target types as a JSON response.
@GET @Path("simpleTypes") @Produces(MediaType.APPLICATION_JSON) public String getSimpleTypes() { return typesJSONResponse(_types.getSimpleTypes()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String typesJSONResponse(final Collection<ComputationTargetType> types) {\n final List<ComputationTargetType> sorted = new ArrayList<>(types);\n Collections.sort(sorted, SORT_ORDER);\n try {\n final JSONWriter response = new JSONStringer().object().key(\"types\").array();\n for (final ComputationTargetType type : sorted) {\n response.object().key(\"label\").value(type.getName()).key(\"value\").value(type.toString()).endObject();\n }\n return response.endArray().endObject().toString();\n } catch (final JSONException e) {\n return null;\n }\n }", "@Override\n public Map<String, Class> getReturnedTypes() {\n return outputTypes;\n }", "public IOutputType[] getOutputTypes();", "@GET\n @Path(\"allTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAllTypes() {\n return typesJSONResponse(_types.getAllTypes());\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();", "public void getTypes(HttpServletResponse resp, List<MobilityType> types) {\n try {\n if (types == null) {\n types = new ArrayList<>();\n types.addAll(Arrays.asList(MobilityType.values()));\n }\n String json = new Genson().serialize(types);\n resp.setContentType(\"application/json\");\n resp.getOutputStream().write(json.getBytes());\n } catch (IOException exp) {\n exp.printStackTrace();\n }\n }", "@Returns(\"targetInfos\")\n @ReturnTypeParameter(TargetInfo.class)\n List<TargetInfo> getTargets();", "@RequestMapping(value = \"/contracts/types\", method = RequestMethod.GET)\n public JsonListWrapper<String> listAllTypes() {\n Collection<String> items = ((ContractService) service).findAllInsuranceTypes();\n return JsonListWrapper.withTotal(items);\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();", "@GET\n @Path(\"additionalTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAdditionalTypes() {\n return typesJSONResponse(_types.getAdditionalTypes());\n }", "@Override\n\tpublic List<Class<?>> getResultClasses() {\n\t\treturn Arrays.asList(String.class, JSONResult.class);\n\t}", "@WebMethod(operationName = \"target-infections\")\n String getTargetInfections() throws JsonProcessingException;", "public Map<String, JsonElementType> getJsonResponseStructure();", "public Class<?> getTargetReturnType() {\n return targetReturnType;\n }", "@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }", "public String getReturnType() {\n String type;\r\n if (this.getTypeIdentifier() != null) { //Collection<Entity> , Collection<String>\r\n type = this.getTypeIdentifier().getVariableType();\r\n } else {\r\n type = classHelper.getClassName();\r\n }\r\n\r\n if ((this.getTypeIdentifier() == null\r\n || getRelation() instanceof SingleRelationAttributeSnippet)\r\n && functionalType) {\r\n if (isArray(type)) {\r\n type = \"Optional<\" + type + '>';\r\n } else {\r\n type = \"Optional<\" + getWrapperType(type) + '>';\r\n }\r\n }\r\n return type;\r\n }", "@ApiModelProperty(value = \"class type of target specification\")\n\n\n public String getType() {\n return type;\n }", "@GET\n\t@Path(\"types\")\n public Response getDeviceTypes() {\n List<DeviceType> deviceTypes;\n try {\n deviceTypes = DeviceMgtAPIUtils.getDeviceManagementService().getAvailableDeviceTypes();\n return Response.status(Response.Status.OK).entity(deviceTypes).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the list of device types.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }", "OutputsType getOutputs();", "ResponseEntity<List<Type>> findTaskTypes();", "public JSONObject getCESSCalculationType(JSONObject reqParams) throws JSONException, ServiceException {\n JSONObject jSONObject = new JSONObject();\n KwlReturnObject kwlReturnObject = accEntityGstDao.getCESSCalculationType(reqParams);\n if (kwlReturnObject != null) {\n JSONArray JArray = new JSONArray();\n List<GSTCessRuleType> cessRuleTypes = kwlReturnObject.getEntityList();\n for (GSTCessRuleType ruleType : cessRuleTypes) {\n JSONObject obj = new JSONObject();\n obj.put(\"id\", ruleType.getId());\n obj.put(\"name\", ruleType.getName());\n JArray.put(obj);\n }\n jSONObject.put(\"data\", JArray);\n }\n return jSONObject;\n }", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "public String resultTypes() {\n return \"\";//NOI18N\n }", "public String getTargetTypeAsString() {\n\t\tString type = null;\n\t\t\n\t\tswitch (targetType) {\n\t\tcase PROCEDURE:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tcase POLICY:\n\t\t\ttype = \"policy\";\n\t\t\tbreak;\n\t\tcase PROCESS:\n\t\t\ttype = \"process\";\n\t\t\tbreak;\n\t\tcase EXTERNAL:\n\t\t\ttype = \"external\";\n\t\t\tbreak;\n\t\tcase NOT_SET:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\t}\n\t\treturn type;\n\t}", "public String getTargetJson() {\n\t\treturn targetJson;\n\t}", "public JsonNode getTypesJson(String notation) throws IOException {\n ObjectNode resultTypes = mapper.createObjectNode();\n\n ClassLoader classLoader = getClass().getClassLoader();\n\n JsonNode typesList = mapper.readTree(\n new File(classLoader.getResource(notation + \"/typesList.json\").getFile()));\n JsonNode allTypes = mapper.readTree(\n new File(classLoader.getResource(notation + \"/elementsTypes_en.json\").getFile()));\n\n resultTypes.set(\"elements\", getElementsTypes(typesList, allTypes));\n resultTypes.set(\"blocks\", getBlocksTypes(typesList, allTypes));\n\n return resultTypes;\n }", "public ReactorResult<java.lang.String> getAllMediaType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), MEDIATYPE, java.lang.String.class);\r\n\t}", "com.google.ads.googleads.v14.services.SuggestGeoTargetConstantsRequest.GeoTargets getGeoTargets();", "@GET\n @Path(\"/types\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getBlahTypes(@Context HttpServletRequest request) {\n try {\n final long start = System.currentTimeMillis();\n final Response response = RestUtilities.make200OkResponse(getBlahManager().getBlahTypes(LocaleId.en_us));\n getSystemManager().setResponseTime(GET_BLAH_TYPES_OPERATION, (System.currentTimeMillis() - start));\n return response;\n } catch (SystemErrorException e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } finally {\n\n }\n }", "public List<ModelType> findAllModelTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?modelType WHERE {?modelType rdfs:subClassOf onto:ModelType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllModelTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ModelType> list = new ArrayList<ModelType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tModelType modelType = new ModelType();\r\n\t\t\t\tif (jsonObject.has(\"modelType\")) {\r\n\t\t\t\t\tmodelType.setModelTypeName(jsonObject.getJSONObject(\"modelType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(modelType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Formula encodeTarget() {\n\t\tConjunction result = new Conjunction(\"target\");\n\t\tSet<CArgument> T = CAF.getTarget();\n\t\tfor(CArgument t : T) {\n\t\t\tresult.addSubformula(new Atom(\"acc_\" + t.getName()));\n\t\t}\n\t\treturn result;\n\t}", "public String getTargetType() {\n return targetType;\n }", "public String getTargetType() {\n return targetType;\n }", "public String getTargetType() {\n return targetType;\n }", "public String getTargetType() {\n return targetType;\n }", "public TypeLiteral<T> getTargetType(){\n return targetType;\n }", "String getReturnType();", "public Map<String, SkylarkModuleDoc> getTypes() {\n return types;\n }", "String getResultClass();", "public Type[] getReturnTypes() {\n \t\treturn actualReturnTypes;\n \t}", "@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST request to get all Types\");\n\t\treturn this.typesService.findAll();\n\t}", "public TypeToken<?> returnType() {\n return this.modelType;\n }", "@RequestMapping(value=\"/datatypes\",method=RequestMethod.GET)\n public DataFieldType[] getAllDataTypes(){\n return DataFieldType.values();\n }", "public Class getResultType() {\n return _res;\n }", "public java.lang.String getResultJson() {\n return result_json;\n }", "public String getTargetType() {\n return this.targetType;\n }", "public PayloadType[] getTextPayloadTypes();", "UsedTypes getTypes();", "public Type[] types();", "TypeDec getTarget();", "@JsonGetter(\"type\")\n public String getServerActionConverter() {\n String serverActionValue = getType() != null ? getType() : getServerAction();\n return serverActionValue != null ? serverActionValue : \"server\";\n }", "public String[] getTypes() {\n return impl.getTypes();\n }", "public abstract int[] getReturnTypes();", "@Override\n public TypeProtos.MajorType getType(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) {\n\n int precision = 0;\n TypeProtos.DataMode mode = attributes.getReturnValue().getType().getMode();\n\n if (attributes.getNullHandling() == FunctionTemplate.NullHandling.NULL_IF_NULL) {\n // if any one of the input types is nullable, then return nullable return type\n for (LogicalExpression e : logicalExpressions) {\n if (e.getMajorType().getMode() == TypeProtos.DataMode.OPTIONAL) {\n mode = TypeProtos.DataMode.OPTIONAL;\n }\n precision = Math.max(precision, e.getMajorType().getPrecision());\n }\n }\n\n return TypeProtos.MajorType.newBuilder()\n .setMinorType(attributes.getReturnValue().getType().getMinorType())\n .setScale(0)\n .setPrecision(precision)\n .setMode(mode)\n .build();\n }", "public java.lang.String getResultJson() {\n return result_json;\n }", "ResponsesType createResponsesType();", "public ZserioType getResponseType()\n {\n return responseType;\n }", "public String returnType() {\n return this.data.returnType();\n }", "@Override\n public TypeProtos.MajorType getType(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) {\n TypeProtos.DataMode mode = FunctionUtils.getReturnTypeDataMode(logicalExpressions, attributes);\n\n assert logicalExpressions.size() == 2;\n\n TypeProtos.MajorType leftMajorType = logicalExpressions.get(0).getMajorType();\n TypeProtos.MajorType rightMajorType = logicalExpressions.get(1).getMajorType();\n\n DecimalScalePrecisionModFunction outputScalePrec =\n new DecimalScalePrecisionModFunction(\n DecimalUtility.getDefaultPrecision(leftMajorType.getMinorType(), leftMajorType.getPrecision()),\n leftMajorType.getScale(),\n DecimalUtility.getDefaultPrecision(rightMajorType.getMinorType(), rightMajorType.getPrecision()),\n rightMajorType.getScale());\n return TypeProtos.MajorType.newBuilder()\n .setMinorType(TypeProtos.MinorType.VARDECIMAL)\n .setScale(outputScalePrec.getOutputScale())\n .setPrecision(outputScalePrec.getOutputPrecision())\n .setMode(mode)\n .build();\n }", "public List<String> getReturnTypes() {\n if (returnTypes.isEmpty()) {\n return Lists.newArrayList(\"void\");\n } else {\n return new ArrayList<>(returnTypes);\n }\n }", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "public List<IElementType> getMARelTypesOnTarget() {\r\n\t\tArrayList<IElementType> types = new ArrayList<IElementType>(1);\r\n\t\ttypes.add(GeometryElementTypes.Line_4001);\r\n\t\treturn types;\r\n\t}", "static TypeReference<PagedQueryResult<JsonNode>> resultTypeReference() {\n return new TypeReference<PagedQueryResult<JsonNode>>() {\n @Override\n public String toString() {\n return \"TypeReference<PagedQueryResult<JsonNode>>\";\n }\n };\n }", "@Override\n public TypeProtos.MajorType getType(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) {\n TypeProtos.DataMode mode = FunctionUtils.getReturnTypeDataMode(logicalExpressions, attributes);\n\n assert logicalExpressions.size() == 2;\n\n TypeProtos.MajorType leftMajorType = logicalExpressions.get(0).getMajorType();\n TypeProtos.MajorType rightMajorType = logicalExpressions.get(1).getMajorType();\n\n DecimalScalePrecisionAddFunction outputScalePrec =\n new DecimalScalePrecisionAddFunction(\n DecimalUtility.getDefaultPrecision(leftMajorType.getMinorType(), leftMajorType.getPrecision()),\n leftMajorType.getScale(),\n DecimalUtility.getDefaultPrecision(rightMajorType.getMinorType(), rightMajorType.getPrecision()),\n rightMajorType.getScale());\n return TypeProtos.MajorType.newBuilder()\n .setMinorType(TypeProtos.MinorType.VARDECIMAL)\n .setScale(outputScalePrec.getOutputScale())\n .setPrecision(outputScalePrec.getOutputPrecision())\n .setMode(mode)\n .build();\n }", "public ResultFormat[] getTypes() {\n\n if (types == null) {\n types = loadFormats();\n }\n return types.clone();\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn name + \" \" + Arrays.toString(types);\r\n\t}", "public String getTypesSummary() throws Exception {\n\t\treturn this.xqueryUtil.getTypesSummary();\n\t}", "public List<SimpleFeatureType> getCurrentTypes() {\n \tList<SimpleFeatureType> ret = new ArrayList<SimpleFeatureType>();\n \tfor (Set<SimpleFeature> s : typeNameIndex.values()) {\n \t\tif (s.size()>0) {\n \t\t\tret.add( s.iterator().next().getFeatureType() );\n \t\t}\n \t}\n \treturn ret;\n }", "public Map<Integer, TargetDef> getTargetQueries();", "private JsonElement serializeEntityType(Pair<EntityPrimitiveTypes, Stats> content) {\n JsonObject entityObject = new JsonObject();\n JsonObject statObject = new JsonObject();\n for (Map.Entry<Statistic, Double> entry :\n content.getSecond().getStatistics().entrySet()) {\n statObject.add(entry.getKey().name(), new JsonPrimitive(entry.getValue()));\n }\n entityObject.add(STATS, statObject);\n entityObject.add(JSONEntitySerializer.PRIMITIVE_TYPE, new JsonPrimitive(content.getFirst().name()));\n return entityObject;\n }", "public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }", "@Override\n\tpublic TypeName[] getOutputs()\n\t{\n\t\tthis.defaultOutputNames = new TypeName[1];\n\t\tthis.defaultOutputNames[0] = new TypeName(IMAGE, \"Adjusted Image\");\n\t\t\n\t\tif(this.outputNames == null)\n\t\t{\n\t\t\treturn this.defaultOutputNames;\n\t\t}\n\t\treturn this.outputNames;\n\t}", "public int getTargetType() {\n return targetType;\n }", "Type getResultType();", "@Get(\"json\")\n public Representation toJSON() {\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = null;\n\n \tString msg = \"no metadata matching query found\";\n\n \ttry {\n \t\tmetadata = getMetadata(status, access,\n \t\t\t\tgetRequestQueryValues());\n \t} catch(ResourceException r){\n \t\tmetadata = new ArrayList<Map<String, String>>();\n \tif(r.getCause() != null){\n \t\tmsg = \"ERROR: \" + r.getCause().getMessage();\n \t}\n \t}\n\n\t\tString iTotalDisplayRecords = \"0\";\n\t\tString iTotalRecords = \"0\";\n\t\tif (metadata.size() > 0) {\n\t\t\tMap<String, String> recordCounts = (Map<String, String>) metadata\n\t\t\t\t\t.remove(0);\n\t\t\tiTotalDisplayRecords = recordCounts.get(\"iTotalDisplayRecords\");\n\t\t\tiTotalRecords = recordCounts.get(\"iTotalRecords\");\n\t\t}\n\n\t\tMap<String, Object> json = buildJsonHeader(iTotalRecords,\n\t\t\t\tiTotalDisplayRecords, msg);\n\t\tList<ArrayList<String>> jsonResults = buildJsonResults(metadata);\n\n\t\tjson.put(\"aaData\", jsonResults);\n\n\t\t// Returns the XML representation of this document.\n\t\treturn new StringRepresentation(JSONValue.toJSONString(json),\n\t\t\t\tMediaType.APPLICATION_JSON);\n }", "EValidTargetTypes getTargets();", "String getTypeAsString();", "public static final String[] getSourceTypeList() {\n final SourceType[] types = SourceType.values();\n final String[] displayStrings = new String[types.length];\n for(int i = 0; i < types.length; i++) {\n displayStrings[i] = JMeterUtils.getResString(types[i].propertyName);\n }\n return displayStrings;\n }", "@JsonGetter(\"type\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public String getType() {\r\n return type;\r\n }", "public ReactorResult<java.lang.String> getAllContentType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), CONTENTTYPE, java.lang.String.class);\r\n\t}", "public String getOntologyType(){\r\n\t\treturn null;\r\n\t}", "public native JsArrayString getTypes()/*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\treturn jso.types;\n }-*/;", "public String typesToString()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tif(contents instanceof Variable<?>[])\n\t\t{\n\t\t\tfor(E c : contents)\n\t\t\t{\n\t\t\t\tsb.append(((Variable<?>) c).getType().toString() + \", \");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(E c : contents)\n\t\t\t{\n\t\t\t\tsb.append(c.getClass().toString() + \", \");\n\t\t\t}\n\t\t}\n\n\t\treturn \"StackTypes [\" + sb.toString() + \"]\";\n\t}", "private void requestWeatherTypes() {\n SharedPreferences preferences = getSharedPreferences(CommonConstants.APP_SETTINGS, MODE_PRIVATE);\n String url = \"https://api.openweathermap.org/data/2.5/forecast?\" +\n \"id=\" + input.get(CommonConstants.ARRIVAL_CITY_ID) +\n \"&appid=\" + CommonConstants.OWM_APP_ID +\n \"&lang=\" + Locale.getDefault().getLanguage() +\n \"&units=\" + preferences.getString(CommonConstants.TEMPERATURE_UNIT, \"Standard\");\n ForecastListener listener = new ForecastListener(weatherList -> {\n try {\n WeatherTypeMapper mapper = new WeatherTypeMapper();\n fillPreview(mapper.from(weatherList));\n if (input.containsKey(CommonConstants.SELECTIONS)) {\n //noinspection unchecked\n setSelections((List<Settings.Selection>) input.get(CommonConstants.SELECTIONS));\n }\n } catch (ExecutionException | InterruptedException e) {\n Log.e(TAG, \"onSuccess: \" + e.getMessage(), e);\n }\n });\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null, listener, null);\n TravelRequestQueue.getInstance(this).addRequest(request);\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "public ShowTypesResponse showTypes(ShowTypesRequest request) throws GPUdbException {\n ShowTypesResponse actualResponse_ = new ShowTypesResponse();\n submitRequest(\"/show/types\", request, actualResponse_, false);\n\n for (int i_ = 0; i_ < actualResponse_.getTypeIds().size(); i_++) {\n setTypeDescriptorIfMissing(actualResponse_.getTypeIds().get(i_), actualResponse_.getLabels().get(i_), actualResponse_.getTypeSchemas().get(i_), actualResponse_.getProperties().get(i_));\n }\n\n return actualResponse_;\n }", "@Override\n public TypeProtos.MajorType getType(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) {\n TypeProtos.DataMode mode = FunctionUtils.getReturnTypeDataMode(logicalExpressions, attributes);\n\n assert logicalExpressions.size() == 2;\n\n TypeProtos.MajorType leftMajorType = logicalExpressions.get(0).getMajorType();\n TypeProtos.MajorType rightMajorType = logicalExpressions.get(1).getMajorType();\n\n DecimalScalePrecisionDivideFunction outputScalePrec =\n new DecimalScalePrecisionDivideFunction(\n DecimalUtility.getDefaultPrecision(leftMajorType.getMinorType(), leftMajorType.getPrecision()),\n leftMajorType.getScale(),\n DecimalUtility.getDefaultPrecision(rightMajorType.getMinorType(), rightMajorType.getPrecision()),\n rightMajorType.getScale());\n return TypeProtos.MajorType.newBuilder()\n .setMinorType(TypeProtos.MinorType.VARDECIMAL)\n .setScale(outputScalePrec.getOutputScale())\n .setPrecision(outputScalePrec.getOutputPrecision())\n .setMode(mode)\n .build();\n }", "public List<ContractIOType> getOutputs() {\n return outputs;\n }", "@GET\n @Produces(\"application/json\")\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "public IOutputType getPrimaryOutputType();", "public OperationType[] createOperationTypes() {\n int[] op1v1 = new int[]{2, 3, 4, 6};\n OperationType op1 = new OperationType(1, op1v1, null, null, 2\n , 0, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net before operation\");\n int[] op2v1 = new int[]{2, 3, 4, 6};\n int[] op2v2 = new int[]{2, 3, 4, 6};\n OperationType op2 = new OperationType(2, op2v1, op2v2, null,\n 3, 1, 17520, 730, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Install net\");\n int[] op3v1 = new int[]{2, 3, 4, 6};\n OperationType op3 = new OperationType(3, op3v1, null,\n null, 0, 2, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net after operation\");\n int[] op4v1 = new int[]{5};\n int[] op4v2 = new int[]{2, 3, 4, 6};\n OperationType op4 = new OperationType(4, op4v1, op4v2, null,\n 0, 0, 1152, 192, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Delousing\");\n int[] op5v1 = new int[]{2, 3, 4};\n int[] op5v2 = new int[]{2, 3, 4};\n int[] op5BT = new int[]{6};\n OperationType op5 = new OperationType(5, op5v1, op5v2, op5BT,\n 0, 0, 8760, 360, 40, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Large inspection of the facility\");\n int[] op6v1 = new int[]{2};\n OperationType op6 = new OperationType(6, op6v1, null, null,\n 0, 0, 5110, 730, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Wash the net\");\n int[] op7v1 = new int[]{4, 6};\n OperationType op7 = new OperationType(7, op7v1, null, null,\n 0, 0, 8760, 360, 48, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"tightening anchor lines\");\n int[] op8v1 = new int[]{2, 3, 4, 6};\n int[] op8v2 = new int[]{2, 3, 4, 6};\n OperationType op8 = new OperationType(8, op8v1, op8v2, null,\n 0, 9, 8760, 360, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Small installation facility\");\n int[] op9v1 = new int[]{2, 3, 4, 6};\n OperationType op9 = new OperationType(9, op9v1, null, null,\n 8, 0, 8760, 360, 6, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Easy transport of equipment to facility\");\n int[] op10v1 = new int[]{2, 3, 4, 6};\n OperationType op10 = new OperationType(10, op10v1, null, null,\n 0, 0, 720, 100, 2, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Remove dead fish\");\n int[] op11v1 = new int[]{2, 3, 4, 6};\n OperationType op11 = new OperationType(11, op11v1, null, null,\n 0, 0, 720, 100, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Support wellboat\");\n int[] op12v1 = new int[]{1, 2, 3, 4, 6};\n OperationType op12 = new OperationType(12, op12v1, null, null,\n 0, 0, 720, 100, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net ROV\");\n int[] op13v1 = new int[]{1, 3};\n OperationType op13 = new OperationType(13, op13v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net diver\");\n int[] op14v1 = new int[]{2};\n OperationType op14 = new OperationType(14, op14v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Wash bottom ring and floating collar\");\n int[] op15v1 = new int[]{2, 3, 4, 6};\n OperationType op15 = new OperationType(15, op15v1, null, null,\n 0, 0, 168, 24, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Support working boat\");\n return new OperationType[]{op1, op2, op3, op4, op5, op6, op7, op8, op9, op10, op11, op12, op13, op14, op15};\n }", "public void setTargetReturnType(Class<?> type) {\n this.targetReturnType = type;\n }", "public List<IElementType> getMARelTypesOnSourceAndTarget(\r\n\t\t\tIGraphicalEditPart targetEditPart) {\r\n\t\tLinkedList<IElementType> types = new LinkedList<IElementType>();\r\n\t\tif (targetEditPart instanceof geometry.diagram.edit.parts.ConnectorEditPart) {\r\n\t\t\ttypes.add(GeometryElementTypes.Line_4001);\r\n\t\t}\r\n\t\treturn types;\r\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJSON() {\n throw new UnsupportedOperationException();\n }", "@Nonnull\n public static UBL23WriterBuilder <ExpressionOfInterestResponseType> expressionOfInterestResponse ()\n {\n return UBL23WriterBuilder.create (ExpressionOfInterestResponseType.class);\n }", "List<String> getTargetClassifications(Observation obs);", "java.lang.String getMetadataJson();", "@Override\r\n\tpublic List<Type> selectType() {\n\t\treturn gd.selectType();\r\n\t}" ]
[ "0.6725744", "0.5970836", "0.5866573", "0.5823956", "0.5743695", "0.56390107", "0.55645216", "0.5552596", "0.5550193", "0.5450983", "0.5366307", "0.5306561", "0.52769375", "0.52533567", "0.5233604", "0.521518", "0.51757234", "0.5160759", "0.51575017", "0.51120776", "0.50450516", "0.4996921", "0.49837008", "0.49670333", "0.4959702", "0.4942188", "0.49022353", "0.48940054", "0.4883772", "0.4882967", "0.48712233", "0.48608896", "0.48608896", "0.48608896", "0.48608896", "0.48491335", "0.484273", "0.48420814", "0.48418793", "0.4811922", "0.4810625", "0.47842917", "0.47762856", "0.47746554", "0.47210217", "0.47163615", "0.47147927", "0.47145653", "0.4710442", "0.47066772", "0.4694467", "0.46861517", "0.46804303", "0.46790797", "0.46717885", "0.4665426", "0.46633863", "0.46594167", "0.46494803", "0.4645778", "0.4641525", "0.46375126", "0.46342573", "0.46304384", "0.46270692", "0.46260884", "0.46191597", "0.46180233", "0.4606268", "0.46049958", "0.46023038", "0.46017697", "0.46013588", "0.45954064", "0.45950797", "0.45943603", "0.45924535", "0.45901924", "0.4589409", "0.45878485", "0.4580821", "0.45796686", "0.45796594", "0.4575311", "0.4575094", "0.4575094", "0.4575094", "0.45719442", "0.45700264", "0.45695594", "0.4564331", "0.45635933", "0.45622647", "0.45603713", "0.45529756", "0.4552052", "0.45437396", "0.4540873", "0.4539829", "0.45377374" ]
0.6313836
1
Gets additional computation target types as a JSON response.
@GET @Path("additionalTypes") @Produces(MediaType.APPLICATION_JSON) public String getAdditionalTypes() { return typesJSONResponse(_types.getAdditionalTypes()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String typesJSONResponse(final Collection<ComputationTargetType> types) {\n final List<ComputationTargetType> sorted = new ArrayList<>(types);\n Collections.sort(sorted, SORT_ORDER);\n try {\n final JSONWriter response = new JSONStringer().object().key(\"types\").array();\n for (final ComputationTargetType type : sorted) {\n response.object().key(\"label\").value(type.getName()).key(\"value\").value(type.toString()).endObject();\n }\n return response.endArray().endObject().toString();\n } catch (final JSONException e) {\n return null;\n }\n }", "@Override\n public Map<String, Class> getReturnedTypes() {\n return outputTypes;\n }", "public IOutputType[] getOutputTypes();", "public Class<?> getTargetReturnType() {\n return targetReturnType;\n }", "@Returns(\"targetInfos\")\n @ReturnTypeParameter(TargetInfo.class)\n List<TargetInfo> getTargets();", "@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }", "public Formula encodeTarget() {\n\t\tConjunction result = new Conjunction(\"target\");\n\t\tSet<CArgument> T = CAF.getTarget();\n\t\tfor(CArgument t : T) {\n\t\t\tresult.addSubformula(new Atom(\"acc_\" + t.getName()));\n\t\t}\n\t\treturn result;\n\t}", "public String getReturnType() {\n String type;\r\n if (this.getTypeIdentifier() != null) { //Collection<Entity> , Collection<String>\r\n type = this.getTypeIdentifier().getVariableType();\r\n } else {\r\n type = classHelper.getClassName();\r\n }\r\n\r\n if ((this.getTypeIdentifier() == null\r\n || getRelation() instanceof SingleRelationAttributeSnippet)\r\n && functionalType) {\r\n if (isArray(type)) {\r\n type = \"Optional<\" + type + '>';\r\n } else {\r\n type = \"Optional<\" + getWrapperType(type) + '>';\r\n }\r\n }\r\n return type;\r\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();", "public Map<String, JsonElementType> getJsonResponseStructure();", "public void getTypes(HttpServletResponse resp, List<MobilityType> types) {\n try {\n if (types == null) {\n types = new ArrayList<>();\n types.addAll(Arrays.asList(MobilityType.values()));\n }\n String json = new Genson().serialize(types);\n resp.setContentType(\"application/json\");\n resp.getOutputStream().write(json.getBytes());\n } catch (IOException exp) {\n exp.printStackTrace();\n }\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();", "public String[] getOutputExtensions();", "com.google.ads.googleads.v14.services.SuggestGeoTargetConstantsRequest.GeoTargets getGeoTargets();", "public String getTargetJson() {\n\t\treturn targetJson;\n\t}", "@GET\n @Path(\"allTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAllTypes() {\n return typesJSONResponse(_types.getAllTypes());\n }", "@Override\n\tpublic List<Class<?>> getResultClasses() {\n\t\treturn Arrays.asList(String.class, JSONResult.class);\n\t}", "java.lang.String getMetadataJson();", "public Map<Integer, TargetDef> getTargetQueries();", "OutputsType getOutputs();", "@WebMethod(operationName = \"target-infections\")\n String getTargetInfections() throws JsonProcessingException;", "public abstract int[] getReturnTypes();", "public void setTargetReturnType(Class<?> type) {\n this.targetReturnType = type;\n }", "@ApiModelProperty(value = \"class type of target specification\")\n\n\n public String getType() {\n return type;\n }", "public JsonNode getTypesJson(String notation) throws IOException {\n ObjectNode resultTypes = mapper.createObjectNode();\n\n ClassLoader classLoader = getClass().getClassLoader();\n\n JsonNode typesList = mapper.readTree(\n new File(classLoader.getResource(notation + \"/typesList.json\").getFile()));\n JsonNode allTypes = mapper.readTree(\n new File(classLoader.getResource(notation + \"/elementsTypes_en.json\").getFile()));\n\n resultTypes.set(\"elements\", getElementsTypes(typesList, allTypes));\n resultTypes.set(\"blocks\", getBlocksTypes(typesList, allTypes));\n\n return resultTypes;\n }", "public Class getResultType() {\n return _res;\n }", "public List<IElementType> getMARelTypesOnSourceAndTarget(\r\n\t\t\tIGraphicalEditPart targetEditPart) {\r\n\t\tLinkedList<IElementType> types = new LinkedList<IElementType>();\r\n\t\tif (targetEditPart instanceof geometry.diagram.edit.parts.ConnectorEditPart) {\r\n\t\t\ttypes.add(GeometryElementTypes.Line_4001);\r\n\t\t}\r\n\t\treturn types;\r\n\t}", "public JSONObject getCESSCalculationType(JSONObject reqParams) throws JSONException, ServiceException {\n JSONObject jSONObject = new JSONObject();\n KwlReturnObject kwlReturnObject = accEntityGstDao.getCESSCalculationType(reqParams);\n if (kwlReturnObject != null) {\n JSONArray JArray = new JSONArray();\n List<GSTCessRuleType> cessRuleTypes = kwlReturnObject.getEntityList();\n for (GSTCessRuleType ruleType : cessRuleTypes) {\n JSONObject obj = new JSONObject();\n obj.put(\"id\", ruleType.getId());\n obj.put(\"name\", ruleType.getName());\n JArray.put(obj);\n }\n jSONObject.put(\"data\", JArray);\n }\n return jSONObject;\n }", "public Type[] getReturnTypes() {\n \t\treturn actualReturnTypes;\n \t}", "public void computeTypeIds() {\n classes.add(null);\n jsonObjects.add(new JsonObject(program));\n \n // Do java.lang.String first to reserve typeId 1 for the mashup case.\n computeSourceClass(program.getTypeJavaLangString());\n assert (classes.size() == 2);\n \n /*\n * Compute the list of classes than can successfully satisfy cast\n * requests, along with the set of types they can be successfully cast to.\n * Do it in super type order.\n */\n for (Iterator it = program.getDeclaredTypes().iterator(); it.hasNext();) {\n JReferenceType type = (JReferenceType) it.next();\n if (type instanceof JClassType) {\n computeSourceClass((JClassType) type);\n }\n }\n \n for (Iterator it = program.getAllArrayTypes().iterator(); it.hasNext();) {\n JArrayType type = (JArrayType) it.next();\n computeSourceClass(type);\n }\n \n // pass our info to JProgram\n program.initTypeInfo(classes, jsonObjects);\n program.recordQueryIds(queryIds);\n }", "String getResultClass();", "UsedTypes getTypes();", "public List<IElementType> getMARelTypesOnTarget() {\r\n\t\tArrayList<IElementType> types = new ArrayList<IElementType>(1);\r\n\t\ttypes.add(GeometryElementTypes.Line_4001);\r\n\t\treturn types;\r\n\t}", "@RequestMapping(value = \"/contracts/types\", method = RequestMethod.GET)\n public JsonListWrapper<String> listAllTypes() {\n Collection<String> items = ((ContractService) service).findAllInsuranceTypes();\n return JsonListWrapper.withTotal(items);\n }", "public OperationType[] createOperationTypes() {\n int[] op1v1 = new int[]{2, 3, 4, 6};\n OperationType op1 = new OperationType(1, op1v1, null, null, 2\n , 0, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net before operation\");\n int[] op2v1 = new int[]{2, 3, 4, 6};\n int[] op2v2 = new int[]{2, 3, 4, 6};\n OperationType op2 = new OperationType(2, op2v1, op2v2, null,\n 3, 1, 17520, 730, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Install net\");\n int[] op3v1 = new int[]{2, 3, 4, 6};\n OperationType op3 = new OperationType(3, op3v1, null,\n null, 0, 2, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net after operation\");\n int[] op4v1 = new int[]{5};\n int[] op4v2 = new int[]{2, 3, 4, 6};\n OperationType op4 = new OperationType(4, op4v1, op4v2, null,\n 0, 0, 1152, 192, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Delousing\");\n int[] op5v1 = new int[]{2, 3, 4};\n int[] op5v2 = new int[]{2, 3, 4};\n int[] op5BT = new int[]{6};\n OperationType op5 = new OperationType(5, op5v1, op5v2, op5BT,\n 0, 0, 8760, 360, 40, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Large inspection of the facility\");\n int[] op6v1 = new int[]{2};\n OperationType op6 = new OperationType(6, op6v1, null, null,\n 0, 0, 5110, 730, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Wash the net\");\n int[] op7v1 = new int[]{4, 6};\n OperationType op7 = new OperationType(7, op7v1, null, null,\n 0, 0, 8760, 360, 48, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"tightening anchor lines\");\n int[] op8v1 = new int[]{2, 3, 4, 6};\n int[] op8v2 = new int[]{2, 3, 4, 6};\n OperationType op8 = new OperationType(8, op8v1, op8v2, null,\n 0, 9, 8760, 360, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Small installation facility\");\n int[] op9v1 = new int[]{2, 3, 4, 6};\n OperationType op9 = new OperationType(9, op9v1, null, null,\n 8, 0, 8760, 360, 6, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Easy transport of equipment to facility\");\n int[] op10v1 = new int[]{2, 3, 4, 6};\n OperationType op10 = new OperationType(10, op10v1, null, null,\n 0, 0, 720, 100, 2, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Remove dead fish\");\n int[] op11v1 = new int[]{2, 3, 4, 6};\n OperationType op11 = new OperationType(11, op11v1, null, null,\n 0, 0, 720, 100, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Support wellboat\");\n int[] op12v1 = new int[]{1, 2, 3, 4, 6};\n OperationType op12 = new OperationType(12, op12v1, null, null,\n 0, 0, 720, 100, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net ROV\");\n int[] op13v1 = new int[]{1, 3};\n OperationType op13 = new OperationType(13, op13v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net diver\");\n int[] op14v1 = new int[]{2};\n OperationType op14 = new OperationType(14, op14v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Wash bottom ring and floating collar\");\n int[] op15v1 = new int[]{2, 3, 4, 6};\n OperationType op15 = new OperationType(15, op15v1, null, null,\n 0, 0, 168, 24, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Support working boat\");\n return new OperationType[]{op1, op2, op3, op4, op5, op6, op7, op8, op9, op10, op11, op12, op13, op14, op15};\n }", "TypeDec getTarget();", "Type getResultType();", "public TypeLiteral<T> getTargetType(){\n return targetType;\n }", "String getReturnType();", "public List<IElementType> getMATypesForTarget(IElementType relationshipType) {\r\n\t\tLinkedList<IElementType> types = new LinkedList<IElementType>();\r\n\t\tif (relationshipType == GeometryElementTypes.Line_4001) {\r\n\t\t\ttypes.add(GeometryElementTypes.Connector_2001);\r\n\t\t}\r\n\t\treturn types;\r\n\t}", "public static String convertToJson(Object target) {\n StringBuilder sb = new StringBuilder();\n Class struc = target.getClass();\n Field[] fields = struc.getFields();\n\n for (Field field : fields) {\n try {\n sb.append(String.format(\"%s:%s\\n\", field.getName(), field.get(target)));\n\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n\n return sb.toString();\n }", "public String getTargetType() {\n return targetType;\n }", "public String getTargetType() {\n return targetType;\n }", "public String getTargetType() {\n return targetType;\n }", "public String getTargetType() {\n return targetType;\n }", "Map<String, ?> getOutputData();", "@GET\n @Path(\"simpleTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getSimpleTypes() {\n return typesJSONResponse(_types.getSimpleTypes());\n }", "ResponseEntity<List<Type>> findTaskTypes();", "public int getTargetType() {\n return targetType;\n }", "public Collection<Integer> getIncludedTransportTypes();", "static TypeReference<PagedQueryResult<JsonNode>> resultTypeReference() {\n return new TypeReference<PagedQueryResult<JsonNode>>() {\n @Override\n public String toString() {\n return \"TypeReference<PagedQueryResult<JsonNode>>\";\n }\n };\n }", "public Class<T> getSupportedOperationType();", "public java.lang.String getResultJson() {\n return result_json;\n }", "public String getTargetTypeAsString() {\n\t\tString type = null;\n\t\t\n\t\tswitch (targetType) {\n\t\tcase PROCEDURE:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tcase POLICY:\n\t\t\ttype = \"policy\";\n\t\t\tbreak;\n\t\tcase PROCESS:\n\t\t\ttype = \"process\";\n\t\t\tbreak;\n\t\tcase EXTERNAL:\n\t\t\ttype = \"external\";\n\t\t\tbreak;\n\t\tcase NOT_SET:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\t}\n\t\treturn type;\n\t}", "Class<T> getResultType();", "@Override\n\tpublic TypeName[] getOutputs()\n\t{\n\t\tthis.defaultOutputNames = new TypeName[1];\n\t\tthis.defaultOutputNames[0] = new TypeName(IMAGE, \"Adjusted Image\");\n\t\t\n\t\tif(this.outputNames == null)\n\t\t{\n\t\t\treturn this.defaultOutputNames;\n\t\t}\n\t\treturn this.outputNames;\n\t}", "public PayloadType[] getTextPayloadTypes();", "public String getResultType();", "@Override\n public Script.ScriptType getOutputScriptType() {\n return address.getOutputScriptType();\n }", "@RequestMapping(path = \"/v1/recommendations\", method = RequestMethod.GET)\n public ResponseEntity<Object> getRecommendations(@RequestParam(\"ag\") String assetGroup,\n @RequestParam(name = \"targettype\", required = false) String targetType) {\n if (Strings.isNullOrEmpty(assetGroup)) {\n return ResponseUtils.buildFailureResponse(new Exception(ASSET_MANDATORY));\n }\n ResponseData response = null;\n try {\n response = new ResponseData(complianceService.getRecommendations(assetGroup, targetType));\n } catch (ServiceException e) {\n return complianceService.formatException(e);\n }\n return ResponseUtils.buildSucessResponse(response);\n\n }", "public java.lang.String getResultJson() {\n return result_json;\n }", "private String[] getAffectedFeatureTypes( WFSOperation[] operations ) {\r\n ArrayList list = new ArrayList();\r\n\r\n for ( int i = 0; i < operations.length; i++ ) {\r\n if ( operations[i] instanceof WFSInsert ) {\r\n String[] ft = ( (WFSInsert)operations[i] ).getFeatureTypes();\r\n\r\n for ( int j = 0; j < ft.length; j++ ) {\r\n if ( parent.isKnownFeatureType( ft[j] ) ) {\r\n list.add( ft[j] );\r\n }\r\n }\r\n } else if ( operations[i] instanceof WFSUpdate ) {\r\n //((WFSUpdate)operations[i]).\r\n } else if ( operations[i] instanceof WFSDelete ) {\r\n } else {\r\n // native request\r\n }\r\n }\r\n\r\n return (String[])list.toArray( new String[list.size()] );\r\n }", "public abstract List<QualifiedName> getAffectedFeatureTypes();", "public String resultTypes() {\n return \"\";//NOI18N\n }", "protected Type getJoinPointReturnType() {\n return Type.getType(m_calleeMemberDesc);\n }", "@Override\n public TypeProtos.MajorType getType(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) {\n TypeProtos.DataMode mode = FunctionUtils.getReturnTypeDataMode(logicalExpressions, attributes);\n\n assert logicalExpressions.size() == 2;\n\n TypeProtos.MajorType leftMajorType = logicalExpressions.get(0).getMajorType();\n TypeProtos.MajorType rightMajorType = logicalExpressions.get(1).getMajorType();\n\n DecimalScalePrecisionAddFunction outputScalePrec =\n new DecimalScalePrecisionAddFunction(\n DecimalUtility.getDefaultPrecision(leftMajorType.getMinorType(), leftMajorType.getPrecision()),\n leftMajorType.getScale(),\n DecimalUtility.getDefaultPrecision(rightMajorType.getMinorType(), rightMajorType.getPrecision()),\n rightMajorType.getScale());\n return TypeProtos.MajorType.newBuilder()\n .setMinorType(TypeProtos.MinorType.VARDECIMAL)\n .setScale(outputScalePrec.getOutputScale())\n .setPrecision(outputScalePrec.getOutputPrecision())\n .setMode(mode)\n .build();\n }", "public String getTargetType() {\n return this.targetType;\n }", "public List<Class<?>> getTargetParameterTypes() {\n return targetParameterTypes;\n }", "public String[] getAllOutputExtensions();", "public List<Optype> getOptypeList() throws Exception {\n\t\treturn mapper.getOptypeList();\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJSON() {\n throw new UnsupportedOperationException();\n }", "@Nonnull\n public static UBL23WriterBuilder <ExpressionOfInterestResponseType> expressionOfInterestResponse ()\n {\n return UBL23WriterBuilder.create (ExpressionOfInterestResponseType.class);\n }", "public String returnType() {\n return this.data.returnType();\n }", "public abstract Class<?>[] getAddins();", "private JsonElement serializeEntityType(Pair<EntityPrimitiveTypes, Stats> content) {\n JsonObject entityObject = new JsonObject();\n JsonObject statObject = new JsonObject();\n for (Map.Entry<Statistic, Double> entry :\n content.getSecond().getStatistics().entrySet()) {\n statObject.add(entry.getKey().name(), new JsonPrimitive(entry.getValue()));\n }\n entityObject.add(STATS, statObject);\n entityObject.add(JSONEntitySerializer.PRIMITIVE_TYPE, new JsonPrimitive(content.getFirst().name()));\n return entityObject;\n }", "AdditionalValuesType getAdditionalValues();", "public TypeToken<?> returnType() {\n return this.modelType;\n }", "public IOutputType getOutputType(String outputExtension);", "List<Extension> getResponseExtensionsFor(Class wsrpResponseClass);", "public ResultFormat[] getTypes() {\n\n if (types == null) {\n types = loadFormats();\n }\n return types.clone();\n }", "protected String getTargetTypeParameter() {\n if (!notEmpty(targetType)) {\n return null;\n }\n if (targetType.equals(\"exe\")) {\n return \"/exe\";\n } else if (targetType.equals(\"library\")) {\n return \"/dll\";\n } else {\n return null;\n }\n }", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "public Type getReturnType() {\n/* 227 */ return Type.getReturnType(this.desc);\n/* */ }", "public Collection getIndividualTypes(OWLIndividual individual, ReasonerTaskListener taskListener) throws DIGReasonerException;", "public String getType()\r\n/* 11: */ {\r\n/* 12:10 */ return \"extrautils:slope\";\r\n/* 13: */ }", "EValidTargetTypes getTargets();", "@GET\n @Path(\"/types\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getBlahTypes(@Context HttpServletRequest request) {\n try {\n final long start = System.currentTimeMillis();\n final Response response = RestUtilities.make200OkResponse(getBlahManager().getBlahTypes(LocaleId.en_us));\n getSystemManager().setResponseTime(GET_BLAH_TYPES_OPERATION, (System.currentTimeMillis() - start));\n return response;\n } catch (SystemErrorException e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } finally {\n\n }\n }", "Type getReturnType();", "ImmutableSet<BuildTarget> getAdditionalCoverageTargets();", "@Override\n public TypeProtos.MajorType getType(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) {\n TypeProtos.DataMode mode = FunctionUtils.getReturnTypeDataMode(logicalExpressions, attributes);\n\n assert logicalExpressions.size() == 2;\n\n TypeProtos.MajorType leftMajorType = logicalExpressions.get(0).getMajorType();\n TypeProtos.MajorType rightMajorType = logicalExpressions.get(1).getMajorType();\n\n DecimalScalePrecisionModFunction outputScalePrec =\n new DecimalScalePrecisionModFunction(\n DecimalUtility.getDefaultPrecision(leftMajorType.getMinorType(), leftMajorType.getPrecision()),\n leftMajorType.getScale(),\n DecimalUtility.getDefaultPrecision(rightMajorType.getMinorType(), rightMajorType.getPrecision()),\n rightMajorType.getScale());\n return TypeProtos.MajorType.newBuilder()\n .setMinorType(TypeProtos.MinorType.VARDECIMAL)\n .setScale(outputScalePrec.getOutputScale())\n .setPrecision(outputScalePrec.getOutputPrecision())\n .setMode(mode)\n .build();\n }", "public Map<String, SkylarkModuleDoc> getTypes() {\n return types;\n }", "@GET\n\t@Path(\"types\")\n public Response getDeviceTypes() {\n List<DeviceType> deviceTypes;\n try {\n deviceTypes = DeviceMgtAPIUtils.getDeviceManagementService().getAvailableDeviceTypes();\n return Response.status(Response.Status.OK).entity(deviceTypes).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the list of device types.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }", "public ITypeInfo getReturnType();", "public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }", "private Map<String, Map<String,Integer>> combineResults() {\n\t\tMap<String, Map<String,Integer>>maxJointAgreement = new HashMap<>();\n\n\t\tfor (String type : this.entityTypes) {\n\t\t\tMap<String,Integer> allResults = new HashMap<>();\n\t\t\tMap<String,Integer> onlpRes = this.openNLPEntities.get(type);\n\t\t\tMap<String,Integer> cnlpRes = this.coreNLPEntities.get(type);\n\t\t\tMap<String,Integer> nltkRes = this.nltkEntities.get(type);\n\n\t\t\t// Merge individual NER results together\n\t\t\tif (onlpRes != null) {\n\t\t\t\tallResults = maxCountsMapMerge(onlpRes, allResults);\n\t\t\t}\n\t\t\tif (cnlpRes != null) {\n\t\t\t\tallResults = maxCountsMapMerge(cnlpRes, allResults);\n\t\t\t}\n\t\t\tif (nltkRes != null) {\n\t\t\t\tallResults = maxCountsMapMerge(nltkRes, allResults);\n\t\t\t}\n\t\t\tif (!allResults.isEmpty()) {\n\t\t\t\tmaxJointAgreement.put(type, allResults);\n\t\t\t}\n\t\t}\n\t\treturn maxJointAgreement;\n\t}", "@JsonProperty(\"extensions\")\n public Set<ToolComponent> getExtensions() {\n return extensions;\n }", "@JsonProperty(\"target\")\n public String getTarget() {\n return target;\n }", "private void generateCoreTypes() {\n\t\tvoidDt = new VoidDataType(progDataTypes);\n\t\tArrayList<TypeMap> typeList = new ArrayList<>();\n\t\ttypeList.add(new TypeMap(DataType.DEFAULT, \"undefined\", \"unknown\", false, false));\n\n\t\tfor (DataType dt : Undefined.getUndefinedDataTypes()) {\n\t\t\ttypeList.add(new TypeMap(displayLanguage, dt, \"unknown\", false, false));\n\t\t}\n\t\tfor (DataType dt : AbstractIntegerDataType.getSignedDataTypes(progDataTypes)) {\n\t\t\ttypeList.add(\n\t\t\t\tnew TypeMap(displayLanguage, dt.clone(progDataTypes), \"int\", false, false));\n\t\t}\n\t\tfor (DataType dt : AbstractIntegerDataType.getUnsignedDataTypes(progDataTypes)) {\n\t\t\ttypeList.add(\n\t\t\t\tnew TypeMap(displayLanguage, dt.clone(progDataTypes), \"uint\", false, false));\n\t\t}\n\t\tfor (DataType dt : AbstractFloatDataType.getFloatDataTypes(progDataTypes)) {\n\t\t\ttypeList.add(new TypeMap(displayLanguage, dt, \"float\", false, false));\n\t\t}\n\n\t\ttypeList.add(new TypeMap(DataType.DEFAULT, \"code\", \"code\", false, false));\n\n\t\t// Set \"char\" datatype\n\t\tDataType charDataType = new CharDataType(progDataTypes);\n\n\t\tString charMetatype = null;\n\t\tboolean isChar = false;\n\t\tboolean isUtf = false;\n\t\tif (charDataType instanceof CharDataType && ((CharDataType) charDataType).isSigned()) {\n\t\t\tcharMetatype = \"int\";\n\t\t}\n\t\telse {\n\t\t\tcharMetatype = \"uint\";\n\t\t}\n\t\tif (charDataType.getLength() == 1) {\n\t\t\tisChar = true;\n\t\t}\n\t\telse {\n\t\t\tisUtf = true;\n\t\t}\n\t\ttypeList.add(new TypeMap(displayLanguage, charDataType, charMetatype, isChar, isUtf));\n\n\t\t// Set up the \"wchar_t\" datatype\n\t\tWideCharDataType wideDataType = new WideCharDataType(progDataTypes);\n\t\ttypeList.add(new TypeMap(displayLanguage, wideDataType, \"int\", false, true));\n\n\t\tif (wideDataType.getLength() != 2) {\n\t\t\ttypeList.add(new TypeMap(displayLanguage, new WideChar16DataType(progDataTypes), \"int\",\n\t\t\t\tfalse, true));\n\t\t}\n\t\tif (wideDataType.getLength() != 4) {\n\t\t\ttypeList.add(new TypeMap(displayLanguage, new WideChar32DataType(progDataTypes), \"int\",\n\t\t\t\tfalse, true));\n\t\t}\n\n\t\tDataType boolDataType = new BooleanDataType(progDataTypes);\n\t\ttypeList.add(new TypeMap(displayLanguage, boolDataType, \"bool\", false, false));\n\n\t\tcoreBuiltin = new TypeMap[typeList.size()];\n\t\ttypeList.toArray(coreBuiltin);\n\t}", "@Override\n\tpublic boolean getInferTypes()\n {\n\t\treturn inferTypes;\n\t}", "@GET\n @Produces(\"application/json\")\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }" ]
[ "0.60872734", "0.5807261", "0.55888563", "0.53170323", "0.5249616", "0.52405894", "0.51254416", "0.51212394", "0.5108426", "0.5086936", "0.50473005", "0.5041988", "0.50162506", "0.50099623", "0.5006154", "0.50032395", "0.4949866", "0.4864497", "0.4847355", "0.48418808", "0.48416185", "0.4810873", "0.4794023", "0.4745907", "0.4735758", "0.47278598", "0.47229195", "0.47123665", "0.47023392", "0.46847066", "0.46736696", "0.46664575", "0.46570802", "0.46426466", "0.46285477", "0.46263885", "0.46202245", "0.46130177", "0.4577601", "0.4563926", "0.45423687", "0.45404172", "0.45404172", "0.45404172", "0.45404172", "0.45403334", "0.45340428", "0.45264092", "0.45257935", "0.4519153", "0.4502018", "0.44998375", "0.44947314", "0.4487471", "0.44859415", "0.44854906", "0.44721702", "0.44689316", "0.4462537", "0.44514182", "0.44503775", "0.44497004", "0.44439796", "0.44248793", "0.4422828", "0.4422725", "0.44003353", "0.43922046", "0.43909883", "0.4385287", "0.43819445", "0.43818265", "0.43807358", "0.43734202", "0.4370353", "0.4357935", "0.43574885", "0.43552202", "0.43520483", "0.43482345", "0.43470633", "0.4345595", "0.43410015", "0.43331653", "0.43327805", "0.43297827", "0.4327744", "0.43266016", "0.43219355", "0.43171212", "0.43112823", "0.42999017", "0.42929685", "0.42926112", "0.42925113", "0.42849922", "0.4283395", "0.42795256", "0.42761558", "0.42741844" ]
0.5999364
1
Gets all computation target types as a JSON response.
@GET @Path("allTypes") @Produces(MediaType.APPLICATION_JSON) public String getAllTypes() { return typesJSONResponse(_types.getAllTypes()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String typesJSONResponse(final Collection<ComputationTargetType> types) {\n final List<ComputationTargetType> sorted = new ArrayList<>(types);\n Collections.sort(sorted, SORT_ORDER);\n try {\n final JSONWriter response = new JSONStringer().object().key(\"types\").array();\n for (final ComputationTargetType type : sorted) {\n response.object().key(\"label\").value(type.getName()).key(\"value\").value(type.toString()).endObject();\n }\n return response.endArray().endObject().toString();\n } catch (final JSONException e) {\n return null;\n }\n }", "@Returns(\"targetInfos\")\n @ReturnTypeParameter(TargetInfo.class)\n List<TargetInfo> getTargets();", "public IOutputType[] getOutputTypes();", "@Override\n public Map<String, Class> getReturnedTypes() {\n return outputTypes;\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();", "public void getTypes(HttpServletResponse resp, List<MobilityType> types) {\n try {\n if (types == null) {\n types = new ArrayList<>();\n types.addAll(Arrays.asList(MobilityType.values()));\n }\n String json = new Genson().serialize(types);\n resp.setContentType(\"application/json\");\n resp.getOutputStream().write(json.getBytes());\n } catch (IOException exp) {\n exp.printStackTrace();\n }\n }", "public Class<?> getTargetReturnType() {\n return targetReturnType;\n }", "com.google.ads.googleads.v14.services.SuggestGeoTargetConstantsRequest.GeoTargets getGeoTargets();", "@Override\n\tpublic List<Class<?>> getResultClasses() {\n\t\treturn Arrays.asList(String.class, JSONResult.class);\n\t}", "ResponseEntity<List<Type>> findTaskTypes();", "@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }", "OutputsType getOutputs();", "@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST request to get all Types\");\n\t\treturn this.typesService.findAll();\n\t}", "@RequestMapping(value = \"/contracts/types\", method = RequestMethod.GET)\n public JsonListWrapper<String> listAllTypes() {\n Collection<String> items = ((ContractService) service).findAllInsuranceTypes();\n return JsonListWrapper.withTotal(items);\n }", "public TestTarget[] getAll() {\r\n\t\tList<TestTarget> applications = new ArrayList<TestTarget>();\r\n\t\tResult<Record> result = getDbContext().select().from(TESTTARGET).fetch();\r\n\t\tfor (Record r : result) {\r\n\t\t\tTestTarget tp = r.into(TestTarget.class);\r\n\t\t\tapplications.add(tp);\r\n\t\t}\r\n\t\treturn applications.toArray(new TestTarget[applications.size()]);\r\n\t}", "public List<Target> getTargets()\n {\n return targets;\n }", "public List<ContractIOType> getOutputs() {\n return outputs;\n }", "EValidTargetTypes getTargets();", "@GET\n\t@Path(\"types\")\n public Response getDeviceTypes() {\n List<DeviceType> deviceTypes;\n try {\n deviceTypes = DeviceMgtAPIUtils.getDeviceManagementService().getAvailableDeviceTypes();\n return Response.status(Response.Status.OK).entity(deviceTypes).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the list of device types.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }", "public Map<Integer, TargetDef> getTargetQueries();", "public Type[] getReturnTypes() {\n \t\treturn actualReturnTypes;\n \t}", "public List<ModelType> findAllModelTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?modelType WHERE {?modelType rdfs:subClassOf onto:ModelType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllModelTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ModelType> list = new ArrayList<ModelType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tModelType modelType = new ModelType();\r\n\t\t\t\tif (jsonObject.has(\"modelType\")) {\r\n\t\t\t\t\tmodelType.setModelTypeName(jsonObject.getJSONObject(\"modelType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(modelType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public List<Type> getAll();", "public Formula encodeTarget() {\n\t\tConjunction result = new Conjunction(\"target\");\n\t\tSet<CArgument> T = CAF.getTarget();\n\t\tfor(CArgument t : T) {\n\t\t\tresult.addSubformula(new Atom(\"acc_\" + t.getName()));\n\t\t}\n\t\treturn result;\n\t}", "public java.util.Enumeration getTargets() {\n return targets.elements();\n }", "public JsonNode getTypesJson(String notation) throws IOException {\n ObjectNode resultTypes = mapper.createObjectNode();\n\n ClassLoader classLoader = getClass().getClassLoader();\n\n JsonNode typesList = mapper.readTree(\n new File(classLoader.getResource(notation + \"/typesList.json\").getFile()));\n JsonNode allTypes = mapper.readTree(\n new File(classLoader.getResource(notation + \"/elementsTypes_en.json\").getFile()));\n\n resultTypes.set(\"elements\", getElementsTypes(typesList, allTypes));\n resultTypes.set(\"blocks\", getBlocksTypes(typesList, allTypes));\n\n return resultTypes;\n }", "public void setTargetReturnType(Class<?> type) {\n this.targetReturnType = type;\n }", "@Override\n public Set<Class<?>> getClasses() {\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(api.Auth.class);\n resources.add(api.UserApi.class);\n resources.add(api.TicketApi.class);\n resources.add(api.DepartmentApi.class);\n resources.add(api.MessageApi.class);\n resources.add(api.MilestoneApi.class);\n resources.add(api.InvitationApi.class);\n return resources;\n }", "public ResultFormat[] getTypes() {\n\n if (types == null) {\n types = loadFormats();\n }\n return types.clone();\n }", "public String[] getTypes() {\n return impl.getTypes();\n }", "public Type[] types();", "public List<CarrierType> all() throws EasyPostException {\n String endpoint = \"carrier_types\";\n\n CarrierType[] response = Requestor.request(RequestMethod.GET, endpoint, null, CarrierType[].class, client);\n return Arrays.asList(response);\n }", "@Override\n public Set<Class<?>> getClasses() {\n\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(CountryResource.class);\n resources.add(DepartmentResource.class);\n resources.add(JobResource.class);\n return resources;\n }", "public List<IElementType> getMARelTypesOnTarget() {\r\n\t\tArrayList<IElementType> types = new ArrayList<IElementType>(1);\r\n\t\ttypes.add(GeometryElementTypes.Line_4001);\r\n\t\treturn types;\r\n\t}", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "public List<Class<?>> getTargetParameterTypes() {\n return targetParameterTypes;\n }", "public DomainTarget[] getDomainTargets() {\n return domainTargets;\n }", "public List<TypeMetadata> getTypeMetadata() {\n return types;\n }", "public Map<String, SkylarkModuleDoc> getTypes() {\n return types;\n }", "public TypeLiteral<T> getTargetType(){\n return targetType;\n }", "public static ArrayList<String> getTargets() {\r\n return TARGETS;\r\n }", "public List<ResourceBase> listTypes() throws ResourceException;", "public List<TypeInfo> getTypes() {\r\n return types;\r\n }", "@ApiModelProperty(value = \"class type of target specification\")\n\n\n public String getType() {\n return type;\n }", "@GET\n\t@Path(\"all\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getAll() {\n\t\treturn Response.ok(taxBusiness.getAllTaxes()).build();\n\n\t}", "public Class getResultType() {\n return _res;\n }", "@RequestMapping(value=\"/datatypes\",method=RequestMethod.GET)\n public DataFieldType[] getAllDataTypes(){\n return DataFieldType.values();\n }", "UsedTypes getTypes();", "public String getTargetJson() {\n\t\treturn targetJson;\n\t}", "public ReactorResult<java.lang.String> getAllContentType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), CONTENTTYPE, java.lang.String.class);\r\n\t}", "@WebMethod(operationName = \"target-infections\")\n String getTargetInfections() throws JsonProcessingException;", "public List<IElementType> getMATypesForTarget(IElementType relationshipType) {\r\n\t\tLinkedList<IElementType> types = new LinkedList<IElementType>();\r\n\t\tif (relationshipType == GeometryElementTypes.Line_4001) {\r\n\t\t\ttypes.add(GeometryElementTypes.Connector_2001);\r\n\t\t}\r\n\t\treturn types;\r\n\t}", "public ReactorResult<java.lang.String> getAllMediaType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), MEDIATYPE, java.lang.String.class);\r\n\t}", "public abstract int[] getReturnTypes();", "public List<CoreLayerType> findAllCoreLayerTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?coreLayerType WHERE {?coreLayerType rdfs:subClassOf onto:CoreLayerType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllCoreLayerTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<CoreLayerType> list = new ArrayList<CoreLayerType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tCoreLayerType coreLayerType = new CoreLayerType();\r\n\t\t\t\tif (jsonObject.has(\"coreLayerType\")) {\r\n\t\t\t\t\tcoreLayerType.setCoreLayerTypeName(\r\n\t\t\t\t\t\t\tjsonObject.getJSONObject(\"coreLayerType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(coreLayerType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@GetMapping(\"/company-types\")\n @Timed\n public List<CompanyType> getAllCompanyTypes() {\n log.debug(\"REST request to get all CompanyTypes\");\n List<CompanyType> companyTypes = companyTypeRepository.findAll();\n return companyTypes;\n }", "@GET\n @Path(\"additionalTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAdditionalTypes() {\n return typesJSONResponse(_types.getAdditionalTypes());\n }", "public List<CWLType> getTypes() {\n return types;\n }", "public List<Class<?>> getTargetFaultTypes() {\n return targetFaultTypes;\n }", "public Set<GrouperProvisioningTarget> getViewableTargets() {\r\n \r\n GrouperObject grouperObject = null;\r\n \r\n GuiGroup guiGroup = GrouperRequestContainer.retrieveFromRequestOrCreate().getGroupContainer().getGuiGroup();\r\n GuiStem guiStem = GrouperRequestContainer.retrieveFromRequestOrCreate().getStemContainer().getGuiStem();\r\n \r\n if (guiGroup != null) {\r\n grouperObject = guiGroup.getGrouperObject();\r\n }\r\n if (guiStem != null) {\r\n grouperObject = guiStem.getGrouperObject();\r\n }\r\n \r\n Map<String, GrouperProvisioningTarget> targets = GrouperProvisioningSettings.getTargets(true);\r\n Subject loggedInSubject = GrouperUiFilter.retrieveSubjectLoggedIn();\r\n \r\n Set<GrouperProvisioningTarget> viewableTargets = new HashSet<GrouperProvisioningTarget>();\r\n \r\n for (GrouperProvisioningTarget target: targets.values()) {\r\n if (GrouperProvisioningService.isTargetViewable(target, loggedInSubject, grouperObject)) {\r\n viewableTargets.add(target);\r\n }\r\n }\r\n \r\n return viewableTargets;\r\n }", "public void computeTypeIds() {\n classes.add(null);\n jsonObjects.add(new JsonObject(program));\n \n // Do java.lang.String first to reserve typeId 1 for the mashup case.\n computeSourceClass(program.getTypeJavaLangString());\n assert (classes.size() == 2);\n \n /*\n * Compute the list of classes than can successfully satisfy cast\n * requests, along with the set of types they can be successfully cast to.\n * Do it in super type order.\n */\n for (Iterator it = program.getDeclaredTypes().iterator(); it.hasNext();) {\n JReferenceType type = (JReferenceType) it.next();\n if (type instanceof JClassType) {\n computeSourceClass((JClassType) type);\n }\n }\n \n for (Iterator it = program.getAllArrayTypes().iterator(); it.hasNext();) {\n JArrayType type = (JArrayType) it.next();\n computeSourceClass(type);\n }\n \n // pass our info to JProgram\n program.initTypeInfo(classes, jsonObjects);\n program.recordQueryIds(queryIds);\n }", "public String getTargetType() {\n return targetType;\n }", "public String getTargetType() {\n return targetType;\n }", "public String getTargetType() {\n return targetType;\n }", "public String getTargetType() {\n return targetType;\n }", "@Override\n\tpublic TypeName[] getOutputs()\n\t{\n\t\tthis.defaultOutputNames = new TypeName[1];\n\t\tthis.defaultOutputNames[0] = new TypeName(IMAGE, \"Adjusted Image\");\n\t\t\n\t\tif(this.outputNames == null)\n\t\t{\n\t\t\treturn this.defaultOutputNames;\n\t\t}\n\t\treturn this.outputNames;\n\t}", "public List<BotClassification> getClassifications() {\n return classifications;\n }", "private void requestWeatherTypes() {\n SharedPreferences preferences = getSharedPreferences(CommonConstants.APP_SETTINGS, MODE_PRIVATE);\n String url = \"https://api.openweathermap.org/data/2.5/forecast?\" +\n \"id=\" + input.get(CommonConstants.ARRIVAL_CITY_ID) +\n \"&appid=\" + CommonConstants.OWM_APP_ID +\n \"&lang=\" + Locale.getDefault().getLanguage() +\n \"&units=\" + preferences.getString(CommonConstants.TEMPERATURE_UNIT, \"Standard\");\n ForecastListener listener = new ForecastListener(weatherList -> {\n try {\n WeatherTypeMapper mapper = new WeatherTypeMapper();\n fillPreview(mapper.from(weatherList));\n if (input.containsKey(CommonConstants.SELECTIONS)) {\n //noinspection unchecked\n setSelections((List<Settings.Selection>) input.get(CommonConstants.SELECTIONS));\n }\n } catch (ExecutionException | InterruptedException e) {\n Log.e(TAG, \"onSuccess: \" + e.getMessage(), e);\n }\n });\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null, listener, null);\n TravelRequestQueue.getInstance(this).addRequest(request);\n }", "public Map<String, JsonElementType> getJsonResponseStructure();", "@SuppressWarnings(\"unchecked\")\n\tpublic List<T> listAll() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\treturn session.createCriteria(target).list();\n\t}", "@GET\n @Path(\"/types\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getBlahTypes(@Context HttpServletRequest request) {\n try {\n final long start = System.currentTimeMillis();\n final Response response = RestUtilities.make200OkResponse(getBlahManager().getBlahTypes(LocaleId.en_us));\n getSystemManager().setResponseTime(GET_BLAH_TYPES_OPERATION, (System.currentTimeMillis() - start));\n return response;\n } catch (SystemErrorException e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } finally {\n\n }\n }", "public Class<T> getTargetType() {\n return this.targetType;\n }", "public final Class<?> getTargetType(){\n return this.targetType;\n }", "com.google.ads.googleads.v14.services.SuggestGeoTargetConstantsRequest.GeoTargetsOrBuilder getGeoTargetsOrBuilder();", "public List<IElementType> getMARelTypesOnSourceAndTarget(\r\n\t\t\tIGraphicalEditPart targetEditPart) {\r\n\t\tLinkedList<IElementType> types = new LinkedList<IElementType>();\r\n\t\tif (targetEditPart instanceof geometry.diagram.edit.parts.ConnectorEditPart) {\r\n\t\t\ttypes.add(GeometryElementTypes.Line_4001);\r\n\t\t}\r\n\t\treturn types;\r\n\t}", "public PyList getTargets() {\n\t\treturn (PyList) shadowstr_gettargets();\n\t}", "public Set<Class<?>> getTypes() {\n\t\treturn dataTypes;\n\t}", "public Set<Class<?>> getTypes() {\n\t\treturn dataTypes;\n\t}", "@DerivedProperty\n\t\nSet<CtTypeReference<?>> getReferencedTypes();", "public NestedSet<Label> getTransitiveTargets() {\n return transitiveTargets;\n }", "public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}", "public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}", "public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}", "public int getTargetType() {\n return targetType;\n }", "public List<OperationType> getOperationTypeList() {\r\n List<OperationType> operationType = new ArrayList<OperationType>();\r\n \r\n try{\r\n init();\r\n \r\n // Start UOC\r\n OperationTypeDao operationTypeDao = new OperationTypeDao(conn);\r\n operationType = operationTypeDao.searchAll();\r\n // End UOC\r\n\r\n } catch (Exception e) {\r\n handleException(e);\r\n } finally {\r\n finish();\r\n }\r\n \r\n return operationType;\r\n }", "public List<SecTyp> getAllTypes();", "@GET\n @Path(\"simpleTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getSimpleTypes() {\n return typesJSONResponse(_types.getSimpleTypes());\n }", "private Map<String, SkylarkModuleDoc> collectTypes() throws ClassPathException {\n return SkylarkDocumentationCollector.collectModules(\n Classpath.findClasses(MODULES_PACKAGE_PREFIX));\n }", "List<AjaxTarget> getAjaxTargets();", "private List<Category> extractTargets() {\n List<String> names = getNames(\"category\");\n CategorySelectAsyncTask task = new CategorySelectAsyncTask();\n CategoryMapper mapper = new CategoryMapper();\n task.setNames(names);\n List<Category> list = new ArrayList<>();\n try {\n list.addAll(mapper.to(task.execute().get()));\n } catch (ExecutionException | InterruptedException e) {\n Log.e(TAG, \"extractTargets: \" + e.getMessage(), e);\n }\n return list;\n }", "public abstract Class<?>[] getCoClasses();", "public List<String> getReturnTypes() {\n if (returnTypes.isEmpty()) {\n return Lists.newArrayList(\"void\");\n } else {\n return new ArrayList<>(returnTypes);\n }\n }", "public FilialResponse fetchAllFilialTypes(Request request);", "Class<T> getResultType();", "public String getReturnType() {\n String type;\r\n if (this.getTypeIdentifier() != null) { //Collection<Entity> , Collection<String>\r\n type = this.getTypeIdentifier().getVariableType();\r\n } else {\r\n type = classHelper.getClassName();\r\n }\r\n\r\n if ((this.getTypeIdentifier() == null\r\n || getRelation() instanceof SingleRelationAttributeSnippet)\r\n && functionalType) {\r\n if (isArray(type)) {\r\n type = \"Optional<\" + type + '>';\r\n } else {\r\n type = \"Optional<\" + getWrapperType(type) + '>';\r\n }\r\n }\r\n return type;\r\n }", "Output getOutputs();", "private Collection<TypeDeclaration> getAllTypes() {\n if (allTypes != null) {\n return allTypes;\n }\n allTypes = new ArrayList<TypeDeclaration>();\n for (Symbol s : getMembers(false)) {\n allTypes.add(env.declMaker.getTypeDeclaration((ClassSymbol) s));\n }\n return allTypes;\n }", "public String getTargetType() {\n return this.targetType;\n }", "public List<Optype> getOptypeList() throws Exception {\n\t\treturn mapper.getOptypeList();\n\t}" ]
[ "0.61885995", "0.6093285", "0.5951276", "0.5939392", "0.58708084", "0.56918025", "0.52966446", "0.52784157", "0.5258947", "0.52229273", "0.5207147", "0.52042484", "0.51865834", "0.51453793", "0.509846", "0.5081909", "0.50742203", "0.5038024", "0.50285614", "0.49865952", "0.49675423", "0.49589288", "0.4958259", "0.4941669", "0.49050796", "0.4886524", "0.4884982", "0.48807216", "0.4878666", "0.48706073", "0.48068637", "0.4804625", "0.47987705", "0.4791742", "0.4780339", "0.47694618", "0.47429192", "0.4741358", "0.4715189", "0.47144526", "0.47137842", "0.4702224", "0.47000083", "0.46756893", "0.4674625", "0.466991", "0.4667684", "0.46646848", "0.4663621", "0.46592855", "0.46417058", "0.46413755", "0.46342868", "0.4629641", "0.46294653", "0.46265954", "0.46087116", "0.46081805", "0.46019053", "0.4587545", "0.4585725", "0.4584584", "0.4582412", "0.4582412", "0.4582412", "0.4582412", "0.45682237", "0.45680588", "0.4562121", "0.4561801", "0.454117", "0.45355082", "0.45338595", "0.45281097", "0.4523829", "0.45176658", "0.45121938", "0.45096567", "0.45096567", "0.45067236", "0.44962597", "0.44950506", "0.44950506", "0.44950506", "0.44880724", "0.44863096", "0.4483681", "0.4476805", "0.44763625", "0.44757736", "0.44746628", "0.4468388", "0.44647816", "0.44641745", "0.4459085", "0.44470766", "0.44467053", "0.44451478", "0.44403985", "0.4433087" ]
0.5793323
5
Set this instance's list of Link objects. The input list is not copied.
public void setLinks(List<Link> links) { this.links = links; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLinks(List<ALink> link) {\n this.link = link;\n }", "protected void setRefList( ReferenceList refList )\n {\n _refList = refList;\n }", "private void setLinks(\n int index, org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto value) {\n value.getClass();\n ensureLinksIsMutable();\n links_.set(index, value);\n }", "public void setLinks(List<Link> links) {\n\t\tthis.links = links;\n\t}", "public UtillLinkList() {\n\t\tlist = new LinkedList<String>();\n\t}", "public void setListNodes (ArrayList<Node> list){\r\n this.listNodes = list;\r\n }", "public LinkList() {\n this.head = null;\n this.tail = null;\n }", "synchronized void toCrawlList_addAll(LinkedHashSet _toCrawlList, ArrayList _links)\n {\n _toCrawlList.addAll(_links);\n }", "public void setList(Node in_adjacentcyList[]){\n adjacentcyList = in_adjacentcyList;\n }", "public List<Link> getLinks()\t{return Collections.unmodifiableList(allLinks);}", "public void setActionLinks(List<JRActionLink> actionLinks) {\n mActionLinks = actionLinks;\n }", "public void setLinkages() throws JiBXException {\n \n // check if any mappings are defined\n if (m_mappings != null) {\n for (int i = 0; i < m_mappings.size(); i++) {\n Object obj = m_mappings.get(i);\n if (obj instanceof MappingDefinition) {\n ((MappingDefinition)obj).setLinkages();\n }\n }\n }\n }", "public void setAs(ElementList<E> list) {\r\n\t\tthis.makeEmpty();\r\n\t\theader.next = list.first();\r\n\t\tlast = list.last;\r\n\t}", "public abstract void setList(List<T> items);", "@java.lang.Override\n public java.util.List<org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto> getLinksList() {\n return java.util.Collections.unmodifiableList(\n instance.getLinksList());\n }", "private void addAllLinks(\n java.lang.Iterable<? extends org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto> values) {\n ensureLinksIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, links_);\n }", "public List<Link> getLinks() {\n\t return Collections.unmodifiableList(links);\n\t}", "public WCLinkedList(){\n size=0;\n head = null;\n tail = null;\n }", "public void setItems(List<T> value) {\n getElement().setItems(SerDes.mirror(value).cast());\n }", "public Builder addAllLinks(\n java.lang.Iterable<? extends org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto> values) {\n copyOnWrite();\n instance.addAllLinks(values);\n return this;\n }", "public void setListEdge (ArrayList<Edge> list){\r\n this.listEdges = list;\r\n }", "public void setItems(List<T> items) {\n log.debug(\"set items called\");\n synchronized (listsLock){\n filteredList = new ArrayList<T>(items);\n originalList = null;\n updateFilteringAndSorting();\n }\n }", "public void setOutLinks(List<Link> links) {\r\n outLinks = links;\r\n }", "public void setList(DList2 list1){\r\n list = list1;\r\n }", "public void setSiteList(ArrayList<Site> theSiteList) {\n theSiteList = siteList;\n }", "public Set<Link> links() {\n return links;\n }", "public void reUpdateTargetList(CopyOnWriteArrayList<Balloon> newList) {\r\n\t\tballoons = newList;\r\n\t}", "public Set<L> getLinks() {\n return links;\n }", "public void setListSynchronsprecher( List<Person> listSynchronsprecher ) {\n\t\tthis.listSynchronsprecher.clear();\n\t\tthis.listSynchronsprecher.addAll( listSynchronsprecher );\n\t}", "public ListADTImpl(ImmutableListADTImpl<T> listToMakeMutable) {\r\n this.head = new GenericEmptyNode();\r\n for (int i = 0; i < listToMakeMutable.getSize(); i++) {\r\n T value = listToMakeMutable.get(i);\r\n this.head = this.head.addBack(value);\r\n }\r\n }", "@objid (\"cd72633c-53d3-4556-b5de-b52113e3a225\")\n void setLink(Link value);", "@java.lang.Override\n public java.util.List<org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto> getLinksList() {\n return links_;\n }", "public void setList(DOCKSList param) {\r\n localListTracker = param != null;\r\n\r\n this.localList = param;\r\n }", "public Builder setLinks(\n int index, org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto value) {\n copyOnWrite();\n instance.setLinks(index, value);\n return this;\n }", "public void setFollowing(ArrayList<Following> followings) {\n following_list = followings;\n }", "public void asignar_Lista(Lista<Lado> l) {\n\t\tthis.list = l;\n\t}", "public List<URI> getLinks() {\n return links; // this is already unmodifiable\n }", "public List<Link> links() {\n\t\t\treturn new NonNullList<>(_links);\n\t\t}", "public void setUrlList(final List<String> urls) {\r\n\t\tgetState().urlList = urls;\r\n\t}", "private void clearLinks() {\n links_ = emptyProtobufList();\n }", "public List<Link> getLinks()\n {\n return links;\n }", "public void setImages(final SessionContext ctx, final Collection<GPImageLinkComponent> value)\n\t{\n\t\tsetLinkedItems( \n\t\t\tctx,\n\t\t\ttrue,\n\t\t\tGpcommonaddonConstants.Relations.BRANDBAR2GPIMAGELINKRELATION,\n\t\t\tnull,\n\t\t\tvalue,\n\t\t\tfalse,\n\t\t\tfalse,\n\t\t\tUtilities.getMarkModifiedOverride(BRANDBAR2GPIMAGELINKRELATION_MARKMODIFIED)\n\t\t);\n\t}", "@Test\n public void testSetListItems() {\n System.out.println(\"setListItems\");\n List listItems = null;\n DataModel instance = new DataModel();\n instance.setListItems(listItems);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.IPolymorphismSite> list) {\n polymorphismSite = list;\n // Add the primary keys to the serialized key list if there are any.\n if (polymorphismSite != null) {\n for (com.poesys.db.dto.IDbDto object : polymorphismSite) {\n polymorphismSiteKeys.add(object.getPrimaryKey());\n }\n }\n }", "public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }", "void updateLinks() {\n\t\tdouble x1, x2, y1, y2;\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tPNode node1 = links.get(i).getNode1();\n\t\t\tPNode node2 = links.get(i).getNode2();\n\t\t\tx1 = node1.getFullBoundsReference().getCenter2D().getX() + node1.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty1 = node1.getFullBoundsReference().getCenter2D().getY() + node1.getParent().getFullBounds().getOrigin().getY();\n\t\t\tx2 = node2.getFullBoundsReference().getCenter2D().getX() + node2.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty2 = node2.getFullBoundsReference().getCenter2D().getY() + node2.getParent().getFullBounds().getOrigin().getY();\n\t\t\t\n\t\t\t/*\n\t\t\tLine2D line = new Line2D.Double(x1,y1,x2,y2);\n\t\t\tlinks.get(i).getPPath().setPathTo(line);\n */\n\t\t\tsetPolyLine(links.get(i).getPPath(), (float)x1, (float)y1, (float)x2, (float)y2);\n\t\t\t}\n\t\t}", "public void setUserList(CopyOnWriteArrayList<User> userList) {\r\n\t\tBootstrap.userList = userList;\r\n\t}", "public void setList(ArrayList<Song> theSongs) {\n songs1 = theSongs;\n songsNumber = songs1.size();\n }", "public java.util.List<? extends org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProtoOrBuilder> \n getLinksOrBuilderList() {\n return links_;\n }", "public void setHostList(List<Host> hostLst){\r\n\t\tthis.hostList = hostLst;\r\n\t}", "public void setLink(Link link) {\n \t\t_link = link;\n \t}", "private void setNodeConnectionList(ArrayList<Pair<String, Integer>> nodeConnectionList)\n\t{\n\t\totherNodes = nodeConnectionList; // set this field.\n\t}", "void setListProperty(Object name, List<Object> list) throws JMSException;", "public void updateList(List<?> listOfObjects){\n this.radioObjects = listOfObjects;\n }", "T setGraphs(List<Graph> graphs);", "public LinkList(String data){\n this.head = new Node(data, null);\n this.tail = this.head;\n }", "public void set(Double[] configuration) {\n\t\tconfig[0] = configuration[0];\n\t\tconfig[1] = configuration[1];\n\t\tfor (int i = 1; i <= links; i++) {\n\t\t\tsetLink(i, configuration[2*i], configuration[2*i+1]);\n\t\t}\n\t}", "public List<Link> links() {\n return this.links;\n }", "public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }", "@NonNull List<SaldoLink> getLinks() {\n return links;\n }", "public void setNext(ObjectListNode p) {\n next = p;\n }", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public ItemListDTO(LinkedList<QuantifiedItemDTO> itemList) {\r\n\t\titems = itemList;\r\n\t}", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "public void setNext(ListElement<T> next)\n\t{\n\t\tthis.next = next;\n\t}", "protected void setDataProcessingList(ReferenceList<DataProcessing> dataProcessingList) {\n this.dataProcessingList = dataProcessingList;\n \n for(Spectrum spectrum : this)\n spectrum.setDataProcessingList(dataProcessingList);\n }", "public void setList(List<Integer> list) {\n this.list = list;\n }", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public void setArrayList(ArrayList<Chalet> arrayList) {\n this.arrayList.addAll(arrayList);\n notifyDataSetChanged();// to update the sutats\n }", "public ListSharedLinksArg() {\n this(null, null, null);\n }", "public void setGroupChannelList(List<GroupChannel> channelList) {\n// this.mChannelList = channelList;\n// notifyDataSetChanged();\n }", "public LinkedList(Object[] items) {\n\t\tif (items != null) {\n\t\t\t// Add the items to the list\n\t\t\tfor (Object item : items) {\n\t\t\t\taddItem(item);\n\t\t\t}\n\t\t\tcurrent = start;\n\t\t}\n\t}", "public void setLinkers(List<SingleLinkConfiguration> linkers) {\n this.linkers = linkers;\n }", "public void setListData(ArrayList<NewsArticleObject> mListData) {\n this.newsArticleList = mListData;\n notifyDataSetChanged();\n }", "public List<Link> getLinks() {\n\t\treturn _links;\n\t}", "public void setNextList(List nextList) {\n\t\tthis.nextList = nextList;\n\t}", "List<Link> getLinks();", "@Override\n\tpublic void init() {\n\t\tint i = 0;\n\t\tfor (Link l : this.node.getInLinks().values()) {\n\t\t\tQNetwork network = netsimEngine.getNetsimNetwork() ;\n\t\t\tthis.inLinksArrayCache[i] = network.getNetsimLinks().get(l.getId());\n\t\t\ti++;\n\t\t}\n\t\t/* As the order of links has an influence on the simulation results,\n\t\t * the nodes are sorted to avoid indeterministic simulations. dg[april08]\n\t\t */\n\t\tArrays.sort(this.inLinksArrayCache, new Comparator<NetsimLink>() {\n\t\t\t@Override\n\t\t\tpublic int compare(NetsimLink o1, NetsimLink o2) {\n\t\t\t\treturn o1.getLink().getId().compareTo(o2.getLink().getId());\n\t\t\t}\n\t\t});\n\t}", "public void setList(java.util.List newAktList) {\n\t\tlist = newAktList;\n\t}", "private void addLinks(org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto value) {\n value.getClass();\n ensureLinksIsMutable();\n links_.add(value);\n }", "void operateLinkedList() {\n\n List linkedList = new LinkedList();\n linkedList.add( \"syed\" );\n linkedList.add( \"Mohammed\" );\n linkedList.add( \"Younus\" );\n System.out.println( linkedList );\n linkedList.set( 0, \"SYED\" );\n System.out.println( linkedList );\n linkedList.add( 0, \"Mr.\" );\n System.out.println( linkedList );\n\n\n }", "public void setBiDirectionalLinks(ArrayList<Node> biDirectionalLinks) {\n this.biDirectionalLinks = biDirectionalLinks;\n }", "@Override\n\tpublic void linkDiscoveryUpdate(List<LDUpdate> updateList)\n\t{\n\n\t}", "public void setTheObjects(List newTheObjects) {\r\n theObjects = newTheObjects;\r\n }", "public void setNext(ListElement next)\n\n\t {\n\t this.next = next;\n\t }", "public void setLinkedNodes(Node prevNode, Node nextNode)\n\t{\n\t\tnodeLinks.setPrev(prevNode);\n\t\tnodeLinks.setNext(nextNode);\n\t}", "public void setProperties(Properties setList);", "void setAllEdges(List<IEdge> allEdges);", "public void setNewList(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n mItems = new ArrayList<>(items);\n mapPossibleTypes(mItems);\n getFastAdapter().notifyAdapterDataSetChanged();\n }", "Link(Object it, Link inp, Link inn) { e = it; p = inp; n = inn; }", "public void setUpList(List upList) {\n\t\tthis.upList = upList;\n\t}", "public void setValues(List<Object> values);", "public void setListProperty(List<Integer> t) {\n\n\t\t}", "public DocumentBodyBlock list(DocumentBodyList list) {\n this.list = list;\n return this;\n }", "public void refershData(ArrayList<SquareLiveModel> contents) {\n\t\tlistData = contents;\n\t\tnotifyDataSetChanged();\n\t}", "public void setStepArrayList(List<Step> stepArrayList) {\n this.mStepArrayList = stepArrayList;\n notifyDataSetChanged();\n }", "public void setNext(ListNode next)\r\n {\r\n this.next = next;\r\n }", "public void setMashStepList(ArrayList<MashStep> list) {\n this.mashSteps = list;\n for (MashStep s : this.mashSteps) {\n s.setRecipe(this.recipe);\n }\n Collections.sort(this.mashSteps, new FromDatabaseMashStepComparator());\n }", "public void setList(List<Product> list) {\n\t\tcellTable.setList(list);\n\t}", "java.util.List<org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto> \n getLinksList();" ]
[ "0.6572276", "0.6331044", "0.6309904", "0.6274544", "0.61903477", "0.6188058", "0.61758286", "0.60654587", "0.60074705", "0.5988884", "0.5940359", "0.5904224", "0.5898367", "0.5886459", "0.58519477", "0.58421016", "0.5793116", "0.5714596", "0.56778824", "0.56751597", "0.56615186", "0.5656555", "0.5641134", "0.5640919", "0.56182873", "0.561638", "0.56136274", "0.55942833", "0.5584951", "0.5574605", "0.55616784", "0.555737", "0.55406564", "0.5539288", "0.55343086", "0.5527213", "0.55241907", "0.55215776", "0.55091006", "0.55059123", "0.5489827", "0.54696447", "0.5449555", "0.54419154", "0.5440719", "0.54390967", "0.5438188", "0.54280126", "0.540624", "0.5404763", "0.538049", "0.5379824", "0.53776467", "0.53770125", "0.53700185", "0.5369179", "0.53648746", "0.536131", "0.5359704", "0.5353372", "0.53523237", "0.53514683", "0.5350241", "0.5347352", "0.53205246", "0.5319798", "0.531791", "0.5307012", "0.53019565", "0.52988833", "0.5286992", "0.52846056", "0.52741545", "0.5268692", "0.5267166", "0.5266552", "0.52642775", "0.52443063", "0.5235199", "0.5230183", "0.5227764", "0.5227682", "0.52241075", "0.52123475", "0.52087224", "0.5207302", "0.5206744", "0.5206389", "0.5205047", "0.5202053", "0.5201446", "0.5186463", "0.5177413", "0.5169463", "0.516772", "0.5161829", "0.51601696", "0.51595944", "0.51562977", "0.5150718" ]
0.67445785
0
Interprets a string array to create a Destination object
public static Destination createLocation(String[] _input){ String name = _input[DATA_ARRAY_NAME]; int zip = Integer.parseInt(_input[DATA_ARRAY_ZIP]); String airport = _input[DATA_ARRAY_AIRPORT]; String cityCode = _input[DATA_ARRAY_CITY]; String description = _input[DATA_ARRAY_DESCRIPTION]; return new Destination(name, zip, airport, cityCode, description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildDestinationsFromIntent() {\n Intent intent = getIntent();\n ArrayList<String> listOfDestNames = intent.getStringArrayListExtra(\"dName\");\n double[] listOfDestLong = intent.getDoubleArrayExtra(\"dLong\");\n double[] listOfDestLat = intent.getDoubleArrayExtra(\"dLat\");\n ArrayList <String> listOfDestAddr = intent.getStringArrayListExtra(\"dAddr\");\n\n for(int i=0; i < listOfDestNames.size(); i++){\n Destination des = new Destination(listOfDestNames.get(i), listOfDestLong[i], listOfDestLat[i]);\n des.address = listOfDestAddr.get(i);\n destinations.add(i, des);\n }\n }", "public static String getDirections(String origin, String[] dest)\n\t\tthrows IOException, SAXException, ParserConfigurationException {\n\n\t\tString start = origin.replace(\"\\\\s\", \"%20\");\n\t\tString end = dest[0] + \",\" + dest[1] + \",\" + dest[2];\n\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory\n\t\t\t.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.parse(directionsURL + start\n\t\t\t+ \"&destination=\" + end + \"&sensor=false\");\n\t\tdoc.getDocumentElement().normalize();\n\n\t\tNodeList steps = doc.getElementsByTagName(\"step\");\n\n\t\tString out = \"The routing directions: \\n\";\n\n\t\tfor (int i = 0; i < steps.getLength(); i++) {\n\t\t\tNode currStep = steps.item(i);\n\t\t\tNodeList stepInfo = currStep.getChildNodes();\n\t\t\tString line = stepInfo.item(11).getTextContent();\n\t\t\tStringBuilder temp = new StringBuilder();\n\t\t\tBoolean del = false;\n\t\t\tBoolean needSpace = false;\n\t\t\tfor (int j = 0; j < line.length(); j++) {\n\t\t\t\tif (line.charAt(j) == '<') {\n\t\t\t\t\tdel = true;\n\t\t\t\t\tif (needSpace) {\n\t\t\t\t\t\ttemp.append(\" \");\n\t\t\t\t\t\tneedSpace = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (line.charAt(j) == '>') {\n\t\t\t\t\tdel = false;\n\t\t\t\t\tneedSpace = true;\n\t\t\t\t}\n\t\t\t\telse if (del) {\n\t\t\t\t\t// Do nothing\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttemp.append(line.charAt(j));\n\t\t\t\t\tneedSpace = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (temp.indexOf(\"Destination\") != -1) {\n\t\t\t\tint index = temp.indexOf(\"Destination\");\n\t\t\t\ttemp.insert(index, \"\\n\");\n\t\t\t}\n\n\t\t\tout += temp + \"\\n\";\n\n\t\t}\n\t\treturn out;\n\t}", "public void setDestinations (Country[]c)\n {\n destinations=c;\n }", "public String RoutesArrayToString(ArrayList<Route> arrayToConvert) {\n String resultString = \"\";\n StringBuilder resultStringBuilder = new StringBuilder(resultString);\n for (int i = 0; i < arrayToConvert.size(); i++) {\n if (arrayToConvert.get(i).getAirlineID() >= 0) {\n String routeString =\n arrayToConvert.get(i).getSourceAirport()\n + \" to \"\n + arrayToConvert.get(i).getDestinationAirport();\n if (i == arrayToConvert.size() - 1) {\n resultStringBuilder.append(routeString);\n } else {\n resultStringBuilder.append(routeString).append(\", \");\n }\n }\n }\n resultString = resultStringBuilder.toString();\n return resultString;\n }", "private List<String> prepareToPrint(List<String[]> beacon, List<String[]> receiver, String[] destination){\n\n List<String> list = new ArrayList<>();\n boolean destinationAdded = false;\n\n Iterator<String[]> it = receiver.iterator();\n for(String [] oneBeacon : beacon) {\n String s = \"\";\n String[] receiverElementList = it.next();\n //i = 1 to skip the id\n for(int i = 1; i < receiverElementList.length; i++){\n s = s + receiverElementList[i] + \",\";\n }\n\n s += oneBeacon[1].trim()+\",\"+oneBeacon[2].trim();\n if(!destinationAdded){\n s += \",\"+destination[0]+\",\"+destination[1];\n destinationAdded = true;\n }\n list.add(s);\n }\n //adding one more time the position of the first beacon in order to plot a triangle\n if(it.hasNext()){\n String s = \"\";\n String[] receiverElementList = it.next();\n String[] oneBeacon = beacon.get(0);\n for(int i = 1; i < receiverElementList.length; i++){\n s = s + receiverElementList[i] + \",\";\n }\n\n s += oneBeacon[1].trim()+\",\"+oneBeacon[2].trim();\n list.add(s);\n }\n\n while(it.hasNext()){\n String[] receiverElementList = it.next();\n String s = \"\";\n for(int i = 1; i < receiverElementList.length; i++){\n s = s + receiverElementList[i]+\",\";\n }\n\n list.add(s.substring(0,s.length()-1));\n\n }\n return list;\n }", "private List<PathMapping> computedExpandedPathForArrays(\n Object source, String srcPath, String dstPath, Configuration configuration) {\n String srcpathTrimmed = srcPath.replaceAll(\"\\\\s\", \"\");\n String dstpathTrimmed = dstPath.replaceAll(\"\\\\s\", \"\");\n /*\n\n int firstIndex = srcpathTrimmed.indexOf(\"[*]\");\n if (firstIndex == -1) {\n throw new TransformationException(\"c\");\n }\n String pathTillArray = srcpathTrimmed.substring(0, firstIndex + 3);\n //query the source document to figure out how many entries exist in the source array\n List<Object> items = JsonPath.read(source, pathTillArray);\n if (items == null) {\n throw new TransformationException(\n getStringFromBundle(NULL_QUERY_RESULT, pathTillArray));\n\n }\n int size = items.size();\n String dstpathTrimmed = dstPath.replaceAll(\"\\\\s\", \"\");\n firstIndex = dstpathTrimmed.indexOf(\"[*]\");\n if (firstIndex == -1) {\n throw new TransformationException(getStringFromBundle(INTERNAL_ERROR));\n }\n */\n\n\n List<PathMapping> result = new ArrayList<PathMapping>();\n\n /*\n for (int i = 0; i < size; i++) {\n PathMapping p = new PathMapping();\n p.setSource(srcpathTrimmed.replace(\"[*]\", \"[\" + i + \"]\"));\n p.setTarget(dstpathTrimmed.replace(\"[*]\", \"[\" + i + \"]\"));\n result.add(p);\n }*/\n\n for (int i = 0; i < 1; i++) {\n PathMapping p = new PathMapping();\n p.setSource(srcpathTrimmed);\n p.setTarget(dstpathTrimmed);\n result.add(p);\n }\n\n return result;\n }", "public Destination() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "@Override\n\tpublic String[][] generateArrayStringXML(String source, String destination) {\n\t\treturn null;\n\t}", "public Object[] fromStringRepresentation(String... value);", "public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }", "CreateDestinationResult createDestination(CreateDestinationRequest createDestinationRequest);", "@Test\n public void testIndirectArrayCreation() {\n final String[] array = toArrayPropagatingType(\"foo\", \"bar\");\n assertEquals(2, array.length);\n assertEquals(\"foo\", array[0]);\n assertEquals(\"bar\", array[1]);\n }", "@Override\r\n\tpublic String[] convert(String[] e) throws Exception {\n\t\treturn e;\r\n\t}", "protected Object convertImpl(Class destinationClass, Object source,\n\t\tLocale locale) throws Exception {\n\t\tAddressDAO[] addresses = (AddressDAO[]) source;\n\t\t// we can also assume the source is not null, because we didn't\n\t\t// explicitly state that null was a valid source class\n\t\tAddressDAO address = addresses[0];\n\t\t// now we convert the first address to a String\n\t\treturn address.toString();\n\t\t\n\t}", "private void testStringArray() {\n\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\tString array[] = { \"Gimme\", \"a\", \"break\", \"dude\" };\n\t\tmessage.setPayload(array);\n\t\tsend(message);\n\t}", "public static void parseEdge(String[] list)\n {\n for (int i = 0; i < list.length; i++) {\n String element = list[i].replace(\" \", \"\");\n if (element.length() > 4) {\n throw new RuntimeException(\"element not handled\");\n }\n Graph.getNode(element.substring(0, 1)).addDestination(\n Graph.getNode(element.substring(1,2)),\n Integer.parseInt(element.substring(2))\n );\n }\n return;\n }", "public java.lang.String getDestination(){return this.destination;}", "Object[] elements(Object[] destination) {\n return elements.toArray(destination);\n }", "public Builder setDestination(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n destination_ = value;\n onChanged();\n return this;\n }", "public Destination getDestination(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.destination.v1.Destination res){\n\t\tDestination destination = new Destination();\n\t\tdestination.setAirportCode( res.getAirportCode() );\n\t\tdestination.setAirportName( res.getAirportName() );\n\t\tdestination.setCityName( res.getCityName() );\n\t\tdestination.setStateCode( res.getStateCode() );\n\t\tdestination.setCountryCode( res.getCountryCode() );\n\t\tdestination.setLanguageCode( res.getLanguageCode() );\n\t\tif( res.isAirDestination() != null ){\n\t\t\tdestination.setAirDestination( res.isAirDestination().booleanValue() );\n\t\t}\n\t\tif( res.isHotelDestination() != null ){\n\t\t\tdestination.setHotelDestination( res.isHotelDestination().booleanValue() );\n\t\t}\n\t\tif( res.isVehicleDestination() != null ){\n\t\t\tdestination.setVehicleDestination( res.isVehicleDestination().booleanValue() );\n\t\t}\n\t\tdestination.setCountryDescription( res.getCountryDescription() );\n\t\tdestination.setNearbyAirports( res.getNearbyAirports() );\n\t\tif( (res.getServices() != null) && (res.getServices().size() > 0) ){\n\t\t\tList<DestinationService> services = new ArrayList<DestinationService>();\n\t\t\tfor(int i=0; i < res.getServices().size(); i++){\n\t\t\t\tif( res.getServices().get(i) != null ){\n\t\t\t\tservices.add( this.getDestinationService( res.getServices().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\tdestination.setServices( services );\n\t\t}\n\t\t\n\t\treturn destination;\n\t}", "@TypeConverter\r\n public String[] fromString(String value) {\r\n String[] split = value.split(SEPERATOR.toString());\r\n return value.isEmpty() ? split : split;\r\n }", "private DestinationDefinition loadDestination(XMLStreamReader reader) throws XMLStreamException {\n\n DestinationDefinition destination = new DestinationDefinition();\n\n destination.setName(reader.getAttributeValue(null, \"name\"));\n\n String create = reader.getAttributeValue(null, \"create\");\n if (create != null) {\n destination.setCreate(CreateOption.valueOf(create));\n }\n\n String type = reader.getAttributeValue(null, \"type\");\n if (type != null) {\n destination.setDestinationType(DestinationType.valueOf(type));\n }\n\n loadProperties(reader, destination, \"destination\");\n\n return destination;\n\n }", "private static void addCardsToList(ArrayList<Card> destination , String[] listOfNames , String type)\n {\n for (String name : listOfNames) {\n Card card = new Card(type, name);\n destination.add(card);\n }\n\n }", "@Override\n\tprotected RoomTypeDTO convertArrayToDTO(String[] value) throws IOException {\n\t\tInteger roomTypeId = Integer.valueOf(value[COLUMN_INDEX_ROOM_TYPE_ID]);\n\t\tString roomType = value[COLUMN_INDEX_ROOM_TYPE];\n\t\tDouble price = Double.valueOf(value[COLUMN_INDEX_PRICE]);\n\t\tString unit = value[COLUMN_INDEX_PRICE_UNIT];\n\n\t\tRoomTypeDTO dto = new RoomTypeDTO(roomType,price,unit);\n\t\treturn dto;\n\t}", "public static boolean isArray_dest() {\n return false;\n }", "public void parseString(String str) {\r\n\t\t\tint spaceAt = str.indexOf(' ');\r\n\r\n\t\t\tsrcService_ = str.substring(0, spaceAt);\r\n\t\t\tdestService_ = str.substring(spaceAt + 1);\r\n\t\t}", "public DestinationLocations greetServer(String url) throws IllegalArgumentException {\n\t\tString input = url.replaceFirst(\"GOOGLE_TRANSIT_API_KEY\", GOOGLE_TRANSIT_API_KEY);\n\n\t\tDestinationLocations destNamesLoc = new DestinationLocations();\n\t\t\n\t\tStringBuilder uriBuilder= new StringBuilder(input);\n\t\tString result = makeJSONQuery(uriBuilder);\n\n\t\ttry{\n\t\t\tJSONObject arr= new JSONObject(result);\n\t\t\tJSONArray routesArray = arr.getJSONArray(\"routes\");\n\t\t\tJSONObject firstObject = routesArray.getJSONObject(0);\n\t\t\tJSONArray legsArray = firstObject.getJSONArray(\"legs\");\n\t\t\tJSONObject transition=legsArray.getJSONObject(0);\n\t\t\tJSONArray secondObject = transition.getJSONArray(\"steps\");\n\t\t\tfor(int i1=0; i1<secondObject.length(); i1++){\n\t\t\t\tJSONObject stepsObject = secondObject.getJSONObject(i1);\n\t\t\t\tString travelMode = stepsObject.getString(\"travel_mode\");\n\t\t\t\tif(travelMode.equals(\"TRANSIT\"))\n\t\t\t\t{\n\t\t\t\t\tJSONObject transitDetail=stepsObject.getJSONObject(\"transit_details\");\n\t\t\t\t\tJSONObject stopArrival=transitDetail.getJSONObject(\"arrival_stop\");\n\t\t\t\t\tString stopName=stopArrival.getString(\"name\");\n\t\t\t\t\tdestNamesLoc.getNames().add(stopName);\n\t\t\t\t\tJSONObject stopLocation=stopArrival.getJSONObject(\"location\");\n\t\t\t\t\tdouble locationLatitude=stopLocation.getDouble(\"lat\");\n\t\t\t\t\tdouble locationLongtitude=stopLocation.getDouble(\"lng\");\n\t\t\t\t\tdestNamesLoc.getLatitudes().add(locationLatitude);\n\t\t\t\t\tdestNamesLoc.getLongitudes().add(locationLongtitude);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(locationLatitude);\n\t\t\t\t\tSystem.out.println(locationLongtitude);\n\t\t\t\t\tSystem.out.println(stopName);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn destNamesLoc;\n\t}", "private static ArrayList<String> transmit(String[] array){\n\n\t\tArrayList<String> ret= new ArrayList<String>();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tret.add(array[i]);\n\t\t}\n\t\treturn ret;\t\n\t}", "private Destination createDestination(String originCode, TopRoute route) {\n\t\tString countryCode = cityService.getCountry(originCode);\n\t\tFlight flight = flightService.cheapestFlightReader(countryCode, route.getFrom(), route.getTo());\n\t\tDestination destination = new Destination(route.getTo(), flight);\n\t\treturn destination;\n\t}", "String[][] packData();", "private void createLocations(ArrayList<String> locations) {\n for (String line : locations) {\n String[] entry = line.split(\",\");\n for(int i = 0; i < entry.length; i++) {\n Log.i(\"ec\", entry[i]);\n Log.d(\"debugExtra\", entry[i]);\n }\n //Log.i(\"entry length\", Integer.toString(entry.length));\n if (entry.length == 5) {\n locationList.add(new Location(entry[0], Double.parseDouble(entry[1]), Double.parseDouble(entry[2]), entry[3], entry[4]));\n }\n }\n }", "void consolidate(String destination);", "public void testConstructorWithStringTypeArrayWithReferences() throws Exception {\r\n root.addChild(createArray(\"array1\", TYPE_FULL_STRING, \"1\", \"{str1, \\\"string2\\\"}\"));\r\n\r\n ConfigurationObject object = createObject(\"str1\", TYPE_FULL_STRING);\r\n ConfigurationObject params = new DefaultConfigurationObject(\"params\");\r\n params.addChild(createParam(1, TYPE_FULL_STRING, \"string1\"));\r\n object.addChild(params);\r\n root.addChild(object);\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification array = specificationFactory.getObjectSpecification(\"array1\", null);\r\n\r\n assertEquals(\"SpecType should be array.\", ObjectSpecification.ARRAY_SPECIFICATION, array\r\n .getSpecType());\r\n assertNull(\"Identifier should be null.\", array.getIdentifier());\r\n assertEquals(\"Type should be String.\", TYPE_FULL_STRING, array.getType());\r\n assertEquals(\"Dimension should be 1.\", 1, array.getDimension());\r\n\r\n Object[] array1 = array.getParameters();\r\n ObjectSpecification string1 = (ObjectSpecification) array1[0];\r\n ObjectSpecification string2 = (ObjectSpecification) array1[1];\r\n\r\n assertEquals(\"Array should have 2 elements.\", 2, array1.length);\r\n assertTrue(\"Elements should be 'String'.\", string1.getType().equals(TYPE_FULL_STRING)\r\n && string2.getType().equals(TYPE_FULL_STRING));\r\n assertEquals(\"Element should be str1.\", specificationFactory.getObjectSpecification(\"str1\",\r\n null), string1);\r\n assertEquals(\"Element should be \\\"string2\\\".\", \"string2\", string2.getValue());\r\n }", "String getDest();", "private final <T> Object parseTypeArr(Converter<T> converter, Class<T> valType, String[] arr) throws Exception {\n\t\tObject objArr = Array.newInstance(valType, arr.length);\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tT item = converter.parseFromString(valType, null, null, arr[i]);\n\t\t\tArray.set(objArr, i, item);\n\t\t}\n\t\treturn objArr;\n\t}", "PropertyArray(String source) throws PropertyException {\n this(new PropertyTokener(source));\n }", "public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getDestination() {\r\n return this.destination;\r\n }", "public void setDestination(String destination) {\r\n this.destination = destination;\r\n }", "public void testToByteArrayDest()\n {\n // constant for use in this test\n final int EXTRA_DATA_LENGTH = 9;\n \n // lets test some error cases\n // first, passing null\n try\n {\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n ethernet_address.toByteArray((byte[])null);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n }\n catch (NullPointerException ex)\n {\n // this is the success case so do nothing\n }\n catch (Exception ex)\n {\n fail(\"Caught unexpected exception: \" + ex);\n }\n \n // now an array that is too small\n try {\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n byte[] ethernet_address_byte_array =\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH - 1];\n ethernet_address.toByteArray(ethernet_address_byte_array);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n } catch (IllegalArgumentException ex) {\n // this is the success case so do nothing\n } catch (Exception ex) {\n fail(\"Caught unexpected exception: \" + ex);\n }\n\n // we'll test making a couple EthernetAddresses and then check that\n // toByteArray returns the same value in byte form as used to create it\n \n // here we'll test the null EthernetAddress\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n byte[] test_array = new byte[ETHERNET_ADDRESS_ARRAY_LENGTH];\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array);\n assertEthernetAddressArraysAreEqual(\n NULL_ETHERNET_ADDRESS_BYTE_ARRAY, 0, test_array, 0);\n \n // now test a non-null EthernetAddress\n ethernet_address = new EthernetAddress(MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING);\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array);\n assertEthernetAddressArraysAreEqual(\n VALID_ETHERNET_ADDRESS_BYTE_ARRAY, 0, test_array, 0);\n \n // now test a null EthernetAddress case with extra data in the array\n ethernet_address = new EthernetAddress(0L);\n test_array = new byte[ETHERNET_ADDRESS_ARRAY_LENGTH + EXTRA_DATA_LENGTH];\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array);\n assertEthernetAddressArraysAreEqual(NULL_ETHERNET_ADDRESS_BYTE_ARRAY, 0, test_array, 0);\n for (int i = 0; i < EXTRA_DATA_LENGTH; i++)\n {\n assertEquals(\"Expected array fill value changed\",\n (byte)'x',\n test_array[i + ETHERNET_ADDRESS_ARRAY_LENGTH]);\n }\n \n // now test a good EthernetAddress case with extra data in the array\n ethernet_address =\n new EthernetAddress(MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING);\n test_array =\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH + EXTRA_DATA_LENGTH];\n Arrays.fill(test_array, (byte)'x');\n ethernet_address.toByteArray(test_array);\n assertEthernetAddressArraysAreEqual(\n VALID_ETHERNET_ADDRESS_BYTE_ARRAY, 0, test_array, 0);\n for (int i = 0; i < EXTRA_DATA_LENGTH; i++)\n {\n assertEquals(\"Expected array fill value changed\",\n (byte)'x',\n test_array[i + ETHERNET_ADDRESS_ARRAY_LENGTH]);\n }\n }", "protected abstract void initPatternRepresentation(String[] paramArrayOfString)\n/* */ throws IllegalArgumentException;", "public Collection<RouteBean> findDestinations(String origin) {\n\t\tRouteBean rb = null;\n\t\tCollection<RouteBean> rbs = new ArrayList<RouteBean>();\n\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tResultSet rs = null;\n\t\t\trs = st.executeQuery(\"SELECT DISTINCT(destination) FROM route r,bus b where r.rid=b.rid AND origin='\"+origin+\"'\");\n\t\t\twhile (rs.next()) {\n\t\t\t\trb = new RouteBean();\n\t\t\t\trb.setDestination(rs.getString(\"destination\"));\n\t\t\t\trbs.add(rb);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rbs;\n\t}", "public RouteObject(\n NsiTopology topology,\n SimpleStp srcStpId,\n SimpleStp dstStpId,\n DirectionalityType directionality,\n Optional<StpListType> ero) throws WebApplicationException {\n\n // Each segment of the a path is assigned a route object with an A and Z end.\n Route route = new Route();\n\n // Get the set of possible source STP identifiers (a range could be provided).\n StpTypeBundle srcBundle = new StpTypeBundle(topology, srcStpId, directionality);\n if (srcBundle.isEmpty()) {\n log.error(\"RouteObject: source STP does not exist in topology: \" + srcStpId.toString());\n throw Exceptions.stpResolutionError(srcStpId.toString());\n }\n\n route.setBundleA(srcBundle);\n\n // Now we process any ERO elements if present.\n if (ero.isPresent()) {\n // We need to process the ERO in order that it was specified.\n List<OrderedStpType> orderedSTP = ero.get().getOrderedSTP();\n Collections.sort(orderedSTP, new CustomComparator());\n\n // Our first processed segment starts with our source STP.\n SimpleStp lastStp = srcStpId;\n\n for (OrderedStpType stp : orderedSTP) {\n // Parse this STP and generate a bundle enumerating all the STP. The\n // specified STP must exist in topology for a bundle to be generated.\n SimpleStp nextStp = new SimpleStp(stp.getStp());\n StpTypeBundle nextBundle = new StpTypeBundle(topology, nextStp, directionality);\n\n // If we did not find an associated bundle the specified ERO STP may\n // be an internal STP used for a domain's internal path computation.\n if (nextBundle.isEmpty()) {\n // The one rule we have is that an internal STP must be bounded by\n // at least one externally visible STP from the same domain. This\n // check is to see if the previous STP was in the same domain.\n //if (!nextStp.getNetworkId().equalsIgnoreCase(lastStp.getNetworkId())) {\n //log.error(\"RouteObject: Internal STP not bounded by external STP: \" + stp.getStp());\n //throw Exceptions.invalidEroError(stp.getStp());\n //}\n\n // Save this internal STP.\n route.addInternalStp(stp.getStp());\n }\n else {\n // We have an inter-domain STP so save it and get the SDP\n // so we know the STP on far end. We may need to filter some\n // of these out if there is no corresponding SDP (mismatching\n // labels on each end of the link).\n nextBundle = nextBundle.getPeerReducedBundle();\n if (nextBundle.isEmpty()) {\n log.error(\"RouteObject: ERO STP not associated with SDP: \" + stp.getStp());\n throw Exceptions.invalidEroError(stp.getStp());\n }\n\n // We have completed this path segment by finding a external\n // interdomain STP.\n route.setBundleZ(nextBundle);\n routes.add(route);\n\n // Now create the bundle associated with the other end of SDP.\n route = new Route();\n\n StpTypeBundle lastBundle = new StpTypeBundle();\n\n for (StpType member : nextBundle.values()) {\n SdpType sdp = topology.getSdp(member.getSdp().getId());\n if (sdp == null) {\n log.error(\"RouteObject: ERO STP not associated with valid SDP in context of request: \" + stp.getStp());\n throw Exceptions.invalidEroMember(stp.getStp());\n }\n if (member.getId().equalsIgnoreCase(sdp.getDemarcationA().getStp().getId())) {\n lastBundle.addStpType(topology.getStp(sdp.getDemarcationZ().getStp().getId()));\n }\n else {\n lastBundle.addStpType(topology.getStp(sdp.getDemarcationA().getStp().getId()));\n }\n }\n\n if (lastBundle.isEmpty()) {\n log.error(\"RouteObject: ERO STP not associated with SDP: \" + stp.getStp());\n throw Exceptions.invalidEroError(stp.getStp());\n }\n\n route.setBundleA(lastBundle);\n lastStp = lastBundle.getSimpleStp();\n }\n }\n }\n\n // Add the original destination endpoint after any inserted ERO points.\n StpTypeBundle dstBundle = new StpTypeBundle(topology, dstStpId, directionality);\n if (dstBundle.isEmpty()) {\n log.error(\"RouteObject: destination STP does not exist in topology: \" + dstStpId.toString());\n throw Exceptions.stpResolutionError(dstStpId.toString());\n }\n\n route.setBundleZ(dstBundle);\n\n // Add this last route to our list of one or more routes.\n routes.add(route);\n\n // We have completed building the ERO but need to check for internal\n // consistency.\n routes.forEach(r -> {\n StpTypeBundle bundleA = r.getBundleA();\n StpTypeBundle bundleZ = r.getBundleZ();\n SimpleStp stpA = bundleA.getSimpleStp();\n SimpleStp stpZ = bundleZ.getSimpleStp();\n\n String network = stpA.getNetworkId();\n for (OrderedStpType internalStp : r.getInternalStp()) {\n SimpleStp istp = new SimpleStp(internalStp.getStp());\n if (!istp.getNetworkId().equalsIgnoreCase(network)) {\n network = stpZ.getNetworkId();\n if (!istp.getNetworkId().equalsIgnoreCase(network)) {\n log.error(\"RouteObject: internal STP {} not a member of networkA {} or networkZ {}\",\n istp.getStpId(), stpA.getNetworkId(), stpZ.getNetworkId());\n throw Exceptions.invalidEroError(istp.getStpId());\n }\n }\n }\n });\n }", "@Test\r\n\tvoid testDataSourceConversions() {\r\n\t\tDeconstructor underTest = sampleDataSource.deconstructor();\r\n\t\r\n\t\tassertArrayEquals(stringData.getBytes(StandardCharsets.UTF_8), underTest.getByteArrayByName(STRING_DS_NAME).get());\r\n\t\tassertEquals(byteArrayDataStr, underTest.getStringByName(BYTE_ARRAY_DS_NAME).get());\r\n\t}", "io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination();", "ListDestinationsResult listDestinations(ListDestinationsRequest listDestinationsRequest);", "@Override\n public String toString() {\n return source + \" \" + destination;\n }", "String getRouteDest();", "public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }", "private static String[] getStringBasedOnCoordinate(String idNames, String[] id_to_coord_list){\n String[] subID = idNames.split(\"\\\\n\");\n String[] string_of_id = new String[subID.length-1];\n for(int i=1; i< subID.length; i++){\n string_of_id[i-1] = id_to_coord_list[Integer.parseInt(subID[i])-1];\n }\n return string_of_id;\n }", "void setDestination(Locations destination);", "Destination getDestination();", "private List<Move> convertToMoves(List<AccessibilityRelation> shortestPath,\n\t\t\tint length, Location source, Location destination) {\n\t\tValidate.isTrue(shortestPath.size() <= length, shortestPath.toString());\n\n\t\tList<Move> result = new ArrayList<Move>();\n\t\tLocation previous = source;\n\n\t\tfor (int i = 0; i < shortestPath.size(); i++) {\n\t\t\tAccessibilityRelation currentEdge = shortestPath.get(i);\n\n\t\t\tLocation current = previous.equals(currentEdge.getLocation1()) ? currentEdge\n\t\t\t\t\t.getLocation2()\n\t\t\t\t\t: currentEdge.getLocation1();\n\n\t\t\tresult.add(new Move(current));\n\n\t\t\tprevious = current;\n\t\t}\n\n\t\t// if the path to destination is shorter than length, pad with\n\t\t// destination\n\t\tfor (int i = shortestPath.size(); i < 1; i++) {\n\t\t\tresult.add(new Move(destination));\n\t\t}\n\n\t\tValidate.isTrue(result.get(result.size() - 1).getTargetLocation()\n\t\t\t\t.equals(destination));\n\n\t\treturn result;\n\t}", "public ArrayList<State> stringArraytoStateArray (ArrayList<String> pArray)\r\n\t{\r\n\t\tArrayList<State> sArray = new ArrayList<State>();\r\n\t\tfor (Iterator<String> iterator = pArray.iterator(); iterator.hasNext();) \r\n\t\t{\r\n\t\t\tString string1 = (String) iterator.next();\r\n\t\t\tState sTemp = new State(string1);\r\n\t\t\tsTemp.toString();\r\n\t\t\tsArray.add(sTemp);\r\n\t\t}\r\n\t\treturn sArray;\r\n\t}", "private static List<Address> parseAddress(String source) throws IOException {\n FileReader file = new FileReader(source);\n reader = new BufferedReader(file);\n List<Address> addresses = new ArrayList<>();\n String line;\n\n while((line = reader.readLine()) != null){\n int length = 0;\n String number = line.substring(0, line.indexOf(\" \"));\n length += number.length() + 1;\n String street = line.substring(length, line.indexOf(\",\"));\n length += street.length() + 2;\n String city = line.substring(length, line.indexOf(\",\", length));\n length += city.length() + 2;\n String zip = line.substring(length);\n\n addresses.add(new Address(city, zip, number, street));\n }\n\n reader.close();\n return addresses;\n }", "protected abstract T prepareObject(String extracted);", "public void testConversion() throws Exception\n {\n // create the source object\n PSKeyword source = createKeyword(\"1\");\n \n PSKeyword target = (PSKeyword) roundTripConversion(\n PSKeyword.class, \n com.percussion.webservices.content.PSKeyword.class, \n source);\n \n // verify the the round-trip object is equal to the source object\n assertTrue(source.equals(target));\n \n // create the source array\n PSKeyword[] sourceArray = new PSKeyword[1];\n sourceArray[0] = source;\n \n PSKeyword[] targetArray = (PSKeyword[]) roundTripConversion(\n PSKeyword[].class, \n com.percussion.webservices.content.PSKeyword[].class, \n sourceArray);\n \n // verify the the round-trip array is equal to the source array\n assertTrue(sourceArray.length == targetArray.length);\n assertTrue(sourceArray[0].equals(targetArray[0]));\n }", "public String buildGoogleDirectionsRequest(){\n String originName = destinations.get(0).latitude + \",\" + destinations.get(0).longitude;\n String deName = destinations.get(destinations.size()-1).latitude + \",\" + destinations.get(destinations.size()-1).longitude;\n String urlString = \"https://maps.googleapis.com/maps/api/directions/json?origin=\";\n\n //Adds each destination as a waypoint in the request\n for(int i=1; i<destinations.size()-1; i++){\n if(i==1){\n urlString = urlString + originName + \"&destination=\" + deName + \"&waypoints=optimize:true|\";\n }\n String locString;\n locString = destinations.get(i).latitude + \",\" + destinations.get(i).longitude;\n\n if(i == (destinations.size()-2)){\n urlString = urlString + locString;\n }\n else{\n urlString = urlString + locString + \"|\";\n }\n }\n urlString = urlString + \"&key=AIzaSyDgoZ4AG4pxViHeKbAHEChnDrknUNmQIYY\";\n return urlString;\n }", "public String getDestination() {\r\n return destination;\r\n }", "private String getDirectionsUrl(String origin, String dest){\n\n // Origin of route\n String str_origin = \"origin=\"+origin;\n\n // Destination of route\n String str_dest = \"destination=\"+dest;\n\n // Sensor enabled\n String sensor = \"sensor=false\";\n\n // Building the parameters to the web service\n String parameters = str_origin+\"&\"+str_dest+\"&\"+sensor;\n\n // Output format\n String output = \"xml\";\n\n // Building the url to the web service\n String url = \"https://maps.googleapis.com/maps/api/directions/\"+output+\"?\"+parameters;\n\n return url;\n }", "public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n destination_ = s;\n return s;\n }\n }", "public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Edge loadEdgesFromString(String edgeLine){\n\n int index; /* index for loops */\n Edge newEdge; /* new Edge */\n StringBuilder sourceNumber = new StringBuilder(); /* For The Source Number */\n StringBuilder destinationNumber = new StringBuilder(); /* For The Destination Number */\n StringBuilder weight = new StringBuilder(); /* For The Source Name */\n\n /* Pass the until source number */\n for (index = 0; index < edgeLine.length(); ++index) {\n if (edgeLine.charAt(index) == 'v')\n break;\n }\n\n /* Source Number */\n for (index = index + 1 ; index < edgeLine.length(); ++index) {\n if (edgeLine.charAt(index) != '\"')\n sourceNumber.append(edgeLine.charAt(index));\n else\n break;\n }\n\n /* Pass the until destination number */\n for (; index < edgeLine.length(); ++index) {\n if (edgeLine.charAt(index) == 'v')\n break;\n }\n\n /* Destination Number */\n for (index = index + 1; index < edgeLine.length(); ++index) {\n if (edgeLine.charAt(index) != '\"')\n destinationNumber.append(edgeLine.charAt(index));\n else\n break;\n }\n\n /* Pass the until weight */\n for (index = index+1; index < edgeLine.length(); ++index) {\n if (edgeLine.charAt(index) == '\"')\n break;\n }\n\n /* Destination Number */\n for (index = index+1; index < edgeLine.length(); ++index) {\n if (edgeLine.charAt(index) != '\"')\n weight.append(edgeLine.charAt(index));\n else\n break;\n }\n\n return newEdge = new Edge(Integer.parseInt(String.valueOf(sourceNumber)),\n Integer.parseInt(String.valueOf(destinationNumber)),\n Integer.parseInt(String.valueOf(weight)));\n }", "DestinationNameParameter destinationType(DestinationType destinationType);", "private static final String decode(String[] src) {\n \n if (src == null || src.length==0) {\n return \"\";\n }\n \n StringBuffer buffer = new StringBuffer();\n \n for(int i = 0; i < src.length; i++) {\n buffer.append(src[i]);\n if (i < src.length-1) { buffer.append(';'); }\n }\n \n return buffer.toString();\n }", "public void init(String busDestination, String input) {\n try {\n //Note: input is in the form 8122:-122.842117,-122.842117\n // Where the long/lat value is Lat, and second is Long\n String[] initialSplit = input.split(\":\");\n vehicleNumber = Integer.parseInt(initialSplit[0]);\n destination = busDestination;\n\n String longAndLat = initialSplit[1];\n latitude = Double.parseDouble(longAndLat.split(\",\")[0]);\n longitude = Double.parseDouble(longAndLat.split(\",\")[1]);\n } catch (IllegalStateException | NumberFormatException e) {\n // This happens if the init strings is in an invalid format. Set all members to their\n // default values.\n destination = \"null\";\n vehicleNumber = -1;\n longitude = 0.0;\n latitude = 0.0;\n }\n }", "Route(String source,String destination,String departingDate,String returningDate)\r\n {\r\n this.Source=source;\r\n this.destination=destination;\r\n this.departingDate=departingDate;\r\n this.returningDate=returningDate;\r\n }", "private byte[] obtainPackets4Source(Packet packet){\n\t\t//filter IPV6\n\t\tif(packet.contains(IpPacket.class)){\n\t\t\t\n\t\t\tIpPacket ipPkt = packet.get(IpPacket.class);\n\t\t\tIpHeader ipHeader = ipPkt.getHeader();\n\t\t\n\t\t\tbyte[] src=ipHeader.getSrcAddr().getAddress();\n\t\t\tbyte[] dest = ipHeader.getDstAddr().getAddress();\n\t\t\t//source\n\t\tif(LogicController.headerChoice==1){\n\t\t\treturn src;\n\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==2){\n\t\t//source dest\n\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t\n\t\t}else if(LogicController.headerChoice==3){\n\t\t//3: source source port\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = theader.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getSrcPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(src,port);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}else if(LogicController.headerChoice==4){\n\t\t\t//4: dest dest port\t\n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\tbyte[] port = ByteArrays.toByteArray(theader.getDstPort().valueAsInt());\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\tUdpPacket udpPacket = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader uh = udpPacket.getHeader();\n\t\t\t\tbyte[] port = uh.getDstPort().valueAsString().getBytes();\n\t\t\t\treturn ByteArrays.concatenate(dest,port);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src, dest);\n\t\t\t}\n\t\t}else if(LogicController.headerChoice==5){\n\t\t\t \n\t\t\tif(packet.contains(TcpPacket.class)){\n\t\t\t\t\t\t\t\n\t\t\t\tTcpPacket tcpPkt = packet.get(TcpPacket.class);\n\t\t\t\tTcpHeader theader = tcpPkt.getHeader();\n\t\t\t\t\n\t\t\t\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t\t\t\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t\t\t\t \n\t\t\t\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t\t\t\t \n\t\t\t\t//src,dst,protocol,\n\t\t\t\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\t\t\t\n\t\t\t\t\t//source\n\t\t\t\t\t//return new byte[](key,1);\n\t\t\t\t return ByteArrays.concatenate(a,tVal);\n\t\t\t\t \n\t\t\t}else if(packet.contains(UdpPacket.class)){\n\t\t\t\t\n\t\t\t\tUdpPacket tcpPkt = packet.get(UdpPacket.class);\n\t\t\t\tUdpHeader theader = tcpPkt.getHeader();\n\t\n\tbyte[] a = ByteArrays.concatenate(src,dest);\n\t //byte[] ipHeaderBytes = ByteArrays.concatenate(a,new byte[]{ipHeader.getProtocol().value().byteValue()});\n\t \n\t byte[] tVal =ByteArrays.concatenate(theader.getSrcPort().valueAsString().getBytes(),theader.getDstPort().valueAsString().getBytes());\n\t \n\t//src,dst,protocol,\n\t\t//Key key = new Key(ByteArrays.concatenate(ipHeaderBytes,tVal));\n\t\t\n\t\t//source\n\t\t//return new byte[](key,1);\n\t return ByteArrays.concatenate(a,tVal);\t \n}\n\t\t\t\n\t\t\telse{\n\t\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\treturn ByteArrays.concatenate(src,dest);\n\t\t}\n\t}else{\n\t\treturn null;}\n\t}", "public List<MessageSource> createMessageSources(){\n\n List<MessageSource> messageSourceList = new ArrayList<>();\n\n String messageSourceConfig = Configurations.map.getProperty(\"messageSourceChannels\");\n String[] sourceConfigArray = messageSourceConfig.split(\",\");\n\n for(String sourceConfig : sourceConfigArray) {\n MessageSource messageSource = null;\n\n // there is only file message source option for instance, but it's extendable\n if(sourceConfig.equals(\"file\")){\n messageSource = new FileSource();\n }\n\n if(messageSource != null){\n messageSourceList.add(messageSource);\n }\n }\n\n if(messageSourceList.size() == 0){\n return null;\n }\n\n return messageSourceList;\n }", "private static ArrayList<String> transmit(ArrayList<String> array){\n\n\t\tArrayList<String> ret= new ArrayList<String>();\n\t\tfor (int i = 0; i < array.size(); i++) {\n\t\t\tret.add(array.get(i));\n\t\t}\n\t\treturn ret;\t\n\t}", "private String parseAddresses(Address[] address) {\n String listAddress = \"\";\n\n if (address != null) {\n for (int i = 0; i < address.length; i++) {\n listAddress += address[i].toString() + \", \";\n }\n }\n if (listAddress.length() > 1) {\n listAddress = listAddress.substring(0, listAddress.length() - 2);\n }\n\n return listAddress;\n }", "public String getDestination() {\n return this.destination;\n }", "List<Destinations> selectByExample(DestinationsExample example);", "void storeSources(McastRoute route, Set<ConnectPoint> sources);", "@Override\n public String getDestination() {\n return this.dest;\n }", "private void setCoordsByCommaSeparatedString(final String sCoords) {\n \n \t\tStringTokenizer sToken = new StringTokenizer(sCoords, \",\");\n \n \t\tshArCoords = new short[sToken.countTokens() / 2][2];\n \n \t\tint iCount = 0;\n \n \t\twhile (sToken.hasMoreTokens()) {\n \t\t\t// Filter white spaces\n \t\t\tshort shXCoord = Short.valueOf(sToken.nextToken().replace(\" \", \"\")).shortValue();\n \n \t\t\tif (!sToken.hasMoreTokens())\n \t\t\t\treturn;\n \n \t\t\tshort shYCoord = Short.valueOf(sToken.nextToken().replace(\" \", \"\")).shortValue();\n \n \t\t\tshArCoords[iCount][0] = shXCoord;\n \t\t\tshArCoords[iCount][1] = shYCoord;\n \n \t\t\tiCount++;\n \t\t}\n \t}", "public static void fromArray() {\n Observable<String> myObservable = Observable.fromArray(Utils.getData().toArray(new String[0]));\n /*\n 1. Instead of providing a subscriber, single method can be provided just to get onNext().\n 2. Similarly 3 methods can be provided one for each onNext, onError, onCompleted.\n */\n myObservable.subscribe(value -> System.out.println(\"output = \" + value));\n }", "public void setDestinationType( final String destinationType )\n {\n m_destinationType = destinationType;\n }", "public String getDestination() {\n return destination;\n }", "private static String[] collectInput() {\n\t\tString command = sc.next();\n\t\tString i = sc.next();\n\t\tString destination = sc.next();\n\t\treturn new String[] { command, destination };\n\t\t\n\t}", "public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n destination_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private String[] convertToList(List<String> lstAddresses) {\r\n\t\tString[] arrayAddresses = new String[lstAddresses.size()];\r\n\t\tint index=0;\r\n\t\tfor(String strAddress: lstAddresses) {\r\n\t\t\tarrayAddresses[index++] = strAddress;\r\n\t\t}\r\n\t\treturn arrayAddresses;\r\n\t}", "public Country[] getDestinations ()\n {\n return destinations;\n }", "public interface Destination {\n public String readLabel();\n}", "public StrArrayConverter()\n {\n this.defaultValue = null;\n this.useDefault = false;\n }", "public Builder setDestinationBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n destination_ = value;\n onChanged();\n return this;\n }", "GetDestinationResult getDestination(GetDestinationRequest getDestinationRequest);", "List<Destination> findAllDestinations();", "public interface MyDestination {\n void write(String str);\n}", "public java.lang.String getDestination()\n {\n return this._destination;\n }", "private static List<Address> toInternetAddresses(Iterable<String> strEmails) {\n List<Address> emails = Lists.newArrayList();\n for (String address : strEmails) {\n try {\n emails.add(new InternetAddress(address));\n } catch (AddressException e) {\n // bad address?\n LOG.warn(\"Ignore corrupt email address {}\", address);\n }\n }\n return emails;\n }", "String getDestinationName();", "public static PacketSource makeArgsTossimSerial(String args) {\n\tif (args == null)\n\t args = \"localhost\";\n\treturn makeTossimSerial(args);\n }", "void prepare(List<String> fields) throws TransportException;", "public Move translateToLocal(String[] tokens) {\n // The numbers in the MOVE command sent by the moderator is already in the\n // format we need\n try {\n Move m = new Move(0, 0);\n m.from = Integer.parseInt(tokens[2]);\n m.to = Integer.parseInt(tokens[4]);\n return m;\n } catch (NumberFormatException e) {\n return new Move(0, 0);\n }\n }", "public String makeIpFromArray(String[] ipArr) {\n\t\treturn ipArr[0] + \".\" + ipArr[1] + \".\" + ipArr[2] + \".\" + ipArr[3];\n\t}", "public static List<Object> getDirectionBetweenTwoLocation(final String sourceAddress, final String destinationAddress, final String API_KEY) {\n\n final List<String> list = new ArrayList<>();\n final List<Object> directionList = new ArrayList<>();\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n\n URL url = new URL(\"https://maps.googleapis.com/maps/api/directions/json?\" + \"origin=\" + sourceAddress + \"&destination=\" + destinationAddress + \"&key=\" + API_KEY);\n HttpHandler handler = new HttpHandler();\n String jsonStr = handler.makeServiceCall(String.valueOf(url));\n\n if (jsonStr != null) {\n\n JSONObject jsonObject = new JSONObject(jsonStr);\n JSONArray jsonArray = jsonObject.getJSONArray(\"routes\");\n\n if (jsonArray != null && jsonArray.length() > 0) {\n JSONArray legsObject = jsonArray.getJSONObject(2).getJSONArray(\"legs\");\n if (legsObject != null) {\n JSONArray stepsArray = legsObject.getJSONObject(6).getJSONArray(\"steps\");\n if (stepsArray != null && stepsArray.length() > 0) {\n for (int i = 1; i < stepsArray.length(); i++) {\n JSONObject object = stepsArray.getJSONObject(i);\n System.out.println(\"response1\" + object);\n\n String maneuver = object.getString(\"maneuver\");\n list.add(maneuver);\n }\n directionList.addAll(list);\n }\n }\n }\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n thread.start();\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return directionList;\n }", "public static void main(String[] args) {\n Source s1 = new Source(SourceType.FACTORY, \"Source1\");\n s1.setCapacity(10);\n Source s2 = new Source(35, SourceType.WAREHOUSE, \"Source2\");\n Source s3 = new Source(25, SourceType.WAREHOUSE, \"Source3\");\n System.out.println(s1.toString());\n // create the instances for Destination class\n Destination d1 = new Destination();\n d1.setDemand(20);\n d1.setName(\"Destination1\");\n Destination d2 = new Destination(25, \"Destination2\");\n Destination d3 = new Destination(25, \"Destination3\");\n // add sources and destinations\n Problem app = new Problem(3, 3);\n app.addSource(s1);\n app.addSource(s2);\n app.addSource(s3);\n\n app.addDestination(d1);\n app.addDestination(d2);\n app.addDestination(d3);\n\n int[][] cost1 = {{2, 3, 1}, {5, 4, 8}, {5, 6, 8}};\n\n app.setCost(cost1, 3, 3);\n System.out.println(app.toString()); // print the matrix of cost\n\n for (Source s : app.getSource()) {\n System.out.print(s.getCapacity() + \" \");\n }\n System.out.println();\n for (Destination d : app.getDestination()) {\n System.out.print(d.getDemand() + \" \");\n }\n\n }", "protected String constructURL(LatLng... points) {\n\t\tCalendar c = Calendar.getInstance();\n\t\tint hour = c.get(Calendar.HOUR_OF_DAY);\n\t\tlong time = Math.round(c.getTimeInMillis() / 1000);\n\t\tif(hour > 0 && hour < 6) {\n\t\t\ttime = 1343340000;\n\t\t}\n\t\tLatLng start = points[0];\n\t\tLatLng dest = points[1];\n\t\tString sJsonURL = \"http://maps.googleapis.com/maps/api/directions/json?\";\n\n\t\tfinal StringBuffer mBuf = new StringBuffer(sJsonURL);\n\t\tmBuf.append(\"origin=\");\n\t\tmBuf.append(start.latitude);\n\t\tmBuf.append(',');\n\t\tmBuf.append(start.longitude);\n\t\tmBuf.append(\"&destination=\");\n\t\tmBuf.append(dest.latitude);\n\t\tmBuf.append(',');\n\t\tmBuf.append(dest.longitude);\n\t\tmBuf.append(\"&sensor=true&mode=\");\n\t\tmBuf.append(_mTravelMode.getValue());\n\t\tmBuf.append(\"&departure_time=\");\n\t\tmBuf.append(time);\n\n return mBuf.toString();\n\t}" ]
[ "0.6599453", "0.54632056", "0.5367601", "0.51383746", "0.50860405", "0.5065359", "0.5018361", "0.50057995", "0.4992982", "0.4959284", "0.49579915", "0.49009672", "0.489329", "0.4862518", "0.48403224", "0.4798274", "0.47709402", "0.47656763", "0.47149506", "0.46730173", "0.46485394", "0.46380037", "0.4603301", "0.46030536", "0.45957655", "0.4592914", "0.45908803", "0.4587012", "0.45812654", "0.45531186", "0.45413673", "0.45358834", "0.45328158", "0.45212695", "0.45113945", "0.45008895", "0.44965005", "0.44935343", "0.44920623", "0.44870353", "0.44827", "0.44806024", "0.44756892", "0.44512442", "0.44357708", "0.44275302", "0.4424162", "0.4420706", "0.4418701", "0.44119403", "0.4410395", "0.4407266", "0.4399487", "0.43935782", "0.43923703", "0.43915486", "0.43899533", "0.43871382", "0.43857944", "0.43851763", "0.4380246", "0.43754527", "0.43750417", "0.4366167", "0.43611518", "0.43610802", "0.43467724", "0.43379515", "0.43348068", "0.43319103", "0.43317586", "0.4325198", "0.43247283", "0.43242273", "0.43226695", "0.43197167", "0.43074536", "0.4301229", "0.43009752", "0.42936665", "0.42814463", "0.4276067", "0.42721105", "0.4272092", "0.42719728", "0.42695576", "0.42643443", "0.42608085", "0.42591825", "0.425607", "0.42476082", "0.4246894", "0.42410284", "0.42390764", "0.42386678", "0.42380285", "0.42301536", "0.4228736", "0.42275196", "0.42264357" ]
0.66558677
0
TODO Autogenerated method stub
@Override public void executerEffetMiseEnJeu(Object cible) throws HearthstoneException { executerAction(cible); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void executerEffetDebutTour() throws HearthstoneException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void executerEffetFinTour() throws HearthstoneException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void executerAction(Object cible) throws HearthstoneException { if ( cible == null ) throw new CibleInvalideException("La cible ne peut pas être nulle."); if ( !(cible instanceof ICible) ) throw new CibleInvalideException("La cible doit être une cible valide."); ICible cibleVisee = (ICible) cible; if ( cibleVisee.peutRecevoirDegats() ) { cibleVisee.recevoirDegats(this.degats); } else { throw new CibleInvalideException("La cible ne peut pas recevoir de dégats !"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void executerEffetDisparition(Object cible) throws HearthstoneException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1